summaryrefslogtreecommitdiffstats
path: root/contrib/check_breeze.pl
diff options
context:
space:
mode:
authorEthan Galstad <egalstad@users.sourceforge.net>2002-03-01 02:42:56 (GMT)
committerEthan Galstad <egalstad@users.sourceforge.net>2002-03-01 02:42:56 (GMT)
commitecc185f1a43d2b01acb14c9cdcc98e80d3b67122 (patch)
tree29839707d5910c08ce881a3bcddb2822f67afb2f /contrib/check_breeze.pl
parent44a321cb8a42d6c0ea2d96a1086a17f2134c89cc (diff)
downloadmonitoring-plugins-ecc185f1a43d2b01acb14c9cdcc98e80d3b67122.tar.gz
Contrib plugin cleanup
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@6 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'contrib/check_breeze.pl')
-rw-r--r--contrib/check_breeze.pl22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/check_breeze.pl b/contrib/check_breeze.pl
new file mode 100644
index 0000000..bb83765
--- /dev/null
+++ b/contrib/check_breeze.pl
@@ -0,0 +1,22 @@
1#!/usr/bin/perl
2
3# Plugin to test signal strength on Breezecom wireless equipment
4# Contributed by Jeffrey Blank
5
6$Host=$ARGV[0];
7$sig_crit=$ARGV[1];
8$sig_warn=$ARGV[2];
9$sig=0;
10$sig = `snmpget $Host public .1.3.6.1.4.1.710.3.2.3.1.3.0`;
11@test=split(/ /,$sig);
12$sig=@test[2];
13$sig=int($sig);
14if ($sig>100){$sig=100}
15
16print "Signal Strength at: $sig%\n";
17if ($sig<$sig_crit)
18 {exit(2)}
19if ($sig<$sig_warn)
20 {exit(1)}
21
22exit(0);