Closed
Description
This issue respects the following points:
- This is a bug, not a question or a setup/configuration issue.
- This issue is not already reported on Github (I've searched it).
- I use the latest release of the Monitoring Plugins (https://github.com/Linuxfabrik/monitoring-plugins/releases).
- I agree to follow Monitoring Plugins's Code of Conduct.
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