Get SNMP Data Problem

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

Moderators: Developers, Moderators

Post Reply
ronaldodnogueira
Posts: 2
Joined: Wed Sep 22, 2004 9:13 am

Get SNMP Data Problem

Post by ronaldodnogueira »

I try several time to make a graph to a single OID but the CACTI never put the value in the RRD file. I create a Data Source based on Get SNMP Data (from Data Input Methods). Related this Data Source with a Graph in the Graph Management.

I'm using the CACTI 0.8.6.

What could be the problem?

I believe this start to hapen after I import a new hosts template for PIX FIREWALL.

Thanks,


Ronaldo
Phobos182
Cacti User
Posts: 65
Joined: Tue Sep 21, 2004 2:22 pm
Location: Madison, WI

Post by Phobos182 »

First off. Does it create the graph? and if it does is it blank?

Two things can cause this. The SNMP GET is not returning the data in the correct format, so the RRD file is never created, or is always empty. The other is because the graph has no data sources associated with it. This sometimes happens to my custom graph when I add data sources to the graph after having the graph associated with a device. To fix it, please follow these steps to debug your graph.

1: Click on "GRAPH MANAGEMENT"
2: Click on the graph with the problem.
*Note: You should see a picture of your graph. If there is a problem with the data source the graph image may never load.
3: You should have all "GRAPH ITEMS" listed in this view. Make sure none of them have "NONE" selected. This is what data sources the graph is pulling from. Make sure the correct data sources are selected.

If you had data sources selected for the graph, check to see if the RRD file exists for the data source. Check <CACTI DIRECTORY>\rra to see if the graph data source .RRD file exists. To see what the name of the RRD file should be.

1: Click on "DATA SOURCES"
2: Click on the data source in question
3: It should give you the path to the .RRD file.

If the RRD file is indeed created, you should check the rrd file to see if it is empty. To do this, use rrdtool to dump the database
rrdtool dump MY_DATABASE.RRD > database.txt

Then look at database.txt to see if not all colums have NaN (blank) associated with it. If the database is blank, you will have to check your OID.

If your sure the OID is correct, use the debugging mode to see what output is generated from Cacti collecting the data. Go to
1: Click on "SETTINGS"
2: Click on "POLLER"
3: Turn debugging to "HIGH"
4: Wait for the poller to run again
5: Click on "SYSTEM UTILITIES"
6: Click on "VIEW LOG FILE"
On the next poller launch, the cacti log file should have a LOT of jucy information to debug your SNMP GET. You should be looking for a line like this.

09/28/2004 01:36:21 PM - CMDPHP: Poller[0] Host[24] SNMP: v2: <IP ADDRESS>, dsname: traffic_out, oid: <OID NAME>, output: <OUTPUT HERE>

This will let you know if the OUTPUT from the OID is indeed something, instead of an error.

Let me know if this helped.
ronaldodnogueira
Posts: 2
Joined: Wed Sep 22, 2004 9:13 am

Problem Solve

Post by ronaldodnogueira »

The tip about the Poller Logging Level really helps me to solve the problem.

The SNMP query return a value that the Cacti can't undestand.

I create a new Data Input Method and solve the problem. :D

Thanks,


Ronaldo
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

I get only NaN graphs, yet the poller seems to be working

Post by drub »

Using the cacti 0.8.6 straight from the cacti.net download site.
The rra is being created the poller seems to be polling OK (With cactid, or cmd.php) the actual graphs show up in the graph view pages but the data from the poller updates never seem to affect the rra file, or graph image to update.

[host]# php poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.6

09/29/2004 11:45:12 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /var/www/html/cacti086/cactid/cactid, ARGS: 0 4]
Waiting on 1/1 pollers.
09/29/2004 11:45:13 AM - POLLER: Poller[0] RRD: /bin/rrdtool update /var/www/html/cacti086/rra/an01_traffic_in_218.rrd --template traffic_in:traffic_out 1096494312:857765252:0
09/29/2004 11:45:13 AM - POLLER: Poller[0] RRD: /bin/rrdtool update /var/www/html/cacti086/rra/an01_traffic_in_219.rrd --template traffic_in:traffic_out 1096494313:0:0
09/29/2004 11:45:13 AM - SYSTEM STATS: Time: 1.0221 s, Method: cactid, Processes: 1, Threads: 20, Hosts: 2, Hosts/Process: 2


this is two interfaces, the first has only inbound traffic so it returns 857765252:0

the second is currently not passing traffic yet is up and it returns 0:0

but All I get in my graphs/rrd files is NaN
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

I found the problem but not sure how to fix

Post by drub »

The time that the poller displays when it does the rrdtool update is 3 hours behind the time that is in the actual rrd file.
My timezone is set to PDT, and I do not have this issue on 0.8.5, only 0.8.6, I also tried using the latest beta before discovering that the issue is a timestamp issue. Anyone else see this happening?

[host]# date
Wed Sep 29 13:31:20 PDT 2004

09/29/2004 01:31:29 PM - POLLER: Poller[0] CACTI2RRD: /bin/rrdtool update /var/www/html/cacti086/rra/an01_traffic_in_220.rrd --template traffic_in:traffic_out 1096500688:0:216338150

shows up as

<!-- 2004-09-29 16:30:00 PDT / 1096500600 --> <row><v> 1.3953432006e+06 </v><v> 0.0000000000e+00 </v></row>
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests