NRPE Windows Profile
This profile monitors a Windows server using Nagios Remote Plugin Executor (NRPE). NRPE is used by the Nagios server to communicate with the Windows server.
Services Configuration
- Service - Definitions in Monarch are stored under this name.
- Command Line - Service command name with arguments to be passed to the plugin.
- Plugin Command Line - Plugin script called by Nagios for this Service.
- Extended Info - The Extended Service Info definition, typically used for generating graphs.
Command lines displayed below are intended to be single line commands. Service Command Line Plugin Command Line Extended Info tcp_nrpe check_nrpe $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ number_graph nrpe_cpu check_nrpe_cpu!_Total!80,90 $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_cpu -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" number_graph nrpe_disk_C check_nrpe_disk!C:!80,90 $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_disk -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" number_graph nrpe_disktransfers check_nrpe_disk_transfers!Name=
_Total!10!20$USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_disktransfers -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" percent_graph nrpe_mem check_nrpe_mem!_Total!80,90 $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_mem -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" percent_graph nrpe_memory_pages check_nrpe_memory_pages!10!20 $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_swapping -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" number_graph nrpe_service_Alerter check_nrpe_service!Alerter $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_service -a "$HOSTADDRESS$" "$ARG1$" percent_graph nrpe_service_Eventlog check_nrpe_service!Eventlog $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_service -a "$HOSTADDRESS$" "$ARG1$" percent_graph nrpe_service_MSDTC check_nrpe_service!MSDTC $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_service -a "$HOSTADDRESS$" "$ARG1$" percent_graph nrpe_service_TermService check_nrpe_service!TermService $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_service -a "$HOSTADDRESS$" "$ARG1$" percent_graph nrpe_uptime check_nrpe_uptime!1800!900 $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_system_uptime -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
Profile Package
This package includes the following files:
Profile Definitions
- service-profile-nrpe-windows.xml
- perfconfig-nrpe-windows.xml
Plugins Scripts
- check_nrpe
NRPE scripts (installed on the monitored Windows Server)
- nrpe_nt.zip
Performance Graphing Programs
- number_graph.cgi
- percent_graph.cgi
Installation
GroundWork Monitor includes many monitoring profiles for a variety of devices, systems and applications. Profiles already imported on a new GroundWork installation include Service Ping, SNMP Network, and SSH UNIX. The GroundWork Monitor Configuration tool is used to import updated Profiles and Profiles that require additional setup; the Profile XML file and its companion Performance Configuration definition file. Services can also be imported in addition to Service Profiles in the Profile Importer. The import process is documented under GROUNDWORK PROFILES > How to import profiles.
Implementation
Command Parameters
Command parameters are in the Configuration Services section with the following names and default values.
nrpe_cpu
- Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_cpu command as defined in the nrpe.cfg.
- $ARG1$ - Name of CPU, default is _Total
- $ARG2$ - Warning and critical percentage, default is 80,90
nrpe_disk_C
- Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_disk command as defined in the nrpe.cfg.
- $ARG1$ - Drive letter, default is C:
- $ARG2$ - Warning and critical percentage, default is 80,90
nrpe_disktransfers
- Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_disktransfers command as defined in the nrpe.cfg.
- $ARG1$ - Physical disk, default is Name=_Total
- $ARG2$ - Warning value (per second), default is 10
- $ARG3$ - Critical value (per second), default is 20
nrpe_mem
- Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_mem command as defined in the nrpe.cfg.
- $ARG1$ - Memory type (RAM, PAGING, _Total), default is _Total
- $ARG2$ - Warning and critical percentage, default is 80,90
nrpe_memory_pages
- Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_swapping command as defined in the nrpe.cfg.
- $ARG1$ - Warning value (pages per second), default is 10
- $ARG2$ - Critical value (pages per second), default is 20
nrpe_service
- Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_service command as defined in the nrpe.cfg.
- $ARG1$ - Service Name (not Display Name!)
- OK if service is running
- CRITICAL is service is stopped.
- UNKNOWN is service is not installed.
tcp_nrpe
- Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$.
- Returns version of NRPE agent if connect is successful.
Performance Graphing Parameters
The following parameters are used to generate performance charts. These parameters are set using the Configuration>Performance tool in GroundWork Monitor.
nrpe_cpu
- Graphs percentage CPU utilization for a specified CPU.
- Nagios service description must contain the string "nrpe_cpu".
nrpe_disk_C
- Graphs disk C percentage utilization.
- Nagios service description must contain the string "nrpe_disk_".
nrpe_disktransfers
- Graphs disk transfers per second for a specified disk.
- Nagios service description must contain the string "nrpe_disktransfers".
nrpe_mem
- Graphs percentage memory utilization for a specified memory type.
- Nagios service description must contain the string "nrpe_mem".
Implementation Notes
The nrpe.cfg file on the Windows server maps commands issued by the GroundWork server to scripts in the c:\nrpe_nt directory. Commands issued by this profile are installed with this package. If new NRPE commands are added, this file must be modified. Go to the GroundWork Support Portal - GroundWork Connect at http://www.groundworkconnect.com and search for Installing GroundWork WMI NRPE.