[Nagios-devel] Automatically acknowledge services of an acknowledged host

Matthieu Kermagoret mkermagoret at merethis.com
Tue Dec 14 07:16:36 UTC 2010


Hi list,

Sorry for my late answer but thanks to all of you who replied. It'll
try to explain our issue a bit better.

2010/12/9 Mathieu Gagné <mgagne at iweb.com>:
> On 12/8/10 5:08 PM, Julien Mathis wrote:
> That said, I still do not fully understand what you want to achieve or
> what you really need. We do agree that you are proposing a "solution" to
> a unknown/unclear problem. (to us)
>
> When the host is DOWN, service problems are silenced and NO
> notifications are sent, they are "muted". Why would you want to
> acknowledge a service problem if there isn't any notifications sent to
> contacts?
>
> Is there any particular issue you are encountering? What are the course
> of events and what is the expected behavior?
>

The main problem we try to fix with this patch is about notifications.
In fact you can configure services in such a way that notifications
are sent when their state is UNKNOWN (and that's what we do, as the
UNKNOWN state can be triggered by host problem, service dependency
issue, or an UNKNOWN return value from a plugin, (don't know if the
last is definitely wrong or not'0). So some of our customers want to
stop notifications of services associated to an host when they
acknowledge it.

> Are service notifications sent to contacts when the host is back UP? Do
> you want to acknowledge service problems for display purposes only?
>

No they're not. Andreas is right when he says that the patch if
"poorly thought out", because it's only a part of the solution we
wanted to create. The original way we wanted to do it is to keep a
state about the acknowledgement (whether automatically generated or
not) and remove it when the host is back up if it was automatically
generated. However this change would require to modify the host and
service structures, which is AFAIK forbidden for the 3.x branch. So we
went with the "try to get it into upstream" way. I agree that this
patch itself as it is only fill our customer's needs, but does the
whole solution seems more appealing ?

-- 
Matthieu KERMAGORET | Développeur

mkermagoret at merethis.com

MERETHIS est éditeur du logiciel Centreon.




More information about the Nagios-devel mailing list