This is an old revision of the document!
In “/etc/sudoers”
#allow user "user1" to become root via "sudo su -" user1 ALL=(ALL) NOPASSWD: ALL #allow user "nagios" to execute the script "check_fail2ban" with root priviledges nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_fail2ban
Discussion