Max Kellermann wrote: > The cciss_vol_status program is useless for unattended monitoring: > > dory:~# cciss_vol_status /dev/cciss/c*d0 && echo success > /dev/cciss/c0d0: (Smart Array 6i) RAID 5 Volume 0 status: OK. > success > dory:~# cciss_vol_status /dev/zero && echo success > cciss_vol_status: /dev/zero is not a block device. > success > dory:~# cciss_vol_status /does-not-exist && echo success > cciss_vol_status: open /does-not-exist: No such file or directory > success > > The exit status is always 0 (success).
Use -p to force it to fail for non-existing device nodes. If you see behaviours where something is wrong with the hardware and the exit code is wrong, please let me know. Christian -- christian hofstaedtler -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

