Windows

check_proc_number

Description:

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

Compatible With

  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x

Owner

Ben


Project Files
Project Notes
## 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
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
5,622