Windows Server with Icinga Agent

Hello everyone,

I’m trying to monitor a Windows server. On this I have installed the Icinga Agent and NSClient++.

On the Icinga Master I made the configurations, but with checks like “nscp-local-disk” I get the following error message:

execvpe (.scp. exe) failed: No such file or directory

The configurations in the master are as follows

/etc/icinga2/zones.conf

object Endpoint "centos" {
}

object Zone "master" {
	endpoints = [ "centos" ]
}

object Zone "global-templates" {
	global = true
}

object Zone "director-global" {
	global = true
}

The host is defined in

/etc/icinga2/conf.d/hosts/Windows.conf

object Endpoint "Windows" {
	host = "1.1.1.1"
}

object Zone "Windows" {
	endpoints = [ "Windows" ]
	parent = "master"
}

object Host "Windows" {
	import "generic-host"
	display_name = "Windows"
	address = "1.1.1.1"
	vars.os = "Windows"
}

And my service configuration with a screenshots from Icingaweb2

/etc/icinga2/conf.d/services.conf

apply Service "cluster zone" {
  import "generic-service"
  check_command = "cluster-zone"
  assign where host.vars.os == "Windows"
  ignore where host.vars.noagent
  ignore where host.name == NodeName
}

apply Service "nscp-local-cpu" {
  check_command = "nscp-local-cpu"
  vars.nscp_cpu_showall = true
  assign where host.vars.os == "Windows"
  ignore where host.vars.noagent
  ignore where host.name == NodeName
}

Icingaweb2

I hope you can help me with my problem.

this is due to the location it is executed at.

You should see under Check execution the Check Source, which will most likely not be your windows server, but your icinga server.