icinga2.sudoers 784 B

12345678910111213141516171819202122232425
  1. #
  2. # sudoers file for Icinga2 monitoring commands (Salt managed)
  3. #
  4. # No lecture for the nagios user
  5. Defaults: nagios lecture=never
  6. # Network basics (IP, conntrack, routing)
  7. nagios ALL=NOPASSWD: /usr/local/share/monitoring-plugins/check_ifupdown2
  8. nagios ALL=NOPASSWD: /usr/local/share/monitoring-plugins/check_conntrack_size
  9. nagios ALL=NOPASSWD: /usr/local/share/monitoring-plugins/check_bird_ospf
  10. nagios ALL=NOPASSWD: /usr/local/share/monitoring-plugins/check_bird_bgp
  11. # DHCP
  12. nagios ALL=NOPASSWD: /usr/local/sbin/dhcpd-pool
  13. # Mail
  14. nagios ALL=NOPASSWD: /usr/lib/nagios/plugins/check_mailq
  15. # LVM
  16. nagios ALL=NOPASSWD: /usr/local/share/monitoring-plugins/check_lv_snap
  17. # Needrestart
  18. nagios ALL=NOPASSWD: /usr/sbin/needrestart -p -k
  19. nagios ALL=NOPASSWD: /usr/sbin/needrestart -p -l