My real problem I think is that I 'whittled' it down in the wrong way (thanks for the help, everyone). Below is what I was hoping to do, but realize that b/c I HAVE to define a host w/ the escalation, I have to retool how my monster config is done (which will really suck). Here's what I was hoping to accomplish:<br>

<br>1) Create a generic service template that all service checks inherit that adds them to the 'all-services' group.<br>2) Create escalation rules that apply to the 'all-services' group.<br><br>This worked (basically a more complicated example of  the config I gave) until I added a 'all-services-foo' group (same method mentioned in #1 and #2) with different escalations.<br>

<br>From a design perspective, I know Nagios does a great job w/ templating, and object inheritance, but it really sucks that I have to specify a host; that just increased the amount of objects easily by an order or so of magnitude.<br>

<br>Best,<br>Eric<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 6:48 AM, Paul M. Dubuc <span dir="ltr"><<a href="mailto:work@paul.dubuc.org">work@paul.dubuc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

First, your service has no service_description specified.  This is required.<br>
<br>
Second, your serviceescalation must include the host_name that the service is assigned to.  Add the line:<br>
<br>
host_name       <a href="http://admin.qa" target="_blank">admin.qa</a><br>
<br>
and it will work.  You can also use a hostgroup_name instead of a host_name, but every host you specify must have a service with a service_description that matches that specified in the escalation.<br>
<br>
See the documentation for details:<br>
<a href="http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html" target="_blank">http://nagios.sourceforge.net/<u></u>docs/nagioscore/3/en/<u></u>objectdefinitions.html</a><br>
<br>
<br>
Eric B. wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
This has me stumped. I whittled my ugly config down to 35 lines, and was<br>
still able to re-create the error. Any ideas what is wrong? I'm running<br>
Nagios Core v. 3.2.3. Much thanks in advance!<br>
<br>
-Eric<br>
<br>
Error is:<br>
<br>
Error: Could not expand servicegroups specified in service escalation<br>
(config file '/home/opsmon/etc/nagios/<u></u>objects/qbo/foo.cfg', starting on<br>
line 13)<br>
    Error processing object config files!<br>
<br>
Here's the config:<br>
<br>
define servicegroup {<br>
    servicegroup_name       group-1<br>
    alias                   All Services<br>
    register                0<br>
}<br>
<br>
define contact {<br>
    contact_name            primary-oncall<br>
    alias                   Primary Oncall<br></div>
    email <a href="mailto:foo@bar.com" target="_blank">foo@bar.com</a> <mailto:<a href="mailto:foo@bar.com" target="_blank">foo@bar.com</a>><div class="im"><br>
}<br>
<br>
define serviceescalation {<br>
    servicegroup_name       group-1<br>
    first_notification      1<br>
    last_notification       6<br>
    notification_interval   5<br>
    contacts                primary-oncall<br>
}<br>
<br>
define service {<br>
    servicegroups           group-1<br></div>
    host_name <a href="http://admin.qa" target="_blank">admin.qa</a> <<a href="http://admin.qa" target="_blank">http://admin.qa</a>><div class="im"><br>
    check_command           check_foo<br>
}<br>
<br>
define host {<br></div>
    host_name <a href="http://admin.qa" target="_blank">admin.qa</a> <<a href="http://admin.qa" target="_blank">http://admin.qa</a>><div class="im"><br>
    address                 127.0.0.1<br>
}<br>
<br>
define command {<br>
    command_name   check_foo<br>
    command_line   /bin/true<br>
}<br>
<br>
<br>
<br></div><div class="im">
------------------------------<u></u>------------------------------<u></u>------------------<br>
All of the data generated in your IT infrastructure is seriously valuable.<br>
Why? It contains a definitive record of application performance, security<br>
threats, fraudulent activity, and more. Splunk takes this data and makes<br>
sense of it. IT sense. And common sense.<br>
<a href="http://p.sf.net/sfu/splunk-d2d-c2" target="_blank">http://p.sf.net/sfu/splunk-<u></u>d2d-c2</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.<u></u>sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/<u></u>lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></blockquote>
<br>
</blockquote></div><br>