Service on an IP address different from the host

Guy B. Purcell guy at extragalactic.net
Thu Feb 2 18:34:06 CET 2006


On Feb 2, 2006, at 02:25, Marc Haber wrote:

> some systems I am responsible for have multiple IP addresses, with
> services that are not running on all IP addresses. I thus need service
> definitions that don't check the service on the host address, but on a
> dedicated "service address" while still being associated to the host
> which has a different address.
>
> I have come up with various ways to do this, each of them ugly, but
> differently so.

[...some truly ugly suggestions involving special command defs for  
each service check...]

> What is your opinion?

That you've been staring at the problem from waaay too close :^)   
Seriously, all you need to do is to define (in Nagios, not  
necessarily in the DNS, although that probably wouldn't hurt)  
separate hosts for the different interfaces, a la

define host{
	use			corp-host
	host_name	mink-ge0
	alias		mink
	address		10.10.10.10
}

define host{
	use			corp-host
	host_name	mink-ge1
	alias		mink
	address		10.10.10.10
}

Once you have that, you just define the services for each "host" as  
appropriate.

-Guy



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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