Build precise queries to find exactly what you need
Press ESC to close
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:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!