snmp - Why is Cacti showing an empty graph, even though the rrd file is created? -
i have developed own snmp service, , want plot graph of oid provided. so, have created graph in cacti. -) showing device up. -) creating rrd file. (rrdtool says ok). -) showing graph, it's empty.
but when check it, say
rrdtool fetch <rrd file> average
it shows me nan
values. monitored oid has value 47 , have set min=0 , max=100.
i using cacti appliance rpath:
http://www.rpath.org/ui/#/appliances?id=http://www.rpath.org/api/products/cacti-appliance
still, can't show value on graph..
where problem? can please tell me?
first of all, use cacti's "rebuild poller cache" function under utilities menu. if didn't work ,check if rrd file updating new data. use command:
rrdtool last [filename.rrd]
output last time (in unix timestamp) new value has been inserted rra file can compare current time date +%s
output.
if it's not updating data should change cacti log level debug via settings page on cacti's web ui , appropriate messages. if poller couldn't data it's issue relating connectiviy/snmp. can further check issues such manually polling specific oid on host:
snmpwalk -c[snmp community] -v2c [hostname or ip address] 1.3.6.1.2.1
you can use above command , oid (1.3.6.1.2.1) see if you're getting reply. if worked should change command snmpwalk snmpget , oid actual oid you're trying poll , retry.
if rrd updating new data you're still getting nan in graphs suggest looking heartbeat , step values of data source (via data template) in relation polling interval , poller cronjob interval.
these values determine how many times rrd file miss data before inserting nan. cronjob calls cacti poller start performing it's polling cycle. poller interval actual time poller wait between 2 polling cycles if indeed invoked in time cronjob.
so 1 minute polling (on poller , cronjob) have use step of 60 (seconds) , heartbeat of 120. 5 minutes polling, step 300 , heartbeat 600.
this caused changing poller interval on settings page.
gandalf cacti forums wrote nice guide can use , further can found on cacti forums.
good luck! :)
Comments
Post a Comment