SNMP not returning correct values!

We have enabled SNMP in a Windows 2003 Server

did snmpwalk -C public -v 2c 192.168.3.100
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (612609015) 72 days, 22:51:32.50

put the value hrSystemUptime.0 as shown below in windows host file as below.

Create a service for monitoring SNMP

define service{
use generic-service
hostgroup_name windows-servers
service_description 02. Server Uptime
check_command check_snmp!-C public -v 2c -o hrSystemUptime.0
}

BUT, Nagios shows status OK and returns ** /usr/bin/snmpget -t 1 -r 5 -m ‘’ -v 1 [authpriv] 192.168.3.100:161 .1.3.6.1.2.1.1.3.0 **

Please help!!
anth

Nagios® 3.0.6 on Fully Automated Nagios 2.0

try check_snmp from command line until you get the right return values.

[quote=“it.toonz”]We have enabled SNMP in a Windows 2003 Server

did snmpwalk -C public -v 2c 192.168.3.100
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (612609015) 72 days, 22:51:32.50

put the value hrSystemUptime.0 as shown below in windows host file as below.

Create a service for monitoring SNMP

define service{
use generic-service
hostgroup_name windows-servers
service_description 02. Server Uptime
check_command check_snmp!-C public -v 2c -o hrSystemUptime.0
}

BUT, Nagios shows status OK and returns ** /usr/bin/snmpget -t 1 -r 5 -m ‘’ -v 1 [authpriv] 192.168.3.100:161 .1.3.6.1.2.1.1.3.0 **

Please help!!
anth

Nagios® 3.0.6 on Fully Automated Nagios 2.0[/quote]

I am using following line check the uptime:
check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.2.1.1.3.0 --delimiter=’)’ -l “Uptime is”