Error Could Not Find Any Host Group Matching
Contents |
• All times are UTC - 6 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > linux nagios hostgroup problem Want to Advertise Here? Solved linux nagios hostgroup problem Posted on 2011-06-02 Linux 1 Verified Solution 5 Comments 2,221 Views Last Modified: 2012-05-11 I have been looking into replacing my basic monitoring system with something a little more complex and robust. I installed nagios using urpmi and the basic install started fine. I have read the configuration with regards to modifying the config and have tried to do the following to enable monitoring of a group of windows server; host template; define host{ name windows-server ; The name of this host template use https://support.nagios.com/forum/viewtopic.php?f=7&t=11983 generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, Windows servers are monitored round the clock check_interval 5 ; Actively check the server every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; https://www.experts-exchange.com/questions/27075788/linux-nagios-hostgroup-problem.html Check each server 10 times (max) check_command check-host-alive ; Default command to check if servers are "alive" notification_period 24x7 ; Send notification out at any time - day or night notification_interval 30 ; Resend notifications every 30 minutes notification_options d,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default hostgroups windows-servers ; Host groups that Windows servers should be a member of register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } hostgroup: define hostgroup{ hostgroup_name windows-servers ; The name of the hostgroup alias Windows Servers ; Long name of the group } host: define host{ use windows-server ; Inherit default values from a template host_name vm07 ; The name we're giving to this host alias vm07 (Internal) ; A longer name associated with the host address xxx.xxx.xxx.xxx ; IP address of the host hostgroups windows-servers } services: define service{ use
»reddit.comnagioscommentsWant to join? Log in or sign up in seconds.|Englishlimit my search to /r/nagiosuse the following search parameters to narrow your results:subreddit:subredditfind submissions https://www.reddit.com/r/nagios/comments/31x6l4/issue_with_nagios_configs/ in "subreddit"author:usernamefind submissions by "username"site:example.comfind submissions from "example.com"url:textsearch for "text" in urlselftext:textsearch for http://serverfault.com/questions/98586/debugging-nagios-configuration "text" in self post contentsself:yes (or self:no)include (or exclude) self postsnsfw:yes (or nsfw:no)include could not (or exclude) results marked as NSFWe.g. subreddit:aww site:imgur.com dogsee the search faq for details.advanced search: by author, subreddit...this post was submitted on 08 Apr 20151 point (60% upvoted)shortlink: could not find remember mereset passwordloginSubmit a new linkSubmit a new text postnagiossubscribeunsubscribe1,046 readers~3 users here nowcreated by mpierrea community for 6 yearsmessage the moderatorsMODERATORSmpierredavethebarbmikeoquinnoldlinuxguylp86nomadismydjabout moderation team »discussions in /r/nagios<>X1 points · 8 comments Host down by default1 points · 2 comments check_smart.pl - MegaRAID and regex?4 points · 6 comments Nagios Learning Material2 points · 1 comment check_linux_stats.pl does not work with user nagios1 points NConf setup on FAN1 points · 3 comments Disable all host and service notifications for a specific host, via config3 points SMS Gateway 4G3 points · 1 comment Returning Powershell script re
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Debugging Nagios Configuration up vote 0 down vote favorite I have this nagios configuration that won't validate. I'm trying to set up contacts and the various groups of contacts. My Contacts are based off of my generic-manager template: define contact { contact_name generic-manager name generic-manager email defaultemail@mydomain.com alias Manager Template service_notification_period hours host_notification_period hours service_notification_options w,c,r host_notification_options d,u,r service_notification_commands notify-service-by-email, host_notification_commands notify-host-by-email, register 0 } My Contact definition: define contact { use generic-manager name manager-1 contact_name First Manager contactgroups branch email branchmanager@mydomain.com } Contact Group definition: define contactgroup { contactgroup_name branch alias Contacts for Branch members admins,manager-1 } When I verify the configuration nagios -v /etc/nagios3/nagios.cfg I get the following errors. Error: Could not find any contact matching 'manager-1' Error: Could not expand member contacts specified in contactgroup I've made sure that everything is spelled correctly, but it doesn't seem to be working. Any suggestions? configuration nagios share|improve this question asked Dec 31 '09 at 21:47 CGardner 32 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote accepted According to http://nagios.sourceforge.net/docs/3_0/objectdefin