elapsed down time

Marc Powell marc at ena.com
Fri Aug 15 22:18:49 CEST 2008


On Aug 15, 2008, at 12:43 PM, James wrote:

> On Fri, August 15, 2008 12:50 pm, Hugo van der Kooij wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>> Marc Powell wrote:
>> | On Aug 15, 2008, at 10:30 AM, James wrote:
>> |
>> |> I want to include the elapsed time from the host down alert to the
>> |> "Notification Type: RECOVERY".
>> |
>> | Isn't it awesome then that there are several macros available  
>> that'll
>> | help you accomplish that?
>>
>>
>> Would you care to elaborate?
>
> He's telling me to RTFM. :-)

Since you were a good sport, I think these will be the most useful to  
you, depending on which you're most interested in --

- This is a timestamp in time_t format (seconds since the UNIX epoch)  
indicating the time the host last changed state.
- This is a timestamp in time_t format (seconds since the UNIX epoch)  
indicating the time at which the host was last detected as being in an  
UP state.

Either would be suitable for calculations or use in the 'date' command.

--
Marc


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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