utilizing pager/email in single contact

Lawrence, Lynne Lynne.G.Lawrence at uscg.mil
Wed May 24 22:19:17 CEST 2006


 

>-----Original Message-----
>From: nagios-users-admin at lists.sourceforge.net 
>[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of 
>Andrew Cruse
>Sent: Wednesday, May 24, 2006 2:53 PM
>To: nagios-users at lists.sourceforge.net
>Subject: RE: [Nagios-users] utilizing pager/email in single contact
>
>Andrew Cruse wrote:
>> nagios-users-admin at lists.sourceforge.net wrote:
>>> On 5/24/06, Andrew Cruse <andrew at profitability.net> wrote:
>>>> nagios-users-admin at lists.sourceforge.net wrote:
>>>>> Good afternoon,
>>>>> 
>>>>> I am sure I am not seeing the big picture here but I want 
>to have a
>>>>> single contact and have nagios use the pager for critical/ok and
>>>>> email for warning/ok messages.  It doesnt appear that the default
>>>>> notification commands allow for this.
>>>>> 
>>>>> Do I need to write a new notification command that determines if
>>>>> the alert is warning, critical, etc. and use the appropriate macro
>>>>> at that point?
>>>> 
>>>> You *could* write a new notification command.  That would be the
>>>> most elegant solution, probably, but a quick-and-dirty "use what's
>>>> there" solution would be to create two users -- one for email, one
>>>> for paging.
>>> Andy,
>>> 
>>> I neglected to say that I do that today, use 2 contacts, one for
>>> warning and one for critical.  That just seems to defeat the purpose
>>> of having both pager and email in one contact.
>>> 
>> 
>> In that case, unless someone else has a nifty idea I think
>> you're pretty much stuck with hacking together your own
>> notification script(s).  Doesn't seem like it would too
>> challenging to parse the content of the alert and determine
>> whether it's critical or warning and send a notification
>> depending on which it is.  If you do go ahead and do it,
>> please consider adding it www.nagiosexchange.org.  I'm sure
>> others would find it useful as well.
>
>I hate responding to myself, but one extra bit:
>
>It seems like it would be (more) difficult to decide what to do with
>recovery notifications.  Since Nagios treats recoveries the same,
>regardless of whether it is recovering from CRITICAL or recovering from
>WARNING, you'd wind up getting some recovery pages from WARNING events
>and vice versa on your emails.  The only way to get around that as far
>as I can imagine would be to have your notification script store the X
>most recent events so it can try to pair recoveries with the
>corresponding WARNING or CRITICAL notifications and only send the
>recovery notices through the appropriate method.
>
>But then that seems like something that would be better 
>handled directly
>in Nagios.  Anyone else think it would make sense to have 3 recovery
>types?
>
>r (same as it is now)
>rw (recovery from WARNING state)
>rc (recovery from CRITICAL state)

Or maybe make the previous hard state available as a variable that could
be passed to the notification script ...

>
>Andrew
>
>
>
>-------------------------------------------------------
>All the advantages of Linux Managed Hosting--Without the Cost and Risk!
>Fully trained technicians. The highest number of Red Hat 
>certifications in
>the hosting industry. Fanatical Support. Click to learn more
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&d
>at=121642
>_______________________________________________
>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
>


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&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