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.
snmp help!
Re: snmp help!
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?
Also, do you see that usage text right in the service status?
Re: snmp help!
Command View:
$ARG1$:
I see the following under status information:
Code: Select all
$USER1$/check_snmp_storage_wizard.pl -H $HOSTADDRESS$ $ARG1$Code: Select all
-C roadway --v2c -m Code: Select all
Usage: check_snmp_storage [-v] -H <host> -C <snmp_community> [-2]Re: snmp help!
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:
compared to the service that was having problems:
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.
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 -fCode: Select all
-C roadway --v2c -m-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: snmp help!
This was likely the problem because it didn't have warning and critical levels to know when to notify...
Re: snmp help!
Just got a recovery alert. I think I finally have everything sorted out...*runs to knock on wood*
Re: snmp help!
Glad you got things sorted out!