Hello,
I'm new to Cacti and this particular problem has me stumped.
I'm running Cacti 0.8.7b on Redhat 4, using RRDTool version 1.2.23.
I've created my own custom scripts that execute fine, and everything looks good except for some reason, the result of the script is not being added to the RRD.
[root@142498-db1 cacti]# php -q poller.php --force --debug | more
07/01/2008 02:16:14 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last:
'73', Max Runtime '298', Poller Runs: '1'
07/01/2008 02:16:14 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bi
n/php, ARGS: -q /opt/sites/cacti-0.8.7b/cmd.php 0 5]
Waiting on 1/1 pollers.
07/01/2008 02:16:15 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/sites/cacti-0.8.7b
/rra/connectors/app2_mblox_mo_queue_unroutable_80.rrd --template 1214918174:54
07/01/2008 02:16:15 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/sites/cacti-0.8.7b
/rra/app2_traffic_in_59.rrd --template traffic_out:traffic_in 1214918174:3673193498:3673193498
In the the 1st rrdtool update line, it ommits the rrdname, which is causing the update statement to fail.
The second rrdtool update line has the rrdname (traffic_out:traffic_in)
My question is, where is this rrdname set? Are there any restrictions on size/characters in it.
For completeness, please see this extract from cacti.log
07/01/2008 11:35:01 AM - CMDPHP: Poller[0] Host[5] DS[80] CMD: /opt/sites/cacti-0.8.7b/scripts/test.sh http://app2.local:8642/monitoring/stats?gw=mblox MO-QUEUE-UNROUTABLE, output: 62
07/01/2008 11:35:01 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (80, '', '2008-07-01 11:35:01', '62')"
07/01/2008 11:35:01 AM - CMDPHP: Poller[0] Time: 0.4664 s, Theads: N/A, Hosts: 4
Many thanks in advance,
Paul
poller.php problem when updating data in RRD
Moderators: Developers, Moderators
-
- Posts: 3
- Joined: Tue Jul 01, 2008 8:10 am
-
- Posts: 3
- Joined: Tue Jul 01, 2008 8:10 am
screen shots
screenshot of DS
- Attachments
-
- screenshot of DS
- ds.JPG (127.5 KiB) Viewed 995 times
-
- gm.JPG (144.5 KiB) Viewed 995 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: poller.php problem when updating data in RRD
This script call shows the return of only one single parameter, whereas the Data Source defines 4 of them (In fact, the screenshot shows the wrong data source, it is id=90 instead of id=80).paulmiles01 wrote:07/01/2008 11:35:01 AM - CMDPHP: Poller[0] Host[5] DS[80] CMD: /opt/sites/cacti-0.8.7b/scripts/test.sh http://app2.local:8642/monitoring/stats?gw=mblox MO-QUEUE-UNROUTABLE, output: 62
Please refer to the first link of my signature for some walkthroughs
Reinhard
Who is online
Users browsing this forum: No registered users and 29 guests