Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
Checking the number of running process on windows machines. The connection is established from Nagios server through nrpe to the remote nsclient agent.
The script should be copied to remote nsclient machine and “nsclient.ini” file should be changed accordingly
Current Version
2.0
Last Release Date
2016-03-08
Owner
Ben
Compatible With
Version 1
Version 2
## NEW version - v2## Threshold for minimum & maximum number of running process added. [nsclient.ini] check_num_of_xxx_process = cmd /c echo scriptscheck_proc_number.ps1 "$ARG1$" "$ARG2$" "$ARG3$"; exit($lastexitcode) | powershell.exe -command - 2> $null [command_on_nagios_server] /usr/local/nagios/libexec/check_nrpe -u -H $HOSTADDRESS$ -t 50 -c check_num_of_xxx_process -a $ARG1$ $ARG2$ $ARG3$ $ARG1$ is the process name $ARG2$ is the minimum number of process $ARG3$ is the maximum number of process ######################################################### ## OLD version ## $ARG1$is the process name. The plug is checking if the number of running process are qual to 1. [nsclient.ini] check_num_of_java_process = cmd /c echo scriptscheck_proc_number.ps1 "$ARG1$"; exit($lastexitcode) | powershell.exe -command - 2> $null [command_on_nagios_server] /usr/local/nagios/libexec/check_nrpe -u -H $HOSTADDRESS$ -t 50 -c check_num_of_java_process -a java
You must be logged in to submit a review.
To:
From: