I have several hosts with the same services (connectivity, SSH, Samba, HTTP...).
I have it configured like below - this way I edit hosts (used in all services) only in "generic-service": define service { name generic-service host_name server*, web*, router1, no-web (...) define service { use generic-service service_description Connectivity (...) define service { use generic-service service_description HTTP # host_name !no_web, \!no-web # <- don't work (...) Now, one server doesn't have a web server running, so a HTTP check makes an error. I'd like to exclude host "no-web" from HTTP service. Looking through the mailing list archive, I see that excluding a host was a feature that was frequently asked for, and that putting a "!" in front of the host name should work in nagios 2.x. For me, unfortunately - it doesn't work - nagios takes an exclamation mark as a part of the host's name: Error: Could not find any host matching '!no-web' or: Error: Could not find any host matching '\!no-web' How can I exclude a host? I have nagios 2.5. -- Tomasz Chmielewski http://wpkg.org ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users@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