Version 1 (modified by jonmills, 8 years ago)

--

extra_nagios_conf += r"""
define command {
    command_name    cmk_reinventory
    command_line    $USER4$/local/bin/cmk_reinventory.sh $HOSTNAME$ $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
}
"""
extra_nagios_conf += r"""
define command {
    command_name    del_vm
    command_line    $USER4$/local/bin/del_vm.sh $HOSTNAME$ $HOSTSTATE$
}
"""


extra_service_conf["event_handler"] = [
	( "cmk_reinventory", ALL_HOSTS, ["Check_MK inventory"]),
]
extra_service_conf["event_handler_enabled"] = [
	( "1", ALL_HOSTS, ["Check_MK inventory"]),
]


extra_host_conf["event_handler"] = [
	( "del_vm", [ "vm" ], ALL_HOSTS ),
]	
extra_host_conf["event_handler_enabled"] = [
	( "1", [ "vm" ], ALL_HOSTS ),
]