You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
👻 Brief Description
When the conf.d/services.cfg file is populated, each service with a servicegroup assignment is given a "servicegroups" directive. At the same time, when conf.d/servicegroups.cfg is populated, each service group is given a "members" directive. I imagine in most situations this works fine, but if I need to have a service defined with an host_name directive that includes a negated/excluded hostname (hostname prefixed with !), the servicegroups.cfg definition does not respect that exclusion. For example, my existing configuration creates something like this:
The result is that the nagios service will not start because it cannot locate my-service on somehost.
🥞 Cookbook version
Version of the cookbook where you are encountering the issue: 11.1.4
👩🍳 Chef-Infra Version
Version of chef-client in your environment: 17.10.3
🎩 Platform details
Operating system distribution and release version: Ubuntu 22.04
Steps To Reproduce
Steps to reproduce the behavior:
Create a data bag for a service which includes both a servicegroups directive and a host_name directive. The host_name directive needs to contain a negated/excluded host.
Then create a data bag for a servicegroup to be referenced by the previously defined service.
🚓 Expected behavior
As the documentation for Nagios 4 indicates that object definition for a service with a servicegroups directive is an alternative to the object definition for a servicegroup with a members directive, it would be ideal to do one or the other, not both. I'd prefer to have the servicegroups directive attached to a service than individual services enumerated in the servicegroups definitions so that Nagios can intelligently exclude hosts that are negated by the service definitions host_name directive.
➕ Additional context
No additional context
The text was updated successfully, but these errors were encountered:
🗣️ Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
👻 Brief Description
When the conf.d/services.cfg file is populated, each service with a servicegroup assignment is given a "servicegroups" directive. At the same time, when conf.d/servicegroups.cfg is populated, each service group is given a "members" directive. I imagine in most situations this works fine, but if I need to have a service defined with an host_name directive that includes a negated/excluded hostname (hostname prefixed with !), the servicegroups.cfg definition does not respect that exclusion. For example, my existing configuration creates something like this:
The result is that the nagios service will not start because it cannot locate my-service on somehost.
🥞 Cookbook version
Version of the cookbook where you are encountering the issue: 11.1.4
👩🍳 Chef-Infra Version
Version of chef-client in your environment: 17.10.3
🎩 Platform details
Operating system distribution and release version: Ubuntu 22.04
Steps To Reproduce
Steps to reproduce the behavior:
Create a data bag for a service which includes both a servicegroups directive and a host_name directive. The host_name directive needs to contain a negated/excluded host.
Then create a data bag for a servicegroup to be referenced by the previously defined service.
🚓 Expected behavior
As the documentation for Nagios 4 indicates that object definition for a service with a servicegroups directive is an alternative to the object definition for a servicegroup with a members directive, it would be ideal to do one or the other, not both. I'd prefer to have the servicegroups directive attached to a service than individual services enumerated in the servicegroups definitions so that Nagios can intelligently exclude hosts that are negated by the service definitions host_name directive.
➕ Additional context
No additional context
The text was updated successfully, but these errors were encountered: