What did we recover from?
Chet Luther
chet.luther at gmail.com
Sun Feb 5 01:08:28 CET 2006
On 2/3/06, Andrew Laden <Andrew.Laden at tudor.com> wrote:
>
> 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?
>
> 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.)
As did I.
> 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.
I think the easiest solution is just to keep state on your notifications.
> I was thinking of playing with the $LASTSERVICE*$ macros, but cant figure
> out an algorithm that will work for both the
> OK -> CRIT -> OK, case and the OK -> WARN -> CRIT -> WARN -> OK case, vs the
> OK -> WARN -> OK case.
>
> Any ideas?
You can find my notification plugin that handles issues like this at
http://chet.crashed.net/notify.pl.txt. You can probably find some
ideas that you can use in there.
--
Chet Luther
chet.luther at gmail.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list