diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-02 13:16:24 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-02 13:16:24 +0200 |
commit | b15adb7762b6caaecaa83637abfcf5fdb4802092 (patch) | |
tree | 64eddbe2aa1a7f98a140be0f7973f05d7a781ae0 /contrib/check_lmmon.pl | |
parent | c4d5882b9e1d07c7b61091062b7d085fa5f00284 (diff) | |
download | monitoring-plugins-b15adb7762b6caaecaa83637abfcf5fdb4802092.tar.gz |
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.
Diffstat (limited to 'contrib/check_lmmon.pl')
-rw-r--r-- | contrib/check_lmmon.pl | 19 |
1 files changed, 0 insertions, 19 deletions
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 @@ | |||
1 | #!/usr/bin/perl | ||
2 | # NetSaint Temp warning script | ||
3 | # Written by: Nathan LeSueur | ||
4 | |||
5 | if ($#ARGV < 1) { | ||
6 | print "Usage: $0 <critical temp> <warning temp> <normal temp>\n"; | ||
7 | exit; } $crit = shift; $warn = shift; $norm = shift; if ($warn > | ||
8 | $crit) { print "Warning level cannot be greater than critical | ||
9 | level!\n"; exit; } @b = qx{/usr/local/bin/lmmon -s}; foreach(@b) { @c | ||
10 | = split(/ \/ /, $_); $d = $c[1]; } @e = split(/F/, $d); $f = $e[0]; | ||
11 | |||
12 | $status = "$f degrees F\n"; | ||
13 | |||
14 | if($f >= $crit) {print "CRITICAL - $status"; exit 2;} | ||
15 | if($f >= $warn) {print "WARNING - $status"; exit 1;} | ||
16 | if($f <= $norm && $f != 0) {print "OK - $status"; exit 0;} | ||
17 | else{print "UNKNOWN - unable to access smb\n"; exit (-1);} | ||
18 | |||
19 | |||