Monitor uptime inaccurate

hello
most of the device i am monitoring are coming back with inaccurate uptime’s. some have only been up for a few days and nagios reports them being up for several days
bellow is a copy of my command

Monitor uptime via SNMP

define service{
use generic-service ; Inherit values from a template
host_name BW-AP
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}

try using the correct command defintions using arguments.
Not sure this will solve your problem, but for sure it will make it easier in the future.

If you run the check_snmp plugin from command line will it report the correct values?
what’s your check_snmp command definition?

well i am really not sure how to do that stuff you just suggested. i am very new to this snmp stuff. to be honest i got about 200 device being monitored just off the sample configs this uptime one is the only one that has me scratching my head

[quote=“luca”]try using the correct command defintions using arguments.
Not sure this will solve your problem, but for sure it will make it easier in the future.

If you run the check_snmp plugin from command line will it report the correct values?
what’s your check_snmp command definition?[/quote]

if you have 200 devices it’s time to start studying :slight_smile:

in the nagios/libexec directory run
check_snmp --help
or try your systems snmpget to fetch the data from your remote systems.