Adding services to Linux host and showing this output

apply Service “Memory Usage” {
import “generic-service”
check_command = “mem”
vars.nscp_query = “checkMem”
vars.nscp_warning = “80%”
vars.nscp_critical = “90%”
assign where host.vars.os == “Windows” && (host.address4 || host.address6)
}
apply Service “Disk Usage C” {
import “generic-service”
check_command = “nscp-local”
vars.nscp_query = “check_drivesize”
vars.nscp_warning = “80%”
vars.nscp_critical = “90%”
vars.nscp_arguments = [“drive=C:”]
assign where host.vars.os == “Windows” && (host.address4 || host.address6)
}
my configuration for windows host while configuring its host

Hi @Wisal,
Honestly I cannot do anything with that. Could you please add more context and formulate a coherent question?

1 Like

execvpe(/usr/lib/nagios/plugins/check_disk.exe) failed: No such file or directory<Terminated with exit code 128 (0x80).> when i added window host with monitoring plugin then its gives me this output @lorenz

Is Icinga2 installed on the Windows machine? nscp-local tries to execute checks on the local machine (as seen from Icinga2).
In any case execvpe(/usr/lib/nagios/plugins/check_disk.exe) failed: No such file or directory tells you that, a program /usr/lib/nagios/plugins/check_disk.exe does not exist, presumably you did try to execute a check determined for the windows machine on your main monitoring machine.

how can we install icinga2 on windows can help me with that @lorenz

That’s a lot to be honest. I would direct you to the documentation: Introduction - Icinga for Windows

also, thanks for this but I have confusion i am above issues while I was monitoring host agentless also just tell me agent is required for monitoring in windows @lorenz

Well, it is complicated. First thing: There is no such thing as “agentless”, in any case there has to some process on the target machine to allow monitoring since the operating system does not provide this service.
There are different choices for programs which can do this and the interfaces are different.
The “default” (or most commone) scenario for Icinga setups is probably “Icinga for Windows” which includes a local Icinga2 installation.
I would recommend that, if there are no strong opinions.

thank you so much @lorenz