From b15adb7762b6caaecaa83637abfcf5fdb4802092 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 2 Sep 2013 13:16:24 +0200 Subject: Remove "contrib" plugins These days, sites such as "Nagios Exchange" are a much better place for publishing plugins not maintained by the Plugins Development Team. --- contrib/check_lmmon.pl | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 contrib/check_lmmon.pl (limited to 'contrib/check_lmmon.pl') diff --git a/contrib/check_lmmon.pl b/contrib/check_lmmon.pl deleted file mode 100644 index bf4b4386..00000000 --- a/contrib/check_lmmon.pl +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/perl -# NetSaint Temp warning script -# Written by: Nathan LeSueur - -if ($#ARGV < 1) { -print "Usage: $0 \n"; -exit; } $crit = shift; $warn = shift; $norm = shift; if ($warn > -$crit) { print "Warning level cannot be greater than critical -level!\n"; exit; } @b = qx{/usr/local/bin/lmmon -s}; foreach(@b) { @c -= split(/ \/ /, $_); $d = $c[1]; } @e = split(/F/, $d); $f = $e[0]; - -$status = "$f degrees F\n"; - -if($f >= $crit) {print "CRITICAL - $status"; exit 2;} -if($f >= $warn) {print "WARNING - $status"; exit 1;} -if($f <= $norm && $f != 0) {print "OK - $status"; exit 0;} -else{print "UNKNOWN - unable to access smb\n"; exit (-1);} - - -- cgit v1.2.3