exclude host in services.cfg??

Mieden, Rick van der rick.vandermieden at orangemail.nl
Mon May 30 16:40:56 CEST 2005


Hmmm, I'm working with nagios 1.2, and it's not working with your solution. (It'comes with an error that he can't find host !xyz :) )

Any other solutions are appreciated.

Is there anybody who succesfully compiled and installed nagios 2 on Solaris 8? And did a succefull upgrade from 1.2 to 2 on Solaris?

Regards,

Rick


-----Original Message-----
From: Sand Philipp [mailto:Philipp.Sand at sycor.de] 
Sent: Monday, May 30, 2005 16:21
To: Mieden, Rick van der; nagios-users at lists.sourceforge.net
Subject: AW: [Nagios-users] exclude host in services.cfg??


Hi Rick,

yes there is a way ;)
I'm not sure, if it's new in 2.0 (haven't testet it with 1.2) but you can simply make an entry like this

Hostgroup_name	all
Host_name		!xyz

-> Just use an "!" to exclude the host/hostgroup

Regards,
Philipp

_____________________________

Philipp Sand
OC-CC-TEC-SYS

SYCOR GmbH
Heinrich-von-Stephan-Straße 1-5
D - 37073 Göttingen

Telefon	+49 (0) 551 - 490 - 0
Telefax	+49 (0) 551 - 490 - 232468

philipp.sand at sycor.de
www.sycor.de
------------------------------------------------
 
________________________________________
Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Mieden, Rick van der
Gesendet: Montag, 30. Mai 2005 15:45
An: nagios-users at lists.sourceforge.net
Betreff: [Nagios-users] exclude host in services.cfg??

Hi all,
 
Is there a way to exclude a host in a service, when you create a service for a template? 
 
For example, I'd like to monitor /var for all hosts in the hostgroup, except for one host in that hostgroup, but I don't want to remove that host from the hostgroup? Is their any way I can put this in my services.cfg or something like that?
 
Regards
 
Rick
 
 
===========================================================

De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is alleen bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. Hoewel Orange maatregelen heeft genomen om virussen in deze email of attachments te voorkomen, dient u ook zelf na te gaan of virussen aanwezig zijn aangezien Orange niet aansprakelijk is voor computervirussen die veroorzaakt zijn door deze email.

The information contained in this message may be confidential and is intended to be only for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. Although Orange has taken steps to ensure that this email and attachments are free from any virus, you do need to verify the possibility of their existence as Orange can take no responsibility for any computer virus which might be transferred by way of this email.




===========================================================


===========================================================

De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is alleen bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. Hoewel Orange maatregelen heeft genomen om virussen in deze email of attachments te voorkomen, dient u ook zelf na te gaan of virussen aanwezig zijn aangezien Orange niet aansprakelijk is voor computervirussen die veroorzaakt zijn door deze email.

The information contained in this message may be confidential and is intended to be only for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. Although Orange has taken steps to ensure that this email and attachments are free from any virus, you do need to verify the possibility of their existence as Orange can take no responsibility for any computer virus which might be transferred by way of this email.

===========================================================


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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