host-check on multi interface server

Karl DeBisschop karl at debisschop.net
Tue Feb 25 04:14:31 CET 2003


On Mon, 2003-02-24 at 12:42, Markus Schencker wrote:
> On Mon, Feb 24, 2003 at 15:37:55AM +0100, Rasmus Plewe wrote:
> 
> >> * Specify one IP address for host check, specify service checks for all 
> >> interfaces and create service dependencies for the other service checks
> >
> > What service checks are you thinking about? 
> 
> 
> Example: server1 with the following interfaces:
> 172.19.0.1, 172.20.0.1, 172.21.0.1
> 
> define host server1 with IP address 172.19.0.1
> 
> define service ping1 on host server1 with IP address 172.19.0.1
> define service ping2 on host server1 with IP address 172.20.0.1
> define service ping3 on host server1 with IP address 172.21.0.1
> 
> define service disk1 on host server1 depends on ping1,ping2,ping3
> ...
> 
> If one of the ping tests fails the depending tests won't be executed.

If I read this right, at least one or two folks out there would like a
variant of check_f?ping that accepted multiple IPs and returned an error
status only if all the IPs were unreachable. 

A plugin with that behavior is not too hard. It could be done as a new
feature pretty quickly, once we get the 1.3.0 plugins released. I don't
think you can specify multiple IPs for a host defintion, however (of
course I cold be wrong, I have not come close to fully using the power
of the templated configs). 

But even so, you can define the needed host check command -- you would
need to do it once for each interface in order to list them explicitly.

--
Karl



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