Skip to content

sudoers: file deployed twice #903

Closed
Closed
@thesefer

Description

@thesefer

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

  • .rpm/.deb package from repo.linuxfabrik.ch
  • Compiled for Windows from download.linuxfabrik.ch
  • Source Code from GitHub

Bug description

The debian package seems to deploy the sudoers file twice and they are different:

/etc/sudoers.d/linuxfabrik-monitoring-plugins and /etc/sudoers.d/monitoring-plugins

Steps to reproduce - Plugin call

diff /etc/sudoers.d/linuxfabrik-monitoring-plugins /etc/sudoers.d/monitoring-plugins

Steps to reproduce - Data

1c1,3
< Cmnd_Alias LF_NAGIOS = /usr/lib64/nagios/plugins/about-me,\
---
> # This file is managed by Ansible - do not edit
>
> Cmnd_Alias NAGIOS = /usr/lib64/nagios/plugins/about-me,\
3d4
<                     /usr/lib64/nagios/plugins/deb-updates,\
31,32c32
<                     /usr/lib64/nagios/plugins/strongswan-connections,\
<                     /usr/lib64/nagios/plugins/systemd-unit
---
>                     /usr/lib64/nagios/plugins/strongswan-connections
35c35
< Defaults!LF_NAGIOS !syslog
---
> Defaults!NAGIOS !syslog
37c37
< nagios ALL = NOPASSWD: LF_NAGIOS
---
> nagios ALL = NOPASSWD: NAGIOS

Environment

Linux alp96 5.15.0-134-generic #145-Ubuntu SMP Wed Feb 12 20:08:39 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Plugin Version

2.1.1-1

Python version

No response

List of Python modules

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions