# sudo rule for check_rapl: the RAPL counters in /sys/class/powercap are readable by root only.
# Copy to /etc/sudoers.d/check_rapl (mode 0440) and replace "nagios" by the user that runs the
# checks (naemon for check_by_ssh from OMD, nagios for NRPE/Icinga). The plugin refuses
# --state-file when started through sudo, so the rule allows no file access as root.
nagios ALL=(root) NOPASSWD: /usr/lib/nagios/plugins/check_rapl, /usr/lib/nagios/plugins/check_rapl *
