-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
Description
Hi,
I have problems to check my raid with dmraid.
dmraid is installed and accessible:
$ ls -ld /sbin/
drwxr-xr-x 2 root root 4096 Jan 5 16:10 /sbin/
$ ls -l /sbin/dmraid
-rwxr-xr-x 1 root root 21168 Feb 18 2014 /sbin/dmraid
$ /sbin/dmraid -r
/dev/sdb: ddf1, ".ddf1_disks", GROUP, ok, 1953253376 sectors, data@ 0
/dev/sda: ddf1, ".ddf1_disks", GROUP, ok, 1953253376 sectors, data@ 0
$ dmraid -s
**\* Group superset .ddf1_disks
--> Active Subset
name : ddf1_all
size : 1953253376
stride : 128
type : mirror
status : ok
subsets: 0
devs : 2
spares : 0
but not with this script:
$ ./check_raid.pl -p dmraid -d
check_raid Version 3.2.4
See CONTRIBUTING.md how to report bugs with debug data:
https://github.com/glensc/nagios-plugin-check_raid/blob/master/CONTRIBUTING.md
No RAID configuration found (tried: dmraid)
I found out, that the script is returning 0 at line 4748:
return 0 unless -e $this->{commands}{dmraid}[1];The script was tested as root - this can't be a sudo or file permission problem.
Thank you for having a look.