Re: [Nagios-users] $LASTHOSTUP$ macro

2008-08-19 Thread James
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 v

Re: [Nagios-users] $LASTHOSTUP$ macro

2008-08-18 Thread Marc Powell
On Aug 18, 2008, at 4:01 PM, 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 That is in seconds. Seconds since Jan 1, 1970. :) > If you're set o

Re: [Nagios-users] $LASTHOSTUP$ macro

2008-08-18 Thread Sean McAfee
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: [121909317

[Nagios-users] $LASTHOSTUP$ macro

2008-08-18 Thread James
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 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge