Get event when notifications enabled/disabled

Roman Fiedler roman.fiedler at telbiomed.at
Thu Feb 19 11:20:48 CET 2009


Robert Wamala wrote:
 > can you please gime steps
 > how to do this!!

I did not go into the code but I assume that one could try to
* Try to split the external command pipe and read it. I guess CGI sends 
commands this way, perhaps also the ones to disable the notifications.
* Use the nagios logging to see if disable/enable triggers some specific 
log lines and parse them
* Try to make diffs of the nagios retention data, perhaps one could read 
disable/enable changes from here
* Modify the cgi binaries to add custom event handlers for 
disable/enable detection
* Ask the nagios users list, perhaps there is support for this already 
in the cgi binaries but I do not know about it

Regards,
Roman

 > On Thu, 2009-02-19 at 10:53 +0100, Roman Fiedler wrote:
 >> Hi List,
 >>
 >> Is there a simple way to detect when notifications for host/service are
 >> enabled/disabled via web interface? I try to make nagios send a mail
 >> when someone disables notifications for one service.
 >>
 >> Thanks, Roman

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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