Define multiple serves per host(s)

Andreas Ericsson ae at op5.se
Tue Dec 11 15:34:09 CET 2007


Ach. forgot to CC the list. My apologies

-------- Original Message --------
From: - Tue Dec 11 15:33:11 2007
Message-ID: <475E9F94.1010107 at op5.se>
Date: Tue, 11 Dec 2007 15:32:52 +0100
From: Andreas Ericsson <ae at op5.se>
To: Andrei-Florian Staicu <andrei.staicu at ipso.ro>
Subject: Re: [Nagios-users] Define multiple serves per host(s)
References: <475E8488.9050802 at ipso.ro> <475E8A42.4050600 at op5.se> <475E9646.7030807 at ipso.ro>
In-Reply-To: <475E9646.7030807 at ipso.ro>

Andrei-Florian Staicu wrote:
> Andreas Ericsson wrote:
>> Make a hostgroup of all your switches and define your service like this:
>>
>> define service{
>>     service_description yada yada
>>     hostgroup_name      all-the-routers
>>     check_command       more yada yada
>>     yada                and more yada
>> }
>>
> Yes, but each switch has 24 ports. Since the check_command is different 
> for each port (different oid's), shouldn't there be a service for each 
> port? Or can I avoid this?
> 

You can't avoid that then. What you're asking now doesn't match what you
wanted at first though:

> The actual case here is to monitor the link status on all ports on 
> several identical switches.
> I hope to bypass creating a huge config file from the command prompt.

To monitor the link status of ALL ports wouldn't be terribly difficult.
Just make a script to check all ports on one switch and use that in
your check command definition.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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