SNMP get data returns NAN

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

Moderators: Developers, Moderators

Post Reply
sachar
Posts: 14
Joined: Sun Apr 21, 2002 9:52 pm

SNMP get data returns NAN

Post by sachar »

For some strange reasons some of my SNMP get datasources return a NAN as value:

When running cmd.php manual, it doesn't terurn an error. And the values are also displayed correct:

Code: Select all

12/23/2002 4:32 PM - CMD: /usr/bin/rrdtool update /var/www/cacti/rra/disk__root_used.rrd --template disk__root_used N:226499
12/23/2002 4:32 PM - CMD: /usr/bin/rrdtool update /var/www/cacti/rra/disk_root_total.rrd --template disk_root_total N:497829
12/23/2002 4:32 PM - CMD: /usr/bin/rrdtool update /var/www/cacti/rra/disk_root_free.rrd --template disk_root_free N:245628
12/23/2002 4:32 PM - CMD: /usr/bin/rrdtool update /var/www/cacti/rra/disk__var_free.rrd --template disk__var_free N:531556
12/23/2002 4:32 PM - CMD: /usr/bin/rrdtool update /var/www/cacti/rra/disk__var_total.rrd --template disk__var_total N:1517920
the following sources rerurn a nan value when trying to add them to a graph:

update /var/www/cacti/rra/disk__var_total.rrd --template disk__var_total N:1517920[/
update /var/www/cacti/rra/disk__var_free.rrd --template disk__var_free N:531556
update /var/www/cacti/rra/disk__root_used.rrd --template disk__root_used N:226499


while the other SNMP get sources do display values.

this is my graph:

http://hobbes.sa-char.net/cacti/graph.p ... &rraid=all


hope somebody has an idea why the value shows up as NAN.
sachar
Posts: 14
Joined: Sun Apr 21, 2002 9:52 pm

Post by sachar »

seems that it isn't only snmp data returning a NAN, when trying to create a graph. Added a data source which returned 100. And this also showed up as NAN.
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Can you post rrdtool create line which is visible at the top of DS settings page?

- bulek
sachar
Posts: 14
Joined: Sun Apr 21, 2002 9:52 pm

Post by sachar »

a few data sources which returned zero:

Code: Select all

/usr/bin/rrdtool create \
/var/www/cacti/rra/disk__root_used.rrd \
--step 300 \
DS:disk__root_used:GAUGE:600:0:1000000000000 \
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:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \



/usr/bin/rrdtool create \
/var/www/cacti/rra/disk__var_total.rrd \
--step 300 \
DS:disk__var_total:GAUGE:600:0:1000000000000 \
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:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
are two of those datasources

an other one which isn't using snmp:

Code: Select all

/usr/bin/rrdtool create \
/var/www/cacti/rra/test_test_ssh.rrd \
--step 300 \
DS:dst_bytes:GAUGE:600:0:100000000 \
DS:dst_pkts:GAUGE:600:0:100000000 \
DS:src_bytes:GAUGE:600:0:100000000 \
DS:src_pkts:GAUGE:600:0:100000000 \
DS:total_bytes:GAUGE:600:0:100000000 \
DS:total_pkts:GAUGE:600:0:100000000 \
DS:records:GAUGE:600:0:100000000 \
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:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
which returns the following according to cron:

perl /var/www/cacti/scripts/ramanage.pl 'tcp' '/var/log/argus/argus.log' 11:23061:11695:11365:17190794:3615242:13575551
the graph:

http://hobbes.sa-char.net/cacti/graph.p ... &rraid=all

a DS which is working:

Code: Select all

/usr/bin/rrdtool create \
/var/www/cacti/rra/disk_root_free.rrd \
--step 300 \
DS:disk_root_free:GAUGE:600:0:1000000000 \
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:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \


cheers
faisal
Posts: 4
Joined: Mon Dec 23, 2002 3:55 am
Contact:

well i got the same problem

Post by faisal »

i am getting the same error on all of my graphs.

NAN
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests