shinken-solutions / shinken

Flexible and scalable monitoring framework
http://www.shinken-monitoring.org
GNU Affero General Public License v3.0
1.13k stars 336 forks source link

servicegroup definition with members directive is ignored #1848

Closed diogouchoas closed 8 years ago

diogouchoas commented 8 years ago

When I try to add a servicegroup with members defined, this configuration never gets loaded. It seems to be completely ignored.

define servicegroup{
        servicegroup_name       lupa
        alias                   Lupa BI
        members       wflupabd001,SQL SERVER Connection,wvlupaetl001,SQL SERVER Connection,wvlupa004,CPU,wvlupa004,DISK USAGE C,wvlupa004,HTTP lupa.animaeducacao.com.br,wvlupa004,Service - IBM Cognos,wvtm1001,CPU,wvtm1001,DISK USAGE C,wvtm1001,DISK USAGE D,wvtm1001,MEMORY,wvtm1001,PAGED MEMORY,wvtm1002,CPU,wvtm1002,DISK USAGE C,wvtm1002,DISK USAGE D,wvtm1002,MEMORY,wvtm1002,PAGED MEMORY,wvtm1002,Service - IBM Cognos,wvtm1db001,CPU,wvtm1db001,DISK USAGE C,wvtm1db001,DISK USAGE D,wvtm1db001,MEMORY,wvtm1db001,PAGED MEMORY,wvtm1db001,SQL SERVER Connection
}

But if I pass the servicegroup directive on the service definition, it works without a problem.

define service{
    host_name           wflupabd001
    service_description     SQL SERVER Connection
    check_command       check_mssql_conn
    use                     lupa-aux
    servicegroups                  lupa

}
diogouchoas commented 8 years ago

For some reason the shinken arbiter wasn't loading this servicegroup with only a "reload". I had to do a full restart for it to be recognized.