$LASTHOSTUP$ macro

James bjlockie at lockie.ca
Wed Aug 20 00:17:30 CEST 2008


Sean McAfee wrote:
> James wrote:
>> I am using the $LASTHOSTUP$ macro but it displays a timestamp in time_t
>> format.
>> I need to convert it to seconds.
>>
>> Time since last UP: 1218979837
>>
> The $LAST[HOST|SERVICE]*$ macros all use time_t they're the basis of 
> inter-process communication via the command_file:

> Otherwise, I'd look into using $HOSTDURATIONSEC$ instead, which is the 
> seconds since the last state change.

I'll use this macro to avoid command line fu.

Thanks to everyone.

-------------------------------------------------------------------------
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