CheckProcState

This check checks the state of one or more processes on the system and generates a critical state if any process is not in the required state.

OptionValuesDescription
ShowAll A flag to toggle if all process states should be listed.
ShowFail?(default)A flag to indicate if only failed process states should be listed.
process=state A process name and a state the process should have. The state can be either started or stopped. If no state is given started is assumed. The name is the name of the executable.
AliasaliasGive a process an alias
ignore-perf-data If present performance data will be stripped out
Proc:<alias>=<state> A process name and a state the process should have.
(Max|Min)(Warn|Crit)CountnumberProcess count bounds For instance: MaxCritCount?=4 means if a process has more then 4 instances it will be a critical condition.

Examples

Check that quake.exe is not running and NSClient++.exe is running:

 checkProcState ShowAll quake.exe=stopped NSClient++.exe=started
 quake.exe : Stopped - NSClient++.exe : Running

Check that quake.exe is not running and my.exe and NSClient++.exe is running and only show problems:

checkProcState my.exe quake.exe=stopped NSClient++.exe=started
my.exe : Stopped

checkProcState MinCritCount=50 svchost.exe=started

Check that cmd.exe with substring printloop in commandline is running:

NSClient++ /test
checkProcState match=regexp cmdLine ShowAll .*cmd.*printloop.*=started