verbose query failing, but snmpwalk succeeds

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
edward1234
Posts: 7
Joined: Mon Oct 24, 2011 12:10 am

verbose query failing, but snmpwalk succeeds

Post by edward1234 »

Hi,

I've been using some custom scripts that aggregate iostat output of devices that make up Veritas Volumes. The custom scripts write to a file, which is read by a script written by Mark Round. Everything was working fine for over a year. Recently, I added some devices/volumes to my clients and attempted to create graphs for them via the "Devices" page and "Create Graphs for this Host". The new volumes didn't show up, which lead me to run "Verbose Query", which gives me...

+ Running data query [26].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/mnt/data/cacti/cacti/resource/snmp_queries/solaris/solaris-iostat.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.3.1'
+ No SNMP data returned
+ Found data query XML file at '/mnt/data/cacti/cacti/resource/snmp_queries/solaris/solaris-iostat.xml'
+ Found data query XML file at '/mnt/data/cacti/cacti/resource/snmp_queries/solaris/solaris-iostat.xml'
+ Found data query XML file at '/mnt/data/cacti/cacti/resource/snmp_queries/solaris/solaris-iostat.xml'

But snmpwalk on my cacti server works fine. The existing graphs are still collecting/graphing data.

I tried adding new "Devices" (which is actually a host that's arleady being graphed), but that failed. I made a copy of solaris-iostat.xml and created a new Data Query with all new Data and Graph Templates, which also failed.

I compared everything (that I could think of) to a test cacti server, which works fine. One other thing to note is the cacti drive filled and was cleaned up a few weeks ago, prior to me trying to add the new graphs. Turning logging up to Debug doesn't seem to yield any additional information for the Verbose Query failure.

Thanks in advance for your help.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: verbose query failing, but snmpwalk succeeds

Post by TheWitness »

Check your apache error log for some interesting output. However, I'm not quite sure it'll have anything.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
edward1234
Posts: 7
Joined: Mon Oct 24, 2011 12:10 am

Re: verbose query failing, but snmpwalk succeeds

Post by edward1234 »

Thanks for the quick response. Can you tell me exactly what Verbose Query is doing? ie, the difference between Verbose Query and snmpwalk?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: verbose query failing, but snmpwalk succeeds

Post by TheWitness »

Gathering information about all the rows in the data query that have the input direction associated with them. Things like 'ifAlias', 'ifDescription', etc.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
edward1234
Posts: 7
Joined: Mon Oct 24, 2011 12:10 am

Re: verbose query failing, but snmpwalk succeeds

Post by edward1234 »

Can you give me something lower level and detailed so I can troubleshoot the issue?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: verbose query failing, but snmpwalk succeeds

Post by TheWitness »

True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
edward1234
Posts: 7
Joined: Mon Oct 24, 2011 12:10 am

Re: verbose query failing, but snmpwalk succeeds

Post by edward1234 »

Thanks, I'll take a look.
edward1234
Posts: 7
Joined: Mon Oct 24, 2011 12:10 am

Re: verbose query failing, but snmpwalk succeeds

Post by edward1234 »

I figured it out...kind of. snmpdx, Solaris' Master Agent wasn't running. Not sure exactly why it didn't allow the "verbose query" to work, when snmpwalk was able to pull down all data, but starting snmpdx seems to have fixed my issue.

Thanks for your help.
jet755
Posts: 19
Joined: Fri Oct 28, 2011 8:50 pm

Re: verbose query failing, but snmpwalk succeeds

Post by jet755 »

I meet a similar issue today.

My lab test device has a OID that walks slow, so I set the timeout to 5 second, and snmpwalk command suceeds.
snmpwalk -c public -v 2c -t 5 10.xx.xx.xx 1.3.6.1.4.1.xxxxxx

But Verbose Query always failing, even set the SNMP Timeout a long time.

Dose the Verbose Query use the snmpwalk.exe, or use the php_snmp.dll?
What shall I do, to make the Verbose Query success?

P.S. I use the Windows OS.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: verbose query failing, but snmpwalk succeeds

Post by gandalf »

Did you apply the long timeout setting to that host, then? Remember, that 5 secs are written as 5000 ms for cacti.
And you may want to reduce max oid to 1 to prevent snmpbulkwalk to be used
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests