Assaf Flatto wrote: >> Hi Assaf, >> >> I am afraid to say, but i can't understand its utility. >> how this script help the remote nrpe daemon a.k.a "/etc/nagios/nrpe.cfg" >> to know the IP of my local machine ? The "allowed_hosts" needs to know the >> IP of my local machine so that I can use nrpe_check command from my >> local machine. >> >> many thanks >> >> > > nrpe is the listening utility on a server waiting requests from the nagios > server . > It has a "access limiter" as to make sure that only one server can query it , > that is > the "allowed_hosts" directive . > > If your nagios ip is changed - and the local machine ip hasn't , then you > need to tell the local > machine the Nagios server has a IP so it will accept the requests from the > new ip . > > this is done by replacing the nagios server ip in the allowed_hosts directve > (you have it as > 122.xxx.xxx.xxx) . >
Exactly, I can communicate with the remote nrpe server by replacing the allowed_hosts directive at the "/etc/nagios/nrpe.cfg" file. But as I mentioned before this demands to change the allowed_hosts as soon as my local machine's IP ( which is dynamic ) is being change. I'm looking a solution to overcome this. Practically the point of allowing limited IPs by allowed_hosts directive is OK. But buy chance if there is any option to over ride this, I can also monitor that remote server with out modifying its "/etc/nagios/nrpe.cfg" after every 2/3 days. > Assaf > > > > > IMPORTANT . this email and the information in it may be confidential, legally > privileged and/or protected by law. It is intended solely for the use of the > person to whom it is addressed. If you are not the intended recipient, please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email communications. > We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service Partner > UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Nagios-users mailing list > [email protected] > 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 > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Joydeep Bakshi, Linux System Admin Kolkatainfoservices Pvt Ltd, 23A Royd Street, Kolkata 700016, India Work Phone 91 033 40014784 http://infoservices.in/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list [email protected] 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
