Re: [Nagios-users] Acknowledgement after escalation, sends email to the escalation email?

2009-05-04 Thread Jim Avery
2009/5/4 Peter Doherty :
> Hi all,
>
> Okay, here's the problem.  I set up nagios to send emails to our RT

I believe you can control this mechanism best if you use an eventhandler.

http://nagios.sourceforge.net/docs/3_0/eventhandlers.html

and check what macros might be useful to you.

There's a detailed section about integrating Nagios with ticketing
systems in the book "Nagios 3 Enterprise Network Monitoring" ISBN
9781597492676

hth,

Jim

--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Acknowledgement after escalation, sends email to the escalation email?

2009-05-04 Thread Marc Powell

On May 4, 2009, at 1:54 PM, Peter Doherty wrote:

>
> On May 4, 2009, at 1:46 PM, Marc Powell wrote:
>>
>> You can't. You can, however, filter out the $NOTIFICATIONTYPE$ of
>> 'ACKNOWLEDGMENT' in the notification script you are calling for that
>> contact.
>
> Could you provide me with more information on this?

I presume that you are currently passing the $NOTIFACTIONTYPE$ macro  
to your notification script in it's command{} definition (see the  
command pointed to by that contact's service_notification_commands). I  
don't know if you've created a special notification script to handle  
the RT integration but that script should compare the value of the  
NOTIFICATIONTYPE parameter to the word 'ACKNOWLEDGMENT' and not send a  
notification to RT if it matches.

If that notification command is simply calling /bin/mail or /bin/ 
mailx, you'll need to create a wrapper script to perform the test  
above before calling /bin/mail or /bin/mailx.

That's about as specific as I can get.

--
Marc


--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Acknowledgement after escalation, sends email to the escalation email?

2009-05-04 Thread Peter Doherty

On May 4, 2009, at 1:46 PM, Marc Powell wrote:
>
> You can't. You can, however, filter out the $NOTIFICATIONTYPE$ of
> 'ACKNOWLEDGMENT' in the notification script you are calling for that
> contact.

Could you provide me with more information on this?

> And where did you tell nagios what notification types to send to the
> escalated contacts; that specifically restricted acknowledgements?
> Heh. It was told by the Nagios developer to send acknowledgment
> notifications to any contact that received a prior notification. This
> is very longstanding and generally desired behavior that currently
> trumps anything you think you've told nagios to do in that regard. ;)


I understand this.  I just viewed it as I told nagios to send one  
notification at a specific point, so I was surprised when it started  
sending acknowledgement emails.
So there isn't a specific option to disable acknowledgments?


escalation_options  c

^^ implies to me, that it will ONLY send escalation emails on critical  
status.  I think there should be a field similar to this that allows  
enabling/disabling the acknowledgement email.

Either way, whether you agree that this is something that should be  
easily user-configurable or not, can you tell me specifically how to  
stop this behavior?


Cheers,
--Peter



--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Acknowledgement after escalation, sends email to the escalation email?

2009-05-04 Thread Marc Powell

On May 4, 2009, at 11:57 AM, Peter Doherty wrote:

> Hi all,
>
> Okay, here's the problem.  I set up nagios to send emails to our RT
> system for certain problems.  For example:

[snip]

> This worked perfectly today, 'server' failed the 'Uptime' service
> check, and on the third notification, it went into the RT system.
> I logged into the Nagios web interface, and acknowledged the problem.
> Nagios then sent the acknowledgement email into RT, which opened a
> second ticket. That shouldn't happen.

For your use of the escalation... For other uses, that acknowledgment  
e-mail is quite desired...

> How do I disable Nagios from sending
> acknowledgement emails to the email that it escalated to.

You can't. You can, however, filter out the $NOTIFICATIONTYPE$ of  
'ACKNOWLEDGMENT' in the notification script you are calling for that  
contact.

> I know I  could have unchecked the box to send email, but I'd rather  
> for Nagios
> to ONLY do what I told it to do, which is to send out the escalation
> on the third notification, and not try and be smart and send
> acknowledgements to that address too.

And where did you tell nagios what notification types to send to the  
escalated contacts; that specifically restricted acknowledgements?  
Heh. It was told by the Nagios developer to send acknowledgment  
notifications to any contact that received a prior notification. This  
is very longstanding and generally desired behavior that currently  
trumps anything you think you've told nagios to do in that regard. ;)

--
Marc


--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Nagios-users mailing list
Nagios-users@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