Problem monitoring

Hi all,
I’m new to Icinga but through the manual I configured with success Icingaweb.
Now I want to add my machines to the monitoring but I have the following problem:
I tested 1 Windows VM, it appears on the webpage but I don’t see the monitoring of the resources.
Searching in the community I found how to add parameters but instead of showing me resources of the VM, it shows me the local resources (the ones of Icinga server).
So I tried add more details trying to solve this, but the problem persist.

For Example here is the configuration in service.conf for hard disk:

apply Service for (disk => config in host.vars.local_disks) {
import “generic-service”
check_command = “disk-windows”
command_endpoint = host.vars.client_endpoint
assign where host.vars.agent_endpoint
vars.disk_win_show_used = “true”

vars += config

assign where host.vars.os == “Windows”

vars.disk_wfree = “10%”
vars.disk_cfree = “5%”
}

The result on Icingaweb is: execvpe(/usr/lib64/nagios/plugins/check_disk.exe) failed: No such file or directory

Moreover I want to see also the RAM & CPU usage.

Can anyone help me?

Thanks in advance

HI & welcome to the icinga community,

First, for better readability please format your post as described here.

I’d assume your host.vars.client_endpoint is empty or contains wrong content. However, it’s not needed anyway if you use this line instead:

command_endpoint = host.name

In addition you have two unnecessary assign statements when you fill host.vars.local_disks for Windows machines only.

You are trying to run Linux service checks on a Windows machine.

Have a look at the following guides for monitoring on Windows machines:

https://icinga.com/docs/icinga-2/latest/doc/05-service-monitoring/
#windows-monitoring

https://icinga.com/docs/icinga-2/latest/doc/06-distributed-monitoring/
#agent-setup-on-windows

https://icinga.com/docs/icinga-2/latest/doc/07-agent-based-monitoring/
#nsclient-on-windows

Antony.