Multiple event handler for single service
Posted: Mon Mar 10, 2014 6:31 am
Hi,
We have a use case were we need to hook multiple event handlers to services in Nagios. For example, when a http service goes down, we may have an event handler to restart the service another one to notify this change to some other external system. So in general, we need to configure multiple event handlers for a single service. We are thinking of writing a master event handler which will be called by Nagios and internally this master event handler can decide what are the other event handlers needs to be called and call all of them one by one. We are having some issue in passing right arguments to event handlers, because different event handler may expect different set of arguments but all of them may not available to master event handler. Is it the right way to solve this problem or is there any other standard way to solve this.
Thanks in advance for the help
Regards,
Ramesh
We have a use case were we need to hook multiple event handlers to services in Nagios. For example, when a http service goes down, we may have an event handler to restart the service another one to notify this change to some other external system. So in general, we need to configure multiple event handlers for a single service. We are thinking of writing a master event handler which will be called by Nagios and internally this master event handler can decide what are the other event handlers needs to be called and call all of them one by one. We are having some issue in passing right arguments to event handlers, because different event handler may expect different set of arguments but all of them may not available to master event handler. Is it the right way to solve this problem or is there any other standard way to solve this.
Thanks in advance for the help
Regards,
Ramesh