Windows Exchange Mail Server (via NRPE)

Description

Monitors Exchange Mail Server on a Windows server using Nagios Remote Plugin Executor (NRPE). NRPE is used by the Nagios server to communicate with the Windows server. The nrpe.cfgfile on the Windows server maps commands issued by the GroundWork server to scripts in thec:\nrpe_ntdirectory. Commands issued by this profile are installed with this package. If new NRPE commands are added, this file must be modified.

Profile Package

This package includes the following files:

  • Profile definition: service-profile-nrpe-exchange.xml

  • Plugin script: check_nrpe

  • NRPE script (installed on the monitored Windows server): nrpe_nt.zip

Installation

GroundWork Monitor includes many monitoring profiles for a variety of devices, systems and applications. Some profiles are pre-imported on a new GroundWork installation and others are distributed with the product. The configuration tool is used to import updated profiles and profiles that require additional setup, services can also be imported, see Importing Profiles.

Services Configuration

For plugin details you can run the service help command from within the nagios container. For example: Get to the nagios container from the gw8 directory: docker-compose exec -u 1000 nagios bash, then to the libexec directory: cd /usr/local/nagios/libexec, and enter a service help command e.g., ./check_snmp --help to receive help content.

Service/Command Line/Plugin CommandCommand Parameters

This column lists the Service Definition name, Service Command name with arguments to be passed to the plugin, and the Plugin Command line which is the plugin script called by Nagios for the service.

Command parameters are in the configuration services section with the following names and default values.

  • nrpe_exchange_mail_recvq

  • check_nrpe_exchange_mailbox_receiveq!10!20

  • $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_exchange_mbox_recvq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"

Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_exchange_mbox_recvq command as defined in the nrpe.cfg.

  • $ARG1$: Warning number, default warning threshold for number of messages in the queue are 10

  • $ARG2$: Critical number, default critical threshold for number of messages in the queue are 20

  • nrpe_exchange_mail_sendq

  • check_nrpe_exchange_mailbox_sendq!10!20

  • $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_exchange_mbox_sendq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"

Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_exchange_mbox_sendq command as defined in the nrpe.cfg.

  • $ARG1$: Warning number,  default warning threshold for number of messages in the queue are 10

  • $ARG2$: Critical number, default critical threshold for number of messages in the queue are 20

  • nrpe_exchange_mta_workq

  • check_nrpe_exchange_mta_workq!10!20

  • $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_exchange_mta_workq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"

Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_exchange_mta_workq command as defined in the nrpe.cfg.

  • $ARG1$: Warning number, default warning threshold for number of messages in the queue are 10

  • $ARG2$: Critical number, default critical threshold for number of messages in the queue are 20

  • nrpe_exchange_public_recvq

  • check_nrpe_exchange_public_receiveq!10!20

  • $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_exchange_pub_recvq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"

Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_exchange_pub_recvq command as defined in the nrpe.cfg.

  • $ARG1$: Warning number, default warning threshold for number of messages in the queue are 10

  • $ARG2$: Critical number, default critical threshold for number of messages in the queue are 20

  • nrpe_exchange_public_sendq

  • check_nrpe_exchange_public_sendq!10!20

  • $USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -c get_exchange_pub_sendq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"

Uses check_nrpe plugin to connect to NRPE on $HOSTADDRESS$ and execute the get_exchange_pub_sendq command as defined in the nrpe.cfg.

  • $ARG1$: Warning number, default warning threshold for number of messages in the queue are 10

  • $ARG2$: Critical number, default critical threshold for number of messages in the queue are 20

  • nrpe_service_AeLookupSvc

  • check_nrpe_service!AeLookupSvc

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"

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.

  • nrpe_service_IsmServ

  • check_nrpe_service!IsmServ

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_MSExchangeES

  • check_nrpe_service!MSExchangeES

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_MSExchangeIS

  • check_nrpe_service!MSExchangeIS

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_MSExchangeMGMT

  • check_nrpe_service!MSExchangeMGMT

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_MSExchangeMTA

  • check_nrpe_service!MSExchangeMTA

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_MSExchangeSA

  • check_nrpe_service!MSExchangeSA

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_MSExchangeSRS

  • check_nrpe_service!MSExchangeSRS

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_MSSEARCH

  • check_nrpe_service!MSSEARCH

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_RemoteRegistry

  • check_nrpe_service!RemoteRegistry

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


  • nrpe_service_SamSs

  • check_nrpe_service!SamSs

  • $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"


Related Resources