NRPE on Solaris Info #2

Gerald Wichmann gwichman at zantaz.com
Sat Mar 1 01:05:40 CET 2003


Some additional cut/paste's of various config files.. Far as I can tell this
is all correct.. so why doesn't it work with inetd and only works with
-daemon (stand alone)?
 
 
/etc/service entry:
 
nrpe            5666/tcp                        # Nagios NRPE daemon
 
 
/etc/inetd.conf entry:
 
#
# Nagios NRPE Daemon
#
nrpe    stream  tcp     nowait  nagios  /usr/sbin/nrpe -c
/usr/local/nagios/nrpe.cfg --inetd
 
NRPE - Nagios Remote Plugin Executor
Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org)
Version: 1.8
Last Modified: 01-16-2003
License: GPL
 
Usage: ./nrpe -c <config_file> [mode]
 
Options:
 <config_file> = Name of config file to use
 [mode]        = Determines how NRPE should run. Valid modes:
   --inetd     = Run as a service under inetd or xinetd
   --daemon    = Run as a standalone daemon
 
Notes:
This program is designed to process requests from the check_nrpe
plugin on the host(s) running Nagios.  It can run as a service
under inetd or xinetd (read the docs for info on this), or as a
standalone daemon. Once a request is received from an authorized
host, NRPE will execute the command/plugin (as defined in the
config file) and return the plugin output and return code to the
check_nrpe plugin.
 
 
root at PS-DB-E250-01:/usr/sbin:!$ cat /usr/local/nagios/nrpe.cfg
############################################################################
#
# Sample NRPE Config File
# Written by: Ethan Galstad (nagios at nagios.org)
#
# Last Modified: 06-03-2002
#
# NOTES:
# This is a sample configuration file for the NRPE daemon.  It needs to be
# located on the remote host that is running the NRPE daemon, not the host
# from which the check_nrpe client is being executed.
############################################################################
#
 
 
 
# PORT NUMBER
# Port number we should wait for connections on.
# NOTE: This must be a non-priviledged port (i.e. > 1024).
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd
 
server_port=5666
 
 
 
# SERVER ADDRESS
# Address that nrpe should bind to in case there are more than one interface
# and you do not want nrpe to bind on all interfaces.
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd
 
#server_address=10.1.82.21
 
 
 
# ALLOWED HOST ADDRESSES
# This is a comma-delimited list of IP address of hosts that are allowed
# to talk to the NRPE daemon.
#
# NOTE: The daemon only does rudimentary checking of the client's IP
#       address.  I would highly recommend adding entries in your
#       /etc/hosts.allow file to allow only the specified host to connect
#       to the port you are running this daemon on.
#
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd
 
allowed_hosts=10.1.82.21
 
 
 
# NRPE USER
# This determines the effective user that the NRPE daemon should run as.
# You can either supply a username or a UID.
#
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd
 
nrpe_user=nagios
 
 
 
# NRPE GROUP
# This determines the effective group that the NRPE daemon should run as.
# You can either supply a group name or a GID.
#
# NOTE: This option is ignored if NRPE is running under either inetd or
xinetd
 
nrpe_group=nagios
 
 
 
# DEBUGGING OPTION
# This option determines whether or not debugging messages are logged to the
# syslog facility.
# Values: 0=debugging off, 1=debugging on
 
debug=1
 
 
 
# COMMAND DEFINITIONS
# Command definitions that this daemon will run.  Definitions
# are in the following format:
#
# command[<command_name>]=<command_line>
#
# When the daemon receives a request to return the results of <command_name>
# it will execute the command specified by the <command_line> argument.
#
# Unlike Nagios, the command line cannot contain macros - it must be
# typed exactly as it should be executed.
#
# Note: Any plugins that are used in the command lines must reside
# on the machine that this daemon is running on!  The examples below
# assume that you have plugins installed in a /usr/local/nagios/libexec
# directory.
 
command[check_users]=/usr/local/nagios/libexec/check_users 5 10
command[check_load]=/usr/local/nagios/libexec/check_load 5 10 15 20 25 30
command[check_disk_hda5]=/usr/local/nagios/libexec/check_disk 80 95
/dev/hda5
command[check_disk_hda6]=/usr/local/nagios/libexec/check_disk 80 95
/dev/hda6
command[check_disk_hda10]=/usr/local/nagios/libexec/check_disk 80 95
/dev/hda10
command[check_disk_sda1]=/usr/local/nagios/libexec/check_disk 50 95
/dev/sda1
command[check_disk_md0]=/usr/local/nagios/libexec/check_disk 50 95 /dev/md0
command[check_disk_d30]=/usr/local/nagios/libexec/check_disk 50 90
/dev/md/dsk/d30
command[check_disk_d32]=/usr/local/nagios/libexec/check_disk 50 90
/dev/md/dsk/d32
command[check_disk_d35]=/usr/local/nagios/libexec/check_disk 50 90
/dev/md/dsk/d35
command[check_disk_d36]=/usr/local/nagios/libexec/check_disk 50 90
/dev/md/dsk/d36
command[check_disk_d37]=/usr/local/nagios/libexec/check_disk 50 90
/dev/md/dsk/d37
command[check_disk_d38]=/usr/local/nagios/libexec/check_disk 50 90
/dev/md/dsk/d38
command[check_disk_d39]=/usr/local/nagios/libexec/check_disk 50 90
/dev/md/dsk/d39
command[check_disk_d40]=/usr/local/nagios/libexec/check_disk 50 90
/dev/md/dsk/d40
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs 5 10 Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs 150 200
command[check_smtp]=/usr/local/nagios/libexec/check_smtp -w 1 -c 5
command[check_mailsend]=/usr/local/nagios/libexec/calc_speed
command[check_mailsendeta]=/usr/local/nagios/libexec/check_eta
 
 
 
Gerald Wichmann
Senior Systems Development Engineer
Zantaz, Inc.
925.598.3099 (w)
 


This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm)
service.  For more information, visit us at www.zantaz.com. 
IMPORTANT: This electronic mail message is intended only for the use of the
individual or entity to which it is addressed and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law.  If the reader of this message is not the intended recipient, or the
employee or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have received
this communication in error, please notify the sender immediately by
telephone or directly reply to the original message(s) sent.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030228/9ff40afc/attachment.html>


More information about the Users mailing list