No performance data/check_snmp_*

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Hauru
Posts: 14
Joined: Fri Jul 07, 2017 3:48 am

No performance data/check_snmp_*

Post by Hauru »

Hi everyone,

I'm using Nagios to supervise my network by SNMP. I'm using these plugins : http://nagios.manubulon.com
Especially check_snmp_storage and check_snmp_process.pl that I am using for my tests.
I am also using PNP4Nagios to have some graphs. Unfortunately, this is not working as expected.

When I click on the graph icon for a host (not for localhost), I have this error :
Please check the documentation for information about the following error.
XML file "/usr/local/pnp4nagios/var/perfdata/HOST/CPU_Load.xml" not found. <a href="http://docs.pnp4nagios.org/faq/6">Read FAQ online</a>
First, I can not access the page "http://docs.pnp4nagios.org/faq/6"

The scripts are working because I have coherent results but I do not have performance data, and I think that's why graphs are not working. The performance data field is empty, for both of my services :

Image

When I run :

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage.pl -H @IP -C public -w 85 -c 95
I have this output :

Code: Select all

Argument "v6.0.1" isn't numeric in numeric lt (<) at /usr/local/nagios/libexec/check_snmp_storage.pl line 420.
Argument "v6.0.1" isn't numeric in numeric lt (<) at /usr/local/nagios/libexec/check_snmp_storage.pl line 494.
C:\ Label:  Serial Number xxxxx: 59%used(42372MB/71328MB) (<80%) : OK
I don't know what is the problem, it is cleary said on http://nagios.manubulon.com/ that these scripts have performance output.

I hope I am clear enough !
Thank you
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: No performance data/check_snmp_*

Post by mcapra »

Does running the plugin with the -f flag produce performance data?

Code: Select all

-f, --perfparse
   Perfparse compatible output
Can you share the output of the following command, replaced with your specific credentials/address:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage.pl -H @IP -C public -w 85 -c 95 -f -v
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No performance data/check_snmp_*

Post by scottwilkerson »

I believe mcapra, is correct, your command will require the -f flag
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Hauru
Posts: 14
Joined: Fri Jul 07, 2017 3:48 am

Re: No performance data/check_snmp_*

Post by Hauru »

Yes, it does. Now I have my graphs.
I am a bit ashamed that the answer was so simple. :oops:
Thanks a lot
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: No performance data/check_snmp_*

Post by tmcdonald »

No worries. Did you have any further (related) questions or are we okay to close this thread?
Former Nagios employee
Hauru
Posts: 14
Joined: Fri Jul 07, 2017 3:48 am

Re: No performance data/check_snmp_*

Post by Hauru »

I am not really sure it is the good place to ask, but in my /usr/local/nagios/libexec I do not have check_snmp and I do not find the script anywhere. It should be installed with nagios, isn't it?
If not, where may I find it? I would like to find the script and not have to download a plugin like on this page : https://exchange.nagios.org/directory/P ... mp/details
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: No performance data/check_snmp_*

Post by mcapra »

check_snmp is part of the nagios-plugins package, which is maintained under this github project:
https://github.com/nagios-plugins/nagios-plugins

That github page has instructions for building/installing the plugins yourself, otherwise this KB article has steps that are more catered to individual Linux flavors:
https://support.nagios.com/kb/article.php?id=569
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: No performance data/check_snmp_*

Post by dwhitfield »

mcapra wrote:check_snmp is part of the nagios-plugins package
For clarity, this is *not* installed as part of Nagios Core (although it's possible a Linux/BSD/whatever distro could set it as a dependency)
Hauru
Posts: 14
Joined: Fri Jul 07, 2017 3:48 am

Re: No performance data/check_snmp_*

Post by Hauru »

Ok thank you for your answers, I will try to figure it out!

I think we can close this subject.
bolson

Re: No performance data/check_snmp_*

Post by bolson »

"Great!  I'll be closing this thread now, but feel free to open another if you need anything in the future!" Thank you!
Locked