Login

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Service dependency with hostgroups / hosts
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Service dependency with hostgroups / hosts
#1385
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
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1386
Re:Service dependency with hostgroups / hosts 5 Months, 3 Weeks ago Karma: 5
Have you replaced yor nag_class.php file which this one:

www.nagiosql.org/forum/10-solved-issues/...agclass-to-test.html
martin
NagiosQL Founder
Posts: 309
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1388
Re:Service dependency with hostgroups / hosts 5 Months, 2 Weeks ago Karma: 0
Hi

Replacing this file partly solves the problem with the services I'm able to see/select.... Only issue is that when I select some services and save the config to the SQL - then they are not selected when editing the record afterwards - just as the selected services aren't written to the serviceescalations.cfg file...

Regards,
/R
rduck
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1394
Re:Service dependency with hostgroups / hosts 5 Months, 2 Weeks ago Karma: 0
Problem serviceescalations is caused by a bug in serviceescalations - see www.nagiosql.org/forum/5-general-questio...ice-escalations.html
rduck
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1