Page MenuHomePhabricator

Icinga Log Permission Conflict with Puppet Configuration
Closed, ResolvedPublicBUG REPORT

Description

Problem:
Icinga writes logs as nagios:nagios to /var/log/icinga/icinga.log. However, Puppet sets the permissions of the /var/log/icinga directory as follows:

file { '/var/log/icinga':
   ensure => 'directory',
   owner => $icinga_user,
   group => 'adm',
   mode => '2755',
}

This configuration causes Puppet to change the permissions on every run, with the following notice: Notice: /Stage[main]/Icinga/File[/var/log/icinga/icinga.log]/group: group changed 'nagios' to 'adm' (corrective).

Proposed Solutions:

  1. Option 1: Configure Icinga to write logs as nagios:adm.
  2. Option 2: Update Puppet permissions to set nagios as the group for the /var/log/icinga directory.

Event Timeline

Change 1007470 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] icinga: Set log group to 'adm' for consistency with other tools

https://gerrit.wikimedia.org/r/1007470

Change 1007470 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[operations/puppet@production] icinga: Set log group to 'nagios' to resolve permission conflicts

https://gerrit.wikimedia.org/r/1007470

Change 1007470 merged by Andrea Denisse:

[operations/puppet@production] icinga: Set log group to 'nagios' to resolve permission conflicts

https://gerrit.wikimedia.org/r/1007470