Hi
Has anyone been able to alter the check for esxi hosts in maintenance mode? I want the outcome of the check to be warn and not crit as placing a host in maintenance mode is a deliberate act
···
Sent from my iPhone
Hi
Has anyone been able to alter the check for esxi hosts in maintenance mode? I want the outcome of the check to be warn and not crit as placing a host in maintenance mode is a deliberate act
Sent from my iPhone
Hi Nadeem,
If you want to change the check outcome, you need to alter the check plugin “esx_vsphere_hostsystem”.
Copy this file from “~/share/check_mk/checks/” to “~/local/share/check_mk/checks/” and alter the section “Maintenance”.
Search the line “if target_state != current_state:” and change the next line “state = 2” to “state = 1”.
Keep in mind that this check is checking if the current state is the same as the defined target state. That means if you made
a rule that maintenance mode is ok then this check will stay OK if maintenance mode is on for such a host.
The error state is only outputted if the current state is not the target state.
Best regards
Andreas
Nadeem Hanif (T2 International) nadeem.hanif@take2games.com schrieb am Do., 3. Mai 2018 um 11:59 Uhr:
Hi
Has anyone been able to alter the check for esxi hosts in maintenance mode? I want the outcome of the check to be warn and not crit as placing a host in maintenance mode is a deliberate act
Sent from my iPhone
checkmk-en mailing list