Error Could Not Expand Hostgroups And/or Hosts
Contents |
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad
Error: Could Not Find Any Host Matching Nagios
policies X You seem to have CSS turned off. Please don't fill out nagios error could not find any hostgroup matching 'windows-servers' this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload
Could Not Find Any Hostgroup Matching Nagios
screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Nagios Core Mailing Lists Nagios Core Nagios network monitoring could not expand members specified in hostgroup software is enterprise server monitoring Brought to you by: egalstad, swilkerson Summary Files Reviews Support Wiki Mailing Lists Donate SVN CVS Git ▾ Nagios BPI Nagios Core Nagios Core Docs Nagios V-Shell NDOUtils NRDP NRPE NSCA NSTI nagios-announce nagios-checkins nagios-devel nagios-devteam nagios-drama nagios-project nagios-users nagios-users-br nagios-users-ru [Nagios-devel] Empty hostgroups ok, but not if services defined? [Nagios-devel] Empty hostgroups ok, but not if services defined? From: Marcus Fleige
• All times are UTC - 6 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Issue Simple Details [Jump to Notes] [View Advanced] [Issue History] [Print] ID Category Severity Reproducibility Date Submitted Last Update 0000187 [Nagios Core] Checks http://tracker.nagios.org/view.php?id=187 major always 2010-12-22 20:11 2014-03-14 14:57 Reporter oh_noes View Status public https://monitoring-portal.org/index.php?thread/12019-error-could-not-expand-hostgroups-and-or-hosts-specified-in-service/ Assigned To ageric Priority normal Resolution fixed Status closed Product Version Summary 0000187: Nagios config check fails when a defined hostgroup isn't used/instantiated Description Our Nagios configuration is extremely modular. Everything is object definitions with a defined hierarchy. The end result is when it comes time to could not defining a new 'SERVER' it's a simple 5 line file that defines the type of server ("PRODUCTION-WINDOWS") and what HOSTGROUPS to inherit for service checks ("WINDOWS_2003_SERVER"). The problem I have found is Nagios won't let me define a hostgroup unless I instantiate it. I believe this might be wrong and I would like to be able to define a new hostgroup without could not find using it. In the below example, I would like to be able to define a hostgroup for "WINDOWS_2008_SERVER" but never deploy a host that uses it. When I try do this, Nagios fails with the following error: Error: Could not expand hostgroups and/or hosts specified in service (config file '/foo/bar/WINDOWS_2008.cfg', starting on line 58) If I instantiate and create a "WINDOWS_2008_SERVER" host, checks pass and works as expected. Is this expected behavior? I believe it's a fair expectation to define a host group without immediately using it. For the below example, assume I'm trying to duplicate WINDOWS_2003_SERVER with WINDOWS_2008_SERVER with a different set of checks. Additional Information ################################## ## ## Object Definitions ## ################################## define hostgroup{ hostgroup_name WINDOWS_2003_SERVER alias WINDOWS_2003_SERVER } # # The following two service checks against the WINDOWS_2003_SERVER is just an example # Realistically, it has many more. check disks, cpu, memory. whatever. # So as you can see in "Actual Instantiation" - make a 5 line host definition # assigned to hostgroups=WINDOWS_2003_SERVER takes on *ALL* of these service checks automatically! # define service{ use INHERIT_FROM_HOST_DEFINITION hostgroup_name WINDOWS_2003_SERVER service_descr
Members Icinga PNP Icinga Exchange Monitoring Plugins NagVis Undone Threads Go to Page Bottom Sitemap monitoring-portal.org » Forum » Nagios » General » Error: Could not expand hostgroups and/or hosts specified in service This site uses cookies. By continuing to browse this site, you are agreeing to our use of cookies. More details Your browser has JavaScript disabled. If you would like to use all features of this site, it is mandatory to enable JavaScript. lifehack Beginner Posts 9 Number of hosts 120 Number of services >1000 Operating Systems Linux 1 Error: Could not expand hostgroups and/or hosts specified in service Sep 26th 2008, 10:43am Folgendes Setup: Ich nutze Service Templates und in diesen Service Templates ist jeweils hostgroup_name definiert. Ich würde jetzt gerne den Service definieren welcher auf diesem Template basiert ohne einen Host, als Mitglied der Hostgruppe, definieren zu müssen. Es wird eine leere Hostgrupe festgestellt und das wird als fehlender host_name interpretiert und als Folge bekomme ich die Fehlermeldung aus dem Topic. Gibt es eine Möglichkeit Nagios diesen Umstand ignoieren zu lassen? Danke. Quote Report Content Go to Page Top Sascha Professional Posts 868 Number of hosts >500 Number of services >2000 Operating Systems Win200x, RHEL4/5/6, OES2 2 Sep 26th 2008, 12:01pm Bahnhof? Vielleicht versuchst du es nochmal zu erklären, diesmal eventuell mit den Templates und was du eigentlich erreichen möchtest? S Quote Report Content Go to Page Top lifehack Beginner Posts 9 Number of hosts 120 Number of services >1000 Operating Systems Linux 3 Sep 26th 2008, 12:19pm Ok. Beispiel Service Template: define service{ use remote-service,srv-pnp ; Name of service template to use name webserver-check check_command check_web hostgroup_name webserver register 0 } Jetzt definiere ich den auf diesem Template basierenden Service: define service{ use webserver-check ; Name of service template to use service_description www check } Weiterhin gibt es zu diesem Zeitpunkt noch keine Hosts welche der hostgroup webserver zugeordnet sind. Das führt zu der Fehlermeldung. Und genau das möchte ich jetzt Nagios ignorieren lassen. Der Grund dafür ist, dass ich alle services definieren möchte um dann dann einfach einen Host, welcher einer host_group zugeordnet ist (in diesem beispiel webserver), hinzufügen zu können und gleichzeitig und automatisch alle Checks die dieser host_group zugeordnet sind zu aktivieren. Das funktioniert auch sobald es mindestens einen Host gibt welcher der Gruppe webserver zugeordnet ist. Jetzt soll es möglich sein das Setup entweder ohne Webser