Re: [Nagios-devel] issue with LASTSTATECHANGE macro

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] issue with LASTSTATECHANGE macro

Post by Guest »

-----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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked