From ecc185f1a43d2b01acb14c9cdcc98e80d3b67122 Mon Sep 17 00:00:00 2001 From: Ethan Galstad Date: Fri, 1 Mar 2002 02:42:56 +0000 Subject: Contrib plugin cleanup git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@6 f882894a-f735-0410-b71e-b25c423dba1c --- contrib/check_breeze.pl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 contrib/check_breeze.pl (limited to 'contrib/check_breeze.pl') diff --git a/contrib/check_breeze.pl b/contrib/check_breeze.pl new file mode 100644 index 00000000..bb837657 --- /dev/null +++ b/contrib/check_breeze.pl @@ -0,0 +1,22 @@ +#!/usr/bin/perl + +# Plugin to test signal strength on Breezecom wireless equipment +# Contributed by Jeffrey Blank + +$Host=$ARGV[0]; +$sig_crit=$ARGV[1]; +$sig_warn=$ARGV[2]; +$sig=0; +$sig = `snmpget $Host public .1.3.6.1.4.1.710.3.2.3.1.3.0`; +@test=split(/ /,$sig); +$sig=@test[2]; +$sig=int($sig); +if ($sig>100){$sig=100} + +print "Signal Strength at: $sig%\n"; +if ($sig<$sig_crit) + {exit(2)} +if ($sig<$sig_warn) + {exit(1)} + +exit(0); -- cgit v1.2.3-74-g34f1