1 Host 2 IP
Israel Brewster
israel at frontierflying.com
Wed Feb 18 18:16:10 CET 2009
You can check multiple IPs in one check (and thus, one host) using
check_icmp. This is a basic ping-type check, but it has a flag to say
you only need one of the ips to return in order for the host to be
considered up. Or just symlink it to check_host, and it returns OK as
soon as it receives one reply, regardless of which IP the reply comes
from. As far as monitoring different services on each host, what
you'll have to do is make custom check commands that accept the ip as
one of the arguments ($ARG1$ for instance) rather than just assuming
the host address, which will still have to be set to a single IP even
if using check_icmp.
What I've done on a number of hosts of ours that have multiple IPs is
to set the host check as check_icmp, looking at both IPs and only
going critical if both are down. I then make a service that is also
check_icmp, looking at the specific ports. That way I get a host
critical alert if both are down, but otherwise the host stays OK, and
just the service corresponding to the specific ip that isn't working
goes critical. Works well for us.
-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
On Feb 18, 2009, at 7:09 AM, Romain VRIGNAUD wrote:
>
> I have to migrate a 1.x nagios to the last stable.
> Until now, each host is defined 2 times for each network interface.
> However I think it makes the overview more complicated to analyse.
> So I'm seeking a way to make Nagios understand that they are the
> same physical host. Is there a something to do in configuring host
> group ?
>
> I don't understand your second question. I use different checks
> (ssh / nrpe / nsca / nsclient ) but I don't see the point.
>
> Romain
> -----Message d'origine-----
> De : Assaf Flatto [mailto:assaf.flatto at ssp-intl.com]
> Envoyé : mercredi 18 février 2009 16:57
> À : nagios-users at lists.sourceforge.net
> Objet : Re: [Nagios-users] 1 Host 2 IP
>
> you can create different host for each ip and create test (services)
> for those host with no
> overlapping on the definitions .
>
> The issue is to know if you are using external checks only or also
> using NRPE of another client to
> execute checks on the machine ?
>
> Assaf
>
>
> On Wednesday 18 February 2009 15:46:31 Romain VRIGNAUD wrote:
>> Hi
>>
>> I'd like to know how should I configure Nagios for my hosts which
>> have
>> multiple ip address.
>>
>> I'd like that Nagios consider them as only one host but I don't
>> know how
>> to configure that.
>>
>> On top of that, I need to check different services on the different
>> IPs.
>>
>>
>>
>> How should I do ?
>>
>>
>>
>> Regards
>
>
>
> --
> Assaf Flatto
> SSP Ops Team
> Linux System Administrator
> 169 Euston Road, London, NW1 2AE
>
>
>
>
>
> IMPORTANT . this email and the information in it may be
> confidential, legally
> privileged and/or protected by law. It is intended solely for the
> use of the
> person to whom it is addressed. If you are not the intended
> recipient, please
> notify the sender immediately and do not disclose the contents to
> any other
> person, use it for any purpose, or store or copy the information in
> any medium.
> Please also delete all copies of this email and any attachments from
> your
> system.
>
> We cannot guarantee the security or confidentiality of email
> communications. We
> do not accept any liability for losses or damages that you may
> suffer as a
> result of your receipt of this email including but not limited to
> computer
> service or system failure, access delays or interruption, data non-
> delivery or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service
> Partner UK
> Limited. Should you communicate with anyone at Select Service
> Partner UK Limited by
> email, you consent to us monitoring and reading any such
> correspondence.
>
> Nothing in this email shall be taken or read as suggesting,
> proposing or
> relating to any agreement concerted practice or other practice that
> could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England
> and Wales
> (company number 05687183) whose registered office is at 1 The
> Heights, Brooklands, Weybridge. Surrey. KT13 0NY
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> 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
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> 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
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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