I think I found a bug in nag.py. When I add an acknowledgement for an entire host, the host check is acknowledged, even if it's not in a problem state.
Here's an example:
Seems to be related to the fact that obj as passed to handle_acknowledgement() for the host check contains:
{'checks_enabled': True,
'current_state_str': 'UP',
'event_handler_enabled': True,
'notifications_enabled': True,
'plugin_output': 'Host up',
'problem_has_been_acknowledged': False,
'services': ['disk'],
'type': 'host'}
But the problem check code only looks for 'OK' in obj['current_state_str'].
It should check for obj['current_state_str'] == 'UP' as well, yes? Or should we be checking against the numerical obj['current_state'] and check for numeric equality?
I can submit a patch for either.
Cheers,
--
Matt