issue with LASTSTATECHANGE macro

Hendrik Bäcker andurin at process-zero.de
Wed Nov 19 15:12:35 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Bob schrieb:
> I'm using nagios 1.2 and did not find anything in the change log
> for 1.x, 2.x or 3.x indicating any fixes for this macro. The
> problem I'm having is that I have an event handler that is being
> passed this macro and the TIMET macro. The event handler is defined
> as:
I guess since Nagios 1.x is not available for download anymore it
might be unsupported, but...
>
> define command{ command_name    psynch_maint command_line
> /usr/local/nagios/libexec/eventhandlers/psynch_maint $HOSTNAME$
> $SERVICEDESC$ $SERVICESTATE$ $HOSTSTATE$ "$DATETIME$" $STATETYPE$
> $SERVICEATTEMPT$ $LASTSTATECHANGE$ $TIMET$ '$OUTPUT$' }
>
> Every time this handler fires it records the values of each of the
> command-line arguments into a log file. The issue appears that the
> value of $LASTSTATECHANGE$ is always the same as the $TIMET$ macro.
>
it's the nature of eventhandler to be triggerd by state changes. I'm
not wondering if the timestamps are the same ;)

Hendrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
 
iD8DBQFJJB7TlI0PwfxLQjkRAnbkAJ9+M7jSwrodG0N6kdjBsPipz0mKggCfRL1t
PGemv7WbylbQ6oz+YNubdQA=
=cB8d
-----END PGP SIGNATURE-----


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




More information about the Developers mailing list