[NAGIOS-DEVEL] trigger a plugin on acknowledge

Valdinger, Stephen (DOV, MSX) svalding at doverchem.com
Mon Jul 7 21:38:42 CEST 2008


This is the exact situation an eventhandler is meant for. Why would you want to go creating another method when the logic is already laid out for you? At best you could have  the plugin spit out the name of the flag file to be removed so your eventhandler could do an rm -f filename or however you want to go about it.

 

Stephen Valdinger

MIS Helpdesk Coordinator

330.365.3622 -O

740.491.0958 - C

svalding at doverchem.com

 

  _____  

From: Xavier LEVRAT [mailto:xlevrat at yahoo.fr] 
Sent: Monday, July 07, 2008 11:11 AM
To: nagios-devel at lists.sourceforge.net
Subject: [Nagios-devel] [NAGIOS-DEVEL] trigger a plugin on acknowledge

 

Hi List ! 

We'd like to trigger a plugin when we acknowledge a service problem. We don't want to use a eventhandler because this operation has to be manual. (ex : When a flag file is present in a directory, nagios raises a service problem. Acknowledging this problem will trigger a plugin that do a rm on the file.)

Is it possible to do it with the curent NAGIOS logic ? 

I 've started writing a patch to add a 'acknowledge_handler' directive in the service definition, but I don't like the idea of using a custom NAGIOS on a production sytem ...

Thx

Xavier



 

  _____  

Envoyé avec Yahoo! Mail <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52423/*http:/fr.docs.yahoo.com/mail/overview/index.html> .
Une boite mail plus intelligente. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080707/01708677/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3605 bytes
Desc: image001.jpg
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080707/01708677/attachment.jpg>
-------------- next part --------------
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list