Cacti Beginner's Guide - Selection from Cacti Beginner's Guide [Book]. Cacti Beginner's Guide will introduce you to the wide variety of features of Cacti and will guide you on how to use them for maximum. Learn Cacti and design a robust Network Operations Center.
|Language:||English, Spanish, German|
|Genre:||Health & Fitness|
|ePub File Size:||21.45 MB|
|PDF File Size:||8.12 MB|
|Distribution:||Free* [*Sign up for free]|
Cacti Beginner's GuideLearn Cacti and design a robust Network Operations CenterThomas UrbanBIRMINGHAM - MUMB. The Cacti Manual. Ian Berry. Tony Roman. Larry Adams. J.P. Pasnak. Jimmy Conner. Reinhard Scheck. Andreas Braun . Basics. Korean Made Simple is a book for anyone who wishes to begin learning the Korean language. No matter The beginner's guide to real estate investing.
Dinangkur started his career as a Visual Basic programmer for DEN — a hospital management system development company. Later, he moved to web programming and spent the majority of his career in the web arena, using open source technologies, which are the driving point of his technological advances. He worked as a LAMP developer for Quantumcloud — building and implementing an e-commerce solution, content management system, helpdesk and service-oriented application; as Chief Technical Officer he implemented and managed the Linux based internet gateway, mail, backup, revision control and over all security. On the rare occasion he's away from his computer, you can find him reading books in String theory and gaze on math books. He dedicates this book to his parents — Dipty Rani Kundu and Ranjit Kumar Kundu, most extraordinary and beloved ones in his life; because of their love and blessing he is here and continuing his journey.
Dinangkur started his career as a Visual Basic programmer for DEN — a hospital management system development company. Later, he moved to web programming and spent the majority of his career in the web arena, using open source technologies, which are the driving point of his technological advances. He worked as a LAMP developer for Quantumcloud — building and implementing an e-commerce solution, content management system, helpdesk and service-oriented application; as Chief Technical Officer he implemented and managed the Linux based internet gateway, mail, backup, revision control and over all security.
On the rare occasion he's away from his computer, you can find him reading books in String theory and gaze on math books. He dedicates this book to his parents — Dipty Rani Kundu and Ranjit Kumar Kundu, most extraordinary and beloved ones in his life; because of their love and blessing he is here and continuing his journey. He also thanks his sweet wife Suravi Sarkar for her faithful support in writing this book.
He specially thanks his younger brother Shanku, who took care of his Mum and Dad in his absence, and pushed him to reach his goal. He also wants to thank Rashmi Phadnis at Packt Publishing for being so patient with him. Ibrahim Lavlu S. Ibrahim Lavlu is a Linux wizard who has dedicated most of the time his for Linux and open source. Now, you'll be looking into the actual graph creation process and what features Cacti supports. In addition to just storing the data, the RRDtool is also used to create the actual performance graphs.
Using Graphs to Monitor Networks and Devices If you now expect to see a fully-featured charting application, you will be disappointed. The RRDtool graph functionality offers only a very limited range of chart types. They can either be line charts, area charts, or a combination of both.
There is no 3D option available, nor are there any other types of charts such as Pie or Scatter charts. This may be a disadvantage for some at first, but concentrating on only a few basic chart types makes it a fast specialized rendering engine for these. There are several graphing features available for plotting the data. Several area charts can be stacked together Each of these graph types can be combined together to build the final chart image. Let us dive into the graph creation process here to get a better understanding of the RRDtool graphing capabilities.
You need to have the RRDtool in your path for the following commands to work. A note for Windows users The following examples also work for Windows. I have created a Perl script which will help in the creation of the RRD file and its automatic update with random data. It is going to be a very simple graph displaying only the pure data. Using the command, you defined a start and end time in the Unix time format and defined the RRD file and data set you wanted to plot.
The RRDtool automatically creates the X- and Y-axis for you and also inserts the time and value description. This is the most basic way of creating an RRDtool-based graph. Advanced RRDtool graph creation Although this basic graph image already has a lot of information in it, it is still missing some important features. So, let's go back to this basic graph and look at how you can enhance it step-by-step using some of the advanced RRDtool features.
The graph is now bigger in dimensions than the first one. The RRDtool uses only the width and height information to set the actual chart size. Everything else must be added to the graph separately.
You can see more about how this works in the following examples.
Adding a legend to the graph Now that you have added some description to the graph, you can also add a legend to it. You are also going to add a description field to the LINE2 item.
Therefore they directly relate to the chart being displayed. By adding a description to the LINE2 line Interface eth0 the description was automatically placed at the bottom along with the color being used to draw that line. In this example, you can also see that the RRDtool did not increase the width of the graph to fit the legend in it. The Maximum value has been silently dropped. GPRINT statements do not automatically increase the graph width, so you will need to increase the width yourself.
This can be done by using the —width parameter.
You are going to set a threshold at 50 and use a light grey color to display it on the graph. The following command creates this line and also adds an additional entry to the legend. As you can see in the graph, the following text items are added to the next line. Adding threshold breaches to the graph You have now seen how you can add a threshold line to the graph, but you probably also want to change the color of the data every time the threshold is breached.
Let us assume that you want to have the color go red at or above the threshold and go green once it is below. You define a CDEF named isGreen which returns a number as long as the value of intspeed is between 0 and 50, otherwise no value is returned. You are going to use this CDEF to change the color of the displayed area. Why are there two AREA statements?
In fact, changing the color of one AREA as it is displayed is not possible, so you need to do a little trick here. The first AREA statement will graph all values in red, also the ones which are below the threshold, as you have seen in the preceding example. With the second AREA statement a green area will be drawn at all data values which are below the threshold.
As the color is not transparent, the red area will disappear.
You can see the total red area when you remove the second AREA statement. This section provides a small and very limited overview of the capabilities of the RRDtool graphing functions, but should give you enough ideas to start playing around with it to create your own graphs. The features you have seen here are only a small set of what is possible with the RRDtool.
Please remember that, although Cacti does provide many of the functions of the RRDtool, there are some which may not yet be available. Have a go hero — creating a yellow warning area Let's assume green and red areas are not granular enough, and you also want to have a yellow area where you can immediately see that the threshold is about to be breached.
This yellow warning area should be displayed between the values of 45 and Have a look at the following image: What would you need to change in the above RRDtool command line to get this image?
Adding devices to Cacti A device in Cacti can be anything which can be monitored remotely or locally. For Cacti to be able to monitor a device, it needs to be reachable by ping or SNMP, but the actual data retrieval can also be done using scripts and commands, or a set of SNMP queries. Creating a device Creating a device in Cacti can be achieved by using the Cacti web interface.
You are going to add your first device here. While looking at the different steps it takes to add a device, you are not going too much into the details of every field, as most of the user interface is self-explanatory and provides a detailed description of each field. Before you start: Create a naming standard If you have not already done so, you should now think about a naming standard for your devices.
Creating and keeping to a naming standard is the first step to automation. Later in this book you will go through some device and graph creation automation, where it is assumed that you have in place a naming standard for your devices.
Login as an admin user to your new Cacti installation. Click on the Devices link under the Management menu. This will open a table with all devices added so far. For a new installation there should only be the localhost device showing its status as Up.
On the top right of the new page click on Add. This is the default position for this Add link. You will now be presented with the Devices [new] screen. Have a look at this screen and make yourself comfortable with the different fields.
Enter a Description and Hostname or IP address. Otherwise select Ping. When selecting Ping you can choose the protocol type and port to use.
You can also add some notes. Click on the Create button once you are finished. With this information Cacti is now able to poll the device.