Hello,
I have noted a regression in Thruk after upgrading to 1.3x.
Acknowledgements seem to get lost on state changes (WARNING->CRITICAL,
DOWN->UNREACHABLE, ...).
Currently I'm using the Debian Squeeze package for 1.32 from
thruk.org.
On submitting a host/svc acknowledgment via Thruk, the external command
sent to Nagios is:
[1339395054] EXTERNAL COMMAND:
ACKNOWLEDGE_SVC_PROBLEM;NE_RTR;NET_PING;1;0;1;thrukadmin;ok
Note that next to the service name NET_PING, the sticky option is set to
1. According to the nagios docs:
> If the "sticky" option is set to one (1), the acknowledgement will
> remain until
> the service returns to an OK state. Otherwise the acknowledgement
> will automatically
> be removed when the service changes state.
But in fact 1 seems not to be working.
If the service/host state changes the acknowledgement is lost.
Even the original Nagios CGI interface submits the external command by
setting the sticky option to 2. An example acknowledgment triggered from
the CGI interface:
[1339406866] EXTERNAL COMMAND:
ACKNOWLEDGE_SVC_PROBLEM;MMM_RTR;NET_VPN_GW;2;0;1;unki;route down
And I have verified that Thruk did this before too (an ack from
February with one of the 1.2x versions):
[1329134635] EXTERNAL COMMAND:
ACKNOWLEDGE_SVC_PROBLEM;VIE_WIN;WIN_SERVICES;2;1;0;thrukadmin;ok
The "2" is neverywhere documented in the Nagios documentation, but that
one seems to work.
For now I have adapted
cmd_typ_33.tt and
cmd_typ_34.tt and set line 16 to:
[% IF c.request.parameters.sticky_ack %][% sticky_ack = 2 %][% ELSE
%][% sticky_ack = 0 %][% END %]
By this the acknowledgements remain on state changes.
Best Regards,
Andreas