Dear Folks, Initial indications from RC2 are that event handlers are called with the _correct_ values of the macros.
(This is a simulation: ie disable host/service checks and then submit a passive host check result to DOWN and UP a host) Tue Feb 12 07:47:01 2008 PASSIVE HOST CHECK: wtmrt200;1;Test of event handler/macros - bad val of LASTHOSTDOWN Tue Feb 12 07:47:01 2008 HOST ALERT: wtmrt200;DOWN;HARD;1;Test of event handler/macros - bad val of LASTHOSTDOWN Tue Feb 12 07:47:01 2008 GLOBAL HOST EVENT HANDLER: wtmrt200;(null);(null);(null);global_host_event_handler Tue Feb 12 07:49:43 2008 EXTERNAL COMMAND: DISABLE_HOST_SVC_CHECKS;wtmrt200 Tue Feb 12 07:49:43 2008 EXTERNAL COMMAND: DISABLE_HOST_CHECK;wtmrt200 Tue Feb 12 08:05:41 2008 EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;wtmrt200;0;Test of event handler/macros - bad val of LASTHOSTDOWN| Tue Feb 12 08:05:51 2008 PASSIVE HOST CHECK: wtmrt200;0;Test of event handler/macros - bad val of LASTHOSTDOWN Tue Feb 12 08:05:51 2008 HOST ALERT: wtmrt200;UP;HARD;1;Test of event handler/macros - bad val of LASTHOSTDOWN Tue Feb 12 08:05:51 2008 GLOBAL HOST EVENT HANDLER: wtmrt200;(null);(null);(null);global_host_event_handler And from the event handler log (that appends its args to a file) Tue Feb 12 07:47:01 2008 : wtmrt200 DOWN HARD 1202762761 1202762821 0 0. Tue Feb 12 08:05:51 2008 : wtmrt200 UP HARD 1202763951 1202762821 0 0. $ perl -le 'print join " ", map { scalar localtime($_) } qw(1202763951 1202762821)' Tue Feb 12 08:05:51 2008 Tue Feb 12 07:47:01 2008 $ First two time_t args in the call to the global event handler are $LASTHOSTUP$ and $LASTHOSTDOWN$. In this case these values of the arguments to the event handler correspond to the times the host went down and up, so on the basis of this test case, the values of the macros are being passed correctly to the event handler in Nagios 3.0 rc2. Bravo Nagios ! Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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