shinken icon indicating copy to clipboard operation
shinken copied to clipboard

servicegroups conf incorrect

Open sjose1x opened this issue 5 years ago • 2 comments

shinken - 2.0.3 Python - 2.6.6 CentOS release 6.10 (Final)

Host Definition

 define host {
     host_name                      10.10.205.57
     use                            concertongd-server
    address                        10.10.205.57
    alias                          10.10.205.57
    hostgroups                     concertongd-servers
   service_excludes               Product__CONCERTO__Windows-Process__IISADMI__Status
 }

Hostgroups

define hostgroup {
     hostgroup_name    concertongd-servers
     alias             Concertongd Servers
    notes             Concerto Servers
  }

Service Groups

define servicegroup {
    servicegroup_name   wmi-services
    alias               WMI Services
}

define servicegroup {
    servicegroup_name   master-wmi-services
    alias               Master WMI Services
}

Services

define service {
  use                            wmi-dependant-service
  service_description            Product__CONCERTO__Windows-Process__NetTcpPortingSharing__Status
  check_command                  check_win_process!SMSvcHost.exe
  hostgroup_name                 concertongd-servers
}
define service {
  use                            wmi-dependant-service
  service_description            Product__CONCERTO__Windows-Process__ConcertoScalabilityD__Status
  check_command                  check_win_process!Concerto.Scalability.Daemon.exe
  hostgroup_name                 concertongd-servers
}
define service {
  use                            wmi-dependant-service
  service_description            Product__CONCERTO__Windows-Process__PhilipsServiceAgent__Status
  check_command                  check_win_process!qsaMain.exe
  hostgroup_name                 concertongd-servers
}
define service {
  use                            wmi-dependant-service
  service_description            Product__CONCERTO__Windows-Process__IISADMI__Status
  check_command                  check_win_process!inetinfo.exe
  hostgroup_name                 concertongd-servers

}

Service Template

define service{
    name                            generic-service 
    active_checks_enabled           1               
    passive_checks_enabled          1               
    parallelize_check               1               
    obsess_over_service             1               
    check_freshness                 0               
    notifications_enabled           1               
    event_handler_enabled           1               
    flap_detection_enabled          1               
    failure_prediction_enabled      1               
    process_perf_data               1               
    retain_status_information       1               
    retain_nonstatus_information    1               
    is_volatile                     0               
    check_period                    24x7            
    max_check_attempts              3               
    check_interval                  10              
    retry_interval                  2               
    contact_groups                  admins          
    notification_options            w,c,r           
    notification_interval           60              
    notification_period             24x7            
    action_url                      /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/pnp4nagios/popup?host=$HOSTNAME$&srv=$SERVICEDESC$
    register                        0               
    }

define service{
    name              standard-service
    use               generic-service
    check_interval    5
    register          0
    }

define service {
    name              wmi-service
    use               standard-service
    servicegroups     wmi-services
    check_interval    10
    register          0
    }

define service {
    name          wmi-dependant-service
    use           wmi-service
    _wmiprefix    $PLUGINSDIR$/short_c.py -X '$SERVICESTATE::OS__Microsoft__Windows__WMI__Status$' -C
    register      0
    }

Host Template

define host {
    name                            generic-host     
    notifications_enabled           1                
    event_handler_enabled           1                
    flap_detection_enabled          1                
    failure_prediction_enabled      1                
    process_perf_data               1                
    retain_status_information       1                
    retain_nonstatus_information    1                
    notification_period             24x7             
    check_period                    24x7             
    max_check_attempts              4                
    check_command                   check-host-alive 
    contact_groups                  admins           
    notification_interval           30               
    notification_options            d,u,r            
    check_interval                  5                
    retry_interval                  2                
    action_url                      /pnp4nagios/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/popup?host=$HOSTNAME$&srv=_HOST_
    _address_command                /bin/echo $HOSTADDRESS$
    register                        0                
    }

define host {
    name           windows-server
    use            generic-host
    hostgroups     windows-servers
    _dtype         --windows
    _uuidparent    $SERVICEOUTPUT::OS__Microsoft__Windows__Information__UUID$
    _wmicargs      --extrawmicarg "--option=client ntlmv2 auth=Yes"
    _wmiflags      --ntlmv2auth
    _memwarn       $MEM_WARN$
    _memcrit       $MEM_CRIT$
    _usr           $USER154$
    _key           $USER155$
    register       0
    }

define host {
    name           ngd-server
    use            windows-server
    _wmicargs      --extrawmicarg "--option=client ntlmv2 auth=Yes"
    _wmiflags      --ntlmv2auth
    #hostgroups     +windows-timesync-servers
    check_command  check-wmi-host-alive
    register       0
    }

define host {
    name          concertongd-server
    use           ngd-server
    _usr          $USER54$
    _key          $USER55$
    register      0
    }

service shinken-arbiter start results in error

[1571909926] Error : [itemgroup::wmi-services] as servicegroup, got unknown member 10.10.205.57,Product__CONCERTO__Windows-Process__IISADMI__Status [1571909926] Error : [items] In wmi-services is incorrect ; from /etc/philips/shinken/servicegroups/wmi.cfg:2 [1571909926] Error : [itemgroup::master-wmi-services] as servicegroup, got unknown member 10.10.205.57,Product__CONCERTO__Windows-Process__IISADMI__Status [1571909926] Error : [items] In master-wmi-services is incorrect ; from /etc/philips/shinken/servicegroups/wmi.cfg:7 [1571909926] Error : servicegroups conf incorrect!!

sjose1x avatar Oct 25 '19 05:10 sjose1x

shinken - 2.0.3

Just to be clear, is this a typo or are you actually reporting a configuration bug for an old version (and a really old one, by the way)?

danirod avatar Oct 25 '19 12:10 danirod

shinken - 2.0.3

Just to be clear, is this a typo or are you actually reporting a configuration bug for an old version (and a really old one, by the way)?

That is the shinken version (Shinken - 2.0.3) I'm using for my project, Found the issue there, did not check in any other versions of Shinken

sjose1x avatar Oct 30 '19 05:10 sjose1x