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

Reply via email to