TracNav menu
-
Home
-
Documentation...
-
Information...
-
Commands/Modules
-
CheckDisk...
-
CheckEventLog...
-
CheckSystem
- CheckCPU
- CheckUpTime
- CheckServiceState
- CheckProcState
- CheckMem
- CheckCounter
-
CheckHelpers...
-
CheckTaskSched...
-
FileLogger...
-
NRPEListener...
-
NSClientListener...
-
SysTray...
-
CheckWMI...
-
RemoteConfiguration...
-
CheckExternalScripts...
-
LUAScript...
-
NSCAAgent...
-
Donate...
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.
| Option | Values | Description |
| 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. | |
| Alias | alias | Give 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)Count | number | Process 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




