Index: check_linux_raid.pl =================================================================== --- check_linux_raid.pl (revision 145) +++ check_linux_raid.pl (working copy) @@ -26,6 +26,12 @@ my %ERRORS=('DEPENDENT'=>4,'UNKNOWN'=>3,'OK'=>0,'WARNING'=>1,'CRITICAL'=>2); +# die with an error if we're not on Linux +if ($^O ne 'linux') { + print "This plugin only applicable on Linux.\n"; + exit $ERRORS{'UNKNOWN'}; +} + open (MDSTAT, "