Page 1 of 1

snmp help!

Posted: Mon Apr 23, 2012 10:00 am
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.

Re: snmp help!

Posted: Mon Apr 23, 2012 10:13 am
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?

Re: snmp help!

Posted: Mon Apr 23, 2012 11:09 am
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]

Re: snmp help!

Posted: Mon Apr 23, 2012 12:46 pm
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.

Re: snmp help!

Posted: Mon Apr 23, 2012 12:55 pm
by scottwilkerson
This was likely the problem because it didn't have warning and critical levels to know when to notify...

Re: snmp help!

Posted: Mon Apr 23, 2012 1:14 pm
by jbennett
Just got a recovery alert. I think I finally have everything sorted out...*runs to knock on wood*

Re: snmp help!

Posted: Mon Apr 23, 2012 4:10 pm
by agriffin
Glad you got things sorted out!