Windows 7 Monitoring

I have icinga2 running on linux as Master with one windows client… I would like to change the windows client LOAD… load_win_warn and load_win_crit. I cant seem to find out where to add it in my config.

In “C:\ProgramData\icinga2\etc\icinga2\icinga2.conf” i can see conf.d is comment out.

if i add this in my config i get this error:

Plugin Output

execvpe(/usr/lib/nagios/plugins/check_load.exe) failed: No such file or directory

object Service "Load" {
  check_command = "load-windows"
  vars.load_win_warn = "50%"
  vars.load_win_crit = "75%"
  //assign where host.vars.os == "Windows"
  host_name = "test.server.com"
}

Can someone point me in the right direction.

Thanks

You need to add

command_endpoint = host.name

otherwise the check is executed on the master.

1 Like

doesn’t work

critical/config: Error: Validation failed for object ‘!Load’ of type ‘Service’; Attribute ‘host_name’: Attribute must not be empty.

Is that a typo between host.name and host_name?

Antony.

Could you please provide more output and format it this way.