Polling seems to be working - no graphs - output included

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Polling seems to be working - no graphs - output included

Post by tdl »

Apache2
PHP5
MySQL 4.1.8-nt
Cacti 0.8.6d

RRD populating - log populating - no graphs.
Any thoughts much appreciated.

Was a little confused - reading other posts I see reference to using php-win.exe for PHP 5 (this goes only in the path for the poller correct?)

Or do you also need to use php-win.exe instead of php.exe for the Scheduled task:

Current command for the Scheduled task in the box for
Run: C:\AppServ\php\php.exe c:\AppServ\www\cacti\poller.php
Start in: C:\AppServ\www\cacti


Output from CMD.PHP and Poller.PHP

C:\Documents and Settings\admin>php.exe c:/appserv/www/cacti/cmd.php
#!/usr/bin/php -q
05/06/2005 04:45:33 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
05/06/2005 04:45:33 PM - CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
05/06/2005 04:45:33 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.4.2, dsname:
traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 4015406248
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
05/06/2005 04:45:33 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.4.2, dsname:
traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 2682730536
05/06/2005 04:45:33 PM - CMDPHP: Poller[0] Time: 0.7126 s, Theads: N/A, Hosts: 1


C:\Documents and Settings\admin>php.exe c:/appserv/www/cacti/poller.php
05/06/2005 05:08:13 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 0 0]
05/06/2005 05:08:13 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 4 4]
Waiting on 2/2 pollers.
Waiting on 1/2 pollers.
05/06/2005 05:08:15 PM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe upd
ate C:\AppServ\www\cacti\rra\sh_2950_traffic_in_10.rrd --template traffic_out:tr
affic_in 1115424493:4154737610:3301618335
OK
05/06/2005 05:08:15 PM - SYSTEM STATS: Time: 2.0559 s, Method: cmd.php, Processe
s: 10, Threads: N/A, Hosts: 2, Hosts/Process: 1
05/06/2005 05:08:15 PM - EXPORT: Poller[0] Running graph export
ERROR: can't parse DEF 'a=c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd:tra
ffic_in:AVERAGE' -2
OK





Output from Cacti Log

05/06/2005 05:09:03 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph C:\AppServ\www\cacti\export/graph_7_4.png --imgformat=PNG --start=-33053184 --end=-86400 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.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"
05/06/2005 05:09:03 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe fetch c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd AVERAGE -s -33053184 -e -86400 -r 86400
05/06/2005 05:09:03 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph C:\AppServ\www\cacti\export/graph_7_3.png --imgformat=PNG --start=-2678400 --end=-7200 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.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"
05/06/2005 05:09:02 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe fetch c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd AVERAGE -s -2678400 -e -7200 -r 7200
05/06/2005 05:09:02 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph C:\AppServ\www\cacti\export/graph_7_2.png --imgformat=PNG --start=-604800 --end=-1800 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.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: 873.83 MB\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: 179.41 MB"
05/06/2005 05:09:02 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe fetch c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd AVERAGE -s -604800 -e -1800 -r 1800
05/06/2005 05:09:02 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph C:\AppServ\www\cacti\export/graph_7_1.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.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: 977.87 MB\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: 210.31 MB"
05/06/2005 05:09:02 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe fetch c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd AVERAGE -s -86400 -e -300 -r 300
05/06/2005 05:09:02 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph C:\AppServ\www\cacti\export/thumb_7.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_10.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdeff=b,8,* AREA:cdefa#00CF00:"" COMMENT:"" LINE1:cdeff#002A97:"" COMMENT:""
05/06/2005 05:09:02 PM - EXPORT: Poller[0] Running graph export
05/06/2005 05:09:02 PM - SYSTEM STATS: Time: 2.0621 s, Method: cmd.php, Processes: 10, Threads: N/A, Hosts: 2, Hosts/Process: 1
05/06/2005 05:09:02 PM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\AppServ\www\cacti\rra\sh_2950_traffic_in_10.rrd --template traffic_out:traffic_in 1115424540:4160341343:3308814463
05/06/2005 05:09:01 PM - CMDPHP: Poller[0] Time: 0.7330 s, Theads: N/A, Hosts: 1
05/06/2005 05:09:01 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/06/2005 05:09:01 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.4.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 3308814463
05/06/2005 05:09:01 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.4.2, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 4160341343
05/06/2005 05:09:01 PM - CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP
05/06/2005 05:09:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/06/2005 05:09:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/06/2005 05:09:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\AppServ\www\cacti\script_server.php
05/06/2005 05:09:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/appserv/www/cacti
05/06/2005 05:09:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/appserv/www/cacti
05/06/2005 05:09:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/06/2005 05:09:01 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
05/06/2005 05:09:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 4 4]
05/06/2005 05:09:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 0 0]
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

138 view any hints? Updated debug. Still the same

Post by tdl »

05/14/2005 05:39:03 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_12_4.png --imgformat=PNG --start=-33053184 --end=-86400 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.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"
05/14/2005 05:39:03 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_12_3.png --imgformat=PNG --start=-2678400 --end=-7200 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.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"
05/14/2005 05:39:03 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_12_2.png --imgformat=PNG --start=-604800 --end=-1800 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.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"
05/14/2005 05:39:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_12_1.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.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"
05/14/2005 05:39:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/thumb_12.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"" LINE1:cdefe#002A97:""
05/14/2005 05:39:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_11_4.png --imgformat=PNG --start=-33053184 --end=-86400 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.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"
05/14/2005 05:39:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_11_3.png --imgformat=PNG --start=-2678400 --end=-7200 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.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"
05/14/2005 05:39:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_11_2.png --imgformat=PNG --start=-604800 --end=-1800 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.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"
05/14/2005 05:39:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_11_1.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.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"
05/14/2005 05:39:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/thumb_11.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"" LINE1:cdefe#002A97:""
05/14/2005 05:39:02 PM - EXPORT: Poller[0] Running graph export
05/14/2005 05:39:02 PM - SYSTEM STATS: Time: 2.0916 s, Method: cmd.php, Processes: 10, Threads: N/A, Hosts: 2, Hosts/Process: 1
05/14/2005 05:39:02 PM - POLLER: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe update C:\AppServ\www\cacti\rra\sh_2950_traffic_in_14.rrd --template traffic_in:traffic_out 1116117540:2820104847:1205011844
05/14/2005 05:39:02 PM - POLLER: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe update C:\AppServ\www\cacti\rra\sh_2950_traffic_in_15.rrd --template traffic_out:traffic_in 1116117540:2675872833:688462851
05/14/2005 05:39:02 PM - CMDPHP: Poller[0] Time: 1.0219 s, Theads: N/A, Hosts: 1
05/14/2005 05:39:02 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/14/2005 05:39:02 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 1205011844
05/14/2005 05:39:01 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 2820104847
05/14/2005 05:39:01 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, output: 688462851
05/14/2005 05:39:01 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, output: 2675872833
05/14/2005 05:39:01 PM - CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP
05/14/2005 05:39:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/14/2005 05:39:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/14/2005 05:39:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\AppServ\www\cacti\script_server.php
05/14/2005 05:39:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/appserv/www/cacti
05/14/2005 05:39:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/appserv/www/cacti
05/14/2005 05:39:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/14/2005 05:39:01 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
05/14/2005 05:39:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 4 4]
05/14/2005 05:39:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 0 0]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

First issue, I just encountered myself. It has to do with your version of PHP. If you are running either 5.0.4 or 4.3.11 built with net-snmp 5.2.1, you need to have IT's MIBS directory. Don't ask me why, I just pointed my MIBDIRS to it's location and the following messages went away:
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
As far as the rest goes, what version of RRDTool and Cacti are you using. If you are using RRDtool 1.2.x, you need to change the setting in Settings->General.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

Thanks for the reply Witness.

Per your request.



Apache Web Server Version 2.0.52
PHP Script Language Version 5.0.3
MySQL Database Version 4.1.8
Zend Optimizer Version 2.5.7

rrdtool 1.0.49 (tried 1.2.6 but got the change root issue there)
cacti 0.8.6d
activePeral-5.8.6.811-MSWin32
net-snmp-5.2.1-1

I got rid of the message:
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)

by running the registeragent.bat in the net-snmp directory.
Or at least it seemed that way - I had also changed the MIBDIRS (as you had).

So now I get:


C:\>snmptranslate -IR -Td IF-MIB::linkDown
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
-- FROM IF-MIB
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
DESCRIPTION "A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1) snmpM
IBObjects(1) snmpTraps(5) 3 }

So now cmd.php and poller.php run as follows:
The can not parse error seems to be the last issue.



C:\>php.exe c:/appserv/www/cacti/cmd.php
#!/usr/bin/php -q
05/14/2005 05:35:08 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/14/2005 05:35:09 PM - CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP
05/14/2005 05:35:09 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname:
traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, output: 2671748542
05/14/2005 05:35:09 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname:
traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, output: 677767757
05/14/2005 05:35:09 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname:
traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 2811611926
05/14/2005 05:35:09 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname:
traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 1192518587
05/14/2005 05:35:09 PM - CMDPHP: Poller[0] Time: 1.1386 s, Theads: N/A, Hosts: 1


C:\>php.exe C:\appserv\www\cacti\poller.php
05/14/2005 05:35:28 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 0 0]
05/14/2005 05:35:28 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 4 4]
Waiting on 2/2 pollers.
05/14/2005 05:35:28 PM - POLLER: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe upd
ate C:\AppServ\www\cacti\rra\sh_2950_traffic_in_15.rrd --template traffic_out:tr
affic_in 1116117308:2671748542:677767757
05/14/2005 05:35:28 PM - POLLER: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe upd
ate C:\AppServ\www\cacti\rra\sh_2950_traffic_in_14.rrd --template traffic_in:tra
ffic_out 1116117308:2811611926:1192518587
OK
OK
Waiting on 1/2 pollers.
05/14/2005 05:35:30 PM - POLLER: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe upd
ate C:\AppServ\www\cacti\rra\sh_2950_traffic_in_15.rrd --template traffic_out:tr
affic_in 1116117328:2672465527:678802975
OK
05/14/2005 05:35:30 PM - POLLER: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe upd
ate C:\AppServ\www\cacti\rra\sh_2950_traffic_in_14.rrd --template traffic_in:tra
ffic_out 1116117328:2812600131:1193833926
OK
05/14/2005 05:35:30 PM - SYSTEM STATS: Time: 2.0827 s, Method: cmd.php, Processe
s: 10, Threads: N/A, Hosts: 2, Hosts/Process: 1
05/14/2005 05:35:30 PM - EXPORT: Poller[0] Running graph export
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd:tra
ffic_in:AVERAGE' -2
OK
ERROR: can't parse DEF 'a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd:tra
ffic_in:AVERAGE' -2
OK
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Are you trying to export?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

yes. Or was trying to.

Neither the export nor the graphs actually print.
The files update but nothing else.
RRD updates.
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

yes. Or was trying to.

Neither the export nor the graphs actually print.
The files update but nothing else.
RRD updates.
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

Here is the output from DEBUG

05/14/2005 07:29:03 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_12_4.png --imgformat=PNG --start=-33053184 --end=-86400 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.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"
05/14/2005 07:29:03 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_12_3.png --imgformat=PNG --start=-2678400 --end=-7200 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.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"
05/14/2005 07:29:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_12_2.png --imgformat=PNG --start=-604800 --end=-1800 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.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"
05/14/2005 07:29:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_12_1.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.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"
05/14/2005 07:29:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/thumb_12.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"" LINE1:cdefe#002A97:""
05/14/2005 07:29:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_11_4.png --imgformat=PNG --start=-33053184 --end=-86400 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.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"
05/14/2005 07:29:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_11_3.png --imgformat=PNG --start=-2678400 --end=-7200 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.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"
05/14/2005 07:29:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_11_2.png --imgformat=PNG --start=-604800 --end=-1800 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.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"
05/14/2005 07:29:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/graph_11_1.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.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"
05/14/2005 07:29:02 PM - WEBLOG: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe graph C:\appserv\www\cacti\export\/thumb_11.png --imgformat=PNG --start=-86400 --end=-300 --title="SH 2950 - Traffic - Fa0/1" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend --vertical-label="bits per second" DEF:a="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_in:AVERAGE DEF:b="c:\AppServ\www\cacti/rra/sh_2950_traffic_in_14.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"" LINE1:cdefe#002A97:""
05/14/2005 07:29:02 PM - EXPORT: Poller[0] Running graph export
05/14/2005 07:29:02 PM - SYSTEM STATS: Time: 2.0549 s, Method: cmd.php, Processes: 10, Threads: N/A, Hosts: 2, Hosts/Process: 1
05/14/2005 07:29:02 PM - POLLER: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe update C:\AppServ\www\cacti\rra\sh_2950_traffic_in_14.rrd --template traffic_in:traffic_out 1116124140:3728203756:1711551102
05/14/2005 07:29:02 PM - POLLER: Poller[0] CACTI2RRD: C:\rrdtool\rrdtool.exe update C:\AppServ\www\cacti\rra\sh_2950_traffic_in_15.rrd --template traffic_out:traffic_in 1116124140:2867895801:1007619785
05/14/2005 07:29:02 PM - CMDPHP: Poller[0] Time: 1.0263 s, Theads: N/A, Hosts: 1
05/14/2005 07:29:02 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/14/2005 07:29:02 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 1711551102
05/14/2005 07:29:01 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 3728203756
05/14/2005 07:29:01 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, output: 1007619785
05/14/2005 07:29:01 PM - CMDPHP: Poller[0] Host[4] SNMP: v2: 172.2.8.3, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, output: 2867895801
05/14/2005 07:29:01 PM - CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP
05/14/2005 07:29:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/14/2005 07:29:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/14/2005 07:29:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\AppServ\www\cacti\script_server.php
05/14/2005 07:29:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/appserv/www/cacti
05/14/2005 07:29:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/appserv/www/cacti
05/14/2005 07:29:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/14/2005 07:29:01 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
05/14/2005 07:29:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 4 4]
05/14/2005 07:29:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:\AppServ\php\php-win.exe, ARGS: -q c:\appserv\www\cacti/cmd.php 0 0]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What about viewing graphs?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

just the description and the little red x's.
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

For Grins... I moved to rrdtool 1.2.6 and cactid.

Output in the rrdtool/release directory :

C:\rrdtool\Release>rrdtool.exe graph - --imgformat=PNG --start=1116045297 --end=
1116131697 --title="SH 2950 - Traffic - Fa0/12" --rigid --base=1000 --height=100
--width=300 --alt-autoscale-max --lower-limit=0 --no-legend COMMENT:"From 2005/
05/13 21\:34\:57 To 2005/05/14 21\:34\:57\c" COMMENT:" \n" --vertical-label="bit
s per second" DEF:a="C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic
_in:AVERAGE DEF:b="C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_o
ut:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"" LINE1:cdefe#00
2A97:""
ERROR: Cannot parse DS in 'DEF:a=C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.
rrd:traffic_in:AVERAGE'

still can't parse DS
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

For some reason the following is not accurate:
DEF:a="C:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE
It should be:

DEF:a="C\:\AppServ\www\cacti/rra/sh_2950_traffic_in_15.rrd":traffic_in:AVERAGE

Needs a "\" right after the "C" after "a=". All colons ":" must be first escaped with a "\".

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

ah.. will remove:

I followed the following:

Posted: Thu Apr 14, 2005 3:20 pm Post subject: Path to graphics

--------------------------------------------------------------------------------

Hello,

Show in the file rrd.php and edit this:

/* FOR WIN32: Escape all colon for drive letters (ex. D\:/path/to/rra) */
$data_source_path = str_replace(":", ":", $data_source_path);

this is the problem under win
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

Changed the rrd.php back
and went back and checked the
my.ini OLD_PASSWORDS

Suddenly - all was working.
Using CMD as poller and old RRDTOOLS.

Will have to do a little more work to get the system working with cactiD.

I entered all permiations of my user and the host (ip and hostname)
using old passwords and still was being denied using password.

Oh well. Its working now.
Thanks for your assistance Witness.
caustic
Posts: 8
Joined: Tue May 10, 2005 1:06 pm
Location: Ohio, US

Post by caustic »

tdl

-------------------------------------------------------------------------
"ah.. will remove:

I followed the following:

Posted: Thu Apr 14, 2005 3:20 pm Post subject: Path to graphics"
-------------------------------------------------------------------------

I followed the same post and it threw me off track as well. Someone might want to ammend the offending thread since it seems to have sent at least a couple of people awry.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests