Sep 20, 2011 11:37 AM
Issue in creating RRD files and graphing.
-
Like (0)
Hi All,
I added a device in Zenoss 3.0.3. I have two main issues with this device.
1. I can see interface throughput graphing for only two interfaces. And when I model the device. I get ifindex error on two of the interfaces as it is missing the file in interface of device. I can see in the interface folder in the zenoss server and i can see the rrd files are created and have some values in it. I can't see any ip address on two working interfaces and no graphs on other three interfaces which throw ifindex error.
2. I have given OID value in as a datasource for the device in template. And mapped the same for graph definition. I have same issue like mentioned in the following thread.
thread/12288?decorator=print&displayFullThread=true
new performance graph, not creating rrd file/no graph dataBut, I tried .0 after OID and reindexing the file and rebooting zenoss service, but still no improvement. When I do snmpwalk without .0 in the end I get result from test or manually from the zenoss server. But, no rrd file is getting created and no graph is generated due to the same.
I have added couple of screenshots with this discussion. Kindly help me with the same. I am stuck with this for a while and breaking my head to figure out whats the problem.
Thanks in advance for your help.
Test with snmpget. Make sure it can get your OID...
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
Hi James,
I tested with snmpget. I am getting error. I tried with various random choosen OIDs with .0 in end of provided MIB by the device manufacture. But, still i get same error but no results.But when I do with snmpwalk. I get all results.
With .0 in end:
[zenoss@abc zenoss]$ snmpget -cpublic -v2c device x.x.x.x.x.x.x.x.x.x.0
SNMPv2-SMI::enterprises.x.x.x.x.0 = No Such Object available on this agent at this OID
Without .0 in end:
[zenoss@abc zenoss]$ snmpget -cpublic -v2c device x.x.x.x.x.x.x.x.x.x.x
SNMPv2-SMI::enterprises.x.x.x.x = No Such Object available on this agent at this OID
But, when I used sysUpTime OID i get proper result of snmpget:
[zenoss@abc zenoss]$ snmpget -cpublic -v2c device 1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (182207677) 21 days, 12:12:56.77
It is getting weird now. How come snmpget cant work for many OIDs?
When I set up Command as datasource i get following error:
Preparing Command...
Executing command $ZENHOME/libexec/snmpwalk -cpublic -v2c device x.x.x.x.x.x.x.x.x.x.x against device
/bin/sh: /usr/local/zenoss/zenoss/libexec/snmpwalk: No such file or directory
DONE in 0 seconds
Thanks in advace
Preparing Command...
Executing command $ZENHOME/libexec/snmpwalk -cpublic -v2c device x.x.x.x.x.x.x.x.x.x.x against device
/bin/sh: /usr/local/zenoss/zenoss/libexec/snmpwalk: No such file or directory
DONE in 0 seconds
Thanks in advance
I can understand you "x" ing iut your device that you are testing but showing is the OID would be very helpful. The trick with getting your OID correct, and whether you have a .0 on the end or not, is to do with the structure of SNMP data.
Scalar data, like stuff from the system table of MIB-2, provides single values for each OID - like your sysUpTime example. When you create templates to gather such variables, you must have the .0 on the end.
Some SNMP data, by its nature, provides a table of values. Interfaces is an obvious example. For EACH interface, you will get ifInOctets, ifOutOctets, .... etc . In this case, a Zenoss template should not supply a .0 at the end of the oid and the Zenoss SNMP collector will automatically supply the table index and the table of values for each interface.
Not sure why you are maybe trying to setup an snmpwalk under $ZENHOME/libexec?? Just use the standard system snmpwalk. If you are trying to use snmpwalk in a command template (which occasionally is useful but normally necessary) then use the full path to snmpwalk in your command path - otherwise the command path will default to $ZENHOME/libexec.
Hope that hekps some. If not, publish yout snmpwalk command with the OIDs you are using and we can have another look.
Cheers,
Jane
Hi Jane,
Thanks for the reply and sorry for the delay response.
Yes I put x instead of number as we don't want to relieve which device is that.
Ya i tried with full path on snmpwalk and it showing the result. By default it was going to $ZENHOME/libexec as I was trying to add command as a datapoint. Now it shows the result when I test from GUI (command datasource). So I thought I will graph with these result. But, can't we graph from the results of the command as a datasource? After adding the command as a data course, I try to map it to a graph, But it is not showing the command datasource to be added as a data point to be selected.
So as per your description I shouldn't be adding .0 in the end correct? as you can see from snmpwalk result I get results like interface many values. But, I tried both (with .0 and without .0, but no result) as u see in my previous posting.
As zenoss is just polling the snmp information from the device using snmpwalk or snmpget, I didnt enable trap in the device. I hope that this is not causing the issue.
Kindly advice me regarding the same.
Regards,
Why are you creating a command data source for this rather than using an SNMP data source??? An SNMP template will automatically handle all the different instances and will create you your datapoint automatically - one datapoint for each OID. The only reason that I use snmpwalk in a command template, rather than using a native SNMP data source, is if I want a polling interval faster than 5 minutes - but your command polling interval is 300 = 5 mins.
I would strongly suggest that you create a new Data SOURCE of type SNMP and use your OID, without the .0 if you are gathering a table of values. This will automatically create a data point that you can add to your THresholds / Graphs.
Cheers,
Jane
Spawn:
I second Janes suggestion.
--Shane
Hi Jane,
Ya that's exactly what I did initially. I put the OID without .0 as SNMP data source to start with and graph it as data point. But I had no luck with that. Then I got into all these details to troubleshoot. I can see in GUI that it shows as three RRD files been used. But when I go into the linux box to the double check the files, I dont see its existing. Graphing doesnt take place. Initially, I was thinking the same. It should be just straight forward. Do the snmpwalk testing from command line to check OID and add it in SNMP data source and link it to graph. But, this case, i am having troubles to make it work.
That's why I am trying to map manually by doing command template rather than SNMP. Regarding 300 command polling interval, I am doing this for testing now. Just to make it work and see the graphs. Later I will reduce the polling interval for sure.
Thanks & Regards,
spawn:
What type of device are you polling? Can you supply a full OID so I can look in to it?
Thanks!
--Shane
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||