# (2) Converted checks to new plugin mechanism (Stephen Johnson May 28, 1999)
# Added user-configurable escalation mechanism
#
-# $Id: spong-network.pl,v 1.25 2000/11/28 20:26:13 sljohnson Exp $
+# $Id: spong-network.pl,v 1.26 2000/12/19 05:27:35 sljohnson Exp $
use Carp;
use lib "@@LIBDIR@@";
$ip = "$a.$b.$c.$d";
}
- $timeout = 5 if ( ! defined $timeout || $timeout <= 0)
+ $timeout = 5 if ( ! defined $timeout || $timeout <= 0);
$err = 0;
$line = "";
# There are one or more update processes that listen for status updates
# from client programs.
-# $Id: spong-server.pl,v 1.33 2000/12/15 21:39:57 sljohnson Exp $
+# $Id: spong-server.pl,v 1.34 2000/12/19 05:27:35 sljohnson Exp $
use lib "@@LIBDIR@@";
$debug = $restart = $kill = 0;
if (! GetOptions("debug:i" => \$debuglevel, "restart" => \$restart,
- "kill" => \$kill "test" => \$test) ) {
+ "kill" => \$kill, "test" => \$test) ) {
&usage();
exit 1;
}
my ( $host, $service, $color, $time, $sum, $duration ) = @_;
if ( -f $smessage ) {
- my args;
+ my @args;
push @args,$smessage;
if( $debug >= 3 ) { push @args,'--debug'; }
if( $test ) { push @args,'--test'; }