Page 1 of 1

XI: support for service definitions (with "parents" attribut

Posted: Fri Aug 06, 2021 3:20 pm
by inversecow
Ahoy folks,

Some of my users (Openshift team) are looking at how they run their service monitors.
Given the dynamic "ebb & flow" of hosts in their environment, they were asking after the notion of "parent/child" for service monitors.
Essentially the same sort of thing that is on offer from a HOST monitor perspective (EG: "manage parents" button).

Is this something that is / will be available within XI / CCM?
I see this is apparently supported via the nagios core offering, at some point in the 4.x release cycle.

https://assets.nagios.com/downloads/nag ... ml#service

Code: Select all

parents:
This directive is used to define a comma-delimited list of short names of the "parent" services for this particular service.
Parent services are typically other services that need to be available in order for a check of this service to occur.
For example, if a service checks the status of a disk using SSH, the disk check service would have the SSH service as a parent.
If the service has no parent services, simply omit the "parents" directive.
More complex service dependencies may be specified with service dependency objects.
They would much rather use this vs having to figure out the service dependency system (if possible).
Thoughts?

Signed,

- Rowan

Re: XI: support for service definitions (with "parents" attr

Posted: Mon Aug 09, 2021 1:29 pm
by ssax
Interesting, I didn't even know that existed for services. I have submitted a feature request to development requesting they add the Manage Parents button:

FR: XI - CCM - Edit Service - Add Manage Parents to the edit service page since Core 4 now supports it

I was able to set them up in /usr/local/nagios/etc/static but dev would need to add that functionality into the CCM to be able to do that through the CCM:

/usr/local/nagios/etc/static/testserviceparent.cfg:

Code: Select all

define host {
    host_name     testserviceparent
    use           linux-server
    alias         localhost
    address       127.0.0.1
    register      1
}


define service {
    host_name              testserviceparent
    service_description    Current Load
    use                    local-service
    check_command          check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
    register               1
}

define service {
    host_name              testserviceparent
    service_description    HTTP
    use                    local-service
    check_command          check_http
    register               1
}

define service {
    host_name              testserviceparent
    service_description    Current Users
    use                    local-service
    parents                HTTP
    check_command          check_local_users!20!50
    register               1
}

Re: XI: support for service definitions (with "parents" attr

Posted: Wed Aug 18, 2021 6:02 pm
by inversecow
Superb, and thanks for logging the FR on this matter.
Also thank you for the notes you posted below, will pass those along to my users.

Is there any good XI level references / docs for handling service dependencies?
I had a look but it all seems to map back to nagios (core) level stuff, which I have yet to get working in XI level dependencies configs.

Re: XI: support for service definitions (with "parents" attr

Posted: Thu Aug 19, 2021 2:10 pm
by ssax