Random Project

sudo needed for restricted folders

This is a must have plugin.. Really appreciate it.. Thanks…

In order to read the folder that have root permission, you will need to modify line:46 with sudo as follows….
DU=”/usr/bin/sudo /usr/bin/du”

On Fedora based systems, basename command is located in the /bin/ folder.. (Modify line:50)
PROGNAME=`/bin/basename $0`

I also had to visudo, and #comment the Default requiretty… and add the following line to the list of allowed commands…(Fedora Linux)

nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/
nagios ALL=(ALL) NOPASSWD: /usr/bin/