NRPE POP3 Profile
This profile monitors a POP3 server running on 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_pop3s check_pop3s!3!5 $USER1$/check_pop -t 60 -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -S number_graph tcp_pop3 check_pop3!3!5 $USER1$/check_pop -t 60 -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -e "OK" number_graph nrpe_service_POP3Svc check_nrpe_service!POP3Svc $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$" percent_graph
Profile Package
This package includes the following files:
Profile Definitions
- service-profile-nrpe-pop3.xml
- perfconfig-nrpe-pop3.xml
Plugins Scripts
- check_nrpe
- check_pop
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.
tcp_pop3s
- Uses check_pop plugin with the -S (SSL) switch to connect to port 995 of $HOSTADDRESS$ and searches for [+OK] in beginning of the POP3 server output.
- Default warning threshold is a 3 second response time.
- $ARG1$ - Warning seconds
- Default critical threshold is a 5 second response time.
- $ARG2$ - Critical seconds
tcp_pop3
- Uses check_pop plugin to connect to port 110 of $HOSTADDRESS$ and search for [+OK] in the beginning of the POP3 server output.
- Default warning threshold is a 3 second response time.
- $ARG1$ - Warning seconds
- Default critical threshold is a 5 second response time.
- $ARG2$ - Critical seconds
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.
Performance Graphing Parameters
The following parameters are used to generate performance charts. These parameters are set using the Configuration>Performance tool in GroundWork Monitor.
tcp_pop3
- Graphs response time of the POP3 server.
- Nagios service description must contain the string "tcp_pop3".
tcp_pop3s
- Graphs response time of the POP3S server.
- Nagios service description must contain the string "tcp_pop3s".
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.