I don't think we should be doing without this. The hook adds 6 new NRPEs that are otherwise not included.
I found the problem was to do the mixing of args and kwargs in the add_check/remove_check commands. Rather than fixing the issue in the lib though, here's a simple fix that gets the hook working as intended (just changing inputs from a tuple to a dict):
I don't think we should be doing without this. The hook adds 6 new NRPEs that are otherwise not included.
I found the problem was to do the mixing of args and kwargs in the add_check/ remove_ check commands. Rather than fixing the issue in the lib though, here's a simple fix that gets the hook working as intended (just changing inputs from a tuple to a dict):
ring_check = dict(
shortname= 'corosync_ rings',
descriptio n='Check Corosync rings {}'.format( hostname) ,
check_ cmd='check_ corosync_ rings', ases(get_ distrib_ codename( )) < 'eoan':
nrpe_ setup.add_ check(* *ring_check)
nrpe_ setup.remove_ check(* *ring_check)
)
if CompareHostRele
else: