NRPE DNS

NRPE Domain Name Service (DNS) Profile

This profile monitors Domain Name Services 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
    udp_dns_expect check_dns_expect!www.groundwork
    opensource.com!64.127.120.109
    $USER1$/check_dns -t 30 -s $HOSTADDRESS$ -H "$ARG1$" -a "$ARG2$" number_graph
    udp_dns check_dns!www.groundwork
    opensource.com
    $USER1$/check_dns -t 30 -s $HOSTADDRESS$ -H "$ARG1$" number_graph
    nrpe_service_DNS check_nrpe_service!DNS $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-dns.xml
  • perfconfig-nrpe-dns.xml

Plugins Scripts

  • check_nrpe
  • check_dns

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

This section contains detail settings used by this Profile. These parameters can be altered with the Configuration tool.

For the check_apache or check_apache2.pl plugin to run, ExtendedStatus must be turned On in Apache? You will also need to make sure httpd.conf has ExtendedStatus On set in the main body of the file.
Command Parameters

Command parameters are in the Configuration Services section with the following names and default values.

udp_dns_expect

  • Queries the assigned host to get the IP address of a host and checks the reply with the expected IP address. The nslookup program is used to perform the query.
  • $ARG1$ - Host name to query. (default www.groundworkopensource.com)
  • $ARG2$ - Expected reply IP address of the host name (default 64.127.120.109)

udp_dns

  • Queries the assigned host to get the IP address of a host. The nslookup program is used to performn the query.
  • $ARG1$ - Host name to query. (default www.groundworkopensource.com)

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.

udp_dns

  • Graphs the response time of the DNS query.
  • Nagios service description must contain the string "udp_dns".

udp_dns_expect

  • Graphs the response time of the DNS query.
  • Nagios service description must contain the string "udp_dns_expect".
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.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.