Problem to monitor remote server due to dynamic IP at local PC

Matthew Macdonald-Wallace lists at truthisfreedom.org.uk
Fri Sep 5 10:33:34 CEST 2008


On Fri, 05 Sep 2008 13:54:34 +0530
"J. Bakshi" <joydeep at infoservices.in> wrote:

> I'm fade up to change the *allow_host* parameter of nrpe.cfg at the
> remote server.
> The problem is due to IP change at my local PC where nagios is running
> and monitoring the remote nrpe.
> Because of the IP change I have to modify the *allow_host* parameter
> of nrpe.cfg at the remote server
> every time. Is there any solution to overcome this ? MAC address based
> authentication rather than
> alow_host ?
> Please let me know if there is any way to bypass this.
> thanks

Don't know if it's possible, but how about using a DNS entry instead of
an IP Address?  That way, provided your NRPE client can look up your
DNS record, it shouldn't matter what the IP Address is.

Failing that, write a short script to connect via ssh and run sed
against the nrpe.cfg file to update the IP address and restart nrpe.

HTH,

M.
-- 
Matthew Macdonald-Wallace
matthew at truthisfreedom.org.uk
http://www.truthisfreedom.org.uk

-------------------------------------------------------------------------
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
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