Multiple Interfaces

Richard Gliebe richard.gliebe at fhv.at
Mon Nov 28 09:24:40 CET 2005


Hi there,

I want to define the hostdependency ;-)

Our idea is, when switch A goes down, nagios shouldn't send any alerts
from Server B,C,D which are connected on switch A.

OK, that shouldn't be a problem.

BUT, all of our switches have more than one Network interface, which we
are monitoring.

We have created one host definition for each interface, like this:

[...]
1st interface:
# 'sw-a--if-1' host definition
define host{
        use                     generic-host            ; Name of host
template to use

        host_name               sw-a--if-1
        alias                   sw-a--if-1
        address                 1.2.3.4
        check_command           check-host-alive
        max_check_attempts      3
        notification_interval   0
        notification_period     24x7
        notification_options    d,u,r
        contact_groups          sys-admins
        }

2nd interface:
# 'sw-a--if-2' host definition
define host{
        use                     generic-host            ; Name of host
template to use

        host_name               sw-a--if-2
        alias                   sw-a--if-2
        address                 5.6.7.8
        check_command           check-host-alive
        max_check_attempts      3
        notification_interval   0
        notification_period     24x7
        notification_options    d,u,r
        contact_groups          sys-admins
        }
[...]

We also created a global host definition for all switches which have
more than one interface.

[...]
# 'sw-a' host definition
define host{
        use                     generic-host            ; Name of host
template to use

        host_name               sw-a
        alias                   sw-a
        address                 1.2.3.4
        check_command           check-host-alive
        max_check_attempts      3
        notification_interval   0
        notification_period     24x7
        notification_options    n
        contact_groups          sys-admins
        }
[...]

Our final idea is, to create a "host_group" for each switch witch more
than one interface like:
host_group	sw-a
members		sw-a--if-1,sw-a--if-2

and final, the host_group "sw-a" is the 'host_name' in the
Hostdependency definition.

My question is now, is this possible, if yes, is there any dokumention
available.

Thanks in advance.

Richard

-- 
Richard Gliebe
Fachhochschule Vorarlberg GmbH / University for Applied Science
Information Services



-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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