Page 1 of 1

No performance data/check_snmp_*

Posted: Fri Jul 07, 2017 4:03 am
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

Re: No performance data/check_snmp_*

Posted: Fri Jul 07, 2017 10:37 am
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

Re: No performance data/check_snmp_*

Posted: Fri Jul 07, 2017 11:18 am
by scottwilkerson
I believe mcapra, is correct, your command will require the -f flag

Re: No performance data/check_snmp_*

Posted: Mon Jul 10, 2017 2:44 am
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

Re: No performance data/check_snmp_*

Posted: Mon Jul 10, 2017 9:33 am
by tmcdonald
No worries. Did you have any further (related) questions or are we okay to close this thread?

Re: No performance data/check_snmp_*

Posted: Tue Jul 11, 2017 3:51 am
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

Re: No performance data/check_snmp_*

Posted: Tue Jul 11, 2017 8:50 am
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

Re: No performance data/check_snmp_*

Posted: Tue Jul 11, 2017 1:18 pm
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)

Re: No performance data/check_snmp_*

Posted: Mon Jul 17, 2017 2:11 am
by Hauru
Ok thank you for your answers, I will try to figure it out!

I think we can close this subject.

Re: No performance data/check_snmp_*

Posted: Mon Jul 17, 2017 11:48 am
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!