nagios and /etc/hosts
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Tue Oct 29 00:26:01 CET 2002
I'm not entirely sure what you're asking for here. (It would help if you
were to present the actual problem you're trying to overcome, rather than
the task you (think you) need to solve.
First, /etc/hosts has very little to do with the DNS resolver libraries.
Second, from an 'internal' POV, Nagios doesn't use DNS. Or /etc/hosts. Not
directly, anyway. (I've been wondering why Nagios was designed to require
hard-coded IP addresses, as opposed to using DNS... I realize that DNS is
another point of failure, but a savvy admin could set up a caching server on
the Nagios host.)
But if you mean from the POV of an MTA, then yes, you need to have (in one
possible config) the smarterhost defined in /etc/hosts or in DNS.
If you're wondering (as I have) if there's a way to tell Nagios to use DNS
(or /etc/hosts) instead of having to manage Yet Another List Of IP
Addresses, then no, not that I'm aware of.
I'd be curious if this could be an RFE for the future, but maybe there are
excellent design arguments against doing so (which I'd be keen to hear).
jc
> -----Original Message-----
> From: Andrew Meyer [mailto:andrewm659 at hotmail.com]
> Sent: Monday, October 28, 2002 4:38 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] nagios and /etc/hosts
>
>
> is there a way for nagios to look at the /etc/hosts file to
> do DNS Name
> Resolution lookups?
>
>
> Andrew Meyer
>
> _________________________________________________________________
> Get a speedy connection with MSN Broadband. Join now!
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list