No performance data/check_snmp_*

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

No performance data/check_snmp_*

Postby Hauru » Fri Jul 07, 2017 4:03 am

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
Hauru
 
Posts: 14
Joined: Fri Jul 07, 2017 3:48 am

Re: No performance data/check_snmp_*

Postby mcapra » Fri Jul 07, 2017 10:37 am

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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 2893
Joined: Thu May 05, 2016 3:54 pm

Re: No performance data/check_snmp_*

Postby scottwilkerson » Fri Jul 07, 2017 11:18 am

I believe mcapra, is correct, your command will require the -f flag
User avatar
scottwilkerson
CTO
 
Posts: 7911
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: No performance data/check_snmp_*

Postby Hauru » Mon Jul 10, 2017 2:44 am

Yes, it does. Now I have my graphs.
I am a bit ashamed that the answer was so simple. :oops:
Thanks a lot
Hauru
 
Posts: 14
Joined: Fri Jul 07, 2017 3:48 am

Re: No performance data/check_snmp_*

Postby tmcdonald » Mon Jul 10, 2017 9:33 am

No worries. Did you have any further (related) questions or are we okay to close this thread?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Support Lead / Operations Engineer
 
Posts: 8726
Joined: Mon Sep 23, 2013 8:40 am

Re: No performance data/check_snmp_*

Postby Hauru » Tue Jul 11, 2017 3:51 am

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
Hauru
 
Posts: 14
Joined: Fri Jul 07, 2017 3:48 am

Re: No performance data/check_snmp_*

Postby mcapra » Tue Jul 11, 2017 8:50 am

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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 2893
Joined: Thu May 05, 2016 3:54 pm

Re: No performance data/check_snmp_*

Postby dwhitfield » Tue Jul 11, 2017 1:18 pm

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)
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 3963
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: No performance data/check_snmp_*

Postby Hauru » Mon Jul 17, 2017 2:11 am

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

I think we can close this subject.
Hauru
 
Posts: 14
Joined: Fri Jul 07, 2017 3:48 am

Re: No performance data/check_snmp_*

Postby bolson » Mon Jul 17, 2017 11:48 am

"Great!  I'll be closing this thread now, but feel free to open another if you need anything in the future!" Thank you!
Brian Olson
Nagios Support Team
---
Nagios Enterprises, LLC
Email: customersupport@nagios.com
Web: https://www.nagios.com/
User avatar
bolson
Support Tech
 
Posts: 611
Joined: Tue Jul 11, 2017 10:34 am


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 6 guests