Thanks. I tried your suggestion and here is what happened:
nagios@stormguard:/usr/loc
CRITICAL - SMART_ENABLE: Permission denied
CRITICAL - SMART_CMD_ENABLE
Here is the file listing if this helps:
nagios@stormguard:/usr/loc
-rwsr-x--- 1 nagios nagios 61715 2009-08-05 12:18 check_ide_smart
Thanks for the help.
Rob
Main Topics
Browse All Topics





by: nociPosted on 2009-08-10 at 04:11:41ID: 25058739
Security is ownership based.
You need to add the username nagios runs under to be added to the group that is owner of the device...
ls -l /dev/sda show you the owner & group of the device (probably: root, disk)
In that case add the nagios user (probably: nagios) to the group disk in the /etc/group file like:
From:
disk::123:hal
To:
disk::123:hal,nagios
So keep the names & number already there, and add the nagios user to the ,-separated list.