Imported Upstream version 1.4.10

This commit is contained in:
Jan Wagner 2013-11-26 23:54:42 +01:00
parent 6dd54dd8e2
commit cff68b4c0a
203 changed files with 15026 additions and 8063 deletions

View file

@ -1,4 +1,4 @@
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# Makefile.in generated by automake 1.9.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@ -95,7 +95,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/np_mysqlclient.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES = subst utils.pm utils.sh
am__installdirs = "$(DESTDIR)$(libexecdir)"
@ -239,6 +239,7 @@ PATH_TO_SWAPINFO = @PATH_TO_SWAPINFO@
PATH_TO_UPTIME = @PATH_TO_UPTIME@
PATH_TO_WHO = @PATH_TO_WHO@
PERL = @PERL@
PERLMODS_DIR = @PERLMODS_DIR@
PGINCLUDE = @PGINCLUDE@
PGLIBS = @PGLIBS@
PKG_ARCH = @PKG_ARCH@

View file

@ -26,7 +26,7 @@ GetOptions
"C=s" => \$opt_C, "community=s" => \$opt_C);
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.5 $');
print_revision($PROGNAME,'$Revision: 820 $');
exit $ERRORS{'OK'};
}
@ -65,7 +65,7 @@ sub print_usage () {
}
sub print_help () {
print_revision($PROGNAME,'$Revision: 1.5 $');
print_revision($PROGNAME,'$Revision: 820 $');
print "Copyright (c) 2000 Jeffrey Blank/Karl DeBisschop
This plugin reports the signal strength of a Breezecom wireless equipment

View file

@ -16,7 +16,7 @@
# drives is a pain in the butt
# 2-May-2002 - SGhosh fix for embedded perl
#
# $Id: check_disk_smb.pl,v 1.13 2005/10/13 10:14:33 seanius Exp $
# $Id: check_disk_smb.pl 1247 2005-10-13 10:14:33Z seanius $
#
require 5.004;
@ -52,7 +52,7 @@ GetOptions
"H=s" => \$opt_H, "hostname=s" => \$opt_H);
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.13 $'); #'
print_revision($PROGNAME,'$Revision: 1247 $'); #'
exit $ERRORS{'OK'};
}
@ -243,7 +243,7 @@ sub print_usage () {
}
sub print_help () {
print_revision($PROGNAME,'$Revision: 1.13 $');
print_revision($PROGNAME,'$Revision: 1247 $');
print "Copyright (c) 2000 Michael Anthon/Karl DeBisschop
Perl Check SMB Disk plugin for Nagios

View file

@ -1,5 +1,5 @@
#!/bin/perl -w
# $Id: check_file_age.pl,v 1.3 2005/12/15 15:17:49 tonvoon Exp $
# $Id: check_file_age.pl 1750 2007-07-07 11:54:29Z psychotrahe $
# check_file_age.pl Copyright (C) 2003 Steven Grimm <koreth-nagios@midwinter.com>
#
@ -55,7 +55,7 @@ GetOptions(
"C=f" => \$opt_C, "critical-size=f" => \$opt_C);
if ($opt_V) {
print_revision($PROGNAME, '$Id: check_file_age.pl,v 1.3 2005/12/15 15:17:49 tonvoon Exp $');
print_revision($PROGNAME, '$Revision: 1750 $');
exit $ERRORS{'OK'};
}
@ -102,7 +102,7 @@ sub print_usage () {
}
sub print_help () {
print_revision($PROGNAME, '$Id: check_file_age.pl,v 1.3 2005/12/15 15:17:49 tonvoon Exp $');
print_revision($PROGNAME, '$Revision: 1750 $');
print "Copyright (c) 2003 Steven Grimm\n\n";
print_usage();
print "\n";

View file

@ -26,7 +26,7 @@
# initial version: 9-10-99 Ernst-Dieter Martin edmt@infineon.com
#
# License: GPL
# $Id: check_flexlm.pl,v 1.6 2003/02/04 06:16:16 sghosh Exp $
# $Id: check_flexlm.pl 287 2003-02-04 06:16:16Z sghosh $
#
# lmstat output patches from Steve Rigler/Cliff Rice 13-Apr-2002
# srigler@marathonoil.com,cerice@marathonoil.com
@ -57,7 +57,7 @@ GetOptions
"t=i" => \$opt_t, "timeout=i" => \$opt_t);
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.6 $');
print_revision($PROGNAME,'$Revision: 287 $');
exit $ERRORS{'OK'};
}
@ -217,7 +217,7 @@ sub print_usage () {
}
sub print_help () {
print_revision($PROGNAME,'$Revision: 1.6 $');
print_revision($PROGNAME,'$Revision: 287 $');
print "Copyright (c) 2000 Ernst-Dieter Martin/Karl DeBisschop
Check available flexlm license managers

View file

@ -25,7 +25,7 @@
# Report bugs to: nagiosplug-help@lists.sourceforge.net
#
# 11.01.2000 Version 1.0
# $Id: check_ifoperstatus.pl,v 1.7 2007/03/16 12:11:46 gonzai Exp $
# $Id: check_ifoperstatus.pl 1642 2007-03-16 12:11:46Z gonzai $
#
# Patches from Guy Van Den Bergh to warn on ifadminstatus down interfaces
# instead of critical.
@ -304,7 +304,7 @@ sub print_help() {
printf "intensive. Use it sparingly or not at all. -n is used to match against\n";
printf "a much more descriptive ifName value in the IfXTable to verify that the\n";
printf "snmpkey has not changed to some other network interface after a reboot.\n\n";
print_revision($PROGNAME, '$Revision: 1.7 $');
print_revision($PROGNAME, '$Revision: 1642 $');
}
@ -341,7 +341,7 @@ sub process_arguments() {
}
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.7 $ ');
print_revision($PROGNAME,'$Revision: 1642 $ ');
exit $ERRORS{'OK'};
}

View file

@ -29,7 +29,7 @@
#
# 11.01.2000 Version 1.0
#
# $Id: check_ifstatus.pl,v 1.9 2004/08/18 19:51:35 tonvoon Exp $
# $Id: check_ifstatus.pl 884 2004-08-18 19:51:35Z tonvoon $
use POSIX;
use strict;
@ -255,7 +255,7 @@ sub print_help (){
printf " -t (--timeout) seconds before the plugin times out (default=$TIMEOUT)\n";
printf " -V (--version) Plugin version\n";
printf " -h (--help) usage help \n\n";
print_revision($PROGNAME, '$Revision: 1.9 $');
print_revision($PROGNAME, '$Revision: 884 $');
}
@ -285,7 +285,7 @@ sub process_arguments() {
exit $ERRORS{'OK'};
}
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.9 $ ');
print_revision($PROGNAME,'$Revision: 884 $ ');
exit $ERRORS{'OK'};
}

View file

@ -7,7 +7,7 @@
#
# Date: 1999/09/20
#
# $Id: check_ircd.pl,v 1.3 2002/05/07 05:35:49 sghosh Exp $
# $Id: check_ircd.pl 22 2002-05-07 05:35:49Z sghosh $
#
# Description: This script will check to see if an IRCD is running
# about how many users it has
@ -119,7 +119,7 @@ sub print_usage () {
sub print_help ()
{
print_revision($PROGNAME,'$Revision: 1.3 $ ');
print_revision($PROGNAME,'$Revision: 22 $ ');
print "Copyright (c) 2000 Richard Mayhew/Karl DeBisschop
Perl Check IRCD plugin for Nagios
@ -190,7 +190,7 @@ MAIN:
"H=s" => \$opt_H, "hostname=s" => \$opt_H);
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.3 $ ');
print_revision($PROGNAME,'$Revision: 22 $ ');
exit $ERRORS{'OK'};
}

View file

@ -71,7 +71,7 @@ TOUCH="/bin/touch"
PROGNAME=`/bin/basename $0`
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
REVISION=`echo '$Revision: 1.8 $' | sed -e 's/[^0-9.]//g'`
REVISION=`echo '$Revision: 1749 $' | sed -e 's/[^0-9.]//g'`
. $PROGPATH/utils.sh
@ -116,11 +116,11 @@ while test -n "$1"; do
exit $STATE_OK
;;
--version)
print_revision $PROGNAME $VERSION
print_revision $PROGNAME $REVISION
exit $STATE_OK
;;
-V)
print_revision $PROGNAME $VERSION
print_revision $PROGNAME $REVISION
exit $STATE_OK
;;
--filename)

View file

@ -22,7 +22,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id: check_mailq.pl,v 1.7 2006/07/05 13:45:57 tonvoon Exp $
# $Id: check_mailq.pl 1443 2006-07-05 13:45:57Z tonvoon $
#
############################################################################
@ -522,7 +522,7 @@ sub process_arguments(){
);
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.7 $ ');
print_revision($PROGNAME,'$Revision: 1443 $ ');
exit $ERRORS{'OK'};
}
@ -580,7 +580,7 @@ sub print_usage () {
}
sub print_help () {
print_revision($PROGNAME,'$Revision: 1.7 $');
print_revision($PROGNAME,'$Revision: 1443 $');
print "Copyright (c) 2002 Subhendu Ghosh/Carlos Canau/Benjamin Schmid\n";
print "\n";
print_usage();

View file

@ -7,7 +7,7 @@
# be installed on the system, however since it's part of the ntp suite, you
# should already have it installed.
#
# $Id: check_ntp.pl,v 1.31 2005/11/30 00:49:47 harpermann Exp $
# $Id: check_ntp.pl 1291 2005-11-30 00:49:47Z harpermann $
#
# Nothing clever done in this program - its a very simple bare basics hack to
# get the job done.
@ -97,7 +97,7 @@ GetOptions
"H=s" => \$opt_H, "hostname=s" => \$opt_H);
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.31 $ ');
print_revision($PROGNAME,'$Revision: 1291 $ ');
exit $ERRORS{'OK'};
}
@ -443,7 +443,7 @@ sub print_usage () {
}
sub print_help () {
print_revision($PROGNAME,'$Revision: 1.31 $');
print_revision($PROGNAME,'$Revision: 1291 $');
print "Copyright (c) 2003 Bo Kersey/Karl DeBisschop\n";
print "\n";
print_usage();

View file

@ -8,7 +8,7 @@
PROGNAME=`basename $0`
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
REVISION=`echo '$Revision: 1.15 $' | sed -e 's/[^0-9.]//g'`
REVISION=`echo '$Revision: 1749 $' | sed -e 's/[^0-9.]//g'`
. $PROGPATH/utils.sh
@ -89,11 +89,11 @@ case "$cmd" in
exit $STATE_OK
;;
--version)
print_revision $PLUGIN $REVISION
print_revision $PROGNAME $REVISION
exit $STATE_OK
;;
-V)
print_revision $PLUGIN $REVISION
print_revision $PROGNAME $REVISION
exit $STATE_OK
;;
esac
@ -118,9 +118,11 @@ fi
# Last resort
[ -z "$ORACLE_HOME" -a -d $PROGPATH/oracle ] && ORACLE_HOME=$PROGPATH/oracle
if [ -z "$ORACLE_HOME" -o ! -d "$ORACLE_HOME" ] ; then
echo "Cannot determine ORACLE_HOME for sid $2"
exit $STATE_UNKNOWN
if [ "$cmd" != "--db" ]; then
if [ -z "$ORACLE_HOME" -o ! -d "$ORACLE_HOME" ] ; then
echo "Cannot determine ORACLE_HOME for sid $2"
exit $STATE_UNKNOWN
fi
fi
PATH=$PATH:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

View file

@ -15,10 +15,10 @@
#
# initial version: 3 May 2000 by Truongchinh Nguyen and Karl DeBisschop
# Modified May 2002 Subhendu Ghosh - support for ePN and patches
# current status: $Revision: 1.8 $
# current status: $Revision: 677 $
#
# Copyright Notice: GPL
# $Id: check_rpc.pl,v 1.8 2003/08/10 12:11:49 kdebisschop Exp $
# $Id: check_rpc.pl 677 2003-08-10 12:11:49Z kdebisschop $
#
use strict;
@ -68,7 +68,7 @@ if ($opt_h) { print_help(); exit $ERRORS{'OK'}; }
# -V means display version number
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.8 $ ');
print_revision($PROGNAME,'$Revision: 677 $ ');
exit $ERRORS{'OK'};
}
@ -336,7 +336,7 @@ sub get_rpcinfo {
sub print_help() {
print_revision($PROGNAME,'$Revision: 1.8 $ ');
print_revision($PROGNAME,'$Revision: 677 $ ');
print "Copyright (c) 2002 Karl DeBisschop/Truongchinh Nguyen/Subhendu Ghosh\n";
print "\n";
print "Check if a rpc service is registered and running using\n";

View file

@ -4,7 +4,7 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
PROGNAME=`basename $0`
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
REVISION=`echo '$Revision: 1.2 $' | sed -e 's/[^0-9.]//g'`
REVISION=`echo '$Revision: 162 $' | sed -e 's/[^0-9.]//g'`
. $PROGPATH/utils.sh

View file

@ -1,6 +1,6 @@
#!/usr/bin/perl -wT
#
# $Id: check_wave.pl,v 1.4 2002/10/28 13:05:08 kdebisschop Exp $
# $Id: check_wave.pl 162 2002-10-28 13:05:08Z kdebisschop $
use strict;
@ -30,7 +30,7 @@ GetOptions
"H=s" => \$opt_H, "hostname=s" => \$opt_H);
if ($opt_V) {
print_revision($PROGNAME,'$Revision: 1.4 $'); #'
print_revision($PROGNAME,'$Revision: 162 $'); #'
exit $ERRORS{'OK'};
}
@ -112,7 +112,7 @@ sub print_usage () {
}
sub print_help () {
print_revision($PROGNAME,'$Revision: 1.4 $');
print_revision($PROGNAME,'$Revision: 162 $');
print "Copyright (c) 2000 Jeffery Blank/Karl DeBisschop\n";
print "\n";
print_usage();

View file

@ -2,7 +2,7 @@
#
# check_file_age tests
#
# $Id: check_file_age.t,v 1.1 2005/12/15 15:17:49 tonvoon Exp $
# $Id: check_file_age.t 1297 2005-12-15 15:17:49Z tonvoon $
#
use strict;

View file

@ -2,7 +2,7 @@
#
# Remote Procedure Call (RPC) Tests via check_rpc
#
# $Id: check_rpc.t,v 1.2 2005/07/25 01:47:15 illumino Exp $
# $Id: check_rpc.t 1207 2005-07-25 01:47:15Z illumino $
#
use strict;

View file

@ -2,7 +2,7 @@
#
# utils.pm tests
#
# $Id: utils.t,v 1.3 2006/12/12 12:59:06 tonvoon Exp $
# $Id: utils.t 1549 2006-12-12 12:59:06Z tonvoon $
#
# Run with perl t/utils.t

View file

@ -1,5 +1,5 @@
# Utility drawer for Nagios plugins.
# $Id: utils.pm.in,v 1.12 2006/12/12 08:56:01 tonvoon Exp $
# $Id: utils.pm.in 1751 2007-07-07 11:55:48Z psychotrahe $
#
# This will be deprecated soon. Please use Nagios::Plugin from CPAN
# for new plugins
@ -34,7 +34,7 @@ sub print_revision ($$) {
my $pluginRevision = shift;
$pluginRevision =~ s/^\$Revision: //;
$pluginRevision =~ s/ \$\s*$//;
print "$commandName (@PACKAGE@ @VERSION@) $pluginRevision\n";
print "$commandName v$pluginRevision (@PACKAGE@ @VERSION@)\n";
print "@WARRANTY@";
}

View file

@ -13,7 +13,7 @@ else
fi
print_revision() {
echo "$1 (@PACKAGE@ @VERSION@) $2"
echo "$1 v$2 (@PACKAGE@ @VERSION@)"
$ECHO "@WARRANTY@" | sed -e 's/\n/ /g'
}