check_snmp uptime returns warning


#1

Hi All,

I’ve been using the standard check_snmp uptime check command, It worked great for about a week, now all of the hosts it checks returns a warning whether it’s been up for a couple of minutes or 100’s of days.

This is nagios 2.7 on FC6

Here’s my check command def:
define command{
command_name check_uptime
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P $ARG2$ -m $ARG3$ -o hrSystemUptime.0
}

Here’s my service def:
check_command check_uptime!qa!2c!ALL

and lastly when run from the cmd line it also returns warning now.
./check_snmp -H qa1 -C qa -P 2c -o hrSystemUptime.0 -t 11
SNMP WARNING - Timeticks: (17567027) 2 days, 0:47:50.27 | HOST-RESOURCES-MIB::hrSystemUptime.0=Timeticks: (17567027) 2 days, 0:47:50.27

I found a thread from years ago that had this same issue, and the DEV’s resolved it cannot reproduce.
sourceforge.net/mailarchive/for … nth=200301
sourceforge.net/tracker/?func=d … p_id=29880

Is my setup somehow misconfigured?


#2

hrrrmmm. After 3 days, it went back to Green (No warning) on it’s own. I wonder it went to warning because I was stopping restarting nagios quite a bit as I was adding check, or if it’s some bug in the check_snmp itself. I’ll see if it happens again.