|
Service dependency with hostgroups / hosts 5 Months, 3 Weeks ago
|
Karma: 0
|
Hi
I've managed to get Nagiosql up and running, and I've done some tweaking to an existing configuration I've imported.
This gave me some problems, so I deleted the faulty entries, and tried to start with those entries from scratch...
Right now, I have (among other things):
| Code: |
define hostgroup {
hostgroup_name tsm-instances
alias TSM Instanser
members rb00,rb01,rb02,rb03,rb04,rb05,rb06,rb07,rb08,rb09,rb10,rb11,rb12,rb13,rb14,rb15,rb16,rb17,rb18,rb19,rb20,rb22,rb23,rb24,rb25,rb26,rb27,rb28,rb30,rb32,rb51
}
define hostgroup {
hostgroup_name TSM-Primary
alias TSM Primary Instances
members rb01,rb02,rb03,rb04,rb05,rb06,rb07,rb08,rb09,rb11,rb12,rb13,rb14,rb15,rb16,rb17,rb18,rb19,rb20,rb21,rb23,rb26,rb28,rb30
}
define service {
hostgroup_name tsm-instances
service_description TSM Connectivity
use generic-service
check_command check_tsm_conn
max_check_attempts 4
check_interval 3
retry_interval 1
check_period 24x7
notification_interval 30
notification_period 24x7
notification_options r,c
contact_groups vagt,nt-admins,tsm-drift
register 1
}
define service {
hostgroup_name TSM-Primary
service_description TSM VTAPE Pool Utilization
servicegroups tsm-stg
use templ-vtape-util
check_command check_tsm_stgpoolutil_freegb_type!3072!2048!VTAPE
max_check_attempts 4
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 240
notification_period 24x7
notification_options w,r,c
contact_groups nt-admins,tsm-drift,tsm-expiration
register 1
}
|
Now, if I go to service dependencies, and tries to make a service dependency with rb30 as host - then I'm not able to locate the service "TSM Connectivity" on RB30 - even though the service check actually exists on the host, since it is included in the tsm-instances hostgroup....
And also the service "TSM VTAPE Pool Utilization" isn't listed... So it seems like if you choose to use hostgroups for the service checks, nagiosql is not able to resolve the hosts in the hostgroup - so the right services are displayed with the selected host in the services dependency configuration....
Regards,
/Rduck
|
|
rduck
Fresh Boarder
Posts: 4
|