Expand service group error in 43 line test config (why?)

Axel Rosenski rosenski at wave-computer.de
Tue Jun 28 09:16:28 CEST 2011


Hi, 

Am Montag, 27. Jun. 11, 23:45:37 schrieb Eric B.:
> Error: Could not expand servicegroups specified in service escalation
> (config file '/home/opsmon/etc/nagios/objects/qbo/foo.cfg', starting on
> line 13)
>    Error processing object config files!

afaics you do not reference your service(group) in your host definition. 
You have to add your host to this servicegroup and the error should disappear.

I had the same issue with my hostgroup definition

HTH
Axel 


> 
> Here's the config:
> 
> define servicegroup {
>    servicegroup_name       group-1
>    alias                   All Services
>    register                0
> }
> 
> define contact {
>    contact_name            primary-oncall
>    alias                   Primary Oncall
>    email                   foo at bar.com
> }
> 
> define serviceescalation {
>    servicegroup_name       group-1
>    first_notification      1
>    last_notification       6
>    notification_interval   5
>    contacts                primary-oncall
> }
> 
> define service {
>    servicegroups           group-1
>    host_name               admin.qa
>    check_command           check_foo
> }
> 
> define host {
>    host_name               admin.qa
>    address                 127.0.0.1
> }
> 
> define command {
>    command_name   check_foo
>    command_line   /bin/true
> }


-- 
Axel Rosenski
- Administration -
______________________________
Wave Computersysteme GmbH
Philipp-Reis-Str. 1-3 / 9
35440 Linden

Geschäftsführer: Carsten Kellmann
Registergericht Gießen HRB 1823

Tel.: +49 (0)6403 / 9050 8317
Fax: +49 (0)6403 / 9050 5089
mailto:rosenski at wave-computer.de
http://www.wave-computer.de


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list