Heya,
i just started to use the check “Invoke-IcingaCheckTimeSync” and my brain is smoking
I threw the ifw basked into the icinga2 director (big <3 for this btw!) and attached a check against the command with critical, warning arguments and ofc a ntp server.
template Service "NTP" {
check_command = "Invoke-IcingaCheckTimeSync"
check_interval = 1h
command_endpoint = host_name
vars.IcingaCheckTimeSync_Int32_Verbosity = "2"
vars.IcingaCheckTimeSync_Object_Critical = "5s"
vars.IcingaCheckTimeSync_Object_Warning = "2s"
vars.IcingaCheckTimeSync_String_Server = "de.pool.ntp.org"
}
So far so easy, but i messed with the argument ranges.
[CRITICAL] Time Package [CRITICAL] Time Offset (-10ms)
\_
[OK] Sync Status: NoLeapWarning \_
[CRITICAL] Time Offset: -10ms is greater than threshold 5s \_
[OK] Time Service: Running
I read the arg-table at Icinga Plugins - Icinga for Windows for about 10 times but i cant figure out how to get the Warn/Crit parameters right.
Could you help me please?
Regards,
Christian