snmp help!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

snmp help!

Post by jbennett »

As I've previously stated, I am picking up this Nagios server from an individual who is no longer with the company. As such, I am new to SNMP and am having trouble getting my head around it.

Something changed and now I have one service check (disk space) that is sending back a state of 'Unknown'. (Usage: check_snmp_storage [-v] -H host -C snmp_community [-2])

I'm not even sure where to start on this one. Any help would be greatly appreciated.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: snmp help!

Post by agriffin »

Go to Configure->Core Config Manager->Services and navigate to the problematic service. Then post what you see under 'Command View' or any of the '$ARGN$' fields, minus any sensitive information. This will help us get a better picture of what might be going wrong.

Also, do you see that usage text right in the service status?
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: snmp help!

Post by jbennett »

Command View:

Code: Select all

$USER1$/check_snmp_storage_wizard.pl -H $HOSTADDRESS$ $ARG1$
$ARG1$:

Code: Select all

 -C roadway --v2c -m 
I see the following under status information:

Code: Select all

Usage: check_snmp_storage [-v] -H <host> -C <snmp_community> [-2]
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: snmp help!

Post by jbennett »

I may have just found the issue. We have the same service defined 3 different times for different areas that we monitor.

I started to notice that I was only getting notifications in regards to one of these. When I went in and checked the others for the $ARG1$: field, I found the following:

Code: Select all

 -C roadway --v2c -m "^/$" -w 80 -c 95 -f
compared to the service that was having problems:

Code: Select all

 -C roadway --v2c -m
I've copied over the rest of the argument and have applied the configuration. It seems that it hasn't made much of a difference, but I am going to kill the process and start it back up again to see if it changes anything.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: snmp help!

Post by scottwilkerson »

This was likely the problem because it didn't have warning and critical levels to know when to notify...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: snmp help!

Post by jbennett »

Just got a recovery alert. I think I finally have everything sorted out...*runs to knock on wood*
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: snmp help!

Post by agriffin »

Glad you got things sorted out!
Locked