I can also take an other process and I'm getting the same error. It doesn't matter if the process is started by system or by the logged in user.
This forum was archived to /woltlab and is now in read-only mode.
I'm running that command from a powershell session. I have a separate programm running in a CMD that I would like to monitor.
On a Windows Machine I would like to check if a specific process is running. In my example the cmd.exe.
I have the following configuration in my service.conf-File:
But in Icinga2 I'm always getting the following displayed:
What I'm doing wrong? On the Windows Machine Icinga Agent and NSClient++ is installed and running based on the following article:
When I manually run the following on the Windows Machine:
OK: all processes are ok.|'cmd.exe state'=1;0;0 'count'=1;0;0