Could not expand member services
Posted: Tue Aug 13, 2013 10:12 am
This was going to be a post about trying to figure out what was wrong with my config, but now I figured that out. Now this will be about misleading error messages
. I had a working set of config files and I am adding a new one that adds new hosts and services but uses servicegroups defined in existing config files. A config check with the new file kept erroring with
The line referenced in the error was a servicegroup definition in an existing file that has always worked up until this point. I was starting to think that I hit some servicegroup membership ceiling or something. What I found was that my new config had a couple of services with a blank service_description and blank check_command as a result of an error in my script to generate the config file. So, the actual error was totally my fault but the Nagios error was pointing me in the complete wrong direction. Shouldn't it have instead errored on a service with a blank service_description?
Code: Select all
Error: Could not expand member services specified in servicegroup (config file /blah/blah) ....The line referenced in the error was a servicegroup definition in an existing file that has always worked up until this point. I was starting to think that I hit some servicegroup membership ceiling or something. What I found was that my new config had a couple of services with a blank service_description and blank check_command as a result of an error in my script to generate the config file. So, the actual error was totally my fault but the Nagios error was pointing me in the complete wrong direction. Shouldn't it have instead errored on a service with a blank service_description?