Cook, Garry <Garry.Cook <at> arcadis-us.com> writes: > > > > > > Well, maybe you can use check_cluster as the host check? It > sounds logical to me, but I’ve never used that check so I’m not > really sure. > > Also, check_icmp has the ability to PING multiple addresses. > Perhaps using this as your host check against both IPs would give you the > results you’re looking for… > > > > > > Thanks, Garry >
I had the exact same problem with an old nagios 1.x, I've solved it by listing both IPs in the address field of the host, and having a wrapper script in all check_commands that can switch interfaces (or not) by options ie. : in hosts.cfg define host{ use generic-host host_name myhost12 alias myhost12 address 10.0.0.12,10.10.10.12 } in service.cfg, I have two services ping_in and ping_out that executes two separate commands check_ping_in and check_ping_out and finally in checkcommands.cfg define command{ command_name check_ping_out command_line $USER1$/parse_addr --net=out --ips=$HOSTADDRESS$ -- $USER1$/check_ping -w $ARG1$ -c $ARG2$ -p 2 -H } # 'check_ping_in' command definition define command{ command_name check_ping_in command_line $USER1$/parse_addr --net=in --ips=$HOSTADDRESS$ -- $USER1$/check_ping -w $ARG1$ -c $ARG2$ -p 2 -H } where parse_addr is my wrapper script that knows wich IP to select with the -- net option and then executes whatever there is after the final -- It is a bit complicated but enables me to have 50 hosts checked on bvoth interface without having 100 distinct services (as I would have if I'd 'hardcoded' the IP in the service's command Hope it helped I'll investigate the check_cluster method as I'm on the way of upgrading this old nagios of ours ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users@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