uptime

Hari Sekhon hpsekhon at googlemail.com
Fri Jun 27 16:29:44 CEST 2008


Melanie Pfefer wrote:
> hi,
>
> can nagios detects for how long the machine was running?
>
> I am only interested in the unix machine (uptime command)
>
> thx
in your nrpe.cfg on the remote machine

command[check_uptime]=/path/to/uptime

then just check_nrpe -H remotemachine -c check_uptime

or equivalent if using nsca/ssh.

-h

-- 
Hari Sekhon


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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