Help with graphing cisco devices
Moderators: Developers, Moderators
Help with graphing cisco devices
I have searched on the web, and found various different howtos on Cacti,
however I am still hung up on the graphing.
In debug mode I get this error message:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="ir1.pgtc.net - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
DEF:a="/usr/share/cacti/rra/ir1_router_net_5min_cpu_10.rrd":5min_cpu:AVERAGE \
AREA:a#FF0000:"CPU Usage" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf"
RRDTool Says:
ERROR: opening '/usr/share/cacti/rra/ir1_router_net_5min_cpu_10.rrd': No such file or directory
Any help would be great, I am stumped also on how to get the device to register as being up as well.
Any howtos on Centos 5 64 bit Server with Cacti would be great...
thanks,
however I am still hung up on the graphing.
In debug mode I get this error message:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="ir1.pgtc.net - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
DEF:a="/usr/share/cacti/rra/ir1_router_net_5min_cpu_10.rrd":5min_cpu:AVERAGE \
AREA:a#FF0000:"CPU Usage" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf"
RRDTool Says:
ERROR: opening '/usr/share/cacti/rra/ir1_router_net_5min_cpu_10.rrd': No such file or directory
Any help would be great, I am stumped also on how to get the device to register as being up as well.
Any howtos on Centos 5 64 bit Server with Cacti would be great...
thanks,
We are using SNMP, and cmd.php should we be using spine?gandalf wrote:Sorry, my question may have not been precise enough. Are you using SNMP for downed host detection? Are you using spine or cmd.php? Did you already see 2nd link of my sig?
Reinhard
*UPDATE*
I got it to work and it graphed for 15 minutes and stopped,
SNMP Information
System:Cisco IOS Software, 7200 Software
Cisco Router
SNMP
Version 3
I did a chown cacit:cacti for the files in /usr/share/cacti and /var/www/html/cacti is this correct I have seen root ownership, cacti and apache I am at a loss of what user should own all of the files...
This is the error I am receiving now, it stopped monitoring and has not updated any files in /var/lib/cacti/rra now???
[Thu May 14 19:47:53 2009] [error] [client 192.168.1.128] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/tree.php?acti ... id=2&id=21
[Thu May 14 19:47:54 2009] [error] [client 192.168.1.128] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/graphs.php
[Thu May 14 19:47:54 2009] [error] [client 192.168.1.128] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/graphs.php
[Thu May 14 19:47:55 2009] [error] [client 192.168.1.128] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/graphs.php?ac ... edit&id=19
[Thu May 14 19:47:55 2009] [error] [client 192.168.1.128] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/graphs.php?ac ... edit&id=19
[Thu May 14 19:48:00 2009] [error] [client 192.168.1.128] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/graphs.php?ac ... edit&id=19
[Thu May 14 19:48:00 2009] [error] [client 192.168.1.128] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/graphs.php?ac ... edit&id=19
[Thu May 14 19:48:01 2009] [error] [client 192.168.1.128] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/graphs.php?ac ... 19&debug=1
[Thu May 14 19:48:01 2009] [error] [client 192.168.1.128] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://10.10.10.100/cacti/graphs.php?ac ... 19&debug=1
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
The file owner depends on the user that runs the poller.
Assuming you've followed the standrad requirements, here's the setup:
- you've created a "cactiuser"
- cron has been setup for "cactiuser", e.g. "crontab -e -u cactiuser"
- so the poller.php is run by "cactiuser"
- now the files should be owned by "cactiuser"
- rra/ and log/ must be owner by cactiuser
- rra/*.rrd will be then owned by "cactiuser" as well
- httpd must be allowed to read rra/*.rrd
Reinhard
Assuming you've followed the standrad requirements, here's the setup:
- you've created a "cactiuser"
- cron has been setup for "cactiuser", e.g. "crontab -e -u cactiuser"
- so the poller.php is run by "cactiuser"
- now the files should be owned by "cactiuser"
- rra/ and log/ must be owner by cactiuser
- rra/*.rrd will be then owned by "cactiuser" as well
- httpd must be allowed to read rra/*.rrd
Reinhard
I have a user called cacti on the system and one called cactiuser?gandalf wrote:The file owner depends on the user that runs the poller.
Assuming you've followed the standrad requirements, here's the setup:
- you've created a "cactiuser"
- cron has been setup for "cactiuser", e.g. "crontab -e -u cactiuser"
- so the poller.php is run by "cactiuser"
- now the files should be owned by "cactiuser"
- rra/ and log/ must be owner by cactiuser
- rra/*.rrd will be then owned by "cactiuser" as well
- httpd must be allowed to read rra/*.rrd
Reinhard
I have everything under cacti including the cronjob is this incorrect?
So should the files be owned by cactiuser:apache ???
I think I am really confused on who should own the files?
In /var/www/html/cacti should these files be owned by cactiuser:apache???
[Fri May 15 08:50:34 2009] [error] [client 10.10.10.123] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=tree&tree_id=2
[Fri May 15 08:50:34 2009] [error] [client 10.10.10.123] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=tree&tree_id=2
[Fri May 15 08:51:40 2009] [error] [client 10.10.10.193] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45
[Fri May 15 08:51:40 2009] [error] [client 10.10.10.193] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45
[Fri May 15 08:51:40 2009] [error] [client 10.10.10.193] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=t ... first=true
[Fri May 15 08:51:40 2009] [error] [client 10.10.10.193] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=t ... first=true
****** This is scrolling if I can fix this I think it will work ok... ************
[Fri May 15 09:08:57 2009] [error] [client 10.10.10.193] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph.php?local_graph_id=2&rra_id=all
[Fri May 15 09:08:57 2009] [error] [client 10.10.10.193] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph.php?local_graph_id=2&rra_id=all
[Fri May 15 09:08:57 2009] [error] [client 10.10.10.193] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph.php?local_graph_id=2&rra_id=all
[Fri May 15 09:08:57 2009] [error] [client 10.10.10.193] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph.php?local_graph_id=2&rra_id=all
[Fri May 15 09:08:57 2009] [error] [client 10.10.10.193] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph.php?local_graph_id=2&rra_id=all
Permissions on files
My crontab entry...
[cactiuser@w3 cacti-0.8.7b]$ crontab -l
*/5 * * * * php /var/www/html/cacti/cacti-0.8.7b/poller.php > /dev/null 2>&1
[cactiuser@w3 ~]$ php /var/www/html/cacti/cacti-0.8.7b/poller.php
05/15/2009 03:02:12 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '130', Max Runtime '298', Poller Runs: '1'
05/15/2009 03:02:12 PM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 130 seconds have passed since the poller last ran.
error log file
[Fri May 15 15:06:15 2009] [error] [client 10.10.10.123] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=tree&tree_id=2
[Fri May 15 15:06:15 2009] [error] [client 10.10.10.123] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=tree&tree_id=2
[Fri May 15 15:06:15 2009] [error] [client 10.10.10.123] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=tree&tree_id=2
[cactiuser@w3 cacti-0.8.7b]$ pwd
/var/www/html/cacti/cacti-0.8.7b
[cactiuser@w3 cacti-0.8.7b]$ ls -l poller.php
-rw-r--r-- 1 cactiuser apache 14960 Feb 11 2008 poller.php
I did a recursive chown -R cactiuser:apache on the files should they all be owned by cactiuser:cactiuser or something else.
I cannot seem to find any certain documentation on file ownership of this.
It was working then it stopped, I am at a loss, the graphs have the right time now, however it stopped all graphing activity and not a clue as to why?
RRDTool Command:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="ir1.router.net - Traffic - Gi0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/usr/share/cacti/rra/ir1_router_net_traffic_in_95.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/rra/ir1_router_net_traffic_in_95.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: opening '/usr/share/cacti/rra/ir1_router_net_traffic_in_95.rrd': No such file or directory
However, one of the Cisco routers is working with no issues????
I would be very grateful for any help, it has to be something simple as in permissions or file ownership...
My crontab entry...
[cactiuser@w3 cacti-0.8.7b]$ crontab -l
*/5 * * * * php /var/www/html/cacti/cacti-0.8.7b/poller.php > /dev/null 2>&1
[cactiuser@w3 ~]$ php /var/www/html/cacti/cacti-0.8.7b/poller.php
05/15/2009 03:02:12 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '130', Max Runtime '298', Poller Runs: '1'
05/15/2009 03:02:12 PM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 130 seconds have passed since the poller last ran.
error log file
[Fri May 15 15:06:15 2009] [error] [client 10.10.10.123] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=tree&tree_id=2
[Fri May 15 15:06:15 2009] [error] [client 10.10.10.123] PHP Warning: include(/usr/share/cacti/include/config.php) [<a href='function.include'>function.include</a>]: failed to open stream: Permission denied in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=tree&tree_id=2
[Fri May 15 15:06:15 2009] [error] [client 10.10.10.123] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/usr/share/cacti/include/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/include/global.php on line 45, referer: http://w3/cacti/graph_view.php?action=tree&tree_id=2
[cactiuser@w3 cacti-0.8.7b]$ pwd
/var/www/html/cacti/cacti-0.8.7b
[cactiuser@w3 cacti-0.8.7b]$ ls -l poller.php
-rw-r--r-- 1 cactiuser apache 14960 Feb 11 2008 poller.php
I did a recursive chown -R cactiuser:apache on the files should they all be owned by cactiuser:cactiuser or something else.
I cannot seem to find any certain documentation on file ownership of this.
It was working then it stopped, I am at a loss, the graphs have the right time now, however it stopped all graphing activity and not a clue as to why?
RRDTool Command:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="ir1.router.net - Traffic - Gi0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/usr/share/cacti/rra/ir1_router_net_traffic_in_95.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/rra/ir1_router_net_traffic_in_95.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: opening '/usr/share/cacti/rra/ir1_router_net_traffic_in_95.rrd': No such file or directory
However, one of the Cisco routers is working with no issues????
I would be very grateful for any help, it has to be something simple as in permissions or file ownership...
Who is online
Users browsing this forum: No registered users and 17 guests