<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.34">
<TITLE>What did we recover from?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Is there some macro that we can use when a recovery alert was sent out to indicate what we recovered from? I.E. Warning, or Critical?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I am writing my own notification module, since the notification and escalation rules that nagios provides don't meet my needs. (I need much finer control of who gets noitified for what.)</FONT></P>

<P><FONT SIZE=2 FACE="Arial">The problem I am having is how to avoid sending recovery pages to people who didn't get the problem pages. I want to be stateless, so I can't track who was sent the page. The idea is to determine what level the recover is for (ie, critical or warn), see if the user would have gotten a page for that service/problem level, and if so, send the recovery page. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">I was thinking of playing with the $LASTSERVICE*$ macros, but cant figure out an algorithm that will work for both the </FONT>
<BR><FONT SIZE=2 FACE="Arial">OK -> CRIT -> OK, case and the OK -> WARN -> CRIT -> WARN -> OK case, vs the OK -> WARN -> OK case.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Any ideas?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">-Andrew</FONT>
</P>

</BODY>
</HTML>