exclude host in services.cfg??

Erwin.Mascardo at intelsat.com Erwin.Mascardo at intelsat.com
Tue May 31 18:59:10 CEST 2005



>-----Original Message-----
>From: Mieden, Rick van der [mailto:rick.vandermieden at orangemail.nl] 
>Sent: Monday, 30 May, 2005 10:41
>To: nagios-users at lists.sourceforge.net
>Subject: Re: [Nagios-users] exclude host in services.cfg??
>
>
>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.
>

Also using Nag 1.2 here. For situations like this, rather than calling the
plugin directly, I use a wrapper script in which I check to see if the host
is one of the exceptions to the template. (For example, my stratum 2 NTP
"master" boxes aren't going to be locked on the same time source as the rest
of the network.) If you've got an exception, then either check for the
non-standard parameter with the plugin -- or just skip the plugin and return
a fat, dumb, happy 0 to keep Nag quiet.

--Erwin

############################################################

Intelsat is a global communications provider offering flexible and 
secure services to customers in over 220 countries and territories.  
Intelsat has maintained a leadership position for over 40 years by 
distributing video, voice, and data for television and content providers, 
government and military entities, major corporations, telecommunications carriers, 
and Internet service providers. Intelsat's reach, power and expanding solutions 
portfolio deliver information reliably and quickly to every corner of the globe.  

For more information, visit www.intelsat.com.

############################################################
This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by reply email and 
destroy all copies of the original message.  Any views 
expressed in this message are those of the individual 
sender, except where the sender specifically states them 
to be the views of Intelsat, Ltd. and its subsidiaries.
############################################################


-------------------------------------------------------
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