<br><br><div><span class="gmail_quote">On 10/28/07, <b class="gmail_sendername">Andreas Ericsson</b> <<a href="mailto:ae@op5.se">ae@op5.se</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Haydn Solomon wrote:<br>> Hello list,<br>><br>> I was thinking of running different event handler scripts based on the state<br>> transition in nagios ie. for example run a different script when state<br>> changes from critical to OK as opposed to WARNING to OK. I was therefore
<br>> looking for any macro that would give me the laststate of a service><br><br>$LASTSERVICESTATE$</blockquote><div><br><br>Thanks for your reply Andreas but I ran a test and that macro doesn't
exist. I double checked the documentation and there are only macros for
timestamps of last service states. What I would really like to use is
the last service state either as string or integer id is fine. </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> but<br>> could not find any in the list.  I checked in both the 
2.x and<br>> 3.xdocumentation but didn't see anything. Did I miss it?<br><br>Yup.<br><br>--<br>Andreas Ericsson                   <a href="mailto:andreas.ericsson@op5.se">andreas.ericsson@op5.se</a><br>OP5 AB                             
<a href="http://www.op5.se">www.op5.se</a><br>Tel: +46 8-230225                  Fax: +46 8-230231<br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Splunk Inc.
<br>Still grepping through log files to find problems?  Stop.<br>Now Search log events and configuration files using AJAX and a browser.<br>Download your FREE copy of Splunk now >> <a href="http://get.splunk.com/">http://get.splunk.com/
</a><br>_______________________________________________<br>Nagios-devel mailing list<br><a href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel">
https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br></blockquote></div><br>