From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/63906-check_linux_raid.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 web/attachments/63906-check_linux_raid.patch (limited to 'web/attachments/63906-check_linux_raid.patch') diff --git a/web/attachments/63906-check_linux_raid.patch b/web/attachments/63906-check_linux_raid.patch new file mode 100644 index 0000000..81fa040 --- /dev/null +++ b/web/attachments/63906-check_linux_raid.patch @@ -0,0 +1,26 @@ +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, "