check_uptime work around... with snmp

Subhendu Ghosh sghosh at sghosh.org
Wed Aug 20 19:35:04 CEST 2003


On Fri, 20 Jun 2003, Serveur-Faucon Surveillance wrote:

> Hi all,
> 
> Someone was looking up a way to be notified when his servers where rebooting. The suggestion at that time was to use the check_uptime check that is in the contrib directory (= means, does not work right now and need some modification).
> 
> A work around for this, using snmp, would be to use the check_snmp check (latest daily release of plugins, with the range option.
> 
> So the command would look like... (in checkcommands.cfg)
> BEGIN --------------------
> #snmp
> define command{
>    command_name snmp_sysuptime
>    command_line $USER1$/check_snmp -H $HOSTADDRESS$ -c 300:1 -C $ARG1$ -o .1.3.6.1.2.1.1.3.0
> }
> ----------------- END
> 
> -o .1.3.6.1.2.1.1.3.0 = This is the OID uptime in seconds (I think) for everything that does SNMP
> -c 300:1 = Assuming that theses are seconds, this option would let me know if it is between 300 seconds and 1 second.
> 
> You would have to do some tests to actually see if it is seconds.
> 
> Happy hunting. :)
> 
> Alex
> 
The unit is hundredths of a second ...


-- 




-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list