here is a sample manual run of php cmd.php. i think the fact that the oid is being shown as part of the result, inseat of simply the value, is causing a problem to the rra update. after the OID in the output, there is a space, then the actual value i want to graph. can someone better at rrdtool and cacti take a look and give me some advice? thanks!
[apache@mandrake1 cacti]$ php cmd.php
command: perl /var/www/html/cacti/scripts/linux_memory.pl MemFree:, output: 10536
command: perl /var/www/html/cacti/scripts/linux_memory.pl SwapFree:, output: 811240
MULTI command: perl /var/www/html/cacti/scripts/loadavg_multi.pl, output: 1min:0.03 5min:0.12 10min:0.09
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value: 0.03
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value: 0.12
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value: 0.09
command: perl /var/www/html/cacti/scripts/unix_users.pl, output: 9
command: perl /var/www/html/cacti/scripts/unix_processes.pl, output: 240
snmp: xxx.xxx.xxx.xxx:161, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, value: enterprises.9.2.1.58.0 13
snmp: xxx.xxx.xxx.xxx:161, dsname: span_one_zero, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.1.0, value: enterprises.9.10.19.1.1.9.1.3.1.0 3
snmp: xxx.xxx.xxx.xxx:161, dsname: span_one_one, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.1.1, value: enterprises.9.10.19.1.1.9.1.3.1.1 4
snmp: xxx.xxx.xxx.xxx:161, dsname: span_two_zero, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.2.0, value: enterprises.9.10.19.1.1.9.1.3.2.0 3
snmp: xxx.xxx.xxx.xxx:161, dsname: span_two_one, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.2.1, value: enterprises.9.10.19.1.1.9.1.3.2.1 2
snmp: xxx.xxx.xxx.xxx:161, dsname: span_three_zero, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.3.0, value: enterprises.9.10.19.1.1.9.1.3.3.0 2
snmp: xxx.xxx.xxx.xxx:161, dsname: span_three_one, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.3.1, value: enterprises.9.10.19.1.1.9.1.3.3.1 6
snmp: xxx.xxx.xxx.xxx:161, dsname: span_four_zero, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.4.0, value: enterprises.9.10.19.1.1.9.1.3.4.0 0
snmp: xxx.xxx.xxx.xxx:161, dsname: span_four_one, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.4.1, value: enterprises.9.10.19.1.1.9.1.3.4.1 4
snmp: xxx.xxx.xxx.xxx:161, dsname: span_five_zero, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.5.0, value: enterprises.9.10.19.1.1.9.1.3.5.0 4
snmp: xxx.xxx.xxx.xxx:161, dsname: span_five_one, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.5.1, value: enterprises.9.10.19.1.1.9.1.3.5.1 2
snmp: xxx.xxx.xxx.xxx:161, dsname: span_six_zero, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.6.0, value: enterprises.9.10.19.1.1.9.1.3.6.0 4
snmp: xxx.xxx.xxx.xxx:161, dsname: span_six_one, oid: .1.3.6.1.4.1.9.10.19.1.1.9.1.3.6.1, value: enterprises.9.10.19.1.1.9.1.3.6.1 2
update /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:10536
update /var/www/html/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:811240
update /var/www/html/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.03:0.12:0.09
update /var/www/html/cacti/rra/localhost_users_6.rrd --template users N:9
update /var/www/html/cacti/rra/localhost_proc_7.rrd --template proc N:240
update /var/www/html/cacti/rra/telstar3660_5min_cpu_10.rrd --template 5min_cpu N:enterprises.9.2.1.58.0 13
ERROR: expected 1 data source readings (got 0) from 13:...
update /var/www/html/cacti/rra/telstar3660_span_one_zero_11.rrd --template span_one_zero N:enterprises.9.10.19.1.1.9.1.3.1.0 3
ERROR: expected 1 data source readings (got 0) from 3:...
update /var/www/html/cacti/rra/telstar3660_span_one_one_12.rrd --template span_one_one N:enterprises.9.10.19.1.1.9.1.3.1.1 4
ERROR: expected 1 data source readings (got 0) from 4:...
update /var/www/html/cacti/rra/telstar3660_span_two_zero_13.rrd --template span_two_zero N:enterprises.9.10.19.1.1.9.1.3.2.0 3
ERROR: expected 1 data source readings (got 0) from 3:...
update /var/www/html/cacti/rra/telstar3660_span_two_one_14.rrd --template span_two_one N:enterprises.9.10.19.1.1.9.1.3.2.1 2
ERROR: expected 1 data source readings (got 0) from 2:...
update /var/www/html/cacti/rra/telstar3660_span_three_zero_15.rrd --template span_three_zero N:enterprises.9.10.19.1.1.9.1.3.3.0 2
ERROR: expected 1 data source readings (got 0) from 2:...
update /var/www/html/cacti/rra/telstar3660_span_three_one_16.rrd --template span_three_one N:enterprises.9.10.19.1.1.9.1.3.3.1 6
ERROR: expected 1 data source readings (got 0) from 6:...
update /var/www/html/cacti/rra/telstar3660_span_four_zero_17.rrd --template span_four_zero N:enterprises.9.10.19.1.1.9.1.3.4.0 0
ERROR: expected 1 data source readings (got 0) from 0:...
update /var/www/html/cacti/rra/telstar3660_span_four_one_18.rrd --template span_four_one N:enterprises.9.10.19.1.1.9.1.3.4.1 4
ERROR: expected 1 data source readings (got 0) from 4:...
update /var/www/html/cacti/rra/telstar3660_span_five_zero_19.rrd --template span_five_zero N:enterprises.9.10.19.1.1.9.1.3.5.0 4
ERROR: expected 1 data source readings (got 0) from 4:...
update /var/www/html/cacti/rra/telstar3660_span_five_one_20.rrd --template span_five_one N:enterprises.9.10.19.1.1.9.1.3.5.1 2
ERROR: expected 1 data source readings (got 0) from 2:...
update /var/www/html/cacti/rra/telstar3660_span_six_zero_21.rrd --template span_six_zero N:enterprises.9.10.19.1.1.9.1.3.6.0 4
ERROR: expected 1 data source readings (got 0) from 4:...
update /var/www/html/cacti/rra/telstar3660_span_six_one_22.rrd --template span_six_one N:enterprises.9.10.19.1.1.9.1.3.6.1 2
ERROR: expected 1 data source readings (got 0) from 2:...
time: 2
[apache@mandrake1 cacti]$
too much output causes update rra failure.
Moderators: Developers, Moderators
Did you ever figure out how to fix this?
I have the same issue practically. Mine says Expected results from 2 data sources but only received one. Kind of lost on this one.
Your OID is returning an OID rather than a value. (Some OIDS do this)
What are the OID's intended to give you ? Have your hard coded them within datasources or are they derived from a query ?
Which MIB are they from (looks like cisco ? but I dont have access to my management station to check at the mo) .
Deano
What are the OID's intended to give you ? Have your hard coded them within datasources or are they derived from a query ?
Which MIB are they from (looks like cisco ? but I dont have access to my management station to check at the mo) .
Deano
It seems that you are using Mandrake in which case, the following thread might be of help to you.
http://www.raxnet.net/board/viewtopic.php?p=9881
-Ian
http://www.raxnet.net/board/viewtopic.php?p=9881
-Ian
Who is online
Users browsing this forum: No registered users and 4 guests