how to graph traffic?
Moderators: Developers, Moderators
how to graph traffic?
Hello,
I installed cacti today and have been trying to monitor my in and outgoing traffic, but I can't get it working.
Can someone tell me step by step how to setup cacti to do this or point me to a good tutorial about this?
I'm using the latest version of cacti and have snmp installed.
I'm alreay using mrtg but I would like to try it with cacti too.
Thanks.
I installed cacti today and have been trying to monitor my in and outgoing traffic, but I can't get it working.
Can someone tell me step by step how to setup cacti to do this or point me to a good tutorial about this?
I'm using the latest version of cacti and have snmp installed.
I'm alreay using mrtg but I would like to try it with cacti too.
Thanks.
Hi,
I have cacti 0.8.5 installed and I hope there is no big difference between 0.8.5a.
So, go to console, and there are few ways to set measurement. But I'll tell you at least one.
Go to Devices. If you have already added any devices, click on which you want to start measurement. If you don't have any devices, please add. Then, click on that device and cacti will list some info about that device. On top right corner, you'll see "Creat graphs for this hosts", click on it and you'll see a drop down menu of Graph templates and if its a router, you will also get a list of interface. So you pick up either graphing template or select particular interface you want to measure and select "graph type" at the bottom of the page, and then click "create".
First graphs you will see after cron will run your polling request (max after 5 minutes). First numbers you will get either after first time cron runs (if its gauge) or after cron runs second time (if its counters).
Hope this will help you.
Good luck.
I have cacti 0.8.5 installed and I hope there is no big difference between 0.8.5a.
So, go to console, and there are few ways to set measurement. But I'll tell you at least one.
Go to Devices. If you have already added any devices, click on which you want to start measurement. If you don't have any devices, please add. Then, click on that device and cacti will list some info about that device. On top right corner, you'll see "Creat graphs for this hosts", click on it and you'll see a drop down menu of Graph templates and if its a router, you will also get a list of interface. So you pick up either graphing template or select particular interface you want to measure and select "graph type" at the bottom of the page, and then click "create".
First graphs you will see after cron will run your polling request (max after 5 minutes). First numbers you will get either after first time cron runs (if its gauge) or after cron runs second time (if its counters).
Hope this will help you.
Good luck.
I did exacty as you described, and get this error net to where the graph should be:
And do I have to fill in something for the 'Index Type', 'Index Value' and 'Output Type ID' under 'Custom Data' for this graph?
The program didn't create the localhost_traffic_in_8.rrd file.Notice: Undefined variable: regexps in /home/cacti/public_html/lib/rrd.php on line 308
Notice: Undefined variable: fetch_array in /home/cacti/public_html/lib/rrd.php on line 323
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
Notice: Undefined variable: regexps in /home/cacti/public_html/lib/rrd.php on line 308
Notice: Undefined variable: fetch_array in /home/cacti/public_html/lib/rrd.php on line 323
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: opening '/home/cacti/public_html/rra/localhost_traffic_in_8.rrd': No such file or directory
And do I have to fill in something for the 'Index Type', 'Index Value' and 'Output Type ID' under 'Custom Data' for this graph?
I dont know what i did, but the first time i tried what you told me i couldn't select an interface and graph type.
but now somehow i can choose one. and i think it's working pretty well now.
but i'm getting graphs like the one i attached..how is that possible
but now somehow i can choose one. and i think it's working pretty well now.
but i'm getting graphs like the one i attached..how is that possible
- Attachments
-
- graph2.jpg (70.49 KiB) Viewed 3419 times
yes, cron runs it every 5 minutes, and there are no errors in the output.
And the gaps are in all the graphs.
I think it's a problem with the cron job.
On the attached image you can see how i've set it up with webmin.
When i click the 'run now' button, it runs fine, and the graphs get updated.
But when it runs auomaticly, it doesn't update anything :S
I've got no idea what's cousing this
And the gaps are in all the graphs.
I think it's a problem with the cron job.
On the attached image you can see how i've set it up with webmin.
When i click the 'run now' button, it runs fine, and the graphs get updated.
But when it runs auomaticly, it doesn't update anything :S
I've got no idea what's cousing this
- Attachments
-
- cron.jpg (129.65 KiB) Viewed 3344 times
Hi
I think you need to write before the command "php ..." which user is going to execute it. Like this:
Rommel
I think you need to write before the command "php ..." which user is going to execute it. Like this:
Code: Select all
0-55/5 * * * * rommel php /var/www/localhost/htdocs/cacti/cmd.php > /dev/null 2>&1
Make sure you have reloaded cron after adding you new line to the crontab file (I'm not sure if webmin does that automatically).
Code: Select all
crontab /etc/crontab
Who is online
Users browsing this forum: No registered users and 4 guests