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
This entry was posted in Uncategorized. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Filip
    Posted 29 August 2011 at 12:09 | Permalink

    Much safer solution is to ‘sudo’ that ‘raidutil’ command:
    nagios ALL=(ALL) NOPASSWD: /path/to/the/raidutil

    FreeBSD users don’t like SETUID flags. ]:->
    :-)

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">