Dear Folks, Nagios 2.3 defines these host macros
$LASTHOSTDOWN$ 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 a DOWN state. $LASTHOSTUNREACHABLE$ 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 UNREACHABLE state. I would like a global host event handler to insert a row in a table to record outages. One possibility of doing so is have the event handler only act on a HOST_UP event and use the macros above to record the down time ($LAST_HOST_DOWN) and the up time (from either the time the event handler runs or $LASTHOSTUP$). Unfortunately, with Nagios 2.3, $LASTHOSTDOWN appears to be the time_t value of the last event of any host going down and not the time_t of when _this_ host went down. What is the real meaning of $LASTHOSTDOWN$ ? Is it the per host time_t of the time that the host was last detected as being down ? Does anyone have any other suggestions about capturing the times of a host going down and coming up by an event handler ? Thank you, Yours sincerely. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list [email protected] 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
