Hi
I have tried to configure NTLMv2 authentication using Icinga Director - sharing how it could be done:
1/ update check command wmi_plus.conf
template CheckCommand “wmi_plus_base” {
import “plugin-check-command”
command = [ PluginDir + “/check_wmi_plus.pl” ]
arguments += {
…
“–extrawmicarg” = {
value = “$wmi_plus_checkcpu_extrawmicarg$”
}
…
2/ Kick start
Icinga Director -> Icinga Infrastructure -> Kickstart -> Run Import
3/ Add data field
Icinga Director -> Data fields -> Add
Field name: wmi_plus_checkcpu_extrawmicarg
Caption: wmi_plus_checkcpu_extrawmicarg
Data type: String
4/ update Commands
Icinga Director -> Commands
wmi_plus_checkcpu, Fields, add wmi_plus_checkcpu_extrawmicarg, Optional
same for:
wmi_plus_checkdrivesize
wmi_plus_checkmem
5/ modify Services
Icinga Director -> Services -> Windows*
Windows CPU
Windows Disk
Windows Memory
wmi_plus_checkcpu_extrawmicarg: --option=client ntlmv2 auth=Yes
Note: NO quotes around client ntlmv2 auth string
instead of correct syntax when using in command line:
./check_wmi_plus.pl -H $HOST -u $USER -p $PASS -m checkcpu --extrawmicarg --option=“client ntlmv2 auth”=Yes
enjoy