Monitoring a Windows running Program/Process

Hello everybody,

i would like to check a running program/process (example notepad.exe) on a Windows-Client by the IcingaAgent.
I know, i must use the command check_procs.

I need Help to create the syntax for the Apply-Service. Can someone help me?

My Configurtaion:

apply Service “procs” {
import “generic-service”
check_command = “check_procs”
command_endpoint = host.vars.client_endpoint_LM50
assign where host.vars.client_endpoint_LM50
ignore where host.vars.noagent

This definition of my configuration should show all processes from this specific Server.

Thank you.

No, check_procs is only returning the number of currently running processes.

This will not work, please use instead:

check_command = “procs-windows”

but as I said, it will only return a number.

This is usually:

command_endpoint =

The assign rule depends on your needs. A common way is to set variables for your hosts and assign services when a corresponding variable is defined.

Hallo Roland, vielen Dank für deine Antwort. Nun habe ich eine andere herangehensweise
gefunden. Es besteht ja die Möglichkeit, dass mit der Hilfe eines lokal ausgeführten
Powershell-Script der Status eines Programm abgefragt werden kann.

Hierzu habe ich die Anleitung/Howto von dnsmichi gefunden.

Die Anleitung wurde zunächst so übernommen. Allerdings meldet die Icinga Plugin Ausgabe,
dass der Check Command “Check command ‘powershell_check’ does not exist” nicht existiert.

Bestehen hier noch weitere Einstellungen am Windows-Client selbst?

Hier noch einige Informationen zum System:

icinga2 - The Icinga 2 network monitoring daemon (version: 2.12.3)
OS: CentOS Stream release 8

Windows Server 2012 R2

Vielen Dank


first of all it would be very kind if you write your postings in englisch. This is an english forum and not every body is able to follow in german.

What you found is an quite old posting from dnsmichi. Much has happened in the meantime. e.g. Icinga for Windows has been released. This is written in PowerShell. For this exists two PowerShell modules: icinga-powershell-framework and icinga-powershell-plugins. You need both.