Hi all,
I am still having a problem with the graphs showing up.
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Cisco Switch - Traffic - Fa0/23" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.rrd":traffic_in:AVERAGE \
DEF:b="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.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"
It just will not create in the rra folder.... any troubleshooting tips??
Thank you all,
Fabiano
No Graphs Show Up
Moderators: Developers, Moderators
Turn the cacti polling level to debug for one cycle and post the output. If it contains WEBLOG outputs, don't bother posting since it just clutters up the log and makes it harder to read. Disable WEBEVENTS logging if that happens and try again.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
my output...thank you
06/21/2005 08:19:42 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco Switch - Traffic - Fa0/23" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.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"
06/21/2005 08:19:40 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco Switch - Traffic - Fa0/23" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.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"
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Time: 1.5622 s, Theads: N/A, Hosts: 3
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.25, output: 155412727
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.25, output: 119415126
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, output: 3631197361
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.24, output: 1539618503
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] RECACHE: Processing 1 items in the auto reindex cache for '172.16.221.39'.
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: Host responded to SNMP
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: FILENM: c:\apache\apache2\htdocs\cacti\script_server.php
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/apache/apache2/htdocs/cacti
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/apache/apache2/htdocs/cacti
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
06/21/2005 08:16:07 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco Switch - Traffic - Fa0/23" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.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"
06/21/2005 08:16:05 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco Switch - Traffic - Fa0/23" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.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"
C:\>php -m
[PHP Modules]
bcmath
calendar
com
ctype
ftp
mysql
odbc
overload
pcre
session
snmp
sockets
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
Thank you for your continuous help.
06/21/2005 08:19:40 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco Switch - Traffic - Fa0/23" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.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"
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Time: 1.5622 s, Theads: N/A, Hosts: 3
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.25, output: 155412727
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.25, output: 119415126
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, output: 3631197361
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.24, output: 1539618503
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] RECACHE: Processing 1 items in the auto reindex cache for '172.16.221.39'.
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] Host[5] SNMP: Host responded to SNMP
06/21/2005 08:18:54 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: FILENM: c:\apache\apache2\htdocs\cacti\script_server.php
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/apache/apache2/htdocs/cacti
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/apache/apache2/htdocs/cacti
06/21/2005 08:18:54 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
06/21/2005 08:16:07 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco Switch - Traffic - Fa0/23" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.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"
06/21/2005 08:16:05 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco Switch - Traffic - Fa0/23" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\apache\Apache2\htdocs\cacti/rra/cisco_switch_traffic_in_21.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"
C:\>php -m
[PHP Modules]
bcmath
calendar
com
ctype
ftp
mysql
odbc
overload
pcre
session
snmp
sockets
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
Thank you for your continuous help.
You apparently did not read what I wrote. The WEBLOG events are not needed in your log file. Disable them.
172.16.221.39 is the host with the graph problem?
Goto Settings->General and set Logging Level to DEBUG. Then open a command line and run the following one at a time.
"php <path_cacti>/cmd.php" -> post output
"php poller.php" -> post output
172.16.221.39 is the host with the graph problem?
Goto Settings->General and set Logging Level to DEBUG. Then open a command line and run the following one at a time.
"php <path_cacti>/cmd.php" -> post output
"php poller.php" -> post output
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
sorry bout that... here you go.
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.24, output: 1111128
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, output: 1046580215
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.25, output: 72515
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.25, output: 116125
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 994236
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 949100
06/21/2005 12:21:21 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 64
06/21/2005 12:21:21 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 64
06/21/2005 12:21:21 PM - CMDPHP: Poller[0] Time: 2.6324 s, Theads: N/A, Hosts: 3
C:\net-snmp\bin>php poller.php
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.11
No input file specified.
C:\net-snmp\bin>
Thank you.
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.24, output: 1111128
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, output: 1046580215
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.25, output: 72515
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.25, output: 116125
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 994236
06/21/2005 12:21:20 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 949100
06/21/2005 12:21:21 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 64
06/21/2005 12:21:21 PM - CMDPHP: Poller[0] Host[5] SNMP: v1: 172.16.221.39, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 64
06/21/2005 12:21:21 PM - CMDPHP: Poller[0] Time: 2.6324 s, Theads: N/A, Hosts: 3
C:\net-snmp\bin>php poller.php
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.11
No input file specified.
C:\net-snmp\bin>
Thank you.
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You need to run "php poller.php" from your Cacti Webroot folder. The same applies for your scheduled task.
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 2 guests