Problems with graphs - new user, new install

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Problems with graphs - new user, new install

Post by jantman »

Some of this has been resolved. The parts that haven't, I've been able to understand a bit more with an afternoon of work. You may want to skip to the 5th post down for an update... any advice would be greatly appreciated...

Hello,

I just installed cacti on a SuSE Linux server. My network to be monitored includes a Linux box running IPcop (debian-based), the localhost, and a Bay Networks BayStack 450-24T switch.

I configured as follows:
3 hosts -
"Localhost" as a Local Linux Machine (template) with graphs for Linix - Memory Usage, Unix - Logged in Users, Unix - Load Average Unix - Processes. Shows status as Up. These graphs appear to work fine.

"EXT1" is the IPcop firewall/router, with snmpd running. I can "walk" it manually from the localhost and get information out. Using template "Generic SNMP-enabled host" with graphs for Linix - Memory Usage, Unix - Logged in Users, Unix - Processes, Unix - Load Average and a data query for "SNMP - Interface Statstics". Problem 1: there is no option to add interface/traffic graphs for this host, even though I added the data query. Problem 2: The graphs for Memory Usage and Load Average are identical to the ones for "Localhost", I checked this manually on both machines with top and uptime, and they are nowhere near the same.

"SW1" is a BayStack 450-24T switch, with SNMP enabled. I created the device with the Generic SNMP-enabled host template, and added a data query for SNMP-Interface statistics and graphs for Interface - Traffic (bits/sec). Problem 3: The device view shows this as "Is being graphed" and shows the proper System and Uptime under "SNMP Information" at the top, but lists it as "Unknown" in the Devices list.

Any ideas on any of these problems?

Thanks for coping with a beginner,
Jason
Last edited by jantman on Tue Jan 30, 2007 11:53 pm, edited 1 time in total.
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

Ok, I made a few changes.... I set the poller logging to debug, and then grepped /var/log/cacti.log for the device name "SW1". Results:

Code: Select all

01/30/2007 04:00:04 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=1170104400  --end=1170190800  --title="SW1 - Traffic"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  COMMENT:"From 2007/01/29 16:00:00 To 2007/01/30 16:00:00\c"  COMMENT:"\n"  --vertical-label="bits per second"  DEF:a="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_in:AVERAGE  DEF:b="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdeff=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"   COMMENT:"Total In:  0 bytes\n"   LINE1:cdeff#002A97:"Outbound"   GPRINT:cdeff:LAST:"Current\:%8.2lf %s"   GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s"   COMMENT:"Total Out: 0 bytes"
01/30/2007 04:00:10 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=-86400  --end=-300  --title="SW1 - Traffic"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  DEF:a="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_in:AVERAGE  DEF:b="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdeff=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"   COMMENT:"Total In:  0 bytes\n"   LINE1:cdeff#002A97:"Outbound"   GPRINT:cdeff:LAST:"Current\:%8.2lf %s"   GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s"   COMMENT:"Total Out: 0 bytes"
01/30/2007 04:00:12 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=-604800  --end=-1800  --title="SW1 - Traffic"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  DEF:a="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_in:AVERAGE  DEF:b="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdeff=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"   COMMENT:"Total In:  0 bytes\n"   LINE1:cdeff#002A97:"Outbound"   GPRINT:cdeff:LAST:"Current\:%8.2lf %s"   GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s"   COMMENT:"Total Out: 0 bytes"
01/30/2007 04:00:12 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=-2678400  --end=-7200  --title="SW1 - Traffic"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  DEF:a="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_in:AVERAGE  DEF:b="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdeff=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"   COMMENT:"Total In:  0 bytes\n"   LINE1:cdeff#002A97:"Outbound"   GPRINT:cdeff:LAST:"Current\:%8.2lf %s"   GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s"   COMMENT:"Total Out: 0 bytes"
01/30/2007 04:01:58 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=1170104517  --end=1170190917  --title="SW1 - Traffic"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  COMMENT:"From 2007/01/29 16:01:57 To 2007/01/30 16:01:57\c"  COMMENT:"\n"  --vertical-label="bits per second"  DEF:a="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_in:AVERAGE  DEF:b="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdeff=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"   COMMENT:"Total In:  0 bytes\n"   LINE1:cdeff#002A97:"Outbound"   GPRINT:cdeff:LAST:"Current\:%8.2lf %s"   GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s"   COMMENT:"Total Out: 0 bytes"
01/30/2007 04:02:07 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=-86400  --end=-300  --title="SW1 - Traffic"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  DEF:a="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_in:AVERAGE  DEF:b="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdeff=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"   COMMENT:"Total In:  0 bytes\n"   LINE1:cdeff#002A97:"Outbound"   GPRINT:cdeff:LAST:"Current\:%8.2lf %s"   GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s"   COMMENT:"Total Out: 0 bytes"
01/30/2007 04:02:08 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=-86400  --end=-300  --title="SW1 - Traffic"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  DEF:a="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_in:AVERAGE  DEF:b="/var/lib/cacti/sw1_traffic_in_40.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdeff=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"   COMMENT:"Total In:  0 bytes\n"   LINE1:cdeff#002A97:"Outbound"   GPRINT:cdeff:LAST:"Current\:%8.2lf %s"   GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s"   COMMENT:"Total Out: 0 bytes"
I also cut the SW1 device down to one graph, just Interface - traffic (bits/sec). If I turn on Graph Debug Mode, I get

Code: Select all

ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
I am serving from Apache2 running as user wwwrun and group www. The cron job for poller (installed everything via RPM) is running as user wwwrun. The /var/lib/cacti directory is owned by user wwwrun and group users, with user and group rwx.

In my Apache error log, I have lots of:

Code: Select all

ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_39.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
ERROR: opening '/var/lib/cacti/sw1_traffic_in_40.rrd': No such file or directory
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

I'm also getting some other errors that seem to pertain to EXT1, such as :
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] WARNING: Result from SNMP not valid. Partial Result:

Code: Select all

01/30/2007 04:10:03 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /srv/www/htdocs/admin/cacti/cmd.php 0 4]
01/30/2007 04:10:08 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
01/30/2007 04:10:08 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/lib/wwwrun
01/30/2007 04:10:08 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /srv/www/htdocs/admin/cacti
01/30/2007 04:10:08 PM - PHPSVR: Poller[0] DEBUG: FILENM: /srv/www/htdocs/admin/cacti/script_server.php
01/30/2007 04:10:08 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
01/30/2007 04:10:08 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
01/30/2007 04:10:08 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
01/30/2007 04:10:08 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
01/30/2007 04:10:08 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/admin/cacti/scripts/linux_memory.pl MemFree:, output: 1944
01/30/2007 04:10:08 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/admin/cacti/scripts/linux_memory.pl SwapFree:, output: 268652
01/30/2007 04:10:08 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/admin/cacti/scripts/loadavg_multi.pl, output: 1min:0.29 5min:0.43 10min:0.50
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/admin/cacti/scripts/unix_users.pl, output: 3
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[1] CMD: perl /srv/www/htdocs/admin/cacti/scripts/unix_processes.pl, output: 116
01/30/2007 04:10:09 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.29' [map 1min->load_1min]
01/30/2007 04:10:09 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.43' [map 5min->load_5min]
01/30/2007 04:10:09 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.50' [map 10min->load_15min]
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: Host responded to SNMP
01/30/2007 04:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/localhost_mem_buffers_3.rrd --template mem_buffers 1170191405:1944
01/30/2007 04:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/localhost_mem_swap_4.rrd --template mem_swap 1170191405:268652
01/30/2007 04:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1170191405:0.29:0.43:0.50
01/30/2007 04:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/localhost_users_6.rrd --template users 1170191405:3
01/30/2007 04:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/localhost_proc_7.rrd --template proc 1170191405:116
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] RECACHE: Processing 1 items in the auto reindex cache for 'EXT1.jasonantman.com'.
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] CMD: perl /srv/www/htdocs/admin/cacti/scripts/linux_memory.pl MemFree:, output: 2132
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] CMD: perl /srv/www/htdocs/admin/cacti/scripts/linux_memory.pl SwapFree:, output: 268656
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] WARNING: Result from SNMP not valid.  Partial Result:
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: snmp_oid, oid: , output: U
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] CMD: perl /srv/www/htdocs/admin/cacti/scripts/loadavg_multi.pl, output: 1min:0.43 5min:0.46 10min:0.51
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] CMD: perl /srv/www/htdocs/admin/cacti/scripts/ping.pl 192.168.0.6, output: 0.175
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] CMD: perl /srv/www/htdocs/admin/cacti/scripts/unix_processes.pl, output: 116
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 31808
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 31808
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 659656707
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 877701919
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, output: 0
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, output: 0
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, output: 0
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, output: 0
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 667911479
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 877701919
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 859759407
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 667911479
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 580705013
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: EXT1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 734931971
01/30/2007 04:10:09 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
01/30/2007 04:10:09 PM - CMDPHP: Poller[0] Time: 3.9535 s, Theads: N/A, Hosts: 3
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

I believe that I found the answer to problem #2 - is it possible that the perl script for Load Average is localhost only, not over SNMP?
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

If I go to system -> utilities -> SNMP cache, I see a bunch of stuff like:

Code: Select all

 Host: SW1, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifType, Field Value: ethernetCsmacd(6)
OID: .1.3.6.1.2.1.2.2.1.3.1
Host: SW1, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifOperStatus, Field Value: Up
OID: .1.3.6.1.2.1.2.2.1.8.1
Host: SW1, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifIndex, Field Value: 1
OID: .1.3.6.1.2.1.2.2.1.1.1
Host: SW1, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifDescr, Field Value: BayStack 450-24T - 1
OID: .1.3.6.1.2.1.2.2.1.2.1
Host: SW1, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifSpeed, Field Value: 200000000
OID: .1.3.6.1.2.1.2.2.1.5.1
Host: SW1, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifHwAddr, Field Value: 00:00:60:FD:C1:3A:DC
OID: .1.3.6.1.2.1.2.2.1.6.1
so I know that SNMP is working for SW1...
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

Ok, I've spent the afternoon working on this, and was able to understand a bit more of it. I have 2 hosts setup for Generic SNMP, with graphs and data sources defined. Neither of the SNMP hosts will graph, but the localhost will. I'm running under Linux. In the rra/ directory, I *only* have localhost_*, nothing for the two other hosts (a Linux router with SNMP running, called "EXT1", and a Bay Networks switch, called "SW1").

At the moment, I am getting a message like:
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_67.rrd': No such file or directory

for *all* of the graphs on the two SNMP devices, but not localhost. I have confirmed with snmpwalk that the information is there, and when I created the hosts, the correct information on device type, etc. showed up at the top of the device screen.

The status of both devices is "unknown". If I turn on Data Source Debug Mode, I don't see any errors.

If I go to "view poller cache", I don't see entries for any of the SNMP checks (Interface) for either of the devices.

I ran poller.php from the command line using sudo and the wwwrun user (Apache) and got results for a few of the localhost checks, followed by lots of lines of "Waiting on 1/1 pollers." and ending with:

Code: Select all

01/30/2007 11:47:52 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
01/30/2007 11:47:52 PM - SYSTEM STATS: Time:293.4544 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:20 RRDsProcessed:4

Warning: pclose(): 56 is not a valid stream resource in /srv/www/htdocs/admin/cacti/lib/rrd.php on line 48
When I click "Rebuilt Poller Cache", there is still nothing for the Interface data sources on either device.

In cacti.log (poller set to debug level) I have a few things that stood out:

Code: Select all

01/31/2007 12:03:38 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "select   snmp_query_graph_rrd.snmp_field_name,   data_template_rrd.id as data_template_rrd_id   from (snmp_query_graph_rrd,data_template_rrd)   where snmp_query_graph_rrd.data_template_rrd_id=data_template_rrd.local_data_template_rrd_id   and snmp_query_graph_rrd.snmp_query_graph_id=   and snmp_query_graph_rrd.data_template_id=41   and data_template_rrd.local_data_id=67"
01/31/2007 12:03:38 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "select   snmp_query_graph_rrd.snmp_field_name,   data_template_rrd.id as data_template_rrd_id   from (snmp_query_graph_rrd,data_template_rrd)   where snmp_query_graph_rrd.data_template_rrd_id=data_template_rrd.local_data_template_rrd_id   and snmp_query_graph_rrd.snmp_query_graph_id=   and snmp_query_graph_rrd.data_template_id=38   and data_template_rrd.local_data_id=66"
... and a few more like that...
Those are really the only ones that stood out... other than the *complete lack* or *any* reference to the device names "EXT1" and "SW1".
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

I also read the section on debugging NaN's.

To simplify things, I removed the host "EXT1" so that I now have 1 working host (localhost) and 1 not working host (SW1). On SW1, I also removed all graphs and data queries other than the Interface Statistics data query and the Interface Traffic graph.

The two hosts I have are "localhost" with ID 1 and "SW1" with ID 9. I grepped the cacti.log for "Host[" but only came up with lines for "Host[1]", nothing for 9.
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

I just finished reading over *every* post relating to this since July 2006 and still haven't solved the problem.

The Device Status thing is perplexing me. I guess I'll need to start wading through the code.

SW1 is shown as status "unknown". It is in the Poller Cache. It is NOT showing up anywhere in the log - if I grep for "Host[9]" (the ID of SW1), I get nothing at all. A grep for "host[" shows only host[1] which is the localhost. If I manually run cmd.php as wwwrun, once again, I only get output about Host[1].

I understand from previous posts that graphs do not update (and therefore rrd's do not get generated) unless a host is OK. I have changed the Down Host Detection method from SNMP to Ping ans SNMP with no change. I have not tried ICMP, as cacti is running as wwwrun.

How do I get the host to become "up"? And how, exactly, do I determine where the problem is? As I said, there's NOTHING in the log files relating to this host ID #, though I do have data sources and graphs defined. I KNOW that the host is up, and that SNMP is working.

If *anyone* could please give me some advice, it would be greatly appreciated.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Status "unknown" is default for new devices. It will turn up if, and only if
- Downed Host Detection is successful (ICMP, UDP/TCP PING and/or SNMP) you may want to start using SNMP only. As long as all devices are SNMP enable, this will work fine for the last cacti releases.
- A Graph for this device has been created (verify from Utilities, poller cache)

Then switch to DEBUG mode as stated in my debugging howto and post the result of Host Detection for this device
Reinhard
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

Thanks for the reply. After 20+ hours of playing around with Cacti, I was starting to get discouraged.

Aside from localhost, both other hosts are SNMP-enabled, but I plan on adding some that aren't, with custom check scripts, in the future.

This morning, one of the devices in question changed to "up". I stopped making changes at 4:30 AM this morning, waited 20 minutes (4 poller cycles) and it was still unknown. When I checked back at noon today, it was "up" with no changes in between.

The current status is device "EXT1" unknown and device SW1 Up. There are graphs in the poller cache for SW1, and they are created, but I am getting the infamous rrd file not found error. I will post the debug output of the next poller cycle.
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

The host in question, SW1, has ID 9.

In the "devices" section, this device has no Graph Templates associated with it, because the "interface" templates are not in the list. I setup graphing by clicking "Create Graphs for this Host", selecting the appropriate Data Queries, and clicking on "Create". The graphs show up in Graph Management, but show the .rrd not found error. There are no .rrd files in rra/ for the host.

I weeded through the SQL debugging information and have pulled out everything that looks pertinent:

Code: Select all

01/31/2007 04:54:18 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=-8640
0  --end=-300  --title="SW1 - Traffic - BayStack 450-24/12"  --rigid  --base=1000  --height=120  --width=500
--alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  DEF:a="/srv/www/htdocs/admin/cacti/r
ra/sw1_traffic_in_81.rrd":traffic_in:AVERAGE  DEF:b="/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd":tr
affic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdefe=b,8,*  AREA:cdefa#00CF00:"Inbound"   GPRINT:cdefa:LAST:" Curre
nt\:%8.2lf %s"   GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"   LINE1:c
defe#002A97:"Outbound"   GPRINT:cdefe:LAST:"Current\:%8.2lf %s"   GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

01/31/2007 04:54:22 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=-8640
0  --end=-300  --title="SW1 - Traffic - BayStack 450-24/12"  --rigid  --base=1000  --height=120  --width=500
--alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  DEF:a="/srv/www/htdocs/admin/cacti/r
ra/sw1_traffic_in_81.rrd":traffic_in:AVERAGE  DEF:b="/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd":tr
affic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdefe=b,8,*  AREA:cdefa#00CF00:"Inbound"   GPRINT:cdefa:LAST:" Curre
nt\:%8.2lf %s"   GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"   LINE1:c
defe#002A97:"Outbound"   GPRINT:cdefe:LAST:"Current\:%8.2lf %s"   GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

01/31/2007 04:54:24 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start=-8640
0  --end=-300  --title="SW1 - Traffic - BayStack 450-24/12"  --rigid  --base=1000  --height=120  --width=500
--alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  DEF:a="/srv/www/htdocs/admin/cacti/r
ra/sw1_traffic_in_81.rrd":traffic_in:AVERAGE  DEF:b="/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd":tr
affic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdefe=b,8,*  AREA:cdefa#00CF00:"Inbound"   GPRINT:cdefa:LAST:" Curre
nt\:%8.2lf %s"   GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"   LINE1:c
defe#002A97:"Outbound"   GPRINT:cdefe:LAST:"Current\:%8.2lf %s"   GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

Code: Select all

01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] PING: Host is alive
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] SNMP: Host responded to SNMP
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update host set  status = '3',  status_event_coun
t = '0',  status_fail_date = '0000-00-00 00:00:00',  status_rec_date = '0000-00-00 00:00:00',  status_last_err
or = '',  min_time = '9.60000',  max_time = '39.785',  cur_time = '39.785',  avg_time = '14.769375',  total_po
lls = '26',  failed_polls = '0',  availability = '100'  where hostname = 'SW1.jasonantman.com'"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select     poller_reindex.data_query_id,     pol
ler_reindex.action,     poller_reindex.op,     poller_reindex.assert_value,     poller_reindex.arg1     from p
oller_reindex     where poller_reindex.host_id=9"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] RECACHE: Processing 1 items in the auto reindex cache for '
SW1.jasonantman.com'.
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update poller_reindex set assert_value='42966035'
 where host_id='9' and data_query_id='1' and arg1='.1.3.6.1.2.1.1.3.0'"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[78] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out,
oid: .1.3.6.1.2.1.2.2.1.16.1, output: 4011978277
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (78, 'traffic_out', '2007-01-31 16:55:09', '4011978277')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[83] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out,
oid: .1.3.6.1.2.1.2.2.1.16.19, output: 3242824090
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (83, 'traffic_out', '2007-01-31 16:55:09', '3242824090')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[83] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, o
id: .1.3.6.1.2.1.2.2.1.10.19, output: 5270936
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (83, 'traffic_in', '2007-01-31 16:55:09', '5270936')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (83, 'traffic_in', '2007-01-31 16:55:09', '5270936')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[79] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, o
id: .1.3.6.1.2.1.2.2.1.10.2, output: 3709276245
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (79, 'traffic_in', '2007-01-31 16:55:09', '3709276245')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[79] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out,
oid: .1.3.6.1.2.1.2.2.1.16.2, output: 170170152
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (79, 'traffic_out', '2007-01-31 16:55:09', '170170152')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[80] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, o
id: .1.3.6.1.2.1.2.2.1.10.6, output: 846695084
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (80, 'traffic_in', '2007-01-31 16:55:09', '846695084')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[80] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out,
oid: .1.3.6.1.2.1.2.2.1.16.6, output: 1046390894
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (80, 'traffic_out', '2007-01-31 16:55:09', '1046390894')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where
 poller_id = 0"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select  poller_output.output,  poller_output.tim
e,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (pol
ler_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_na
me=poller_item.rrd_name)  LIMIT 10000"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[81] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, o
id: .1.3.6.1.2.1.2.2.1.10.12, output: 4040571
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (81, 'traffic_in', '2007-01-31 16:55:09', '4040571')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select     data_template_rrd.data_source_name,
   data_input_fields.data_name     from (data_template_rrd,data_input_fields)     where data_template_rrd.data
_input_field_id=data_input_fields.id     and data_template_rrd.local_data_id=5"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[81] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out,
oid: .1.3.6.1.2.1.2.2.1.16.12, output: 23622140
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (81, 'traffic_out', '2007-01-31 16:55:09', '23622140')"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[82] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, o
id: .1.3.6.1.2.1.2.2.1.10.14, output: 76114130
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (82, 'traffic_in', '2007-01-31 16:55:09', '76114130')"
01/31/2007 04:55:09 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.79' [map 1min->load_1min]
01/31/2007 04:55:09 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.47' [map 5min->load_5min]
01/31/2007 04:55:09 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.39' [map 10min->load_15min]
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select     data_template_rrd.data_source_name,
   data_input_fields.data_name     from (data_template_rrd,data_input_fields)     where data_template_rrd.data
_input_field_id=data_input_fields.id     and data_template_rrd.local_data_id=41"
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[82] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out,
oid: .1.3.6.1.2.1.2.2.1.16.14, output: 1216957551
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (82, 'traffic_out', '2007-01-31 16:55:09', '1216957551')"
[... some stuff from localhost ... ]
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] Host[9] DS[78] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, o
id: .1.3.6.1.2.1.2.2.1.10.1, output: 1027099025
01/31/2007 04:55:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_nam
e, time, output) values (78, 'traffic_in', '2007-01-31 16:55:09', '1027099025')"
01/31/2007 04:55:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/
sw1_traffic_in_78.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:20000
0000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RR
A:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RR
A:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:2
88:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
01/31/2007 04:55:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/
sw1_traffic_in_83.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:20000
0000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RR
A:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RR
A:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:2
88:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
01/31/2007 04:55:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/
sw1_traffic_in_83.rrd --template traffic_out:traffic_in N:3242824090:5270936
01/31/2007 04:55:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/
sw1_traffic_in_79.rrd   --step 300   DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:20000
0000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RR
A:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RR
A:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:2
88:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
01/31/2007 04:55:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/
sw1_traffic_in_79.rrd --template traffic_in:traffic_out N:3709276245:170170152
01/31/2007 04:55:10 PM - CMDPHP: Poller[0] DEBUG: SQL Row: "select name,data_source_path from data_template_da
ta where local_data_id=80"
01/31/2007 04:55:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/
sw1_traffic_in_80.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000
000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RR
A:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RR
A:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:2
88:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
01/31/2007 04:55:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/
sw1_traffic_in_80.rrd --template traffic_in:traffic_out N:846695084:1046390894
I've removed the parts that referred to 'localhost'.
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

if I grep cacti.log for "sw1" I get lots of stuff like:

Code: Select all

01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_79.rrd   --step 300   DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_79.rrd --template traffic_in:traffic_out N:3709280263:170207320
01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_80.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_80.rrd --template traffic_in:traffic_out N:847915623:1048027593
01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd --template traffic_in:traffic_out N:4046377:23660536
01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_82.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_82.rrd --template traffic_in:traffic_out N:76126423:1217015871
but no errors, even though that file doesn't exist.

If I grep for Host[9], I get:

Code: Select all

01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] PING: Host is alive
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] SNMP: Host responded to SNMP
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] RECACHE: Processing 1 items in the auto reindex cache for 'SW1.jasonantman.com'.
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[78] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 4013570960
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[83] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.19, output: 3242867763
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[83] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.19, output: 5270936
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[79] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 3709281985
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[79] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 170219437
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[80] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, output: 848244517
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[80] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, output: 1048419662
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[81] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, output: 4047525
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[81] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, output: 23672143
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[82] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.14, output: 76129666
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[82] SNMP: v1: SW1.jasonantman.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.14, output: 1217030360
01/31/2007 05:15:08 PM - CMDPHP: Poller[0] Host[9] DS[78] SNMP: v1: SW1.jasonantman.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 1029107279
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

jantman wrote:if I grep cacti.log for "sw1" I get lots of stuff like:

Code: Select all

01/31/2007 05:10:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_79.rrd   --step 300   DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
...
but no errors, even though that file doesn't exist.
Well, this is ugly, I agree. Unfortunately, you won't see errors from rrdtool create with current cacti. Personally, I'd like to change the crontab entry to sth like

Code: Select all

*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php > /var/www/html/cacti/log/poller.log 2>&1
So you will find the missing errors of each run in ./log/poller.log. Or you may want to run those commands as user=cactiuser to see possible errors. Or login as cactiuser and run the poller manually.
Stuff like this should be part of my "Debugging HowTo" linked in my signature
Reinhard
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

Ok, I did as follows:
1) set logging to DEBUG
2) check that SW1 is up (yes)
3) Rebuild Poller Cache (done, showing SW1 in the cache)
4) log in as root
5)

Code: Select all

sudo -u wwwrun /usr/bin/php /srv/www/htdocs/admin/cacti/poller.php
(that is the correct path for my cacti)

The output was as follows:

Code: Select all

02/01/2007 04:58:14 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /srv/www/htdocs/admin/cacti/cmd.php 0 10]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
02/01/2007 04:58:16 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.81' [map 1min->load_1min]
02/01/2007 04:58:16 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.79' [map 5min->load_5min]
02/01/2007 04:58:16 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.53' [map 10min->load_15min]
02/01/2007 04:58:16 PM - POLLER: Poller[0] Parsed MULTI output field 'line_volt:127.0' [map line_volt->line_volt]
02/01/2007 04:58:16 PM - POLLER: Poller[0] Parsed MULTI output field 'load_pct:61.0' [map load_pct->load_pct]
02/01/2007 04:58:16 PM - POLLER: Poller[0] Parsed MULTI output field 'b_charge:100.0' [map b_charge->b_charge]
02/01/2007 04:58:16 PM - POLLER: Poller[0] Parsed MULTI output field 'time_left:5.4' [map time_left->time_left]
02/01/2007 04:58:16 PM - POLLER: Poller[0] Parsed MULTI output field 'bat_volt:13.4' [map bat_volt->bat_volt]
02/01/2007 04:58:16 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1170367095:2656
02/01/2007 04:58:16 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1170367095:259740
02/01/2007 04:58:16 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1170367095:0.81:0.79:0.53
02/01/2007 04:58:16 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/localhost_users_6.rrd --template users 1170367095:3
02/01/2007 04:58:16 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/localhost_proc_7.rrd --template proc 1170367095:121
02/01/2007 04:58:16 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/localhost_line_freq_41.rrd --template line_volt:load_pct:b_charge:time_left:bat_volt 1170367095:127.0:61.0:100.0:5.4:13.4
OK u:0.01 s:0.02 r:1.24
OK u:0.01 s:0.02 r:1.25
OK u:0.01 s:0.02 r:1.26
OK u:0.01 s:0.02 r:1.26
OK u:0.01 s:0.02 r:1.27
OK u:0.01 s:0.02 r:1.29
02/01/2007 04:58:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_78.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
02/01/2007 04:58:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_78.rrd --template traffic_out:traffic_in N:927042591:3317409824
ERROR: Duplicate DS name: traffic_out
OK u:0.01 s:0.02 r:2.38
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_78.rrd': No such file or directory
OK u:0.01 s:0.02 r:2.38
02/01/2007 04:58:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_80.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
ERROR: Duplicate DS name: traffic_in
OK u:0.01 s:0.02 r:2.42
02/01/2007 04:58:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_80.rrd --template traffic_in:traffic_out N:1281050597:1296119884
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_80.rrd': No such file or directory
OK u:0.01 s:0.02 r:2.43
02/01/2007 04:58:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_79.rrd   --step 300   DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
02/01/2007 04:58:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_79.rrd --template traffic_in:traffic_out N:222512170:2219862651
ERROR: Duplicate DS name: traffic_in
OK u:0.01 s:0.02 r:2.48
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_79.rrd': No such file or directory
OK u:0.01 s:0.02 r:2.48
02/01/2007 04:58:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
ERROR: Duplicate DS name: traffic_out
OK u:0.01 s:0.02 r:2.52
02/01/2007 04:58:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd --template traffic_in:traffic_out N:4632457:27482214
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd': No such file or directory
OK u:0.01 s:0.02 r:2.53
02/01/2007 04:58:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_82.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
ERROR: Duplicate DS name: traffic_out
OK u:0.01 s:0.02 r:2.58
02/01/2007 04:58:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_82.rrd --template traffic_in:traffic_out N:81448182:1257788229
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_82.rrd': No such file or directory
OK u:0.01 s:0.02 r:2.58
02/01/2007 04:58:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_83.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
ERROR: Duplicate DS name: traffic_out
OK u:0.01 s:0.02 r:2.63
02/01/2007 04:58:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_83.rrd --template traffic_in:traffic_out N:5379906:3246246736
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_83.rrd': No such file or directory
OK u:0.01 s:0.02 r:2.63
02/01/2007 04:58:18 PM - SYSTEM STATS: Time:4.2665 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:18 RRDsProcessed:12
It seems like the problem lies in:

Code: Select all

ERROR: Duplicate DS name: traffic_out
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_78.rrd': No such file or directory
ERROR: Duplicate DS name: traffic_in
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_79.rrd': No such file or directory
ERROR: Duplicate DS name: traffic_in
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_80.rrd': No such file or directory
ERROR: Duplicate DS name: traffic_out
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_81.rrd': No such file or directory
ERROR: Duplicate DS name: traffic_out
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_82.rrd': No such file or directory
ERROR: Duplicate DS name: traffic_out
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_83.rrd': No such file or directory
Once again, thanks for you help...
jantman
Posts: 21
Joined: Tue Jan 30, 2007 3:13 pm

Post by jantman »

The graphs/data sources that I had defined for this source were a graph/DS for overall traffic, plus one for each active port. I remove all but the overall traffic from graphs and data sources, and rebuilt the cache, but it showed a duplicate of:

Code: Select all

SW1 - Traffic - 192.168.0.2/BayStack 450-24   	 SNMP Version: 1, Community: public, OID: .1.3.6.1.2.1.2.2.1.16.1
	RRD: /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_78.rrd
SW1 - Traffic - 192.168.0.2/BayStack 450-24 	SNMP Version: 1, Community: public, OID: .1.3.6.1.2.1.2.2.1.10.1
	RRD: /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_78.rrd
I don't know if that may be a problem.

I (again) deleted all devices but localhost, and added SW1 with no host template. I then went into the device view, added a data source of "SNMP - Interface Statstics" which showed Success. I clicked "save" then clicked "Create Graphs for this Device", and under "Data Query" selected the Traffic for port 1, clicked "create" and rebuilt the poller cache. It is still showing:

Code: Select all

SW1 - Traffic - 192.168.0.2/BayStack 450-24   	 SNMP Version: 1, Community: public, OID: .1.3.6.1.2.1.2.2.1.16.1
	RRD: /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_84.rrd
SW1 - Traffic - 192.168.0.2/BayStack 450-24 	SNMP Version: 1, Community: public, OID: .1.3.6.1.2.1.2.2.1.10.1
	RRD: /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_84.rrd
in the cache, and:

Code: Select all

02/01/2007 05:10:59 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_84.rrd   --step 300   DS:traffic_in:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_out:COUNTER:600:0:200000000  DS:traffic_in:COUNTER:600:0:200000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797
02/01/2007 05:10:59 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_84.rrd --template traffic_out:traffic_in N:927993055:3318418394
02/01/2007 05:10:59 PM - SYSTEM STATS: Time:3.3083 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:8 RRDsProcessed:7
ERROR: Duplicate DS name: traffic_out
OK u:0.01 s:0.01 r:2.05
ERROR: opening '/srv/www/htdocs/admin/cacti/rra/sw1_traffic_in_84.rrd': No such file or directory
OK u:0.01 s:0.01 r:2.05
in the command-line output of the manually run poller.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest