Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 201 forks source link

Deactivating Host Service from Service Set doesn't create Activity Log entry due to missing Hash Change #2911

Open Wintermute2k6 opened 2 weeks ago

Wintermute2k6 commented 2 weeks ago

Expected Behavior

Most host/service changes in the director module create viewable traceable/change in the activity log. This is for debugging reasons great also for debugging.

Current Behavior

Creating a Service => hash change in Activity log Creating a Service Set => hash chnage in Activity log Deactivating service on host from service sest => no trace from that action in the activity log

Possible Solution

creating a hash for the 'deactivating' and create an traceable entry in the activity log ?

Steps to Reproduce (for bugs)

Your Environment

Wintermute2k6 commented 2 weeks ago

ref/NC/827341

raviks789 commented 4 days ago

To be clear on why this is an issue. Here is how the logging of services currently works.

  1. When you delete a single service directly attached to an host, or an applied service or a service in a service set. The activity is logged as it should.
  2. But when you particularly navigate to a host and deactivate a service that is inherited from an host template or applied through a service apply rule or a service under a service set the activity is not logged.

Why is it a problem to not log deactivating a service in a specific host?

It is difficult to know in which hosts the said service is deactivated. Even for small number of hosts it would be cumbersome to navigate to individual hosts and check whether that service is deactivated.

So, it would be necessary to also log when a service is deactivated in a specific host for it to be traceable.