From: <Erw...@in...> - 2005-05-31 16:59:28
|
>-----Original Message----- >From: Mieden, Rick van der [mailto:ric...@or...] >Sent: Monday, 30 May, 2005 10:41 >To: nag...@li... >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. ############################################################ |