Error Could Not Expand Member Hosts Specified In Host Group
Contents |
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not
Nagios Regex
be possible with some types of ads) More information about our could not expand hostgroups and/or hosts specified in service ad policies X You seem to have CSS turned off. Please don't fill out this field. You nagios host groups seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload 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 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
not expand member hosts specified in hostgroup (config file'/usr/local/nagios/etc/hostgroup.cfg', line 1).The first line of my hostgroup.cfg file is:define hostgroup{But the word "define" is in "yellow" because of a bad minupulation with VI!!!I think it's could be the problem, but i don't know how to solve it !!David StrappazonMOTOR PRESSE FRANCEService Informatique***@motorpresse.fr Marc Powell 2004-02-19 08:38:19 UTC PermalinkRaw Message ________________________________From: David https://sourceforge.net/p/nagios/mailman/message/18950202/ Strappazon [mailto:***@motorpresse.fr]Sent: Thursday, February 19, 2004 10:12 AMTo: nagios-***@lists.sourceforge.netSubject: [Nagios-users] could not expand member hosts specified inhostgroup....I have got this error when running /usr/local/nagios/bin/nagios -vnagios.cfg:Could not expand member hosts specified in hostgroup (config file'/usr/local/nagios/etc/hostgroup.cfg', line 1).The first line of my hostgroup.cfg file is:define hostgroup{But the http://nagios-users.narkive.com/g5aKoBLz/could-not-expand-member-hosts-specified-in-hostgroup word "define" is in "yellow" because of a bad minupulation withVI !!!I think it's could be the problem, but i don't know how to solve it !!-----------------I'm sure that's not the case. Vi syntax highighting is a function of viand is not embedded within the file itself. It's probably just the lastthing you searched for. The real problem is that nagios has been unableto parse your hostgroup definition properly, either because it containsno members or some expansion is failing (wildcards maybe). If you couldpost your entire hostgroup definition, including any external referencesthat it might make, that would be helpful.--Marc Marc Powell 2004-02-19 09:04:54 UTC PermalinkRaw Message On Thursday, February 19, 2004 10:44 AM, David Strappazon shared withPost by David Strappazondefine hostgroup{hostgroup_name INFORMATIQUEalias pc duservice informatiquePost by David Strappazoncontact_groups davidmembers levenshostgroup_name INTERNETalias serviceinternet motorpressePost
Sign in Pricing Blog Support Search GitHub This repository Watch 33 Star 124 Fork 279 schubergphilis/nagios Code Issues 18 Pull requests 0 Projects 0 Wiki Pulse Graphs New https://github.com/schubergphilis/nagios/issues/354 issue /etc/nagios/conf.d/servicegroups.cfg being generated with services but no hosts #354 Closed GitBytes opened this Issue Mar 31, 2015 · 14 comments Projects None yet Labels None yet Milestone No milestone https://monitoring-portal.org/index.php?thread/14652-solved-need-advice-struggling-to-get-to-grips-with-the-config-files-and-how-they/ Assignees No one assigned 2 participants GitBytes commented Mar 31, 2015 I am running into an interesting feature.. Scenario: Generating a servicegroups.cfg via (example) nagios_servicegroups/custom_servicegroup.json databag file: { "id": "SS", "alias": "Some could not Alias", "notes": "SomeService Note" } and using the following (example) nagios_services/custom_service.json databag: { "id": "SSMaster", "hostgroup_name": "SSMaster_list", "command_line": "$USER1$/check_something...", "servicegroups": "SS" } It would seem that when members are added to the servicegroups.cfg file, only the service description name (ex. ssmaster), is being added to the list and not ANY hosts (servicegroups.cfg): line 7: define servicegroup { line 8: servicegroup_name SS line 9: members could not expand ssmaster line 10: } This breaks the nagios config check (nagios -v /etc/nagios/nagios.cfg) seemingly with output like this: Nagios Core 3.5.1 Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors ... ... Error: Could not find a service matching host name 'ssmaster' and description 'nodeX' (config file '/etc/nagios/conf.d/servicegroups.cfg', starting on line 9) Error: Could not expand member services specified in servicegroup (config file '/etc/nagios/conf.d/servicegroups.cfg', starting on line 9) Error processing object config files! The 'nodeX' becomes other services if they are added to the services databag with the "servicegroups": "SS" line. Is my method to deploy servicegroups wrong here? Am I missing something that could allow a better or no member list to be generated? If I comment out the members line in the servicegroups.cfg file, things seem to work properly...oddly enough because of the servicegroups SS line in the services.cfg file. Any thoughts on this issue? Bottom line, members in the servicegroups.cfg file are only being populated with services and not hosts except in the case of a single service, then it grabs a seemingly random host and populates in wrong order (service,host or service,service.. instead of host,service,host,service...) GitBytes c
Members Icinga PNP Icinga Exchange Monitoring Plugins NagVis Undone Threads Go to Page Bottom Sitemap monitoring-portal.org » Forum » Nagios » Configuration » [SOLVED] Need advice : struggling to get to grips with the config files and how they relate. 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. kristiaan_d Beginner Posts 37 Occupation Computer Engineer Number of hosts 6 Number of services 6 per server Operating Systems Ubuntu 9.04 server 1 [SOLVED] Need advice : struggling to get to grips with the config files and how they relate. May 26th 2009, 12:35pm Hi Guys, need some help and advice regarding the config files in nagios. when i first got the sytem running i did a quick test by creating a service check for a program that did not exist, this started generating a critical error on the web interface and i started to get emails warning me of this. since i modified the contact.cfg file to add another person into the list neither of us are getting these warnings, i did however notice that when i tried to change the shortname for both me and the other guy nagios refused to accept the config files stating they were invalid. can someone please have a look at the following config files and tell me what i am doing wrong please and some advice on what i should be doing please.. contacts.cfg Source Code # This contact definition inherits a lot of default values from the 'generic-contact' # template which is defined elsewhere. define contact{ contact_name kristiaan davies ; Short name of user use generic-contact ; Inherit default values from generic-contact template (de$ alias nagiosadmin ; Full name of user email firstemail@address.co.uk }