Nagios and dpt-i2o-raidutils, raidutil check

We do check our production boxes with hardware raid cards on raid status. We are using our script to call raidutil, which is running fine, but not under nagios user. Permissions for the files are as follows:

-rwxr-xr-x 1 root root 254708 Aug 20  2008 raideng
-rwxr-xr-x 1 root root 255880 Aug 20  2008 raidutil

Solution is to add proper rights to utils with:

chmod u+s raid*

It should look like this:

-rwsr-xr-x 1 root root 254708 Aug 20  2008 raideng
-rwsr-xr-x 1 root root 255880 Aug 20  2008 raidutil

Comments:

Filip -

Much safer solution is to ‘sudo’ that ‘raidutil’ command: nagios ALL=(ALL) NOPASSWD: /path/to/the/raidutil FreeBSD users don’t like SETUID flags. ]:-> :-)