/etc/xinetd.d/nrpe "only_from"-param for check_nrpe based on hostname
jonas kellens
jonas.kellens at telenet.be
Fri Oct 30 15:12:42 CET 2009
Hello there !
I'm new to the list and rather new to Nagios also... I have the
following question :
I have the NRPE-plugin for Nagios running as part of the Xinetd-service
on a remote server, this is its config :
bash-3.2# cat /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 host.no-ip.biz
}
host.no-ip.biz = domain name of my Nagios Monitoring server, who has a
dynamic IP-address
When I put the dynamic DNS-name there, the plugin will not work. I get
the following error on the Nagios Monitoring server :
[root at nagios nagios]# /usr/local/nagios/libexec/check_nrpe -H
<ip_of_remote_server>
CHECK_NRPE: Error - Could not complete SSL handshake.
When I put the current IP-address of the Nagios Monitoring server
in /etc/xinetd.d/nrpe on the remote server, I get the following output
on the Nagios Monitoring server :
[root at nagios nagios]# /usr/local/nagios/libexec/check_nrpe -H
<ip_of_remote_server>
NRPE v2.12
Question : How can I enable the lookup of a dynamic IP-address via the
DynDNS-domainname ?? How can I put my "host.no-ip.biz" into the
NRPE-service ??
Tomorrow the IP-address may have changed and I need to manually
edit /etc/xinetd.d/nrpe on the remote server again.
Thanks for the help !
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091030/76b59fdd/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list