snmp script gives no entry in snmp_query_graph_rrd

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
fansari
Posts: 2
Joined: Sat Jun 21, 2014 11:46 am

snmp script gives no entry in snmp_query_graph_rrd

Post by fansari »

Hi,

I was just testing this

http://forums.cacti.net/viewtopic.php?f=12&t=24791

with pass through control.

pass .1.3.6.1.4.1.2021.60 /usr/local/scripts/snmp/get_entropy.sh

I added the graph but noticed that no graph appaers and also no rrd file is written.

Next I found out that the reason for this is that no entry is written in table poller_items for this.

I inserted a line into this table but after a while it suddenly was gone.

Today I found out the reason for this: this line is removed by the rebuild of the poller cache (rebuild_poller_cache.php).

So I did some debugging of the PHP code (rebuild_poller_cache.php, utility.php) and found the reason for this behaviour: there was no entry in table snmp_query_graph_rrd for this.

I added a line and this time it "survived" the rebuild of the poller cache.

But the strange thing is that the necessary entry in snmp_query_graph_rrd was missing in the first place.

If anybody has experience with this I would like to know.

Frank

(tested with version 0.8.8b on Fedora 21)
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests