Home Directory Plugins System Metrics Processes Check Windows Process (WMI)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check Windows Process (WMI)

Rating
0 votes
Favoured:
0
Current Version
1.2
Last Release Date
2014-12-18
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
18630
Files:
FileDescription
check_windows_processCheck GitHub for the latest version
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This Unix perl script checks a if remote windows process is running and its CPU, Memory usage, Threads and file handles, and disk IO (or all of the above) if selects processes by name.

The script requires wmic which is included in check_wmi_plus or can be installed separately.

Check the GitHub link for the latest versions.
::Windows Process Check Instructions::

-h|help, Display this help information
-H|host, IP or hostname of server
-U|username Username to use for authentication
-P|password Paswword to use for authentication
-C|Check, Specify a check type: ICPU(%), ACPU(%), Memory(KB), IO, threads, stats
ICPU does two queries a few seconds apart. (default 5)
ACPU provides average CPU usage since last check.
IO is performance data only .
-S|sampletime Set the time interval for the ICPU check.
stats will only alert if the process is not running and report everything
-iostats, Add disk IO information to any check
-memorystats, Adds memory stats to any check
-threads, Adds threads stats to any check
***This options are for the ICPU and ACPU checks only***
-multicpu, Use CPU values like that of top and ps rather than true percantages
With this option the max cpu usage is 100% * number of logical cores
Without this option max cpu usage is 100%
-w|warning, Specify a warning level for the check
-c|critical, Specify a critical level for the check
For memory checks thresholds are declared in Bytes
Thresholds must be defined fore every check except stats
-M|message, Specify a message to return on failure
-R|startup, The script to use to restart the process
If selected this will be added the the output on CRITICAL
This is an easy way to pass information to an Event Handler
***Highly reccomended that you use this***
-N|name, Specify a differnet name for the process
This is for display in Nagios messages
Example: check_windows_process -p mssql -N MasterDB
The mysqld process will be monitored and the Nagios message will read:
The MasterDB process is currently OK.
-p|processname, Specify a process name to be monitored

Script written by Noah Guttman and Copyright (C) 2014 Noah Guttman.
This script is released and distributed under the terms of the GNU
General Public License. >>>> http://www.gnu.org/licenses/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
>>>> http://www.gnu.org/licenses/