diff -Nru nagios-plugins-contrib-14.20141104/check_cups/control nagios-plugins-contrib-16.20151226/check_cups/control --- nagios-plugins-contrib-14.20141104/check_cups/control 2014-01-25 09:41:39.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_cups/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,4 +1,4 @@ -Homepage: https://www.monitoringexchange.org/inventory/Check-Plugins/Hardware/Devices/Printer/check_cups +Homepage: https://exchange.icinga.org/oldmonex/1867-check_cups/ Uploaders: Jan Wagner Description: plugin to check queues on a remote CUPS server This plugin is monitoring of queues on a remote CUPS server, diff -Nru nagios-plugins-contrib-14.20141104/check_drbd/control nagios-plugins-contrib-16.20151226/check_drbd/control --- nagios-plugins-contrib-14.20141104/check_drbd/control 2014-01-25 09:41:39.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_drbd/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,5 +1,5 @@ -Homepage: https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/check_drbd -Watch: https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/check_drbd >check_drbd v([0-9.]+) +Homepage: https://exchange.icinga.org/oldmonex/512-check_drbd/ +Watch: https://exchange.icinga.org/oldmonex/512-check_drbd/check_drbd prog_revision='([0-9.]+)'; Uploaders: Jan Wagner Description: plugin to check DRBD device states This plugin is for checking DRBD device states. It parses the diff -Nru nagios-plugins-contrib-14.20141104/check_email_delivery/control nagios-plugins-contrib-16.20151226/check_email_delivery/control --- nagios-plugins-contrib-14.20141104/check_email_delivery/control 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_email_delivery/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,5 +1,5 @@ Uploaders: Bernd Zeimetz -Recommends: libnagios-plugin-perl (>= 0.31), libio-socket-ssl-perl, libmail-imapclient-perl, libnet-smtp-tls-perl, libnet-smtp-ssl-perl, libnet-ssleay-perl +Recommends: libnagios-plugin-perl (>= 0.31), libio-socket-ssl-perl, libmail-imapclient-perl, libnet-smtp-tls-perl, libnet-smtp-ssl-perl, libnet-ssleay-perl, libnet-smtpauth-perl Suggests: perl-doc Version: 0.7.1b Homepage: http://buhacoff.net/software/check_email_delivery/ diff -Nru nagios-plugins-contrib-14.20141104/check_haproxy/control nagios-plugins-contrib-16.20151226/check_haproxy/control --- nagios-plugins-contrib-14.20141104/check_haproxy/control 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_haproxy/control 2015-12-26 17:20:34.000000000 +0000 @@ -3,4 +3,4 @@ Recommends: liblocale-gettext-perl, liblwp-useragent-determined-perl Version: rev135 Uploaders: Jan Wagner -Description: plugin check the HAProxy statistics url +Description: plugin to check the HAProxy statistics url diff -Nru nagios-plugins-contrib-14.20141104/check_haproxy_stats/check_haproxy_stats.pl nagios-plugins-contrib-16.20151226/check_haproxy_stats/check_haproxy_stats.pl --- nagios-plugins-contrib-14.20141104/check_haproxy_stats/check_haproxy_stats.pl 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_haproxy_stats/check_haproxy_stats.pl 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,225 @@ +#!/usr/bin/env perl +# vim: se et ts=4: + +# +# Copyright (C) 2012, Giacomo Montagner +# +# This program is free software; you can redistribute it and/or modify it +# under the same terms as Perl 5.10.1. +# For more details, see http://dev.perl.org/licenses/artistic.html +# +# This program is distributed in the hope that it will be +# useful, but without any warranty; without even the implied +# warranty of merchantability or fitness for a particular purpose. +# + +our $VERSION = "1.0.1"; + +# CHANGELOG: +# 1.0.0 - first release +# 1.0.1 - fixed empty message if all proxies are OK +# + +use strict; +use warnings; +use 5.010.001; +use File::Basename qw/basename/; +use IO::Socket::UNIX; +use Getopt::Long; + +sub usage { + my $me = basename $0; + print <. + $me is distributed under GPL and the Artistic License 2.0 + +SEE ALSO + Check out online haproxy documentation at + +EOU +} + +my %check_statuses = ( + UNK => "unknown", + INI => "initializing", + SOCKERR => "socket error", + L4OK => "layer 4 check OK", + L4CON => "connection error", + L4TMOUT => "layer 1-4 timeout", + L6OK => "layer 6 check OK", + L6TOUT => "layer 6 (SSL) timeout", + L6RSP => "layer 6 protocol error", + L7OK => "layer 7 check OK", + L7OKC => "layer 7 conditionally OK", + L7TOUT => "layer 7 (HTTP/SMTP) timeout", + L7RSP => "layer 7 protocol error", + L7STS => "layer 7 status error", +); + +my @status_names = (qw/OK WARNING CRITICAL UNKNOWN/); + +# Defaults +my $swarn = 80.0; +my $scrit = 90.0; +my $sock = "/var/run/haproxy.sock"; +my $dump; +my $proxy; +my $help; + +# Read command line +Getopt::Long::Configure ("bundling"); +GetOptions ( + "c|critical=i" => \$scrit, + "d|dump" => \$dump, + "h|help" => \$help, + "p|proxy=s" => \$proxy, + "s|sock|socket=s" => \$sock, + "w|warning=i" => \$swarn, +); + +# Want help? +if ($help) { + usage; + exit 3; +} + +# Connect to haproxy socket and get stats +my $haproxy = new IO::Socket::UNIX ( + Peer => $sock, + Type => SOCK_STREAM, +); +die "Unable to connect to haproxy socket: $@" unless $haproxy; +print $haproxy "show stat\n" or die "Print to socket failed: $!"; + +# Dump stats and exit if requested +if ($dump) { + while (<$haproxy>) { + print; + } + exit 0; +} + +# Get labels from first output line and map them to their position in the line +my $labels = <$haproxy>; +chomp($labels); +$labels =~ s/^# // or die "Data format not supported."; +my @labels = split /,/, $labels; +{ + no strict "refs"; + my $idx = 0; + map { $$_ = $idx++ } @labels; +} + +# Variables I will use from here on: +our $pxname; +our $svname; +our $status; + +my @proxies = split ',', $proxy if $proxy; +my $exitcode = 0; +my $msg; +my $checked = 0; +while (<$haproxy>) { + chomp; + next if /^[[:space:]]*$/; + my @data = split /,/, $_; + if (@proxies) { next unless grep {$data[$pxname] eq $_} @proxies; }; + + # Is session limit enforced? + our $slim; + if ($data[$slim]) { + # Check current session # against limit + our $scur; + my $sratio = $data[$scur]/$data[$slim]; + if ($sratio >= $scrit || $sratio >= $swarn) { + $exitcode = $sratio >= $scrit ? 2 : + $exitcode < 2 ? 1 : $exitcode; + $msg .= sprintf "%s:%s sessions: %.2f%%; ", $data[$pxname], $data[$svname], $sratio; + } + } + + # Check of BACKENDS + if ($data[$svname] eq 'BACKEND') { + if ($data[$status] ne 'UP') { + $msg .= sprintf "BACKEND: %s is %s; ", $data[$pxname], $data[$status]; + $exitcode = 2; + } + # Check of FRONTENDS + } elsif ($data[$svname] eq 'FRONTEND') { + if ($data[$status] ne 'OPEN') { + $msg .= sprintf "FRONTEND: %s is %s; ", $data[$pxname], $data[$status]; + $exitcode = 2; + } + # Check of servers + } else { + if ($data[$status] ne 'UP') { + next if $data[$status] eq 'no check'; # Ignore server if no check is configured to be run + $exitcode = 2; + our $check_status; + $msg .= sprintf "server: %s:%s is %s", $data[$pxname], $data[$svname], $data[$status]; + $msg .= sprintf " (check status: %s)", $check_statuses{$data[$check_status]} if $check_statuses{$data[$check_status]}; + $msg .= "; "; + } + } + ++$checked; +} + +unless ($msg) { + $msg = @proxies ? sprintf("checked proxies: %s", join ', ', sort @proxies) : "checked $checked proxies."; +} +say "Check haproxy $status_names[$exitcode] - $msg"; +exit $exitcode; + diff -Nru nagios-plugins-contrib-14.20141104/check_haproxy_stats/control nagios-plugins-contrib-16.20151226/check_haproxy_stats/control --- nagios-plugins-contrib-14.20141104/check_haproxy_stats/control 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_haproxy_stats/control 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,7 @@ +Homepage: http://exchange.nagios.org/directory/Plugins/Clustering-and-High-2DAvailability/check_haproxy_stats-2Epl/details +Watch: http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=4089&cf_id=24 VERSION = "([0-9.]+)" +Version: 1.0.1 +Uploaders: Bernd Zeimetz +Description: check haproxy via admin socket + Different from check_haproxy this plugin is able to check + haproxy via the unix admin socket. diff -Nru nagios-plugins-contrib-14.20141104/check_haproxy_stats/copyright nagios-plugins-contrib-16.20151226/check_haproxy_stats/copyright --- nagios-plugins-contrib-14.20141104/check_haproxy_stats/copyright 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_haproxy_stats/copyright 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,13 @@ +Copyright (C) 2012, Giacomo Montagner + +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl 5.10.1. +For more details, see http://dev.perl.org/licenses/artistic.html + +This program is distributed in the hope that it will be +useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +On Debian systems a copy of the Artistic license can be found +in /usr/share/common-licenses/Artistic. + diff -Nru nagios-plugins-contrib-14.20141104/check_haproxy_stats/Makefile nagios-plugins-contrib-16.20151226/check_haproxy_stats/Makefile --- nagios-plugins-contrib-14.20141104/check_haproxy_stats/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_haproxy_stats/Makefile 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,12 @@ +#/usr/bin/make -f + +PLUGIN := check_haproxy_stats +CLEANEXTRAFILES := $(PLUGIN) + + +include ../common.mk + +check_haproxy_stats: check_haproxy_stats.pl + cp $< $@ + + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/acinclude.m4 nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/acinclude.m4 --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/acinclude.m4 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/acinclude.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,78 +0,0 @@ -dnl @synopsis ACX_WHICH_GETHOSTBYNAME_R -dnl -dnl Provides a test to determine the correct way to call gethostbyname_r -dnl -dnl defines HAVE_GETHOSTBYNAME_R to the number of arguments required -dnl -dnl e.g. 6 arguments (linux) -dnl e.g. 5 arguments (solaris) -dnl e.g. 3 arguments (osf/1) -dnl -dnl @version $Id: acinclude.m4,v 1.5 2004/02/18 14:56:34 kdebisschop Exp $ -dnl @author Brian Stafford -dnl -dnl based on version by Caolan McNamara -dnl based on David Arnold's autoconf suggestion in the threads faq -dnl -AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R], -[AC_CACHE_CHECK(number of arguments to gethostbyname_r, - acx_which_gethostbyname_r, [ - AC_TRY_COMPILE([ -# include - ], [ - - char *name; - struct hostent *he; - struct hostent_data data; - (void) gethostbyname_r(name, he, &data); - - ],acx_which_gethostbyname_r=3, - [ -dnl acx_which_gethostbyname_r=0 - AC_TRY_COMPILE([ -# include - ], [ - char *name; - struct hostent *he, *res; - char *buffer = NULL; - int buflen = 2048; - int h_errnop; - (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) - ],acx_which_gethostbyname_r=6, - - [ -dnl acx_which_gethostbyname_r=0 - AC_TRY_COMPILE([ -# include - ], [ - char *name; - struct hostent *he; - char *buffer = NULL; - int buflen = 2048; - int h_errnop; - (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) - ],acx_which_gethostbyname_r=5,acx_which_gethostbyname_r=0) - - ] - - ) - ] - ) - ]) - -if test $acx_which_gethostbyname_r -gt 0 ; then - AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME_R], $acx_which_gethostbyname_r, - [Number of parameters to gethostbyname_r or 0 if not available]) -fi - -]) - -dnl @synopsis ACX_HELP_STRING(OPTION,DESCRIPTION) -AC_DEFUN([ACX_HELP_STRING], - [ $1 builtin([substr],[ ],len($1))[$2]]) - - -dnl @synopsis ACX_FEATURE(ENABLE_OR_WITH,NAME[,VALUE]) -AC_DEFUN([ACX_FEATURE], - [echo "builtin([substr],[ ],len(--$1-$2))--$1-$2: ifelse($3,,[$]translit($1-$2,-,_),$3)"]) - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/aclocal.m4 nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/aclocal.m4 --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/aclocal.m4 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,559 +0,0 @@ -# generated automatically by aclocal 1.9.6 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION so it can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], - [AM_AUTOMAKE_VERSION([1.9.6])]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.58])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"$am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. -# -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories -# created by `make install' are always world readable, even if the -# installer happens to have an overly restrictive umask (e.g. 077). -# This was a mistake. There are at least two reasons why we must not -# use `-m 0755': -# - it causes special bits like SGID to be ignored, -# - it may be too restrictive (some setups expect 775 directories). -# -# Do not use -m 0755 and let people choose whatever they expect by -# setting umask. -# -# We cannot accept any implementation of `mkdir' that recognizes `-p'. -# Some implementations (such as Solaris 8's) are not thread-safe: if a -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' -# concurrently, both version can detect that a/ is missing, but only -# one can create it and the other will error out. Consequently we -# restrict ourselves to GNU make (using the --version option ensures -# this.) -AC_DEFUN([AM_PROG_MKDIR_P], -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi -AC_SUBST([mkdir_p])]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -m4_include([acinclude.m4]) diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/AUTHORS nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/AUTHORS --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/AUTHORS 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/AUTHORS 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -Gerhard Lausser diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/ChangeLog nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/ChangeLog --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/ChangeLog 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/ChangeLog 1970-01-01 00:00:00.000000000 +0000 @@ -1,254 +0,0 @@ -####################################### -# Changelog of the check_hpasm plugin # -####################################### - -4.6.3.2 2013-03-19 -- fix a bug in proliant/gen8/ilo temperature thresholds (Thanks Kai Benninghoff and Stephane Loeuillet) - -4.6.3.1 2013-01-10 -- fix a bug in da disk in local mode -- fix a bux in overall_init proliant nics (Thanks Fanming Jen) - -4.6.3 2012-11-25 -- gen8 should work now -- fix the problem with -99 degrees -- fix the problem with binary zero EventUpdateTime - -4.6.2.1 2012-11-09 -- some bugfixes in bladecenter temperatures (Thanks Thomas Reichel) - -4.6.2 2012-08-20 -- fix some bugs in snmpget where the system responded with undef values - -4.6.1 2012-08-14 -- fix a small bug in boottime -- skip pagination in long "show iml" lists -- make bulk requests if possible - -4.6 2012-06-07 -- output power consumption as performance data (only newer proliant models) -- support older <=7 versions of hpacucli -- add another error log: Uncorrectable Memory Error -- raise the default timeout from 15 to 60 seconds - -4.5.3.1 2012-04-19 -- change the way --snmpwalk reads oids from a file - -4.5.3 2012-03-26 -- fix a bug in snmp-eventlogs - -4.5.2 2012-03-06 -- add another error log: Main Memory - Corrected Memory Error threshold exceeded -4.5.1 2012-02 -- add another error log: 210 - Quick Path Interconnect (QPI) Link Degradation -- remove watt percent for blade center power supply -- make the snmp oid collection phase shorter for blade center - -4.5 2012-01-26 -- output power consumption perfdata for BladeCenters -- correctly identify dl388g7 (Thanks lilei8) - -4.4 2011-12-16 -- add checks for power converters -- add checks for nic teaming (experimental!!, must be enabled with --eval-nics) -- fix a bug with invalid date/time from iml -- fix a bug in blade enclosure manager verbose output -- add msa2xxx storage sensors - -4.3 2011-10-14 -- add monitoring of IML events (Thanks Klaus) - esp. Memory initialization error... The OS may not have access to all of the memory installed in the system - -4.2.5 -- G2 series of X1660 storage systems are now correctly detected. (Thanks Andre Zaborowski) -- blacklisting for SAS controller & disks was added (Thanks Jewi) - -4.2.4.1 2011-08-09 -- dimm output of G7 hpasmcli (under Solaris) is now handled (Thanks Ron Waffle) - -4.2.4 2011-07-21 -add a check for asr (Thanks Ingmar Verheij http://www.ingmarverheij.com/) - -4.2.3 2011-07-21 -- add a global temperature check when no temperature sensors are found -- check power converters if no fault tolerant power supplies are found - -4.2.2.1 2011-04-17 -- fix a bug when a wrong --hostname was used (Thanks Wim Savenberg) - -4.2.2 2011-01-21 -- add support for msa500 and hpasmcli (Thanks Kalle Andersson) - -4.2.1.1 -- added support for x1** nas storage, which was detected as storage but in fact is like a proliant (Thanks Maik Schulz) - -4.2.1 -- added timeout handling -- better hpacucli da controller handling -- fix a bug in memory detection (0 dimms were shown) (Thanks Anthony Cano) -- better handling for failed and disabled controller batteries. warning only. - -4.2 2010-03-20 -- added temperatures for bladesystems (although not implemented by HP) -- added fuses for bladesystems -- added enclosure managers for bladesystems -- added blacklisting for scsi devices (scco,scld,scpd) (Thanks Marco Hill) -- added blacklisting for overall fan status (ofs) (Thanks Thomas Jampen) - -4.1.2.1 2010-03-03 -- fixed a harmless bug in BladeCenter::Powersupply output - -4.1.2 2010-02-09 -- fixed a severe bug in detecting multiple logical drives with hpacucli (Thanks Trond Hasle) - -4.1.1 2010-01-07 -- detect more smart array types when run in local mode (Thanks Trond Hasle) - -4.1 2009-12-07 -- added more details for bladecenters (power suppl., server blades) -- fixed a bug in powersupply checks with hpasmcli (Thanks Guillaume) - -4.0.1 2009-12-02 -- added the missing output for --help -- non-redundant fans are now tolerated if the global fan status says "ok" -- added detection for servers with a hidden model description -- fixed a bug in celsius-fahrenheit-conversion - -4.0 2009-11-30 -- added support for the new g6-models -- complete rewrite of the code -- autodetection for proliant, bladecenter and storage -- detailed dump of the hardware with -vvv -- new format for blacklist - -3.5.1 2009-04-22 -- fixed a bug where the server didn't reveal serial no. and rom rev. (thanks Daniel Rich) -- fixed a bug in the snmpv3 code. - -3.5 2009-03-20 -- added support for SNMPv3 -- added new parameter --port - -3.2.1 2009-02-26 -- fixed a bug which showed degraded dimms as missing. (thanks matt at adicio.com) - -3.2 2009-02-20 -- added support for external disk arrays. (M. M. has a MSA20) - -3.1.1.1 2009-02-13 -- added an error message when sudo was configured with requiretty=yes. (thanks Jeff The Riffer) - -3.1.1 2009-02-06 -- fixed a bug which caused ugly perl warnings. (thanks Martin Hofmann and Bill Katz) - -3.1 2009-01-21 -- added support for sas and ide controllers/disks (only with snmp) - -3.0.7.2 2009-01-16 -- minor bugfix for dl320g5+hpasmcli+fan+n/a. (thanks Bruce Jackson) - -3.0.7.1 2008-12-05 -- minor bugfix. snmpwalk now uses -On - -3.0.7 2008-11-29 -- bugfix in controller blacklists (thanks Maurice Moric) -- no need for Net::SNMP with --snmpwalk /usr/bin/snmpwalk - -3.0.6 2008-10-30 -- buxfix in ignore-dimms (thanks tumtliw) - -3.0.5 2008-10-23 -- higher speed through decreased amount of transferred oids (thanks Yannick Gravel) -- new switch --ignore-fan-redundancy for old boxes without double fans - -3.0.4 2008-09-18 -- rewrote snmp memory checking for better handling of missing health info -- new configure option --enable-extendedinfo (outputs lots of crap) - -3.0.3.2 2008-09-11 -- --protocol ist now optional (this was a bug) - -3.0.3.1 2008-09-10 -- Only accept 1, 2 or 2c as SNMP protocol -- Try both bulk walk and get-next - -3.0.3 2008-08-11 -- cpqSiMem instead of cpqHeResMem -- new parameter --protocol (default: 2c) -- cpqHeComponents are fetched with get-next instead of get-bulk (Net::SNMP grr) - -3.0.2 2008-08-01 -- skip memory checking if snmp returns garbage -- bugfix in numbering of snmp table indexes - -3.0.1 2008-07-31 -- bugfix in customthresholds&snmp (thanks TheCry) -- broke up the snmpwalk into smaller pieces. - -3.0 2008-07-20 -- first release with snmp support for remote checks (thanks Matthias Flacke) -- simulation is possible with --snmpwalk or --hpasmcli - -2.0.3.3 - 2008-05-22 Brangerdog -- support fan partner# 0 with proliant support pack 8.0 (thanks Mark Wagner) - -2.0.3.2 - 2008-05-03 -- fixed a typo in README - -2.0.3.1 - 2008-04-16 -- fixed a bug in path to perl binary -- fixed a bug in --enable-perfdata (thanks Birk Bohne) - -2.0.3 - 2008-04-09 -- fixed a bug in dimm code -- added blacklisting for raid controllers (thanks Andreas Schrogl) -- added blacklisting for cache&battery (thanks Harrold Nabben) - -2.0.2 - 2008-02-11 -- empty cpu&fan sockets are now properly handled - -2.0.1 - 2008-02-08 -- multiline output for nagios 3.x - -2.0 - 2008-02-08 -- complete code redesign -- integrated raid checking with hpacucli - (thanks Kelly Kristiaan van Vliet who was the first to propose this feature) - (thanks Mess for calling me "FAULE SAU!!!") - -1.6.2.2 - 2008-01-18 -- added debian 3.1 to the osses where multiple hpasmd are considered normal. - -1.6.2.1 - 2007-12-12 -- fixed a bug which caused overlooked fans. Thanks Michael Krebs. -- such unknown patterns which might be important will be reported now. - -1.6.2 - 2007-11-16 -- Marcus Fleige contributed the -i and a more meaningful ok output - -1.6.1 - 2007-11-07 -- fixed a bug which caused overlooked failed fans - -1.6 - 2007-07-27 -- added performance data for fan speed and temperatures - -1.5.1 - 2007-07-11 -- hpasmcli can also be a link -- fixed a bug, so more fan locations can be found - -1.5 - 2007-06-14 -- added support for userdefined temperature thresholds (Kelly Kristiaan van Vliet) - -1.4 - 2007-05-22 -- added support for hpasmxld und hpasmlited - -1.3 - 2007-04-17 -- added --with-degree to configure (celsius or fahrenheit output) - added -b/--blacklist - added trustix 2.2 to the osses where multipel hpasmd are considered normal. - -1.2 - 2007-04-16 -- added --with-noinst-level - -1.1 - 2007-04-14 -- First public release diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/config.guess nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/config.guess --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/config.guess 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/config.guess 1970-01-01 00:00:00.000000000 +0000 @@ -1,1432 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. - -timestamp='2003-10-20' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Per Bothner . -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; - --version | -v ) - echo "$version" ; exit 0 ;; - --help | --h* | -h ) - echo "$usage"; exit 0 ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - macppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvmeppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pegasos:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mipseb-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE="alpha" ;; - "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; - "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; - "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; - "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; - "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; - "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; - "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; - "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; - "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; - "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; - "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; - esac - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; - Alpha*:OpenVMS:*:*) - echo alpha-hp-vms - exit 0 ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit 0 ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit 0 ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit 0;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit 0 ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit 0 ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit 0 ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit 0;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit 0 ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit 0 ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit 0 ;; - DRS?6000:UNIX_SV:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7 && exit 0 ;; - esac ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit 0 ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit 0 ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c \ - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && exit 0 - echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit 0 ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit 0 ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit 0 ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit 0 ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit 0 ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit 0 ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit 0 ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit 0 ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit 0 ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit 0 ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit 0 ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit 0 ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit 0 ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit 0 ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo rs6000-ibm-aix3.2.5 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit 0 ;; - *:AIX:*:[45]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit 0 ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit 0 ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit 0 ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit 0 ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit 0 ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit 0 ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - # avoid double evaluation of $set_cc_for_build - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit 0 ;; - 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo unknown-hitachi-hiuxwe2 - exit 0 ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit 0 ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit 0 ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit 0 ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit 0 ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit 0 ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit 0 ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit 0 ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit 0 ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit 0 ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit 0 ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit 0 ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - *:UNICOS/mp:*:*) - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - *:FreeBSD:*:*) - # Determine whether the default compiler uses glibc. - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #if __GLIBC__ >= 2 - LIBC=gnu - #else - LIBC= - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - # GNU/KFreeBSD systems have a "k" prefix to indicate we are using - # FreeBSD's kernel, but not the complete OS. - case ${LIBC} in gnu) kernel_only='k' ;; esac - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} - exit 0 ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit 0 ;; - x86:Interix*:[34]*) - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' - exit 0 ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit 0 ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit 0 ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit 0 ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit 0 ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit 0 ;; - arm*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - cris:Linux:*:*) - echo cris-axis-linux-gnu - exit 0 ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - mips:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips - #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 - ;; - mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips64 - #undef mips64el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mips64el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips64 - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 - ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit 0 ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit 0 ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit 0 ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; - esac - exit 0 ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit 0 ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu - exit 0 ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - a.out-i386-linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 ;; - coff-i386) - echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 ;; - "") - # Either a pre-BFD a.out linker (linux-gnuoldld) or - # one that does not give us useful --help. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit 0 ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #ifdef __INTEL_COMPILER - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 - ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit 0 ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit 0 ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit 0 ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit 0 ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit 0 ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit 0 ;; - i*86:*:5:[78]*) - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit 0 ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit 0 ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit 0 ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit 0 ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit 0 ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit 0 ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit 0 ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit 0 ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit 0 ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit 0 ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit 0 ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit 0 ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit 0 ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit 0 ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit 0 ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit 0 ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit 0 ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit 0 ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit 0 ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit 0 ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - *:Darwin:*:*) - case `uname -p` in - *86) UNAME_PROCESSOR=i686 ;; - powerpc) UNAME_PROCESSOR=powerpc ;; - esac - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit 0 ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit 0 ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit 0 ;; - NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit 0 ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit 0 ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit 0 ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit 0 ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit 0 ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit 0 ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit 0 ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit 0 ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit 0 ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit 0 ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit 0 ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit 0 ;; - *:DRAGONFLY:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE} - exit 0 ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -eval $set_cc_for_build -cat >$dummy.c < -# include -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -# if !defined (ultrix) -# include -# if defined (BSD) -# if BSD == 43 - printf ("vax-dec-bsd4.3\n"); exit (0); -# else -# if BSD == 199006 - printf ("vax-dec-bsd4.3reno\n"); exit (0); -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# endif -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# else - printf ("vax-dec-ultrix\n"); exit (0); -# endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit 0 ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - c34*) - echo c34-convex-bsd - exit 0 ;; - c38*) - echo c38-convex-bsd - exit 0 ;; - c4*) - echo c4-convex-bsd - exit 0 ;; - esac -fi - -cat >&2 < in order to provide the needed -information to handle your system. - -config.guess timestamp = $timestamp - -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/config.sub nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/config.sub --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/config.sub 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/config.sub 1970-01-01 00:00:00.000000000 +0000 @@ -1,1534 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. - -timestamp='2003-11-20' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.sub ($timestamp) - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; - --version | -v ) - echo "$version" ; exit 0 ;; - --help | --h* | -h ) - echo "$usage"; exit 0 ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit 0;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) - os= - basic_machine=$1 - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ - | c4x | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | m32r | m68000 | m68k | m88k | mcore \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64vr | mips64vrel \ - | mips64orion | mips64orionel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | msp430 \ - | ns16k | ns32k \ - | openrisc | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ - | pyramid \ - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ - | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ - | v850 | v850e \ - | we32k \ - | x86 | xscale | xstormy16 | xtensa \ - | z8k) - basic_machine=$basic_machine-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12) - # Motorola 68HC11/12. - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* \ - | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | m32r-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | mcore-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ - | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ - | pyramid-* \ - | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tron-* \ - | v850-* | v850e-* | vax-* \ - | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ - | xtensa-* \ - | ymp-* \ - | z8k-*) - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - crds | unos) - basic_machine=m68k-crds - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - mingw32) - basic_machine=i386-pc - os=-mingw32 - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - nv1) - basic_machine=nv1-cray - os=-unicosmp - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - or32 | or32-*) - basic_machine=or32-unknown - os=-coff - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparc | sparcv9 | sparcv9b) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -wince*) - os=-wince - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -aros*) - os=-aros - ;; - -kaos*) - os=-kaos - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - m68*-cisco) - os=-aout - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-ibm) - os=-aix - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit 0 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/configure nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/configure --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/configure 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,3169 +0,0 @@ -#! /bin/sh -# From configure.in . -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for check_hpasm 4.6.3.2. -# -# Copyright (C) 2003 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -exec 6>&1 - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_config_libobj_dir=. -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} - -# Identity of this package. -PACKAGE_NAME='check_hpasm' -PACKAGE_TARNAME='check_hpasm' -PACKAGE_VERSION='4.6.3.2' -PACKAGE_STRING='check_hpasm 4.6.3.2' -PACKAGE_BUGREPORT='' - -ac_default_prefix=/usr/local/nagios -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os RELEASE INSTALL WARRANTY SUPPORT with_nagios_user with_nagios_group INSTALL_OPTS NOINSTLEVEL CELSIUS PERFDATA EXTENDEDINFO HWINFO HPACUCLI SH PERL LIBOBJS LTLIBOBJS' -ac_subst_files='' - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_option in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "enable_$ac_feature='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "with_$ac_package='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_confdir=`(dirname "$0") 2>/dev/null || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 - { (exit 1); exit 1; }; } -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures check_hpasm 4.6.3.2 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -_ACEOF - - cat <<_ACEOF -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data [PREFIX/share] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --infodir=DIR info documentation [PREFIX/info] - --mandir=DIR man documentation [PREFIX/man] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of check_hpasm 4.6.3.2:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-perfdata wether to output perfdata (default=no) - --enable-extendedinfo wether to output extended info (default=no) - --disable-hwinfo wether to output model desc., serial no., bios version (default=yes) - --enable-hpacucli wether to check raid status with hpacucli (default=no) - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-nagios-user=USER set user name to run nagios - --with-nagios-group=GROUP set group name to run nagios - --with-noinst-level=LEVEL error level if hpasm is not installed - --with-degrees=UNIT which temperature unit to use. (celsius or fahrenheit) - --with-perl=PATH sets path to perl executable - -_ACEOF -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - ac_popdir=`pwd` - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d $ac_dir || continue - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - cd $ac_dir - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_srcdir/configure.gnu; then - echo - $SHELL $ac_srcdir/configure.gnu --help=recursive - elif test -f $ac_srcdir/configure; then - echo - $SHELL $ac_srcdir/configure --help=recursive - elif test -f $ac_srcdir/configure.ac || - test -f $ac_srcdir/configure.in; then - echo - $ac_configure --help - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi - cd $ac_popdir - done -fi - -test -n "$ac_init_help" && exit 0 -if $ac_init_version; then - cat <<\_ACEOF -check_hpasm configure 4.6.3.2 -generated by GNU Autoconf 2.59 - -Copyright (C) 2003 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit 0 -fi -exec 5>config.log -cat >&5 <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by check_hpasm $as_me 4.6.3.2, which was -generated by GNU Autoconf 2.59. Invocation command line was - - $ $0 $@ - -_ACEOF -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_sep= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - # Get rid of the leading space. - ac_sep=" " - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Be sure not to use single quotes in there, as some shells, -# such as our DU 5.0 friend, will then `close' the trap. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -{ - (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) - sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; - *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------- ## -## Output files. ## -## ------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - sed "/^$/d" confdefs.h | sort - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core && - rm -rf conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status - ' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - - - - - - - - - - - - - - - - - - - - - - - - -am__api_version="1.9" -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f $ac_dir/shtool; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} - { (exit 1); exit 1; }; } -fi -ac_config_guess="$SHELL $ac_aux_dir/config.guess" -ac_config_sub="$SHELL $ac_aux_dir/config.sub" -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -test "$program_prefix" != NONE && - program_transform_name="s,^,$program_prefix,;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$,$program_suffix,;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$AWK" && break -done - -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -all: - @echo 'ac_maketemp="$(MAKE)"' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftest.make -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - SET_MAKE= -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='check_hpasm' - VERSION='4.6.3.2' - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"$am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - STRIP=$ac_ct_STRIP -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - - -echo "$as_me:$LINENO: checking how to create a pax tar archive" >&5 -echo $ECHO_N "checking how to create a pax tar archive... $ECHO_C" >&6 -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' -_am_tools=${am_cv_prog_tar_pax-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - { echo "$as_me:$LINENO: $_am_tar --version" >&5 - ($_am_tar --version) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && break - done - am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x pax -w "$$tardir"' - am__tar_='pax -L -x pax -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H pax -L' - am__tar_='find "$tardir" -print | cpio -o -H pax -L' - am__untar='cpio -i -H pax -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_pax}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 - (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - rm -rf conftest.dir - if test -s conftest.tar; then - { echo "$as_me:$LINENO: $am__untar &5 - ($am__untar &5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -if test "${am_cv_prog_tar_pax+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - am_cv_prog_tar_pax=$_am_tool -fi - -echo "$as_me:$LINENO: result: $am_cv_prog_tar_pax" >&5 -echo "${ECHO_T}$am_cv_prog_tar_pax" >&6 - - - - - -# Make sure we can run config.sub. -$ac_config_sub sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 -echo "$as_me: error: cannot run $ac_config_sub" >&2;} - { (exit 1); exit 1; }; } - -echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6 -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_build_alias=$build_alias -test -z "$ac_cv_build_alias" && - ac_cv_build_alias=`$ac_config_guess` -test -z "$ac_cv_build_alias" && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6 -build=$ac_cv_build -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - -echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6 -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_host_alias=$host_alias -test -z "$ac_cv_host_alias" && - ac_cv_host_alias=$ac_cv_build_alias -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6 -host=$ac_cv_host -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - - -RELEASE=1 - - - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - - -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -all: - @echo 'ac_maketemp="$(MAKE)"' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftest.make -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - SET_MAKE= -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$AWK" && break -done - - -WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" - - -SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" - - - -# Check whether --with-nagios_user or --without-nagios_user was given. -if test "${with_nagios_user+set}" = set; then - withval="$with_nagios_user" - with_nagios_user=$withval -else - with_nagios_user=nagios -fi; - -# Check whether --with-nagios_group or --without-nagios_group was given. -if test "${with_nagios_group+set}" = set; then - withval="$with_nagios_group" - with_nagios_group=$withval -else - with_nagios_group=nagios -fi; - - -INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" - - -# Check whether --with-noinst_level or --without-noinst_level was given. -if test "${with_noinst_level+set}" = set; then - withval="$with_noinst_level" - with_noinst_level=$withval -else - with_noinst_level=unknown -fi; -NOINSTLEVEL=$with_noinst_level - - -# Check whether --with-degrees or --without-degrees was given. -if test "${with_degrees+set}" = set; then - withval="$with_degrees" - with_degrees=$withval -else - with_degrees=unknown -fi; -case "$with_degrees" in - fahrenheit) - CELSIUS=0 - - ;; - *) - CELSIUS=1 - - ;; -esac -# Check whether --enable-perfdata or --disable-perfdata was given. -if test "${enable_perfdata+set}" = set; then - enableval="$enable_perfdata" - -else - enable_perfdata=no -fi; -if test x"$enable_perfdata" = xyes ; then - PERFDATA=1 - -else - PERFDATA=0 - -fi -# Check whether --enable-extendedinfo or --disable-extendedinfo was given. -if test "${enable_extendedinfo+set}" = set; then - enableval="$enable_extendedinfo" - -else - enable_extendedinfo=no -fi; -if test x"$enable_extendedinfo" = xyes ; then - EXTENDEDINFO=1 - -else - EXTENDEDINFO=0 - -fi -# Check whether --enable-hwinfo or --disable-hwinfo was given. -if test "${enable_hwinfo+set}" = set; then - enableval="$enable_hwinfo" - -else - enable_hwinfo=yes -fi; - -if test x"$enable_hwinfo" = xyes ; then - HWINFO=1 - -else - HWINFO=0 - -fi -# Check whether --enable-hpacucli or --disable-hpacucli was given. -if test "${enable_hpacucli+set}" = set; then - enableval="$enable_hpacucli" - -else - enable_hpacucli=no -fi; - -if test x"$enable_hpacucli" = xyes ; then - HPACUCLI=1 - -elif test x"$enable_hpacucli" = xmaybe ; then - HPACUCLI=2 - -else - HPACUCLI=0 - -fi - - - - - -case "$host_os" in - *hp*) - defaulttrustedpath=/bin:/sbin:/usr/bin:/usr/sbin:/usr/contrib/bin - ;; - *) - defaulttrustedpath=/bin:/sbin:/usr/bin:/usr/sbin - ;; -esac - -EXTRAS= - -# Extract the first word of "sh", so it can be a program name with args. -set dummy sh; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_SH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $SH in - [\\/]* | ?:[\\/]*) - ac_cv_path_SH="$SH" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -SH=$ac_cv_path_SH - -if test -n "$SH"; then - echo "$as_me:$LINENO: result: $SH" >&5 -echo "${ECHO_T}$SH" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -PERL=$ac_cv_path_PERL - -if test -n "$PERL"; then - echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - - -# Check whether --with-perl or --without-perl was given. -if test "${with_perl+set}" = set; then - withval="$with_perl" - with_perl=$withval -else - with_perl=$PERL -fi; -PERL=$with_perl - - - ac_config_files="$ac_config_files Makefile plugins-scripts/Makefile plugins-scripts/subst" -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\_ACEOF -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -_ACEOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_i=`echo "$ac_i" | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Add them. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - -exec 6>&1 - -# Open the log real soon, to keep \$[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. Logging --version etc. is OK. -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX -} >&5 -cat >&5 <<_CSEOF - -This file was extended by check_hpasm $as_me 4.6.3.2, which was -generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -_CSEOF -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -echo >&5 -_ACEOF - -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi - -cat >>$CONFIG_STATUS <<\_ACEOF - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Report bugs to ." -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -check_hpasm config.status 4.6.3.2 -configured by $0, generated by GNU Autoconf 2.59, - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2003 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." -srcdir=$srcdir -INSTALL="$INSTALL" -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` - ac_shift=: - ;; - -*) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_option=$1 - ac_need_defaults=false;; - esac - - case $ac_option in - # Handling of the options. -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:$LINENO: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF - - - - - -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "plugins-scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;; - "plugins-scripts/subst" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason to put it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./confstat$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF - -# -# CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "\$CONFIG_FILES"; then - # Protect against being on the right side of a sed subst in config.status. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@DEFS@,$DEFS,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@LIBS@,$LIBS,;t t -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -s,@INSTALL_DATA@,$INSTALL_DATA,;t t -s,@CYGPATH_W@,$CYGPATH_W,;t t -s,@PACKAGE@,$PACKAGE,;t t -s,@VERSION@,$VERSION,;t t -s,@ACLOCAL@,$ACLOCAL,;t t -s,@AUTOCONF@,$AUTOCONF,;t t -s,@AUTOMAKE@,$AUTOMAKE,;t t -s,@AUTOHEADER@,$AUTOHEADER,;t t -s,@MAKEINFO@,$MAKEINFO,;t t -s,@install_sh@,$install_sh,;t t -s,@STRIP@,$STRIP,;t t -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t -s,@mkdir_p@,$mkdir_p,;t t -s,@AWK@,$AWK,;t t -s,@SET_MAKE@,$SET_MAKE,;t t -s,@am__leading_dot@,$am__leading_dot,;t t -s,@AMTAR@,$AMTAR,;t t -s,@am__tar@,$am__tar,;t t -s,@am__untar@,$am__untar,;t t -s,@build@,$build,;t t -s,@build_cpu@,$build_cpu,;t t -s,@build_vendor@,$build_vendor,;t t -s,@build_os@,$build_os,;t t -s,@host@,$host,;t t -s,@host_cpu@,$host_cpu,;t t -s,@host_vendor@,$host_vendor,;t t -s,@host_os@,$host_os,;t t -s,@RELEASE@,$RELEASE,;t t -s,@INSTALL@,$INSTALL,;t t -s,@WARRANTY@,$WARRANTY,;t t -s,@SUPPORT@,$SUPPORT,;t t -s,@with_nagios_user@,$with_nagios_user,;t t -s,@with_nagios_group@,$with_nagios_group,;t t -s,@INSTALL_OPTS@,$INSTALL_OPTS,;t t -s,@NOINSTLEVEL@,$NOINSTLEVEL,;t t -s,@CELSIUS@,$CELSIUS,;t t -s,@PERFDATA@,$PERFDATA,;t t -s,@EXTENDEDINFO@,$EXTENDEDINFO,;t t -s,@HWINFO@,$HWINFO,;t t -s,@HPACUCLI@,$HPACUCLI,;t t -s,@SH@,$SH,;t t -s,@PERL@,$PERL,;t t -s,@LIBOBJS@,$LIBOBJS,;t t -s,@LTLIBOBJS@,$LTLIBOBJS,;t t -CEOF - -_ACEOF - - cat >>$CONFIG_STATUS <<\_ACEOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`(dirname "$ac_file") 2>/dev/null || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; - esac - - if test x"$ac_file" != x-; then - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - configure_input= - else - configure_input="$ac_file. " - fi - configure_input=$configure_input"Generated from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@abs_srcdir@,$ac_abs_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -s,@builddir@,$ac_builddir,;t t -s,@abs_builddir@,$ac_abs_builddir,;t t -s,@top_builddir@,$ac_top_builddir,;t t -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -s,@INSTALL@,$ac_INSTALL,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -done -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - - -echo " --with-perl: $with_perl" -echo " --with-nagios-user: $with_nagios_user" -echo " --with-nagios-group: $with_nagios_group" -echo " --with-noinst-level: $with_noinst_level" -echo " --with-degrees: $with_degrees" -echo " --enable-perfdata: $enable_perfdata" -echo " --enable-extendedinfo: $enable_extendedinfo" -echo " --enable-hwinfo: $enable_hwinfo" -echo " --enable-hpacucli: $enable_hpacucli" diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/configure.in nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/configure.in --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/configure.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/configure.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,133 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_REVISION ($Revision: 1.150 $) -AC_PREREQ(2.58) -AC_INIT(check_hpasm,4.6.3.2) -AM_INIT_AUTOMAKE([1.9 tar-pax]) -AC_CANONICAL_HOST - -RELEASE=1 -AC_SUBST(RELEASE) - -AC_PREFIX_DEFAULT(/usr/local/nagios) - -dnl Figure out how to invoke "install" and what install options to use. -AC_PROG_INSTALL -AC_SUBST(INSTALL) - -AC_PROG_MAKE_SET -AC_PROG_AWK - -WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" -AC_SUBST(WARRANTY) - -SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" -AC_SUBST(SUPPORT) - -AC_ARG_WITH(nagios_user, - ACX_HELP_STRING([--with-nagios-user=USER], - [set user name to run nagios]), - with_nagios_user=$withval, - with_nagios_user=nagios) -AC_ARG_WITH(nagios_group, - ACX_HELP_STRING([--with-nagios-group=GROUP], - [set group name to run nagios]), - with_nagios_group=$withval, - with_nagios_group=nagios) -AC_SUBST(with_nagios_user) -AC_SUBST(with_nagios_group) -INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" -AC_SUBST(INSTALL_OPTS) -AC_ARG_WITH(noinst_level, - ACX_HELP_STRING([--with-noinst-level=LEVEL], - [error level if hpasm is not installed]), - with_noinst_level=$withval, - with_noinst_level=unknown) -AC_SUBST(NOINSTLEVEL, $with_noinst_level) -AC_ARG_WITH(degrees, - ACX_HELP_STRING([--with-degrees=UNIT], - [which temperature unit to use. (celsius or fahrenheit)]), - with_degrees=$withval, - with_degrees=unknown) -case "$with_degrees" in - fahrenheit) - AC_SUBST(CELSIUS, 0) - ;; - *) - AC_SUBST(CELSIUS, 1) - ;; -esac -AC_ARG_ENABLE([perfdata], -[ --enable-perfdata wether to output perfdata (default=no)], ,enable_perfdata=no) -if test x"$enable_perfdata" = xyes ; then - AC_SUBST(PERFDATA, 1) -else - AC_SUBST(PERFDATA, 0) -fi -AC_ARG_ENABLE([extendedinfo], -[ --enable-extendedinfo wether to output extended info (default=no)], ,enable_extendedinfo=no) -if test x"$enable_extendedinfo" = xyes ; then - AC_SUBST(EXTENDEDINFO, 1) -else - AC_SUBST(EXTENDEDINFO, 0) -fi -AC_ARG_ENABLE([hwinfo], -[ --disable-hwinfo wether to output model desc., serial no., bios version (default=yes)], ,enable_hwinfo=yes) - -if test x"$enable_hwinfo" = xyes ; then - AC_SUBST(HWINFO, 1) -else - AC_SUBST(HWINFO, 0) -fi -AC_ARG_ENABLE([hpacucli], -[ --enable-hpacucli wether to check raid status with hpacucli (default=no)], ,enable_hpacucli=no) - -if test x"$enable_hpacucli" = xyes ; then - AC_SUBST(HPACUCLI, 1) -elif test x"$enable_hpacucli" = xmaybe ; then - AC_SUBST(HPACUCLI, 2) -else - AC_SUBST(HPACUCLI, 0) -fi - - - - - -case "$host_os" in - *hp*) - defaulttrustedpath=/bin:/sbin:/usr/bin:/usr/sbin:/usr/contrib/bin - ;; - *) - defaulttrustedpath=/bin:/sbin:/usr/bin:/usr/sbin - ;; -esac - -EXTRAS= -dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH - -dnl Checks for programs. -AC_PATH_PROG(SH,sh) -AC_PATH_PROG(PERL,perl) - -dnl allow them to override the path of perl -AC_ARG_WITH(perl, - ACX_HELP_STRING([--with-perl=PATH], - [sets path to perl executable]), - with_perl=$withval,with_perl=$PERL) -AC_SUBST(PERL, $with_perl) - -AC_OUTPUT( - Makefile - plugins-scripts/Makefile - plugins-scripts/subst -) - -ACX_FEATURE([with],[perl]) -ACX_FEATURE([with],[nagios-user]) -ACX_FEATURE([with],[nagios-group]) -ACX_FEATURE([with],[noinst-level]) -ACX_FEATURE([with],[degrees]) -ACX_FEATURE([enable],[perfdata]) -ACX_FEATURE([enable],[extendedinfo]) -ACX_FEATURE([enable],[hwinfo]) -ACX_FEATURE([enable],[hpacucli]) diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/COPYING nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/COPYING --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/COPYING 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/COPYING 1970-01-01 00:00:00.000000000 +0000 @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) 19yy - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) 19yy name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/INSTALL nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/INSTALL --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/INSTALL 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/INSTALL 1970-01-01 00:00:00.000000000 +0000 @@ -1,229 +0,0 @@ -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software -Foundation, Inc. - - This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. - -Basic Installation -================== - - These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. (Caching is -disabled by default to prevent problems with accidental use of stale -cache files.) - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You only need -`configure.ac' if you want to change it or regenerate `configure' using -a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - - Some systems require unusual options for compilation or linking that -the `configure' script does not know about. Run `./configure --help' -for details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - - You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not support the `VPATH' -variable, you have to compile the package for one architecture at a -time in the source code directory. After you have installed the -package for one architecture, use `make distclean' before reconfiguring -for another architecture. - -Installation Names -================== - - By default, `make install' will install the package's files in -`/usr/local/bin', `/usr/local/man', etc. You can specify an -installation prefix other than `/usr/local' by giving `configure' the -option `--prefix=PATH'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -give `configure' the option `--exec-prefix=PATH', the package will use -PATH as the prefix for installing programs and libraries. -Documentation and other data files will still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=PATH' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - - Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - - There may be some features `configure' cannot figure out -automatically, but needs to determine by the type of machine the package -will run on. Usually, assuming the package is built to be run on the -_same_ architectures, `configure' can figure that out, but if it prints -a message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the `--target=TYPE' option to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - - If you want to set default values for `configure' scripts to share, -you can create a site shell script called `config.site' that gives -default values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - - Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -will cause the specified gcc to be used as the C compiler (unless it is -overridden in the site shell script). - -`configure' Invocation -====================== - - `configure' recognizes the following options to control how it -operates. - -`--help' -`-h' - Print a summary of the options to `configure', and exit. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/install-sh nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/install-sh --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/install-sh 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/install-sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,295 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2003-09-24.23 - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename= -transform_arg= -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd= -chgrpcmd= -stripcmd= -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src= -dst= -dir_arg= - -usage="Usage: $0 [OPTION]... SRCFILE DSTFILE - or: $0 -d DIR1 DIR2... - -In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default. -In the second, create the directory path DIR. - -Options: --b=TRANSFORMBASENAME --c copy source (using $cpprog) instead of moving (using $mvprog). --d create directories instead of installing files. --g GROUP $chgrp installed files to GROUP. --m MODE $chmod installed files to MODE. --o USER $chown installed files to USER. --s strip installed files (using $stripprog). --t=TRANSFORM ---help display this help and exit. ---version display version info and exit. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG -" - -while test -n "$1"; do - case $1 in - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - -c) instcmd=$cpprog - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - --help) echo "$usage"; exit 0;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -s) stripcmd=$stripprog - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - --version) echo "$0 $scriptversion"; exit 0;; - - *) if test -z "$src"; then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac -done - -if test -z "$src"; then - echo "$0: no input file specified." >&2 - exit 1 -fi - -# Protect names starting with `-'. -case $src in - -*) src=./$src ;; -esac - -if test -n "$dir_arg"; then - dst=$src - src= - - if test -d "$dst"; then - instcmd=: - chmodcmd= - else - instcmd=$mkdirprog - fi -else - # Waiting for this to be detected by the "$instcmd $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - - # Protect names starting with `-'. - case $dst in - -*) dst=./$dst ;; - esac - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - dst=$dst/`basename "$src"` - fi -fi - -# This sed command emulates the dirname command. -dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. - -# Skip lots of stat calls in the usual case. -if test ! -d "$dstdir"; then - defaultIFS=' - ' - IFS="${IFS-$defaultIFS}" - - oIFS=$IFS - # Some sh's can't handle IFS=/ for some reason. - IFS='%' - set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` - IFS=$oIFS - - pathcomp= - - while test $# -ne 0 ; do - pathcomp=$pathcomp$1 - shift - test -d "$pathcomp" || $mkdirprog "$pathcomp" - pathcomp=$pathcomp/ - done -fi - -if test -n "$dir_arg"; then - $doit $instcmd "$dst" \ - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } - -else - # If we're going to rename the final executable, determine the name now. - if test -z "$transformarg"; then - dstfile=`basename "$dst"` - else - dstfile=`basename "$dst" $transformbasename \ - | sed $transformarg`$transformbasename - fi - - # don't allow the sed command to completely eliminate the filename. - test -z "$dstfile" && dstfile=`basename "$dst"` - - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 - trap '(exit $?); exit' 1 2 13 15 - - # Move or copy the file name to the temp name - $doit $instcmd "$src" "$dsttmp" && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $instcmd $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && - - # Now remove or move aside any old file at destination location. We - # try this two ways since rm can't unlink itself on some systems and - # the destination file might be busy for other reasons. In this case, - # the final cleanup might fail but the new file should still install - # successfully. - { - if test -f "$dstdir/$dstfile"; then - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ - || { - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 - (exit 1); exit - } - else - : - fi - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" -fi && - -# The final little trick to "correctly" pass the exit status to the exit trap. -{ - (exit 0); exit -} - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/Makefile.am nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/Makefile.am --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/Makefile.am 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -## Process this file with automake to produce Makefile.in - -SUBDIRS = plugins-scripts - -dist-hook: - make diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/Makefile.in nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/Makefile.in --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,566 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = . -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ - ChangeLog INSTALL NEWS TODO config.guess config.sub install-sh \ - missing -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno configure.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -INSTALL = @INSTALL@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CELSIUS = @CELSIUS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXTENDEDINFO = @EXTENDEDINFO@ -HPACUCLI = @HPACUCLI@ -HWINFO = @HWINFO@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_OPTS = @INSTALL_OPTS@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -NOINSTLEVEL = @NOINSTLEVEL@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERFDATA = @PERFDATA@ -PERL = @PERL@ -RELEASE = @RELEASE@ -SET_MAKE = @SET_MAKE@ -SH = @SH@ -SHELL = @SHELL@ -STRIP = @STRIP@ -SUPPORT = @SUPPORT@ -VERSION = @VERSION@ -WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__leading_dot = @am__leading_dot@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -with_nagios_group = @with_nagios_group@ -with_nagios_user = @with_nagios_user@ -SUBDIRS = plugins-scripts -all: all-recursive - -.SUFFIXES: -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - mkdir $(distdir) - $(mkdir_p) $(distdir)/plugins-scripts - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook - -find $(distdir) -type d ! -perm -755 -exec chmod a+rwx,go+rx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ - check-am clean clean-generic clean-recursive ctags \ - ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \ - dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-generic distclean-recursive distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ - pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-info-am - - -dist-hook: - make -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/missing nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/missing --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/missing 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/missing 1970-01-01 00:00:00.000000000 +0000 @@ -1,360 +0,0 @@ -#! /bin/sh -# Common stub for a few missing GNU programs while installing. - -scriptversion=2003-09-02.23 - -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 -# Free Software Foundation, Inc. -# Originally by Fran,cois Pinard , 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 -fi - -run=: - -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -msg="missing on your system" - -case "$1" in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case "$1" in - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails - -Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch] - -Send bug reports to ." - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing $scriptversion (GNU Automake)" - ;; - - -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 - ;; - - aclocal*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case "$f" in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is needed, but is $msg. - You might have modified some files without having the - proper tools for further handling them. - You can get \`$1' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison|yacc) - echo 1>&2 "\ -WARNING: \`$1' $msg. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if [ ! -f y.tab.h ]; then - echo >y.tab.h - fi - if [ ! -f y.tab.c ]; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex|flex) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if [ ! -f lex.yy.c ]; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; - - help2man) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` - fi - if [ -f "$file" ]; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit 1 - fi - ;; - - makeinfo) - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then - # We have makeinfo, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` - fi - touch $file - ;; - - tar) - shift - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - fi - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case "$firstarg" in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case "$firstarg" in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and is $msg. - You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequisites for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac - -exit 0 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/check_hpasm.pl nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/check_hpasm.pl --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/check_hpasm.pl 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/check_hpasm.pl 1970-01-01 00:00:00.000000000 +0000 @@ -1,208 +0,0 @@ -#! /usr/bin/perl - -use strict; - -my $CELSIUS = 1; -my $PERFDATA = 1; -my $EXTENDEDINFO = 1; -my $HWINFO = 1; -my $HPACUCLI = 1; -my $NOINSTLEVEL = 'unknown'; - -use constant OK => 0; -use constant WARNING => 1; -use constant CRITICAL => 2; -use constant UNKNOWN => 3; -use constant DEPENDENT => 4; - -my $plugin = Nagios::MiniPlugin->new( - shortname => '', - usage => 'Usage: %s [ -v|--verbose ] [ -t ] '. - '--hostname --community '. - ' ...]', - version => '4.0', - blurb => 'This plugin checks the hardware of hp/compaq proliant servers', - url => 'http://labs.consol.de/nagios/check_hpasm', - timeout => 60, - shortname => '', -); -$plugin->add_arg( - spec => 'blacklist|b=s', - help => '--blacklist - Blacklist some (missing/failed) components', - required => 0, - default => '', -); -$plugin->add_arg( - spec => 'ignore-dimms|i', - help => '--ignore-dimms - Ignore "N/A"-DIMM status on misc. servers (e.g. older DL320)', - required => 0, -); -$plugin->add_arg( - spec => 'ignore-fan-redundancy', - help => '--ignore-fan-redundancy - Ignore missing redundancy partners', - required => 0, -); -$plugin->add_arg( - spec => 'customthresholds|c=s', - help => '--customthresholds - Use custom thresholds for certain temperatures', - required => 0, -); -$plugin->add_arg( - spec => 'eventrange=s', - help => '--eventrange=/ - Period of time before critical IML events respecively become warnings or vanish - A range is descibed as a number and a unit (s, m, h, d), e.g. --eventrange 1h/20m', - required => 0, -); -$plugin->add_arg( - spec => 'perfdata=s', - help => '--perfdata=[short] - Output performance data. If your performance data string becomes - too long and is truncated by Nagios, then you can use --perfdata=short - instead. This will output temperature tags without location information', - required => 0, -); -$plugin->add_arg( - spec => 'hostname|H=s', - help => '--hostname - Hostname or IP-address of the server (SNMP mode only)', - required => 0, -); -$plugin->add_arg( - spec => 'port=i', - help => '--port - The SNMP port to use (default: 161)', - required => 0, - default => 161, -); -$plugin->add_arg( - spec => 'protocol|P=s', - help => '--protocol - The SNMP protocol to use (default: 2c, other possibilities: 1,3)', - required => 0, - default => '2c', -); -$plugin->add_arg( - spec => 'community|C=s', - help => '--community - SNMP community of the server (SNMP v1/2 only)', - required => 0, - default => 'public', -); -$plugin->add_arg( - spec => 'username=s', - help => '--username - The securityName for the USM security model (SNMPv3 only)', - required => 0, -); -$plugin->add_arg( - spec => 'authpassword=s', - help => '--authpassword - The authentication password for SNMPv3', - required => 0, -); -$plugin->add_arg( - spec => 'authprotocol=s', - help => '--authprotocol - The authentication protocol for SNMPv3 (md5|sha)', - required => 0, -); -$plugin->add_arg( - spec => 'privpassword=s', - help => '--privpassword - The password for authPriv security level', - required => 0, -); -$plugin->add_arg( - spec => 'privprotocol=s', - help => '--privprotocol - The private protocol for SNMPv3 (des|aes|aes128|3des|3desde)', - required => 0, -); -$plugin->add_arg( - spec => 'snmpwalk=s', - help => '--snmpwalk - A file with the output of snmpwalk 1.3.6.1.4.1.232', - required => 0, -); -$plugin->add_arg( - spec => 'hpasmcli=s', - help => '--hpasmcli - A file with the output of hpasmcli', - required => 0, -); -$plugin->add_arg( - spec => 'servertype=s', - help => '--servertype - The type of the server: proliant (default) or bladesystem', - required => 0, -); -$plugin->add_arg( - spec => 'eval-nics', - help => '--eval-nics - Check network interfaces (and groups). Try it and report me whyt you think about it. I need to build up some know how on this subject. If get an error and you think, it is not justified for your configuration, please tell me about it. (alwasy send the output of "snmpwalk -On .... 1.3.6.1.4.1.232" and a description how you setup your nics and why it is correct opposed to the plugins error message', - required => 0, -); - -$plugin->getopts(); -if (! $PERFDATA && $plugin->opts->get('perfdata')) { - $PERFDATA = 1; -} -if ($PERFDATA && $plugin->opts->get('perfdata') && - ($plugin->opts->get('perfdata') eq 'short')) { - $PERFDATA = 2; -} -$plugin->{messages}->{unknown} = []; # wg. add_message(UNKNOWN,...) - -$plugin->{info} = []; # gefrickel - -$SIG{'ALRM'} = sub { - printf "UNKNOWN - check_hpasm timed out after %d seconds\n", - $plugin->opts->get('timeout'); - exit $ERRORS{UNKNOWN}; -}; -alarm($plugin->opts->get('timeout')); - -my $server = HP::Server->new( runtime => { - plugin => $plugin, - options => { - servertype => $plugin->opts->get('servertype'), - verbose => $plugin->opts->get('verbose'), - scrapiron => 0, - ignore_fan_redundancy => $plugin->opts->get('ignore-fan-redundancy'), - ignore_dimms => $plugin->opts->get('ignore-dimms'), - customthresholds => $plugin->opts->get('customthresholds'), - eventrange => $plugin->opts->get('eventrange'), - blacklist => $plugin->opts->get('blacklist'), - celsius => $CELSIUS, - perfdata => $PERFDATA, - extendedinfo => $EXTENDEDINFO, - hwinfo => $HWINFO, - hpacucli => $HPACUCLI, - noinstlevel => $NOINSTLEVEL, - }, -},); -if (! $plugin->check_messages()) { - $server->init(); - $plugin->add_message(OK, $server->identify()) if $HWINFO; - if (! $plugin->check_messages()) { - $plugin->add_message(OK, 'hardware working fine'); - $plugin->add_message(OK, $server->get_summary()) - if $server->get_summary(); - $plugin->add_message(OK, $server->get_extendedinfo()) - if $server->get_extendedinfo(); - } -} else { - $plugin->add_message(CRITICAL, 'wrong device'); -} - -my ($code, $message) = $plugin->check_messages(join => ', ', join_all => ', '); -$message .= sprintf "\n%s\n", join("\n", @{$plugin->{info}}) - if $plugin->opts->get('verbose') >= 1; -#printf "%s\n", Data::Dumper::Dumper($plugin->{info}); -$plugin->nagios_exit($code, $message); - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,139 +0,0 @@ -package HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem; -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - fans => [], - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - my $oids = { - cpqRackCommonEnclosureFanEntry => '1.3.6.1.4.1.232.22.2.3.1.3.1', - cpqRackCommonEnclosureFanRack => '1.3.6.1.4.1.232.22.2.3.1.3.1.1', - cpqRackCommonEnclosureFanChassis => '1.3.6.1.4.1.232.22.2.3.1.3.1.2', - cpqRackCommonEnclosureFanIndex => '1.3.6.1.4.1.232.22.2.3.1.3.1.3', - cpqRackCommonEnclosureFanEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.3.1.4', - cpqRackCommonEnclosureFanLocation => '1.3.6.1.4.1.232.22.2.3.1.3.1.5', - cpqRackCommonEnclosureFanPartNumber => '1.3.6.1.4.1.232.22.2.3.1.3.1.6', - cpqRackCommonEnclosureFanSparePartNumber => '1.3.6.1.4.1.232.22.2.3.1.3.1.7', - cpqRackCommonEnclosureFanPresent => '1.3.6.1.4.1.232.22.2.3.1.3.1.8', - cpqRackCommonEnclosureFanRedundant => '1.3.6.1.4.1.232.22.2.3.1.3.1.9', - cpqRackCommonEnclosureFanRedundantGroupId => '1.3.6.1.4.1.232.22.2.3.1.3.1.10', - cpqRackCommonEnclosureFanCondition => '1.3.6.1.4.1.232.22.2.3.1.3.1.11', - cpqRackCommonEnclosureFanEnclosureSerialNum => '1.3.6.1.4.1.232.22.2.3.1.3.1.12', - cpqRackCommonEnclosureFanPresentValue => { - 1 => 'other', - 2 => 'absent', - 3 => 'present', - }, - cpqRackCommonEnclosureFanRedundantValue => { - 0 => 'other', # meiner phantasie entsprungen, da sich hp nicht aeussert - 1 => 'other', - 2 => 'notRedundant', - 3 => 'redundant', - }, - cpqRackCommonEnclosureFanConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - } - }; - # INDEX { cpqRackCommonEnclosureFanRack, cpqRackCommonEnclosureFanChassis, cpqRackCommonEnclosureFanIndex } - foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureFanEntry')) { - push(@{$self->{fans}}, - HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem::Fan->new(%{$_})); - } - -} - -sub check { - my $self = shift; - foreach (@{$self->{fans}}) { - $_->check() if $_->{cpqRackCommonEnclosureFanPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{fans}}) { - $_->dump() if $_->{cpqRackCommonEnclosureFanPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - - -package HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem::Fan; - -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosureFan/, keys %params; - $self->{name} = $self->{cpqRackCommonEnclosureFanRack}.':'.$self->{cpqRackCommonEnclosureFanChassis}.':'.$self->{cpqRackCommonEnclosureFanIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('f', $self->{name}); - $self->add_info(sprintf 'fan %s is %s, location is %s, redundance is %s, condition is %s', - $self->{name}, $self->{cpqRackCommonEnclosureFanPresent}, - $self->{cpqRackCommonEnclosureFanLocation}, - $self->{cpqRackCommonEnclosureFanRedundant}, - $self->{cpqRackCommonEnclosureFanCondition}); - if ($self->{cpqRackCommonEnclosureFanCondition} eq 'degraded') { - $self->{info} .= sprintf ", (SparePartNum: %s)", $self->{cpqRackCommonEnclosureFanSparePartNumber}; - $self->add_message(WARNING, $self->{info}); - } elsif ($self->{cpqRackCommonEnclosureFanCondition} eq 'failed') { - $self->{info} .= sprintf ", (SparePartNum: %s)", $self->{cpqRackCommonEnclosureFanSparePartNumber}; - $self->add_message(CRITICAL, $self->{info}); - } -} - -sub dump { - my $self = shift; - printf "[FAN_%s]\n", $self->{name}; - foreach (qw(cpqRackCommonEnclosureFanRack cpqRackCommonEnclosureFanChassis - cpqRackCommonEnclosureFanIndex cpqRackCommonEnclosureFanEnclosureName - cpqRackCommonEnclosureFanLocation cpqRackCommonEnclosureFanPartNumber - cpqRackCommonEnclosureFanSparePartNumber cpqRackCommonEnclosureFanPresent - cpqRackCommonEnclosureFanRedundant cpqRackCommonEnclosureFanRedundantGroupId - cpqRackCommonEnclosureFanCondition cpqRackCommonEnclosureFanEnclosureSerialNum)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n", $self->{info}; - printf "\n"; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,121 +0,0 @@ -package HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem; -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - fuses => [], - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - my $oids = { - cpqRackCommonEnclosureFuseEntry => '1.3.6.1.4.1.232.22.2.3.1.4.1', - cpqRackCommonEnclosureFuseRack => '1.3.6.1.4.1.232.22.2.3.1.4.1.1', - cpqRackCommonEnclosureFuseChassis => '1.3.6.1.4.1.232.22.2.3.1.4.1.2', - cpqRackCommonEnclosureFuseIndex => '1.3.6.1.4.1.232.22.2.3.1.4.1.3', - cpqRackCommonEnclosureFuseEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.4.1.4', - cpqRackCommonEnclosureFuseLocation => '1.3.6.1.4.1.232.22.2.3.1.4.1.5', - cpqRackCommonEnclosureFusePresent => '1.3.6.1.4.1.232.22.2.3.1.4.1.8', - cpqRackCommonEnclosureFuseCondition => '1.3.6.1.4.1.232.22.2.3.1.4.1.11', - cpqRackCommonEnclosureFusePresentValue => { - 1 => 'other', - 2 => 'absent', - 3 => 'present', - }, - cpqRackCommonEnclosureFuseConditionValue => { - 1 => 'other', - 2 => 'ok', - 4 => 'failed', - } - }; - # INDEX { cpqRackCommonEnclosureFuseRack, cpqRackCommonEnclosureFuseChassis, cpqRackCommonEnclosureFuseIndex } - foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureFuseEntry')) { - push(@{$self->{fuses}}, - HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem::Fuse->new(%{$_})); - } - -} - -sub check { - my $self = shift; - foreach (@{$self->{fuses}}) { - $_->check() if $_->{cpqRackCommonEnclosureFusePresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{fuses}}) { - $_->dump() if $_->{cpqRackCommonEnclosureFusePresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - - -package HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem::Fuse; - -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosureFuse/, keys %params; - $self->{name} = $self->{cpqRackCommonEnclosureFuseRack}.':'.$self->{cpqRackCommonEnclosureFuseChassis}.':'.$self->{cpqRackCommonEnclosureFuseIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('fu', $self->{name}); - $self->add_info(sprintf 'fuse %s is %s, location is %s, condition is %s', - $self->{name}, $self->{cpqRackCommonEnclosureFusePresent}, - $self->{cpqRackCommonEnclosureFuseLocation}, $self->{cpqRackCommonEnclosureFuseCondition}); - if ($self->{cpqRackCommonEnclosureFuseCondition} eq 'failed') { - $self->add_message(CRITICAL, $self->{info}); - } elsif ($self->{cpqRackCommonEnclosureFuseCondition} ne 'ok') { - $self->add_message(WARNING, $self->{info}); - } -} - -sub dump { - my $self = shift; - printf "[FUSE_%s]\n", $self->{name}; - foreach (qw(cpqRackCommonEnclosureFuseRack cpqRackCommonEnclosureFuseChassis - cpqRackCommonEnclosureFuseIndex cpqRackCommonEnclosureFuseEnclosureName - cpqRackCommonEnclosureFuseLocation cpqRackCommonEnclosureFusePresent - cpqRackCommonEnclosureFuseCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n", $self->{info}; - printf "\n"; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,154 +0,0 @@ -package HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem; -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - managers => [], - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - my $oids = { - cpqRackCommonEnclosureManagerEntry => '1.3.6.1.4.1.232.22.2.3.1.6.1', - cpqRackCommonEnclosureManagerRack => '1.3.6.1.4.1.232.22.2.3.1.6.1.1', - cpqRackCommonEnclosureManagerChassis => '1.3.6.1.4.1.232.22.2.3.1.6.1.2', - cpqRackCommonEnclosureManagerIndex => '1.3.6.1.4.1.232.22.2.3.1.6.1.3', - cpqRackCommonEnclosureManagerEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.6.1.4', - cpqRackCommonEnclosureManagerLocation => '1.3.6.1.4.1.232.22.2.3.1.6.1.5', - cpqRackCommonEnclosureManagerPartNumber => '1.3.6.1.4.1.232.22.2.3.1.6.1.6', - cpqRackCommonEnclosureManagerSparePartNumber => '1.3.6.1.4.1.232.22.2.3.1.6.1.7', - cpqRackCommonEnclosureManagerSerialNum => '1.3.6.1.4.1.232.22.2.3.1.6.1.8', - cpqRackCommonEnclosureManagerRole => '1.3.6.1.4.1.232.22.2.3.1.6.1.9', - cpqRackCommonEnclosureManagerPresent => '1.3.6.1.4.1.232.22.2.3.1.6.1.10', - cpqRackCommonEnclosureManagerRedundant => '1.3.6.1.4.1.232.22.2.3.1.6.1.11', - cpqRackCommonEnclosureManagerCondition => '1.3.6.1.4.1.232.22.2.3.1.6.1.12', - cpqRackCommonEnclosureManagerFWRev => '1.3.6.1.4.1.232.22.2.3.1.6.1.15', - cpqRackCommonEnclosureManagerRoleValue => { - 1 => 'standby', - 2 => 'active', - }, - cpqRackCommonEnclosureManagerPresentValue => { - 1 => 'other', - 2 => 'absent', # mit vorsicht zu geniessen! - 3 => 'present', - }, - cpqRackCommonEnclosureManagerRedundantValue => { - 0 => 'other', # meiner phantasie entsprungen, da sich hp nicht aeussert - 1 => 'other', - 2 => 'notRedundant', - 3 => 'redundant', - }, - cpqRackCommonEnclosureManagerConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - } - }; - # INDEX { cpqRackCommonEnclosureManagerRack, cpqRackCommonEnclosureManagerChassis, cpqRackCommonEnclosureManagerIndex } - foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureManagerEntry')) { - push(@{$self->{managers}}, - HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem::Manager->new(%{$_})); - } -} - -sub check { - my $self = shift; - foreach (@{$self->{managers}}) { - $_->check() if $_->{cpqRackCommonEnclosureManagerPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{managers}}) { - $_->dump() if $_->{cpqRackCommonEnclosureManagerPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - - -package HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem::Manager; - -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosureManager/, keys %params; - $self->{name} = $self->{cpqRackCommonEnclosureManagerRack}. - ':'.$self->{cpqRackCommonEnclosureManagerChassis}. - ':'.$self->{cpqRackCommonEnclosureManagerIndex}; - if ($self->{cpqRackCommonEnclosureManagerPresent} eq "absent" && - defined $self->{cpqRackCommonEnclosureManagerEnclosureName}) { - $self->{cpqRackCommonEnclosureManagerPresent} = "present"; - } - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('em', $self->{name}); - my $info = sprintf 'manager %s is %s, location is %s, redundance is %s, condition is %s, role is %s', - $self->{name}, $self->{cpqRackCommonEnclosureManagerPresent}, - $self->{cpqRackCommonEnclosureManagerLocation}, - $self->{cpqRackCommonEnclosureManagerRedundant}, - $self->{cpqRackCommonEnclosureManagerCondition}, - $self->{cpqRackCommonEnclosureManagerRole}; - $self->add_info($info) if $self->{cpqRackCommonEnclosureManagerPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent managers nur bei -vvv - if ($self->{cpqRackCommonEnclosureManagerCondition} eq 'degraded') { - $self->{info} .= sprintf ' (SparePartNum: %s)', - $self->{cpqRackCommonEnclosureManagerSparePartNumber}; - $self->add_message(WARNING, $self->{info}); - } elsif ($self->{cpqRackCommonEnclosureManagerCondition} eq 'failed') { - $self->{info} .= sprintf ' (SparePartNum: %s)', - $self->{cpqRackCommonEnclosureManagerSparePartNumber}; - $self->add_message(CRITICAL, $self->{info}); - } -} - -sub dump { - my $self = shift; - printf "[ENCLOSURE_MANAGER_%s]\n", $self->{name}; - foreach (qw(cpqRackCommonEnclosureManagerRack cpqRackCommonEnclosureManagerChassis - cpqRackCommonEnclosureManagerIndex cpqRackCommonEnclosureManagerEnclosureName - cpqRackCommonEnclosureManagerLocation cpqRackCommonEnclosureManagerPartNumber - cpqRackCommonEnclosureManagerSparePartNumber cpqRackCommonEnclosureManagerPresent - cpqRackCommonEnclosureManagerRedundant - cpqRackCommonEnclosureManagerCondition cpqRackCommonEnclosureManagerFWRev)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n", $self->{info}; - printf "\n"; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,177 +0,0 @@ -package HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem; -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - temperatures => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if ($params{runtime}->{options}->{customthresholds}) { - if (-f $params{runtime}->{options}->{customthresholds}) { - open CT, $params{runtime}->{options}->{customthresholds}; - $params{runtime}->{options}->{customthresholds} = ; - close CT; - } - foreach my $ct_items - (split(/\//, $params{runtime}->{options}->{customthresholds})) { - if ($ct_items =~ /^(\d+):(\d+)$/) { - my $temp = $2; - $params{runtime}->{options}->{thresholds}->{$1} = $temp; - } else { - die sprintf "invalid threshold %s", $ct_items; - } - } - } - $self->init(); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqRackCommonEnclosureTempEntry => '1.3.6.1.4.1.232.22.2.3.1.2.1', - cpqRackCommonEnclosureTempRack => '1.3.6.1.4.1.232.22.2.3.1.2.1.1', - cpqRackCommonEnclosureTempChassis => '1.3.6.1.4.1.232.22.2.3.1.2.1.2', - cpqRackCommonEnclosureTempSensorIndex => '1.3.6.1.4.1.232.22.2.3.1.2.1.3', - cpqRackCommonEnclosureTempSensorEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.2.1.4', - cpqRackCommonEnclosureTempLocation => '1.3.6.1.4.1.232.22.2.3.1.2.1.5', - cpqRackCommonEnclosureTempCurrent => '1.3.6.1.4.1.232.22.2.3.1.2.1.6', - cpqRackCommonEnclosureTempThreshold => '1.3.6.1.4.1.232.22.2.3.1.2.1.7', - cpqRackCommonEnclosureTempCondition => '1.3.6.1.4.1.232.22.2.3.1.2.1.8', - cpqRackCommonEnclosureTempType => '1.3.6.1.4.1.232.22.2.3.1.2.1.9', - cpqRackCommonEnclosureTempConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }, - cpqRackCommonEnclosureTempTypeValue => { - 1 => 'other', - 5 => 'blowout', - 9 => 'caution', - 15 => 'critical', - }, - }; - # INDEX { cpqRackCommonEnclosureTempRack cpqRackCommonEnclosureTempChassis - # cpqRackCommonEnclosureTempSensorIndex } - foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureTempEntry')) { - push(@{$self->{temperatures}}, - HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem::Temp->new(%{$_})) if (($_->{cpqRackCommonEnclosureTempCurrent} != -1 && $_->{cpqRackCommonEnclosureTempThreshold} != -1) && ($_->{cpqRackCommonEnclosureTempThreshold} != 0)); - } - -} - - -sub check { - my $self = shift; - my $errorfound = 0; - if (scalar (@{$self->{temperatures}}) == 0) { - #$self->overall_check(); - } else { - foreach (@{$self->{temperatures}}) { - $_->check(); - } - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{temperatures}}) { - $_->dump(); - } -} - - -package HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem::Temp; -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosureTemp/, keys %params; - $self->{name} = $params{cpqRackCommonEnclosureTempRack}.':'. - $params{cpqRackCommonEnclosureTempChassis}.':'. - $params{cpqRackCommonEnclosureTempSensorIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('t', $self->{name}); - if ($self->{cpqRackCommonEnclosureTempCurrent} > $self->{cpqRackCommonEnclosureTempThreshold}) { - $self->add_info(sprintf "%s temperature too high (%d%s)", - $self->{cpqRackCommonEnclosureTempLocation}, - $self->{cpqRackCommonEnclosureTempCurrent}, - $self->{runtime}->{options}->{celsius} ? "C" : "F"); - $self->add_message(CRITICAL, $self->{info}); - } else { - $self->add_info(sprintf "%s temperature is %d%s (%d max)", - $self->{cpqRackCommonEnclosureTempLocation}, - $self->{cpqRackCommonEnclosureTempCurrent}, - $self->{runtime}->{options}->{celsius} ? "C" : "F", - $self->{cpqRackCommonEnclosureTempThreshold}); - } - if ($self->{runtime}->{options}->{perfdata} == 2) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('temp_%s', $self->{name}), - value => $self->{cpqRackCommonEnclosureTempCurrent}, - warning => $self->{cpqRackCommonEnclosureTempThreshold}, - critical => $self->{cpqRackCommonEnclosureTempThreshold} - ); - } elsif ($self->{runtime}->{options}->{perfdata} == 1) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('temp_%s_%s', $self->{name}, - $self->{cpqRackCommonEnclosureTempLocation}), - value => $self->{cpqRackCommonEnclosureTempCurrent}, - warning => $self->{cpqRackCommonEnclosureTempThreshold}, - critical => $self->{cpqRackCommonEnclosureTempThreshold} - ); - } - $self->add_extendedinfo(sprintf "temp_%s=%d", - $self->{name}, $self->{cpqRackCommonEnclosureTempCurrent}); - -} - - -sub dump { - my $self = shift; - printf "[TEMP_%s]\n", $self->{name}; - foreach (qw(cpqRackCommonEnclosureTempRack cpqRackCommonEnclosureTempChassis - cpqRackCommonEnclosureTempSensorIndex cpqRackCommonEnclosureTempSensorEnclosureName - cpqRackCommonEnclosureTempLocation - cpqRackCommonEnclosureTempCurrent cpqRackCommonEnclosureTempThreshold - cpqRackCommonEnclosureTempCondition cpqRackCommonEnclosureTempType)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n\n", $self->{info}; -} - -1; - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,176 +0,0 @@ -package HP::BladeSystem::Component::CommonEnclosureSubsystem; -our @ISA = qw(HP::BladeSystem::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - common_enclosures => [], - common_enclosure_temp_subsys => undef, - common_enclosure_fan_subsys => undef, - common_enclosure_fuse_subsys => undef, - common_enclosure_manager_subsys => undef, - common_enclosure_frus => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - # jeweils ein block fuer - # enclosures, temps, fans, fuses - # loop ueber oids und entspr. new - my $oids = { - cpqRackCommonEnclosureEntry => '1.3.6.1.4.1.232.22.2.3.1.1.1', - cpqRackCommonEnclosureRack => '1.3.6.1.4.1.232.22.2.3.1.1.1.1', - cpqRackCommonEnclosureIndex => '1.3.6.1.4.1.232.22.2.3.1.1.1.2', - cpqRackCommonEnclosureModel => '1.3.6.1.4.1.232.22.2.3.1.1.1.3', - cpqRackCommonEnclosureSparePartNumber => '1.3.6.1.4.1.232.22.2.3.1.1.1.6', - cpqRackCommonEnclosureSerialNum => '1.3.6.1.4.1.232.22.2.3.1.1.1.7', - cpqRackCommonEnclosureFWRev => '1.3.6.1.4.1.232.22.2.3.1.1.1.8', - cpqRackCommonEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.1.1.9', - cpqRackCommonEnclosureCondition => '1.3.6.1.4.1.232.22.2.3.1.1.1.16', - cpqRackCommonEnclosureHasServerBlades => '1.3.6.1.4.1.232.22.2.3.1.1.1.17', - cpqRackCommonEnclosureHasPowerBlades => '1.3.6.1.4.1.232.22.2.3.1.1.1.18', - cpqRackCommonEnclosureHasNetConnectors => '1.3.6.1.4.1.232.22.2.3.1.1.1.19', - cpqRackCommonEnclosureHasTempSensors => '1.3.6.1.4.1.232.22.2.3.1.1.1.20', - cpqRackCommonEnclosureHasFans => '1.3.6.1.4.1.232.22.2.3.1.1.1.21', - cpqRackCommonEnclosureHasFuses => '1.3.6.1.4.1.232.22.2.3.1.1.1.22', - cpqRackCommonEnclosureConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }, - cpqRackCommonEnclosureHasServerBladesValue => { - 1 => 'false', - 2 => 'true', - }, - }; - $oids->{cpqRackCommonEnclosureHasPowerBladesValue} = - $oids->{cpqRackCommonEnclosureHasServerBladesValue}; - $oids->{cpqRackCommonEnclosureHasNetConnectorsValue} = - $oids->{cpqRackCommonEnclosureHasServerBladesValue}; - $oids->{cpqRackCommonEnclosureHasTempSensorsValue} = - $oids->{cpqRackCommonEnclosureHasServerBladesValue}; - $oids->{cpqRackCommonEnclosureHasFansValue} = - $oids->{cpqRackCommonEnclosureHasServerBladesValue}; - $oids->{cpqRackCommonEnclosureHasServerBladesValue} = - $oids->{cpqRackCommonEnclosureHasServerBladesValue}; - # INDEX { cpqRackCommonEnclosureRack cpqRackCommonEnclosureIndex } - foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureEntry')) { - push(@{$self->{common_enclosures}}, - HP::BladeSystem::Component::CommonEnclosureSubsystem::CommonEnclosure->new(%{$_})); - } - - $self->{common_enclosure_fan_subsys} = HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); - $self->{common_enclosure_temp_subsys} = HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); - $self->{common_enclosure_fuse_subsys} = HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); - $self->{common_enclosure_manager_subsys} = HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub check { - my $self = shift; - foreach (@{$self->{common_enclosures}}) { - $_->check(); - } - $self->{common_enclosure_fan_subsys}->check(); - $self->{common_enclosure_temp_subsys}->check(); - $self->{common_enclosure_fuse_subsys}->check(); - $self->{common_enclosure_manager_subsys}->check(); -} - -sub dump { - my $self = shift; - foreach (@{$self->{common_enclosures}}) { - $_->dump(); - } - $self->{common_enclosure_fan_subsys}->dump(); - $self->{common_enclosure_temp_subsys}->dump(); - $self->{common_enclosure_fuse_subsys}->dump(); - $self->{common_enclosure_manager_subsys}->dump(); -} - - -package HP::BladeSystem::Component::CommonEnclosureSubsystem::CommonEnclosure; -our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosure/, keys %params; - $self->{name} = $self->{cpqRackCommonEnclosureRack}.':'.$self->{cpqRackCommonEnclosureIndex}; - $self->{serfw} = sprintf "Ser: %s, FW: %s", $self->{cpqRackCommonEnclosureSerialNum}, - $self->{cpqRackCommonEnclosureFWRev}; - bless $self, $class; - return $self; -} - - -sub check { - my $self = shift; - $self->blacklist('ce', $self->{cpqRackCommonEnclosureName}); - my $info = sprintf 'common enclosure %s condition is %s (%s)', - $self->{cpqRackCommonEnclosureName}, $self->{cpqRackCommonEnclosureCondition}, $self->{serfw}; - $self->add_info($info); - if ($self->{cpqRackCommonEnclosureCondition} eq 'failed') { - $info .= sprintf " (SparePartNum %s)", $self->{cpqRackCommonEnclosureSparePartNumber}; - $self->add_message(CRITICAL, $info); - } elsif ($self->{cpqRackCommonEnclosureCondition} eq 'degraded') { - $info .= sprintf " (SparePartNum %s)", $self->{cpqRackCommonEnclosureSparePartNumber}; - $self->add_message(WARNING, $info); - } -} - -sub dump { - my $self = shift; - printf "[COMMON_ENCLOSURE_%s]\n", $self->{cpqRackCommonEnclosureName}; - foreach (qw(cpqRackCommonEnclosureRack cpqRackCommonEnclosureIndex cpqRackCommonEnclosureModel - cpqRackCommonEnclosureSerialNum cpqRackCommonEnclosureFWRev cpqRackCommonEnclosureFWRev - cpqRackCommonEnclosureName - cpqRackCommonEnclosureCondition cpqRackCommonEnclosureHasServerBlades - cpqRackCommonEnclosureHasPowerBlades cpqRackCommonEnclosureHasNetConnectors - cpqRackCommonEnclosureHasTempSensors cpqRackCommonEnclosureHasFans cpqRackCommonEnclosureHasFuses)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/NetConnectorSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/NetConnectorSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/NetConnectorSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/NetConnectorSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,134 +0,0 @@ -package HP::BladeSystem::Component::NetConnectorSubsystem; -our @ISA = qw(HP::BladeSystem::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - net_connectors => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - my $oids = { - cpqRackNetConnectorEntry => '1.3.6.1.4.1.232.22.2.6.1.1.1', - cpqRackNetConnectorRack => '1.3.6.1.4.1.232.22.2.6.1.1.1.1', - cpqRackNetConnectorChassis => '1.3.6.1.4.1.232.22.2.6.1.1.1.2', - cpqRackNetConnectorIndex => '1.3.6.1.4.1.232.22.2.6.1.1.1.3', - cpqRackNetConnectorEnclosureName => '1.3.6.1.4.1.232.22.2.6.1.1.1.4', - cpqRackNetConnectorName => '1.3.6.1.4.1.232.22.2.6.1.1.1.5', - cpqRackNetConnectorModel => '1.3.6.1.4.1.232.22.2.6.1.1.1.6', - cpqRackNetConnectorSerialNum => '1.3.6.1.4.1.232.22.2.6.1.1.1.7', - cpqRackNetConnectorPartNumber => '1.3.6.1.4.1.232.22.2.6.1.1.1.8', - cpqRackNetConnectorSparePartNumber => '1.3.6.1.4.1.232.22.2.6.1.1.1.9', - cpqRackNetConnectorFWRev => '1.3.6.1.4.1.232.22.2.6.1.1.1.10', - cpqRackNetConnectorType => '1.3.6.1.4.1.232.22.2.6.1.1.1.11', - cpqRackNetConnectorLocation => '1.3.6.1.4.1.232.22.2.6.1.1.1.12', - cpqRackNetConnectorPresent => '1.3.6.1.4.1.232.22.2.6.1.1.1.13', - cpqRackNetConnectorHasFuses => '1.3.6.1.4.1.232.22.2.6.1.1.1.14', - cpqRackNetConnectorEnclosureSerialNum => '1.3.6.1.4.1.232.22.2.6.1.1.1.15', - cpqRackNetConnectorTypeValue => { - 0 => 'other', # undefined - 1 => 'other', - 2 => 'active', - 3 => 'passive', - }, - cpqRackNetConnectorPresentValue => { - 1 => 'other', - 2 => 'absent', - 3 => 'present', - }, - cpqRackNetConnectorHasFusesValue => { - -1 => 'false', # wird geliefert, also vermute ich false - 1 => 'false', - 2 => 'true', - }, - }; - - - # INDEX { cpqRackNetConnectorRack, cpqRackNetConnectorChassis, cpqRackNetConnectorIndex } - # dreckada dreck, dreckada - foreach ($self->get_entries($oids, 'cpqRackNetConnectorEntry')) { - push(@{$self->{net_connectors}}, - HP::BladeSystem::Component::NetConnectorSubsystem::NetConnector->new(%{$_})); - } -} - -sub check { - my $self = shift; - foreach (@{$self->{net_connectors}}) { - $_->check() if $_->{cpqRackNetConnectorPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{net_connectors}}) { - $_->dump() if $_->{cpqRackNetConnectorPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - - -package HP::BladeSystem::Component::NetConnectorSubsystem::NetConnector; -our @ISA = qw(HP::BladeSystem::Component::NetConnectorSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackNetConnector/, keys %params; - $self->{name} = $params{cpqRackNetConnectorRack}. - ':'.$params{cpqRackNetConnectorChassis}. - ':'.$params{cpqRackNetConnectorIndex}; - $self->{serfw} = sprintf "Ser: %s, FW: %s", $self->{cpqRackNetConnectorSerialNum}, $self->{cpqRackNetConnectorFWRev}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('nc', $self->{name}); - my $info = sprintf 'net connector %s is %s, model is %s (%s)', - $self->{name}.($self->{cpqRackNetConnectorName} ? ' \''.$self->{cpqRackNetConnectorName}.'\'' : ''), - $self->{cpqRackNetConnectorPresent}, $self->{cpqRackNetConnectorModel}, $self->{serfw}; - $self->add_info($info); - # hat weder status noch condition, vielleicht spaeter mal - $info .= sprintf " (SparePartNum %s)", $self->{cpqRackNetConnectorSparePartNumber}; -} - -sub dump { - my $self = shift; - printf "[NET_CONNECTOR_%s]\n", $self->{cpqRackNetConnectorName}; - foreach (qw(cpqRackNetConnectorRack cpqRackNetConnectorChassis cpqRackNetConnectorIndex cpqRackNetConnectorEnclosureName cpqRackNetConnectorName cpqRackNetConnectorModel cpqRackNetConnectorSerialNum cpqRackNetConnectorPartNumber cpqRackNetConnectorSparePartNumber cpqRackNetConnectorFWRev cpqRackNetConnectorType cpqRackNetConnectorLocation cpqRackNetConnectorPresent cpqRackNetConnectorHasFuses cpqRackNetConnectorEnclosureSerialNum)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/PowerEnclosureSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/PowerEnclosureSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/PowerEnclosureSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/PowerEnclosureSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,136 +0,0 @@ -package HP::BladeSystem::Component::PowerEnclosureSubsystem; -our @ISA = qw(HP::BladeSystem::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - power_enclosures => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - -# cpqRackPowerEnclosureTable - my $oids = { - cpqRackPowerEnclosureEntry => '1.3.6.1.4.1.232.22.2.3.3.1.1', - cpqRackPowerEnclosureRack => '1.3.6.1.4.1.232.22.2.3.3.1.1.1', - cpqRackPowerEnclosureIndex => '1.3.6.1.4.1.232.22.2.3.3.1.1.2', - cpqRackPowerEnclosureName => '1.3.6.1.4.1.232.22.2.3.3.1.1.3', - cpqRackPowerEnclosureMgmgtBoardSerialNum => '1.3.6.1.4.1.232.22.2.3.3.1.1.4', - cpqRackPowerEnclosureRedundant => '1.3.6.1.4.1.232.22.2.3.3.1.1.5', - cpqRackPowerEnclosureLoadBalanced => '1.3.6.1.4.1.232.22.2.3.3.1.1.6', - cpqRackPowerEnclosureInputPwrType => '1.3.6.1.4.1.232.22.2.3.3.1.1.7', - cpqRackPowerEnclosurePwrFeedMax => '1.3.6.1.4.1.232.22.2.3.3.1.1.8', - cpqRackPowerEnclosureCondition => '1.3.6.1.4.1.232.22.2.3.3.1.1.9', - cpqRackPowerEnclosureRedundantValue => { - 1 => 'other', - 2 => 'notRedundant', - 3 => 'redundant', - }, - cpqRackPowerEnclosureLoadBalancedValue => { - 0 => 'aechz', - 1 => 'other', - 2 => 'notLoadBalanced', - 3 => 'loadBalanced', - }, - cpqRackPowerEnclosureInputPwrTypeValue => { - 1 => 'other', - 2 => 'singlePhase', - 3 => 'threePhase', - 4 => 'directCurrent', - }, - cpqRackPowerEnclosureConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - }, - }; - - - # INDEX { cpqRackPowerEnclosureRack, cpqRackPowerEnclosureIndex } - # dreckada dreck, dreckada - foreach ($self->get_entries($oids, 'cpqRackPowerEnclosureEntry')) { - push(@{$self->{power_enclosures}}, - HP::BladeSystem::Component::PowerEnclosureSubsystem::PowerEnclosure->new(%{$_})); - } -} - -sub check { - my $self = shift; - foreach (@{$self->{power_enclosures}}) { - $_->check(); - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{power_enclosures}}) { - $_->dump(); - } -} - - -package HP::BladeSystem::Component::PowerEnclosureSubsystem::PowerEnclosure; -our @ISA = qw(HP::BladeSystem::Component::PowerEnclosureSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackPowerEnclosure/, keys %params; - $self->{name} = $self->{cpqRackPowerEnclosureRack}.':'.$self->{cpqRackPowerEnclosureIndex}; - bless $self, $class; - $self->init(); - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('pe', $self->{name}); - my $info = sprintf 'power enclosure %s \'%s\' condition is %s', - $self->{name}, $self->{cpqRackPowerEnclosureName}, $self->{cpqRackPowerEnclosureCondition}; - $self->add_info($info); - if ($self->{cpqRackPowerEnclosureCondition} eq 'degraded') { - $self->add_message(WARNING, $info); - } -} - -sub dump { - my $self = shift; - printf "[POWER_ENCLOSURE_%s]\n", $self->{cpqRackPowerEnclosureName}; - foreach (qw(cpqRackPowerEnclosureRack cpqRackPowerEnclosureIndex - cpqRackPowerEnclosureName cpqRackPowerEnclosureMgmgtBoardSerialNum - cpqRackPowerEnclosureRedundant cpqRackPowerEnclosureLoadBalanced - cpqRackPowerEnclosureInputPwrType cpqRackPowerEnclosurePwrFeedMax - cpqRackPowerEnclosureCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/PowerSupplySubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/PowerSupplySubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/PowerSupplySubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/PowerSupplySubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,238 +0,0 @@ -package HP::BladeSystem::Component::PowerSupplySubsystem; -our @ISA = qw(HP::BladeSystem::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - power_supplies => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - my $oids = { - cpqRackPowerSupplyEntry => '1.3.6.1.4.1.232.22.2.5.1.1.1', - cpqRackPowerSupplyRack => '1.3.6.1.4.1.232.22.2.5.1.1.1.1', - cpqRackPowerSupplyChassis => '1.3.6.1.4.1.232.22.2.5.1.1.1.2', - cpqRackPowerSupplyIndex => '1.3.6.1.4.1.232.22.2.5.1.1.1.3', - cpqRackPowerSupplyEnclosureName => '1.3.6.1.4.1.232.22.2.5.1.1.1.4', - cpqRackPowerSupplySerialNum => '1.3.6.1.4.1.232.22.2.5.1.1.1.5', - cpqRackPowerSupplySparePartNumber => '1.3.6.1.4.1.232.22.2.5.1.1.1.7', - cpqRackPowerSupplyFWRev => '1.3.6.1.4.1.232.22.2.5.1.1.1.8', - cpqRackPowerSupplyMaxPwrOutput => '1.3.6.1.4.1.232.22.2.5.1.1.1.9', - cpqRackPowerSupplyCurPwrOutput => '1.3.6.1.4.1.232.22.2.5.1.1.1.10', - cpqRackPowerSupplyIntakeTemp => '1.3.6.1.4.1.232.22.2.5.1.1.1.12', - cpqRackPowerSupplyExhaustTemp => '1.3.6.1.4.1.232.22.2.5.1.1.1.13', - cpqRackPowerSupplyStatus => '1.3.6.1.4.1.232.22.2.5.1.1.1.14', - cpqRackPowerSupplySupplyInputLineStatus => '1.3.6.1.4.1.232.22.2.5.1.1.1.15', - cpqRackPowerSupplyPresent => '1.3.6.1.4.1.232.22.2.5.1.1.1.16', - cpqRackPowerSupplyCondition => '1.3.6.1.4.1.232.22.2.5.1.1.1.17', - cpqRackPowerSupplySupplyInputLineStatusValue => { - 1 => 'noError', - 2 => 'lineOverVoltage', - 3 => 'lineUnderVoltage', - 4 => 'lineHit', - 5 => 'brownOut', - 6 => 'linePowerLoss', - }, - cpqRackPowerSupplyStatusValue => { - 1 => 'noError', - 2 => 'generalFailure', - 3 => 'bistFailure', - 4 => 'fanFailure', - 5 => 'tempFailure', - 6 => 'interlockOpen', - 7 => 'epromFailed', - 8 => 'vrefFailed', - 9 => 'dacFailed', - 10 => 'ramTestFailed', - 11 => 'voltageChannelFailed', - 12 => 'orringdiodeFailed', - 13 => 'brownOut', - 14 => 'giveupOnStartup', - 15 => 'nvramInvalid', - 16 => 'calibrationTableInvalid', - }, - cpqRackPowerSupplyPresentValue => { - 1 => 'other', - 2 => 'absent', - 3 => 'present', - }, - cpqRackPowerSupplyConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }, - }; - - - # INDEX { cpqRackPowerSupplyRack, cpqRackPowerSupplyChassis, cpqRackPowerSupplyIndex } - foreach ($self->get_entries($oids, 'cpqRackPowerSupplyEntry')) { - push(@{$self->{power_supplies}}, - HP::BladeSystem::Component::PowerSupplySubsystem::PowerSupply->new(%{$_})); - } -} - -sub check { - my $self = shift; - my $total_current_watt = 0; - my $total_max_watt = 0; - my $total_in_temp = 0; - my $total_out_temp = 0; - my $num_ps = 0; - foreach (@{$self->{power_supplies}}) { - $_->check() if $_->{cpqRackPowerSupplyPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - if ($_->{cpqRackPowerSupplyPresent} eq 'present') { - $total_max_watt += $_->{cpqRackPowerSupplyMaxPwrOutput}; - $total_current_watt += $_->{cpqRackPowerSupplyCurPwrOutput}; - $total_in_temp += $_->{cpqRackPowerSupplyIntakeTemp} - if $_->{cpqRackPowerSupplyIntakeTemp} != -1; - $total_out_temp += $_->{cpqRackPowerSupplyExhaustTemp} - if $_->{cpqRackPowerSupplyExhaustTemp} != -1; - $num_ps++; - } - } - $self->{runtime}->{plugin}->add_perfdata( - label => 'watt_total', - value => $total_current_watt, - warning => $total_max_watt, - critical => $total_max_watt, - ); - #$self->{runtime}->{plugin}->add_perfdata( - # label => 'watt_total_pct', - # value => ($total_current_watt == 0 ? 0 : - # sprintf("%.2f", - # ($total_current_watt / $total_max_watt * 100))), - # warning => 100, - # critical => 100, - # uom => '%', - #); - if ($total_in_temp) { - $self->{runtime}->{plugin}->add_perfdata( - label => 'in_temp', - value => $total_in_temp / $num_ps, - ); - } - if ($total_out_temp) { - $self->{runtime}->{plugin}->add_perfdata( - label => 'out_temp', - value => $total_out_temp / $num_ps, - ); - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{power_supplies}}) { - $_->dump() if $_->{cpqRackPowerSupplyPresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv - } -} - - -package HP::BladeSystem::Component::PowerSupplySubsystem::PowerSupply; -our @ISA = qw(HP::BladeSystem::Component::PowerSupplySubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackPowerSupply/, keys %params; - $self->{name} = $params{cpqRackPowerSupplyRack}. - ':'.$params{cpqRackPowerSupplyChassis}. - ':'.$params{cpqRackPowerSupplyIndex}; - $self->{serfw} = sprintf "Ser: %s, FW: %s", $self->{cpqRackPowerSupplySerialNum}, $self->{cpqRackPowerSupplyFWRev}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('ps', $self->{name}); - my $info = sprintf 'power supply %s is %s, condition is %s (%s)', - $self->{name}, $self->{cpqRackPowerSupplyPresent}, - $self->{cpqRackPowerSupplyCondition}, $self->{serfw}; - $self->add_info($info); - if ($self->{cpqRackPowerSupplyPresent} eq 'present') { - if ($self->{cpqRackPowerSupplyCondition} eq 'degraded') { - $info .= sprintf " (SparePartNum %s)", $self->{cpqRackPowerSupplySparePartNumber}; - $self->add_message(WARNING, $info); - $self->add_info(sprintf 'power supply %s status is %s, inp.line status is %s', - $self->{name}, $self->{cpqRackPowerSupplyStatus}, - $self->{cpqRackPowerSupplySupplyInputLineStatus}); - } elsif ($self->{cpqRackPowerSupplyCondition} eq 'failed') { - $info .= sprintf " (SparePartNum %s)", $self->{cpqRackPowerSupplySparePartNumber}; - $self->add_message(CRITICAL, $info); - $self->add_info(sprintf 'power supply %s status is %s, inp.line status is %s', - $self->{name}, $self->{cpqRackPowerSupplyStatus}, - $self->{cpqRackPowerSupplySupplyInputLineStatus}); - } - if ($self->{runtime}->{options}->{perfdata} != 2) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('watt_%s', $self->{name}), - value => $self->{cpqRackPowerSupplyCurPwrOutput}, - warning => $self->{cpqRackPowerSupplyMaxPwrOutput}, - critical => $self->{cpqRackPowerSupplyMaxPwrOutput} - ); - #$self->{runtime}->{plugin}->add_perfdata( - # label => sprintf('watt_pct_%s', $self->{name}), - # value => ($self->{cpqRackPowerSupplyCurPwrOutput} == 0 ? 0 : - # sprintf ("%.2f", - # ($self->{cpqRackPowerSupplyCurPwrOutput} / - # $self->{cpqRackPowerSupplyMaxPwrOutput} * 100))), - # warning => 100, - # critical => 100, - # uom => '%', - #); - if ($self->{cpqRackPowerSupplyIntakeTemp} != -1) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('in_temp_%s', $self->{name}), - value => $self->{cpqRackPowerSupplyIntakeTemp}, - ); - } - if ($self->{cpqRackPowerSupplyExhaustTemp} != -1) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('out_temp_%s', $self->{name}), - value => $self->{cpqRackPowerSupplyExhaustTemp}, - ); - } - } - } -} - -sub dump { - my $self = shift; - printf "[POWER_SUPPLY%s]\n", $self->{name}; - foreach (qw(cpqRackPowerSupplyRack cpqRackPowerSupplyChassis cpqRackPowerSupplyIndex cpqRackPowerSupplyEnclosureName cpqRackPowerSupplySerialNum cpqRackPowerSupplySparePartNumber cpqRackPowerSupplyFWRev cpqRackPowerSupplyMaxPwrOutput cpqRackPowerSupplyCurPwrOutput cpqRackPowerSupplyIntakeTemp cpqRackPowerSupplyExhaustTemp cpqRackPowerSupplyStatus cpqRackPowerSupplySupplyInputLineStatus cpqRackPowerSupplyPresent cpqRackPowerSupplyCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/ServerBladeSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/ServerBladeSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/ServerBladeSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component/ServerBladeSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,158 +0,0 @@ -package HP::BladeSystem::Component::ServerBladeSubsystem; -our @ISA = qw(HP::BladeSystem::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - server_blades => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - my $oids = { - cpqRackServerBladeEntry => '1.3.6.1.4.1.232.22.2.4.1.1.1', - cpqRackServerBladeRack => '1.3.6.1.4.1.232.22.2.4.1.1.1.1', - cpqRackServerBladeChassis => '1.3.6.1.4.1.232.22.2.4.1.1.1.2', - cpqRackServerBladeIndex => '1.3.6.1.4.1.232.22.2.4.1.1.1.3', - cpqRackServerBladeName => '1.3.6.1.4.1.232.22.2.4.1.1.1.4', - cpqRackServerBladeEnclosureName => '1.3.6.1.4.1.232.22.2.4.1.1.1.5', - cpqRackServerBladePartNumber => '1.3.6.1.4.1.232.22.2.4.1.1.1.6', - cpqRackServerBladeSparePartNumber => '1.3.6.1.4.1.232.22.2.4.1.1.1.7', - cpqRackServerBladePosition => '1.3.6.1.4.1.232.22.2.4.1.1.1.8', - cpqRackServerBladeHeight => '1.3.6.1.4.1.232.22.2.4.1.1.1.9', - cpqRackServerBladeWidth => '1.3.6.1.4.1.232.22.2.4.1.1.1.10', - cpqRackServerBladeDepth => '1.3.6.1.4.1.232.22.2.4.1.1.1.11', - cpqRackServerBladePresent => '1.3.6.1.4.1.232.22.2.4.1.1.1.12', - cpqRackServerBladeHasFuses => '1.3.6.1.4.1.232.22.2.4.1.1.1.13', - cpqRackServerBladeEnclosureSerialNum => '1.3.6.1.4.1.232.22.2.4.1.1.1.14', - cpqRackServerBladeSlotsUsed => '1.3.6.1.4.1.232.22.2.4.1.1.1.15', - cpqRackServerBladeStatus => '1.3.6.1.4.1.232.22.2.4.1.1.1.21', - cpqRackServerBladeDiagnosticString => '1.3.6.1.4.1.232.22.2.4.1.1.1.24', - cpqRackServerBladePowered => '1.3.6.1.4.1.232.22.2.4.1.1.1.25', - cpqRackServerBladePOSTStatus => '1.3.6.1.4.1.232.22.2.4.1.1.1.35', - cpqRackServerBladePresentValue => { - 1 => 'other', - 2 => 'absent', - 3 => 'present', - }, - cpqRackServerBladeStatusValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }, - cpqRackServerBladePoweredValue => { - 0 => 'aechz', - 1 => 'other', - 2 => 'on', - 3 => 'off', - 4 => 'powerStagedOff', - 5 => 'reboot', - }, - cpqRackServerBladePOSTStatusValue => { - 1 => 'other', - 2 => 'started', - 3 => 'completed', - 4 => 'failed', - }, - }; - - - # INDEX { cpqRackServerBladeRack, cpqRackServerBladeChassis, cpqRackServerBladeIndex } - # dreckada dreck, dreckada - foreach ($self->get_entries($oids, 'cpqRackServerBladeEntry')) { - push(@{$self->{server_blades}}, - HP::BladeSystem::Component::ServerBladeSubsystem::ServerBlade->new(%{$_})); - } -} - -sub check { - my $self = shift; - foreach (@{$self->{server_blades}}) { - $_->check() if $_->{cpqRackServerBladePresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent blades nur bei -vvv - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{server_blades}}) { - $_->dump() if $_->{cpqRackServerBladePresent} eq 'present' || - $self->{runtime}->{options}->{verbose} >= 3; # absent blades nur bei -vvv - } -} - - -package HP::BladeSystem::Component::ServerBladeSubsystem::ServerBlade; -our @ISA = qw(HP::BladeSystem::Component::ServerBladeSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqRackServerBlade/, keys %params; - $self->{cpqRackServerBladeDiagnosticString} ||= ''; - $self->{name} = $self->{cpqRackServerBladeRack}. - ':'.$self->{cpqRackServerBladeChassis}. - ':'.$self->{cpqRackServerBladeIndex}; - bless $self, $class; - $self->init(); -#printf "%s\n", Data::Dumper::Dumper(\%params); - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('sb', $self->{name}); - my $info = sprintf 'server blade %s \'%s\' is %s, status is %s, powered is %s', - $self->{name}, $self->{cpqRackServerBladeName}, $self->{cpqRackServerBladePresent}, - $self->{cpqRackServerBladeStatus}, $self->{cpqRackServerBladePowered}; - $self->add_info($info); - if ($self->{cpqRackServerBladePowered} eq 'on') { - if ($self->{cpqRackServerBladeStatus} eq 'degraded') { - $self->add_message(WARNING, sprintf 'server blade %s diag is \'%s\', post status is %s', - $self->{cpqRackServerBladeName}, $self->{cpqRackServerBladeDiagnosticString}, - $self->{cpqRackServerBladePOSTStatus}); - } elsif ($self->{cpqRackServerBladeStatus} eq 'failed') { - $self->add_message(CRITICAL, sprintf 'server blade %s diag is \'%s\', post status is %s', - $self->{cpqRackServerBladeName}, $self->{cpqRackServerBladeDiagnosticString}, - $self->{cpqRackServerBladePOSTStatus}); - } - } -} - -sub dump { - my $self = shift; - printf "[SERVER_BLADE_%s]\n", $self->{cpqRackServerBladeName}; - foreach (qw(cpqRackServerBladeRack cpqRackServerBladeChassis cpqRackServerBladeIndex cpqRackServerBladeName cpqRackServerBladeEnclosureName cpqRackServerBladePartNumber cpqRackServerBladeSparePartNumber cpqRackServerBladePosition cpqRackServerBladeHeight cpqRackServerBladeWidth cpqRackServerBladeDepth cpqRackServerBladePresent cpqRackServerBladeHasFuses cpqRackServerBladeEnclosureSerialNum cpqRackServerBladeSlotsUsed cpqRackServerBladeStatus cpqRackServerBladeDiagnosticString cpqRackServerBladePowered cpqRackServerBladePOSTStatus)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem/Component.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -package HP::BladeSystem::Component; - -use strict; - -our @ISA = qw(HP::BladeSystem); - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/BladeSystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,240 +0,0 @@ -package HP::BladeSystem; - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; -use Data::Dumper; - -our @ISA = qw(HP::Server HP::Proliant::Component::SNMP); - -sub init { - my $self = shift; - $self->{components} = { - common_enclosure_subsystem => undef, - power_enclosure_subsystem => undef, - power_supply_subsystem => undef, - net_connector_subsystem => undef, - server_blade_subsystem => undef, - }; - $self->{serial} = 'unknown'; - $self->{product} = 'unknown'; - $self->{romversion} = 'unknown'; - $self->trace(3, 'BladeSystem identified'); - $self->collect(); - if (! $self->{runtime}->{plugin}->check_messages()) { - $self->set_serial(); - $self->analyze_common_enclosures(); - $self->analyze_power_enclosures(); - $self->analyze_power_supplies(); - $self->analyze_net_connectors(); - $self->analyze_server_blades(); - $self->check_common_enclosures(); - $self->check_power_enclosures(); - $self->check_power_supplies(); - $self->check_net_connectors(); - $self->check_server_blades(); - } -} - -sub identify { - my $self = shift; - return sprintf "System: '%s', S/N: '%s'", - $self->{product}, $self->{serial}; -} - -sub dump { - my $self = shift; - printf STDERR "serial %s\n", $self->{serial}; - printf STDERR "product %s\n", $self->{product}; - printf STDERR "romversion %s\n", $self->{romversion}; - printf STDERR "%s\n", Data::Dumper::Dumper($self->{enclosures}); -} - -sub analyze_common_enclosures { - my $self = shift; - $self->{components}->{common_enclosure_subsystem} = - HP::BladeSystem::Component::CommonEnclosureSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_power_enclosures { - my $self = shift; - $self->{components}->{power_enclosure_subsystem} = - HP::BladeSystem::Component::PowerEnclosureSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_power_supplies { - my $self = shift; - $self->{components}->{power_supply_subsystem} = - HP::BladeSystem::Component::PowerSupplySubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_net_connectors { - my $self = shift; - $self->{components}->{net_connector_subsystem} = - HP::BladeSystem::Component::NetConnectorSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_server_blades { - my $self = shift; - $self->{components}->{server_blade_subsystem} = - HP::BladeSystem::Component::ServerBladeSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub check_common_enclosures { - my $self = shift; - $self->{components}->{common_enclosure_subsystem}->check(); - $self->{components}->{common_enclosure_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_power_enclosures { - my $self = shift; - $self->{components}->{power_enclosure_subsystem}->check(); - $self->{components}->{power_enclosure_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_power_supplies { - my $self = shift; - $self->{components}->{power_supply_subsystem}->check(); - $self->{components}->{power_supply_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_net_connectors { - my $self = shift; - $self->{components}->{net_connector_subsystem}->check(); - $self->{components}->{net_connector_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_server_blades { - my $self = shift; - $self->{components}->{server_blade_subsystem}->check(); - $self->{components}->{server_blade_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub collect { - my $self = shift; - if ($self->{runtime}->{plugin}->opts->snmpwalk) { - my $cpqRackMibCondition = '1.3.6.1.4.1.232.22.1.3.0'; - $self->trace(3, 'getting cpqRackMibCondition'); - if (! exists $self->{rawdata}->{$cpqRackMibCondition}) { - $self->add_message(CRITICAL, - 'snmpwalk returns no health data (cpqrack-mib)'); - } - } else { - my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 - #$params{'-translate'} = [ - # -all => 0x0 - #]; - my ($session, $error) = - Net::SNMP->session(%{$self->{runtime}->{snmpparams}}); - if (! defined $session) { - $self->{plugin}->add_message(CRITICAL, 'cannot create session object'); - $self->trace(1, Data::Dumper::Dumper($self->{runtime}->{snmpparams})); - } else { - # revMajor is often used for discovery of hp devices - my $cpqSeMibRev = '1.3.6.1.4.1.232.22.1'; - my $cpqSeMibRevMajor = '1.3.6.1.4.1.232.22.1.1.0'; - my $cpqRackMibCondition = '1.3.6.1.4.1.232.22.1.3.0'; - $self->trace(3, 'getting cpqRackMibCondition'); - my $result = $session->get_request( - -varbindlist => [$cpqRackMibCondition] - ); - if (!defined($result) || - $result->{$cpqRackMibCondition} eq 'noSuchInstance' || - $result->{$cpqRackMibCondition} eq 'noSuchObject' || - $result->{$cpqRackMibCondition} eq 'endOfMibView') { - $self->add_message(CRITICAL, - 'snmpwalk returns no health data (cpqrack-mib)'); - $session->close; - } else { - $self->trace(3, 'getting cpqRackMibCondition done'); - } - } - if (! $self->{runtime}->{plugin}->check_messages()) { - # snmp peer is alive - $self->trace(2, sprintf "Protocol is %s", - $self->{runtime}->{snmpparams}->{'-version'}); - my $oidtrees = [ - ["cpqSiComponent", "1.3.6.1.4.1.232.2.2"], - ["cpqSiAsset", "1.3.6.1.4.1.232.2.2.2"], - #["cpqRackInfo", "1.3.6.1.4.1.232.22"], - ['cpqRackCommonEnclosureEntry', '1.3.6.1.4.1.232.22.2.3.1.1.1'], - ['cpqRackCommonEnclosureTempEntry', '1.3.6.1.4.1.232.22.2.3.1.2.1'], - ['cpqRackCommonEnclosureFanEntry', '1.3.6.1.4.1.232.22.2.3.1.3.1'], - ['cpqRackCommonEnclosureFuseEntry', '1.3.6.1.4.1.232.22.2.3.1.4.1'], - ['cpqRackCommonEnclosureManagerEntry', '1.3.6.1.4.1.232.22.2.3.1.6.1'], - ['cpqRackPowerEnclosureEntry', '1.3.6.1.4.1.232.22.2.3.3.1.1'], - ['cpqRackServerBladeEntry', '1.3.6.1.4.1.232.22.2.4.1.1.1'], - ['cpqRackPowerSupplyEntry', '1.3.6.1.4.1.232.22.2.5.1.1.1'], - ['cpqRackNetConnectorEntry', '1.3.6.1.4.1.232.22.2.6.1.1.1'], - ['cpqRackMibCondition', '1.3.6.1.4.1.232.22.1.3.0'], - ]; - my $cpqSiComponent = "1.3.6.1.4.1.232.2.2"; - my $cpqSiAsset = "1.3.6.1.4.1.232.2.2.2"; - my $cpqRackInfo = "1.3.6.1.4.1.232.22"; - $session->translate; - my $response = {}; #break the walk up in smaller pieces - foreach my $subtree (@{$oidtrees}) { - my $tic = time; my $tac = $tic; - my $response0 = $session->get_table( - -baseoid => $subtree->[1]); - if (scalar (keys %{$response0}) == 0) { - $self->trace(2, sprintf "maxrepetitions failed. fallback"); - $response0 = $session->get_table( - -maxrepetitions => 1, - -baseoid => $subtree->[1]); - } - $tac = time; - $self->trace(2, sprintf "%03d seconds for walk %s (%d oids)", - $tac - $tic, $subtree->[0], scalar(keys %{$response0})); - map { $response->{$_} = $response0->{$_} } keys %{$response0}; - } - $session->close; - map { $response->{$_} =~ s/^\s+//; $response->{$_} =~ s/\s+$//; } - keys %$response; - $self->{rawdata} = $response; - } - } - return $self->{runtime}->{plugin}->check_messages(); -} - -sub set_serial { - my $self = shift; - - my $cpqSiSysSerialNum = "1.3.6.1.4.1.232.2.2.2.1.0"; - my $cpqSiProductName = "1.3.6.1.4.1.232.2.2.4.2.0"; - - $self->{serial} = - SNMP::Utils::get_object($self->{rawdata}, $cpqSiSysSerialNum); - $self->{product} = - SNMP::Utils::get_object($self->{rawdata}, $cpqSiProductName); - $self->{serial} = $self->{serial}; - $self->{product} = lc $self->{product}; - $self->{romversion} = 'unknown'; -##################################################################### -$self->{runtime}->{product} = $self->{product}; -} - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -package HP::Proliant::Component::AsrSubsystem::CLI; -our @ISA = qw(HP::Proliant::Component::AsrSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; -} - -sub overall_check { - my $self = shift; - my %params = @_; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,68 +0,0 @@ -package HP::Proliant::Component::AsrSubsystem::SNMP; -our @ISA = qw(HP::Proliant::Component::AsrSubsystem - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->overall_init(%params); - return $self; -} - -sub overall_init { - my $self = shift; - my %params = @_; - my $snmpwalk = $params{rawdata}; - my $cpqHeAsrStatus = "1.3.6.1.4.1.232.6.2.5.1.0"; - my $cpqHeAsrStatusValue = { - 1 => "other", - 2 => "notAvailable", - 3 => "disabled", - 4 => "enabled", - }; - my $cpqHeAsrCondition = "1.3.6.1.4.1.232.6.2.5.17.0"; - my $cpqHeAsrConditionValue = { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }; - $self->{asrcondition} = SNMP::Utils::get_object_value( - $snmpwalk, $cpqHeAsrCondition, - $cpqHeAsrConditionValue); - $self->{asrstatus} = SNMP::Utils::get_object_value( - $snmpwalk, $cpqHeAsrStatus, - $cpqHeAsrStatusValue); - $self->{asrcondition} |= lc $self->{asrcondition}; - $self->{asrstatus} |= lc $self->{asrstatus}; -} - -sub overall_check { - my $self = shift; - my $result = 0; - $self->blacklist('asr', ''); - if ($self->{asrstatus} and $self->{asrstatus} eq "enabled") { - my $info = sprintf 'ASR overall condition is %s', $self->{asrcondition}; - if ($self->{asrcondition} eq "degraded") { - $self->add_message(WARNING, $info); - } elsif ($self->{asrcondition} eq "failed") { - $self->add_message(CRITICAL, $info); - } - $self->add_info($info); - } else { - $self->add_info('This system does not have ASR.'); - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,45 +0,0 @@ -package HP::Proliant::Component::AsrSubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - temperatures => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - return HP::Proliant::Component::AsrSubsystem::SNMP->new(%params); - } elsif ($self->{method} eq 'cli') { - return HP::Proliant::Component::AsrSubsystem::CLI->new(%params); - } else { - die "unknown method"; - } - return $self; -} - -sub check { - my $self = shift; - my $errorfound = 0; - $self->add_info('checking ASR'); - $self->overall_check(); -} - -sub dump { - my $self = shift; -} - - -1; - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,57 +0,0 @@ -package HP::Proliant::Component::CpuSubsystem::CLI; -our @ISA = qw(HP::Proliant::Component::CpuSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - cpus => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - my %tmpcpu = ( - runtime => $params{runtime}, - ); - my $inblock = 0; - foreach (grep(/^server/, split(/\n/, $self->{rawdata}))) { - if (/Processor:\s+(\d+)/) { - $tmpcpu{cpqSeCpuUnitIndex} = $1; - $inblock = 1; - } elsif (/Name\s*:\s+(.+?)\s*$/) { - $tmpcpu{cpqSeCpuName} = $1; - } elsif (/Status\s*:\s+(.+?)\s*$/) { - $tmpcpu{cpqSeCpuStatus} = lc $1; - } elsif (/Socket\s*:\s+(.+?)\s*$/) { - $tmpcpu{cpqSeCpuSlot} = $1; - } elsif (/^server\s*$/) { - if ($inblock) { - $inblock = 0; - push(@{$self->{cpus}}, - HP::Proliant::Component::CpuSubsystem::Cpu->new(%tmpcpu)); - %tmpcpu = ( - runtime => $params{runtime}, - ); - } - } - } - if ($inblock) { - push(@{$self->{cpus}}, - HP::Proliant::Component::CpuSubsystem::Cpu->new(%tmpcpu)); - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,50 +0,0 @@ -package HP::Proliant::Component::CpuSubsystem::SNMP; -our @ISA = qw(HP::Proliant::Component::CpuSubsystem - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - cpus => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - # CPQSTDEQ-MIB - my $oids = { - cpqSeCpuEntry => '1.3.6.1.4.1.232.1.2.2.1.1', - cpqSeCpuUnitIndex => '1.3.6.1.4.1.232.1.2.2.1.1.1', - cpqSeCpuSlot => '1.3.6.1.4.1.232.1.2.2.1.1.2', - cpqSeCpuName => '1.3.6.1.4.1.232.1.2.2.1.1.3', - cpqSeCpuStatus => '1.3.6.1.4.1.232.1.2.2.1.1.6', - cpqSeCpuStatusValue => { - 1 => "unknown", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - 5 => "disabled", - }, - }; - - # INDEX { cpqSeCpuUnitIndex } - foreach ($self->get_entries($oids, 'cpqSeCpuEntry')) { - push(@{$self->{cpus}}, - HP::Proliant::Component::CpuSubsystem::Cpu->new(%{$_})); - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/CpuSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,112 +0,0 @@ -package HP::Proliant::Component::CpuSubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; -################################## scrapiron ########## - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - cpus => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - return HP::Proliant::Component::CpuSubsystem::SNMP->new(%params); - } elsif ($self->{method} eq 'cli') { - return HP::Proliant::Component::CpuSubsystem::CLI->new(%params); - } else { - die "unknown method"; - } - return $self; -} - -sub check { - my $self = shift; - my $errorfound = 0; - $self->add_info('checking cpus'); - if (scalar (@{$self->{cpus}}) == 0) { - # sachen gibts..... - # $self->overall_check(); # sowas ist mir nur einmal untergekommen - } else { - foreach (@{$self->{cpus}}) { - $_->check(); - } - } -} - -sub num_cpus { - my $self = shift; - return scalar @{$self->{cpus}}; -} - -sub dump { - my $self = shift; - foreach (@{$self->{cpus}}) { - $_->dump(); - } -} - - -package HP::Proliant::Component::CpuSubsystem::Cpu; -our @ISA = qw(HP::Proliant::Component::CpuSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqSeCpuSlot => $params{cpqSeCpuSlot}, - cpqSeCpuUnitIndex => $params{cpqSeCpuUnitIndex}, - cpqSeCpuName => $params{cpqSeCpuName}, - cpqSeCpuStatus => $params{cpqSeCpuStatus}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('c', $self->{cpqSeCpuUnitIndex}); - if ($self->{cpqSeCpuStatus} ne "ok") { - if ($self->{runtime}->{options}{scrapiron} && - ($self->{cpqSeCpuStatus} eq "unknown")) { - $self->add_info(sprintf "cpu %d probably ok (%s)", - $self->{cpqSeCpuUnitIndex}, $self->{cpqSeCpuStatus}); - } else { - $self->add_info(sprintf "cpu %d needs attention (%s)", - $self->{cpqSeCpuUnitIndex}, $self->{cpqSeCpuStatus}); - $self->add_message(CRITICAL, $self->{info}); - } - } else { - $self->add_info(sprintf "cpu %d is %s", - $self->{cpqSeCpuUnitIndex}, $self->{cpqSeCpuStatus}); - } - $self->add_extendedinfo(sprintf "cpu_%s=%s", - $self->{cpqSeCpuUnitIndex}, $self->{cpqSeCpuStatus}); -} - -sub dump { - my $self = shift; - printf "[CPU_%s]\n", $self->{cpqSeCpuUnitIndex}; - foreach (qw(cpqSeCpuSlot cpqSeCpuUnitIndex cpqSeCpuName cpqSeCpuStatus)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n", $self->{info}; - printf "\n"; -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,216 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Da::CLI; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; - my $hpacucli = $self->{rawdata}; - my $slot = 0; - my $type = "unkn"; - my @lines = (); - my $thistype = 0; - my $tmpcntl = {}; - my $tmpaccel = {}; - my $tmpld = {}; - my $tmppd = {}; - my $cntlindex = 0; - my $ldriveindex = 0; - my $pdriveindex = 0; - my $incontroller = 0; - foreach (split(/\n/, $hpacucli)) { - next unless /^status/; - next if /^status\s*$/; - s/^status\s*//; - if (/(MSA[\s\w]+)\s+in\s+(\w+)/) { - $incontroller = 1; - $slot = $2; - $cntlindex++; - $tmpcntl->{$slot}->{cpqDaCntlrIndex} = $cntlindex; - $tmpcntl->{$slot}->{cpqDaCntlrModel} = $1; - $tmpcntl->{$slot}->{cpqDaCntlrSlot} = $slot; - } elsif (/([\s\w]+) in Slot\s+(\d+)/) { - $incontroller = 1; - $slot = $2; - $cntlindex++; - $tmpcntl->{$slot}->{cpqDaCntlrIndex} = $cntlindex; - $tmpcntl->{$slot}->{cpqDaCntlrModel} = $1; - $tmpcntl->{$slot}->{cpqDaCntlrSlot} = $slot; - } elsif (/Controller Status: (\w+)/) { - $tmpcntl->{$slot}->{cpqDaCntlrBoardCondition} = lc $1; - $tmpcntl->{$slot}->{cpqDaCntlrCondition} = lc $1; - } elsif (/Cache Status: ([\w\s]+?)\s*$/) { - # Cache Status: OK - # Cache Status: Not Configured - # Cache Status: Temporarily Disabled - $tmpaccel->{$slot}->{cpqDaAccelCntlrIndex} = $cntlindex; - $tmpaccel->{$slot}->{cpqDaAccelSlot} = $slot; - #condition: other,ok,degraded,failed - #status: other,invalid,enabled,tmpDisabled,permDisabled - $tmpaccel->{$slot}->{cpqDaAccelCondition} = lc $1; - if ($tmpaccel->{$slot}->{cpqDaAccelCondition} eq 'ok') { - $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'enabled'; - } elsif ($tmpaccel->{$slot}->{cpqDaAccelCondition} eq 'not configured') { - $tmpaccel->{$slot}->{cpqDaAccelCondition} = 'ok'; - $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'enabled'; - } elsif ($tmpaccel->{$slot}->{cpqDaAccelCondition} eq 'temporarily disabled') { - $tmpaccel->{$slot}->{cpqDaAccelCondition} = 'ok'; - $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'tmpDisabled'; - } elsif ($tmpaccel->{$slot}->{cpqDaAccelCondition} eq 'permanently disabled') { - $tmpaccel->{$slot}->{cpqDaAccelCondition} = 'ok'; - $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'permDisabled'; - } else { - $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'enabled'; - } - } elsif (/Battery.* Status: (\w+)/) { - # sowas gibts auch Battery/Capacitor Status: OK - $tmpaccel->{$slot}->{cpqDaAccelBattery} = lc $1; - } elsif (/^\s*$/) { - } - } - $slot = 0; - $cntlindex = 0; - $ldriveindex = 0; - $pdriveindex = 0; - foreach (split(/\n/, $hpacucli)) { - next unless /^config/; - next if /^config\s*$/; - s/^config\s*//; - if (/(MSA[\s\w]+)\s+in\s+(\w+)/) { - $slot = $2; - $cntlindex++; - $pdriveindex = 1; - } elsif (/([\s\w]+) in Slot\s+(\d+)/) { - #if ($slot ne $2 || ! $slot) { - $cntlindex++; - # 2012-12-15 das passt nicht zur oberen schleife - # ich habe keine ahnung, was der hintergrund fuer dieses if ist - #} - $slot = $2; - $pdriveindex = 1; - } elsif (/logicaldrive\s+(.+?)\s+\((.*)\)/) { - # logicaldrive 1 (683.5 GB, RAID 5, OK) - # logicaldrive 1 (683.5 GB, RAID 5, OK) - # logicaldrive 2 (442 MB, RAID 1+0, OK) - $ldriveindex = $1; - $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvCntlrIndex} = $cntlindex; - $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvIndex} = $ldriveindex; - ($tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvSize}, - $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvFaultTol}, - $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvCondition}) = - map { lc $_ } split(/,\s*/, $2); - $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvStatus} = - $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvCondition}; - $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvPhyDrvIDs} = 'unknown'; - } elsif (/physicaldrive\s+(.+?)\s+\((.*)\)/) { - # physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK) - # physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 146 GB, OK) - # physicaldrive 1:1 (box 1:bay 1, Parallel SCSI, 146 GB, OK) - my $name = $1; - my($location, $type, $size, $status) = split(/,/, $2); - $status =~ s/^\s+//g; - $status =~ s/\s+$//g; - $status = lc $status; - my %location = (); - foreach (split(/:/, $location)) { - $location{$1} = $2 if /(\w+)\s+(\w+)/; - } - $location{box} ||= 0; - $location{id} ||= $pdriveindex; - $location{bay} ||= $location{id}; - $location{port} ||= $location{bay}; - $tmppd->{$slot}->{$name}->{name} = lc $name; - $tmppd->{$slot}->{$name}->{cpqDaPhyDrvCntlrIndex} = $cntlindex; - $tmppd->{$slot}->{$name}->{cpqDaPhyDrvIndex} = $location{id}; - $tmppd->{$slot}->{$name}->{cpqDaPhyDrvBay} = $location{bay}; - $tmppd->{$slot}->{$name}->{cpqDaPhyDrvBusNumber} = $location{port}; - $tmppd->{$slot}->{$name}->{cpqDaPhyDrvSize} = $size; - $tmppd->{$slot}->{$name}->{cpqDaPhyDrvStatus} = $status; - $tmppd->{$slot}->{$name}->{cpqDaPhyDrvCondition} = $status; - $tmppd->{$slot}->{$name}->{ldriveindex} = $ldriveindex || -1; - foreach (keys %{$tmppd->{$slot}->{$name}}) { - $tmppd->{$slot}->{$name}->{$_} =~ s/^\s+//g; - $tmppd->{$slot}->{$name}->{$_} =~ s/\s+$//g; - $tmppd->{$slot}->{$name}->{$_} = lc $tmppd->{$slot}->{$name}->{$_}; - } - $pdriveindex++; - } - } - - foreach my $slot (keys %{$tmpcntl}) { - if (exists $tmpcntl->{$slot}->{cpqDaCntlrModel} && - ! $self->identified($tmpcntl->{$slot}->{cpqDaCntlrModel})) { - delete $tmpcntl->{$slot}; - delete $tmpaccel->{$slot}; - delete $tmpld->{$slot}; - delete $tmppd->{$slot}; - } - } - -#printf "%s\n", Data::Dumper::Dumper($tmpcntl); -#printf "%s\n", Data::Dumper::Dumper($tmpaccel); -#printf "%s\n", Data::Dumper::Dumper($tmpld); -#printf "%s\n", Data::Dumper::Dumper($tmppd); - foreach my $slot (sort { - $tmpcntl->{$a}->{cpqDaCntlrIndex} <=> $tmpcntl->{$b}->{cpqDaCntlrIndex} - }keys %{$tmpcntl}) { - $tmpcntl->{$slot}->{runtime} = $self->{runtime}; - push(@{$self->{controllers}}, - HP::Proliant::Component::DiskSubsystem::Da::Controller->new( - %{$tmpcntl->{$slot}})); - } - foreach my $slot (sort { - $tmpaccel->{$a}->{cpqDaAccelCntlrIndex} <=> $tmpaccel->{$b}->{cpqDaAccelCntlrIndex} - } keys %{$tmpaccel}) { - $tmpaccel->{$slot}->{runtime} = $self->{runtime}; - push(@{$self->{accelerators}}, - HP::Proliant::Component::DiskSubsystem::Da::Accelerator->new( - %{$tmpaccel->{$slot}})); - } - foreach my $slot (keys %{$tmpld}) { - foreach my $ldriveindex (keys %{$tmpld->{$slot}}) { - $tmpld->{$slot}->{$ldriveindex}->{runtime} = $self->{runtime}; - push(@{$self->{logical_drives}}, - HP::Proliant::Component::DiskSubsystem::Da::LogicalDrive->new( - %{$tmpld->{$slot}->{$ldriveindex}})); - } - foreach my $pdriveindex (sort { - (split ':', $a, 2)[0] cmp (split ':', $b, 2)[0] || - (split ':', $a, 2)[1] cmp (split ':', $b, 2)[1] || - (split ':', $a, 2)[2] <=> (split ':', $b, 2)[2] - } keys %{$tmppd->{$slot}}) { - $tmppd->{$slot}->{$pdriveindex}->{runtime} = $self->{runtime}; - push(@{$self->{physical_drives}}, - HP::Proliant::Component::DiskSubsystem::Da::PhysicalDrive->new( - %{$tmppd->{$slot}->{$pdriveindex}})); - } - } -} - -sub identified { - my $self = shift; - my $info = shift; - return 1 if $info =~ /Parallel SCSI/; - return 1 if $info =~ /Smart Array/; # Trond: works fine on E200i, P400, E400 - return 1 if $info =~ /MSA500/; - #return 1 if $info =~ /Smart Array (5|6)/; - #return 1 if $info =~ /Smart Array P400i/; # snmp sagt Da, trotz SAS in cli - #return 1 if $info =~ /Smart Array P410i/; # dto - return 0; -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,197 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Da::SNMP; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - - # CPQIDA-MIB - my $oids = { - cpqDaCntlrEntry => "1.3.6.1.4.1.232.3.2.2.1.1", - cpqDaCntlrIndex => "1.3.6.1.4.1.232.3.2.2.1.1.1", - cpqDaCntlrModel => "1.3.6.1.4.1.232.3.2.2.1.1.2", - cpqDaCntlrSlot => "1.3.6.1.4.1.232.3.2.2.1.1.5", - cpqDaCntlrCondition => "1.3.6.1.4.1.232.3.2.2.1.1.6", - cpqDaCntlrBoardCondition => "1.3.6.1.4.1.232.3.2.2.1.1.12", - cpqDaCntlrModelValue => { - 1 => 'other', - 2 => 'ida', - 3 => 'idaExpansion', - 4 => 'ida-2', - 5 => 'smart', - 6 => 'smart-2e', - 7 => 'smart-2p', - 8 => 'smart-2sl', - 9 => 'smart-3100es', - 10 => 'smart-3200', - 11 => 'smart-2dh', - 12 => 'smart-221', - 13 => 'sa-4250es', - 14 => 'sa-4200', - 15 => 'sa-integrated', - 16 => 'sa-431', - 17 => 'sa-5300', - 18 => 'raidLc2', - 19 => 'sa-5i', - 20 => 'sa-532', - 21 => 'sa-5312', - 22 => 'sa-641', - 23 => 'sa-642', - 24 => 'sa-6400', - 25 => 'sa-6400em', - 26 => 'sa-6i', - }, - cpqDaCntlrConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqDaCntlrBoardConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - }; - - # INDEX { cpqDaCntlrIndex } - foreach ($self->get_entries($oids, 'cpqDaCntlrEntry')) { - push(@{$self->{controllers}}, - HP::Proliant::Component::DiskSubsystem::Da::Controller->new(%{$_})); - } - - $oids = { - cpqDaAccelEntry => "1.3.6.1.4.1.232.3.2.2.2.1", - cpqDaAccelCntlrIndex => "1.3.6.1.4.1.232.3.2.2.2.1.1", - cpqDaAccelStatus => "1.3.6.1.4.1.232.3.2.2.2.1.2", - cpqDaAccelSlot => "1.3.6.1.4.1.232.3.2.2.2.1.5", - cpqDaAccelBattery => "1.3.6.1.4.1.232.3.2.2.2.1.6", - cpqDaAccelCondition => "1.3.6.1.4.1.232.3.2.2.2.1.9", - cpqDaAccelBatteryValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'recharging', - 4 => 'failed', - 5 => 'degraded', - 6 => 'notPresent', - }, - cpqDaAccelConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqDaAccelStatusValue => { - 1 => "other", - 2 => "invalid", - 3 => "enabled", - 4 => "tmpDisabled", - 5 => "permDisabled", - } - }; - - # INDEX { cpqDaAccelCntlrIndex } - foreach ($self->get_entries($oids, 'cpqDaAccelEntry')) { - push(@{$self->{accelerators}}, - HP::Proliant::Component::DiskSubsystem::Da::Accelerator->new(%{$_})); - } - - $oids = { - cpqDaLogDrvEntry => "1.3.6.1.4.1.232.3.2.3.1.1", - cpqDaLogDrvCntlrIndex => "1.3.6.1.4.1.232.3.2.3.1.1.1", - cpqDaLogDrvIndex => "1.3.6.1.4.1.232.3.2.3.1.1.2", - cpqDaLogDrvFaultTol => "1.3.6.1.4.1.232.3.2.3.1.1.3", - cpqDaLogDrvStatus => "1.3.6.1.4.1.232.3.2.3.1.1.4", - cpqDaLogDrvSize => "1.3.6.1.4.1.232.3.2.3.1.1.9", - cpqDaLogDrvPhyDrvIDs => "1.3.6.1.4.1.232.3.2.3.1.1.10", - cpqDaLogDrvCondition => "1.3.6.1.4.1.232.3.2.3.1.1.11", - cpqDaLogDrvPercentRebuild => "1.3.6.1.4.1.232.3.2.3.1.1.12", - cpqDaLogDrvFaultTolValue => { - 1 => "other", - 2 => "none", - 3 => "mirroring", - 4 => "dataGuard", - 5 => "distribDataGuard", - 7 => "advancedDataGuard", - }, - cpqDaLogDrvConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqDaLogDrvStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "failed", - 4 => "unconfigured", - 5 => "recovering", - 6 => "readyForRebuild", - 7 => "rebuilding", - 8 => "wrongDrive", - 9 => "badConnect", - 10 => "overheating", - 11 => "shutdown", - 12 => "expanding", - 13 => "notAvailable", - 14 => "queuedForExpansion", - }, - }; - - # INDEX { cpqDaLogDrvCntlrIndex, cpqDaLogDrvIndex } - foreach ($self->get_entries($oids, 'cpqDaLogDrvEntry')) { - $_->{cpqDaLogDrvPhyDrvIDs} ||= 'empty'; - push(@{$self->{logical_drives}}, - HP::Proliant::Component::DiskSubsystem::Da::LogicalDrive->new(%{$_})); - } - - $oids = { - cpqDaPhyDrvEntry => "1.3.6.1.4.1.232.3.2.5.1.1", - cpqDaPhyDrvCntlrIndex => "1.3.6.1.4.1.232.3.2.5.1.1.1", - cpqDaPhyDrvIndex => "1.3.6.1.4.1.232.3.2.5.1.1.2", - cpqDaPhyDrvBay => "1.3.6.1.4.1.232.3.2.5.1.1.5", - cpqDaPhyDrvStatus => "1.3.6.1.4.1.232.3.2.5.1.1.6", - cpqDaPhyDrvSize => "1.3.6.1.4.1.232.3.2.5.1.1.9", - cpqDaPhyDrvCondition => "1.3.6.1.4.1.232.3.2.5.1.1.37", - cpqDaPhyDrvBusNumber => "1.3.6.1.4.1.232.3.2.5.1.1.50", - cpqDaPhyDrvConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqDaPhyDrvStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "failed", - 4 => "predictiveFailure", - }, - }; - - # INDEX { cpqDaPhyDrvCntlrIndex, cpqDaPhyDrvIndex } - foreach ($self->get_entries($oids, 'cpqDaPhyDrvEntry')) { - push(@{$self->{physical_drives}}, - HP::Proliant::Component::DiskSubsystem::Da::PhysicalDrive->new(%{$_})); - } - -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,355 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Da; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - condition => undef, - blacklisted => 0, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Da::SNMP'; - } else { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Da::CLI'; - } - $self->init(); - $self->assemble(); - return $self; -} - -sub check { - my $self = shift; - foreach (@{$self->{controllers}}) { - $_->check(); - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{controllers}}) { - $_->dump(); - } -} - -package HP::Proliant::Component::DiskSubsystem::Da::Controller; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqDaCntlrIndex => $params{cpqDaCntlrIndex}, - cpqDaCntlrSlot => $params{cpqDaCntlrSlot}, - cpqDaCntlrModel => $params{cpqDaCntlrModel}, - cpqDaCntlrCondition => $params{cpqDaCntlrCondition}, - cpqDaCntlrBoardCondition => $params{cpqDaCntlrBoardCondition}, - blacklisted => 0, - }; - $self->{name} = $params{name} || $self->{cpqDaCntlrSlot}; - $self->{controllerindex} = $self->{cpqDaCntlrIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; -#$self->dumper($self); - $self->blacklist('daco', $self->{cpqDaCntlrIndex}); - foreach (@{$self->{accelerators}}) { - $_->check(); - } - foreach (@{$self->{logical_drives}}) { - $_->check(); - } - foreach (@{$self->{physical_drives}}) { - $_->check(); - } - foreach (@{$self->{spare_drives}}) { - $_->check(); - } - if ($self->{cpqDaCntlrCondition} eq 'other') { - if (scalar(@{$self->{physical_drives}})) { - $self->add_message(CRITICAL, - sprintf 'da controller %s in slot %s needs attention', - $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); - $self->add_info(sprintf 'da controller %s in slot %s needs attention', - $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); - } else { - $self->add_info(sprintf 'da controller %s in slot %s is ok and unused', - $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); - $self->{blacklisted} = 1; - } - } elsif ($self->{cpqDaCntlrCondition} eq 'degraded') { - # maybe only the battery has failed and is disabled, no problem - if (scalar(grep { - $_->has_failed() && $_->is_disabled() - } @{$self->{accelerators}})) { - # message was already written in the accel code - } else { - $self->add_message(CRITICAL, - sprintf 'da controller %s in slot %s needs attention', - $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); - $self->add_info(sprintf 'da controller %s in slot %s needs attention', - $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); - } - } elsif ($self->{cpqDaCntlrCondition} ne 'ok') { - $self->add_message(CRITICAL, - sprintf 'da controller %s in slot %s needs attention', - $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); - $self->add_info(sprintf 'da controller %s in slot %s needs attention', - $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); - } else { - $self->add_info(sprintf 'da controller %s in slot %s is ok', - $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); - } -} - -sub dump { - my $self = shift; - printf "[DA_CONTROLLER_%s]\n", $self->{name}; - foreach (qw(cpqDaCntlrSlot cpqDaCntlrIndex cpqDaCntlrCondition - cpqDaCntlrModel)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; - foreach (@{$self->{accelerators}}) { - $_->dump(); - } - foreach (@{$self->{logical_drives}}) { - $_->dump(); - } - foreach (@{$self->{physical_drives}}) { - $_->dump(); - } - foreach (@{$self->{spare_drives}}) { - $_->dump(); - } -} - - -package HP::Proliant::Component::DiskSubsystem::Da::Accelerator; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqDaAccelCntlrIndex => $params{cpqDaAccelCntlrIndex}, - cpqDaAccelBattery => $params{cpqDaAccelBattery} || 'notPresent', - cpqDaAccelCondition => $params{cpqDaAccelCondition}, - cpqDaAccelStatus => $params{cpqDaAccelStatus}, - blacklisted => 0, - failed => 0, - }; - $self->{controllerindex} = $self->{cpqDaAccelCntlrIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('daac', $self->{cpqDaAccelCntlrIndex}); - $self->add_info(sprintf 'controller accelerator is %s', - $self->{cpqDaAccelCondition}); - if ($self->{cpqDaAccelStatus} ne "enabled") { - } elsif ($self->{cpqDaAccelCondition} ne "ok") { - if ($self->{cpqDaAccelBattery} eq "failed" && - $self->{cpqDaAccelStatus} eq "tmpDisabled") { - # handled later - } else { - $self->add_message(CRITICAL, "controller accelerator needs attention"); - } - } - $self->blacklist('daacb', $self->{cpqDaAccelCntlrIndex}); - $self->add_info(sprintf 'controller accelerator battery is %s', - $self->{cpqDaAccelBattery}); - if ($self->{cpqDaAccelBattery} eq "notPresent") { - } elsif ($self->{cpqDaAccelBattery} eq "recharging") { - $self->add_message(WARNING, "controller accelerator battery recharging"); - } elsif ($self->{cpqDaAccelBattery} eq "failed" && - $self->{cpqDaAccelStatus} eq "tmpDisabled") { - $self->add_message(WARNING, "controller accelerator battery needs attention"); - } elsif ($self->{cpqDaAccelBattery} ne "ok") { - # (other) failed degraded - $self->add_message(CRITICAL, "controller accelerator battery needs attention"); - } -} - -sub has_failed { - my $self = shift; - return $self->{cpqDaAccelStatus} =~ /Disabled/ ? 1 : 0; -} - -sub is_disabled { - my $self = shift; - return $self->{cpqDaAccelStatus} =~ /Disabled/ ? 1 : 0; -} - -sub dump { - my $self = shift; - printf "[ACCELERATOR]\n"; - foreach (qw(cpqDaAccelCntlrIndex cpqDaAccelBattery - cpqDaAccelStatus cpqDaAccelCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Da::LogicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqDaLogDrvIndex => $params{cpqDaLogDrvIndex}, - cpqDaLogDrvCntlrIndex => $params{cpqDaLogDrvCntlrIndex}, - cpqDaLogDrvSize => $params{cpqDaLogDrvSize}, - cpqDaLogDrvFaultTol => $params{cpqDaLogDrvFaultTol}, - cpqDaLogDrvPercentRebuild => $params{cpqDaLogDrvPercentRebuild}, - cpqDaLogDrvStatus => $params{cpqDaLogDrvStatus}, - cpqDaLogDrvCondition => $params{cpqDaLogDrvCondition}, - cpqDaLogDrvPhyDrvIDs => $params{cpqDaLogDrvPhyDrvIDs}, - blacklisted => 0, - }; - bless $self, $class; - $self->{name} = $params{name} || - $self->{cpqDaLogDrvCntlrIndex}.':'.$self->{cpqDaLogDrvIndex}; ##vorerst - $self->{controllerindex} = $self->{cpqDaLogDrvCntlrIndex}; - if (! $self->{cpqDaLogDrvPercentRebuild} || - $self->{cpqDaLogDrvPercentRebuild} == 4294967295) { - $self->{cpqDaLogDrvPercentRebuild} = 100; - } - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('dald', $self->{name}); - $self->add_info(sprintf "logical drive %s is %s (%s)", - $self->{name}, $self->{cpqDaLogDrvStatus}, - $self->{cpqDaLogDrvFaultTol}); - if ($self->{cpqDaLogDrvCondition} ne "ok") { - if ($self->{cpqDaLogDrvStatus} =~ - /rebuild|recovering|recovery|expanding|queued/) { - $self->add_message(WARNING, - sprintf "logical drive %s is %s", - $self->{name}, $self->{cpqDaLogDrvStatus}); - } else { - $self->add_message(CRITICAL, - sprintf "logical drive %s is %s", - $self->{name}, $self->{cpqDaLogDrvStatus}); - } - } -} - -sub dump { - my $self = shift; - printf "[LOGICAL_DRIVE]\n"; - foreach (qw(cpqDaLogDrvCntlrIndex cpqDaLogDrvIndex cpqDaLogDrvSize - cpqDaLogDrvFaultTol cpqDaLogDrvStatus cpqDaLogDrvCondition - cpqDaLogDrvPercentRebuild cpqDaLogDrvPhyDrvIDs)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Da::PhysicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - name => $params{name}, - cpqDaPhyDrvCntlrIndex => $params{cpqDaPhyDrvCntlrIndex}, - cpqDaPhyDrvIndex => $params{cpqDaPhyDrvIndex}, - cpqDaPhyDrvBay => $params{cpqDaPhyDrvBay}, - cpqDaPhyDrvBusNumber => $params{cpqDaPhyDrvBusNumber}, - cpqDaPhyDrvSize => $params{cpqDaPhyDrvSize}, - cpqDaPhyDrvStatus => $params{cpqDaPhyDrvStatus}, - cpqDaPhyDrvCondition => $params{cpqDaPhyDrvCondition}, - blacklisted => 0, - }; - bless $self, $class; - $self->{name} = $params{name} || - $self->{cpqDaPhyDrvCntlrIndex}.':'.$self->{cpqDaPhyDrvIndex}; ##vorerst - $self->{controllerindex} = $self->{cpqDaPhyDrvCntlrIndex}; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('dapd', $self->{name}); - $self->add_info( - sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqDaPhyDrvCondition}); - if ($self->{cpqDaPhyDrvCondition} ne 'ok') { - $self->add_message(CRITICAL, - sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqDaPhyDrvCondition}); - } -} - -sub dump { - my $self = shift; - printf "[PHYSICAL_DRIVE]\n"; - foreach (qw(cpqDaPhyDrvCntlrIndex cpqDaPhyDrvIndex cpqDaPhyDrvBay - cpqDaPhyDrvBusNumber cpqDaPhyDrvSize cpqDaPhyDrvStatus - cpqDaPhyDrvCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Da::SpareDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub dump { - my $self = shift; - printf "[SPARE_DRIVE]\n"; - foreach (qw(cpqDaPhyDrvCntlrIndex cpqDaPhyDrvIndex cpqDaPhyDrvBay - cpqDaPhyDrvBusNumber cpqDaPhyDrvSize cpqDaPhyDrvStatus - cpqDaPhyDrvCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Fca::CLI; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; - # ..... - $self->{global_status} = - HP::Proliant::Component::DiskSubsystem::Fca::GlobalStatus->new( - runtime => $self->{runtime}, - cpqFcaMibCondition => 'n/a', - ); - -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,269 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Fca::SNMP; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - - # CPQFCA-MIB - my $oids = { - cpqFcaHostCntlrEntry => '1.3.6.1.4.1.232.16.2.7.1.1', - cpqFcaHostCntlrIndex => '1.3.6.1.4.1.232.16.2.7.1.1.1', - cpqFcaHostCntlrSlot => '1.3.6.1.4.1.232.16.2.7.1.1.2', - cpqFcaHostCntlrModel => '1.3.6.1.4.1.232.16.2.7.1.1.3', - cpqFcaHostCntlrStatus => '1.3.6.1.4.1.232.16.2.7.1.1.4', - cpqFcaHostCntlrCondition => '1.3.6.1.4.1.232.16.2.7.1.1.5', - cpqFcaHostCntlrOverallCondition => '1.3.6.1.4.1.232.16.2.7.1.1.8', - cpqFcaHostCntlrModelValue => { - 1 => "other", - 2 => "fchc-p", - 3 => "fchc-e", - 4 => "fchc64", - 5 => "sa-sam", - 6 => "fca-2101", - 7 => "sw64-33", - 8 => "fca-221x", - 9 => "dpfcmc", - }, - cpqFcaHostCntlrStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "failed", - 4 => "shutdown", - 5 => "loopDegraded", - 6 => "loopFailed", - }, - cpqFcaHostCntlrConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqFcaHostCntlrOverallConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, # cntrl + alle associated storage boxes - }; - - # INDEX { cpqFcaHostCntlrIndex } - foreach ($self->get_entries($oids, 'cpqFcaHostCntlrEntry')) { - push(@{$self->{host_controllers}}, - HP::Proliant::Component::DiskSubsystem::Fca::HostController->new(%{$_})); - } - - $oids = { - cpqFcaCntlrEntry => '1.3.6.1.4.1.232.16.2.2.1.1', - cpqFcaCntlrBoxIndex => '1.3.6.1.4.1.232.16.2.2.1.1.1', - cpqFcaCntlrBoxIoSlot => '1.3.6.1.4.1.232.16.2.2.1.1.2', - cpqFcaCntlrModel => '1.3.6.1.4.1.232.16.2.2.1.1.3', - cpqFcaCntlrStatus => '1.3.6.1.4.1.232.16.2.2.1.1.5', - cpqFcaCntlrCondition => '1.3.6.1.4.1.232.16.2.2.1.1.6', - cpqFcaCntlrModelValue => { - 1 => "other", - 2 => "fibreArray", - 3 => "msa1000", - 4 => "smartArrayClusterStorage", - 5 => "hsg80", - 6 => "hsv110", - 7 => "msa500g2", - 8 => "msa20", - }, - cpqFcaCntlrStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "failed", - 4 => "offline", - 4 => "redundantPathOffline", - }, - cpqFcaCntlrConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - }; - - # INDEX { cpqFcaCntlrBoxIndex, cpqFcaCntlrBoxIoSlot } - foreach ($self->get_entries($oids, 'cpqFcaCntlrEntry')) { - push(@{$self->{controllers}}, - HP::Proliant::Component::DiskSubsystem::Fca::Controller->new(%{$_})); - } - - $oids = { - cpqFcaAccelEntry => '1.3.6.1.4.1.232.16.2.2.2.1', - cpqFcaAccelBoxIndex => '1.3.6.1.4.1.232.16.2.2.2.1.1', - cpqFcaAccelBoxIoSlot => '1.3.6.1.4.1.232.16.2.2.2.1.2', - cpqFcaAccelStatus => '1.3.6.1.4.1.232.16.2.2.2.1.3', - cpqFcaAccelErrCode => '1.3.6.1.4.1.232.16.2.2.2.1.5', - cpqFcaAccelBatteryStatus => '1.3.6.1.4.1.232.16.2.2.2.1.6', - cpqFcaAccelCondition => '1.3.6.1.4.1.232.16.2.2.2.1.9', - cpqFcaAccelStatusValue => { - 1 => "other", - 2 => "invalid", - 3 => "enabled", - 4 => "tmpDisabled", - 5 => "permDisabled", - }, - cpqFcaAccelErrCodeValue => { - 1 => 'other', - 2 => 'invalid', - 3 => 'badConfig', - 4 => 'lowBattery', - 5 => 'disableCmd', - 6 => 'noResources', - 7 => 'notConnected', - 8 => 'badMirrorData', - 9 => 'readErr', - 10 => 'writeErr', - 11 => 'configCmd', - 12 => 'expandInProgress', - 13 => 'snapshotInProgress', - 14 => 'redundantLowBattery', - 15 => 'redundantSizeMismatch', - 16 => 'redundantCacheFailure', - 17 => 'excessiveEccErrors', - 19 => 'postEccErrors', - }, - cpqFcaAccelBatteryStatusValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'recharging', - 4 => 'failed', - 5 => 'degraded', - 6 => 'notPresent', - }, - cpqFcaAccelConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - }; - - # INDEX { cpqFcaAccelBoxIndex, cpqFcaAccelBoxIoSlot } - foreach ($self->get_entries($oids, 'cpqFcaAccelEntry')) { - push(@{$self->{accelerators}}, - HP::Proliant::Component::DiskSubsystem::Fca::Accelerator->new(%{$_})); - } - - $oids = { - cpqFcaLogDrvEntry => '1.3.6.1.4.1.232.16.2.3.1.1', - cpqFcaLogDrvBoxIndex => '1.3.6.1.4.1.232.16.2.3.1.1.1', - cpqFcaLogDrvIndex => '1.3.6.1.4.1.232.16.2.3.1.1.2', - cpqFcaLogDrvFaultTol => '1.3.6.1.4.1.232.16.2.3.1.1.3', - cpqFcaLogDrvStatus => '1.3.6.1.4.1.232.16.2.3.1.1.4', - cpqFcaLogDrvPercentRebuild => '1.3.6.1.4.1.232.16.2.3.1.1.6', - cpqFcaLogDrvSize => '1.3.6.1.4.1.232.16.2.3.1.1.9', - cpqFcaLogDrvPhyDrvIDs => '1.3.6.1.4.1.232.16.2.3.1.1.10', - cpqFcaLogDrvCondition => '1.3.6.1.4.1.232.16.2.3.1.1.11', - cpqFcaLogDrvFaultTolValue => { - 1 => 'other', - 2 => 'none', - 3 => 'mirroring', - 4 => 'dataGuard', - 5 => 'distribDataGuard', - 7 => 'advancedDataGuard', - }, - cpqFcaLogDrvStatusValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'failed', - 4 => 'unconfigured', - 5 => 'recovering', - 6 => 'readyForRebuild', - 7 => 'rebuilding', - 8 => 'wrongDrive', - 9 => 'badConnect', - 10 => 'overheating', - 11 => 'shutdown', - 12 => 'expanding', - 13 => 'notAvailable', - 14 => 'queuedForExpansion', - 15 => 'hardError', - }, - cpqFcaLogDrvConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }, - }; - - # INDEX { cpqFcaLogDrvBoxIndex, cpqFcaLogDrvIndex } - foreach ($self->get_entries($oids, 'cpqFcaLogDrvEntry')) { - push(@{$self->{logical_drives}}, - HP::Proliant::Component::DiskSubsystem::Fca::LogicalDrive->new(%{$_})); - } - - $oids = { - cpqFcaPhyDrvEntry => '1.3.6.1.4.1.232.16.2.5.1.1', - cpqFcaPhyDrvBoxIndex => '1.3.6.1.4.1.232.16.2.5.1.1.1', - cpqFcaPhyDrvIndex => '1.3.6.1.4.1.232.16.2.5.1.1.2', - cpqFcaPhyDrvModel => '1.3.6.1.4.1.232.16.2.5.1.1.3', - cpqFcaPhyDrvBay => '1.3.6.1.4.1.232.16.2.5.1.1.5', - cpqFcaPhyDrvStatus => '1.3.6.1.4.1.232.16.2.5.1.1.6', - cpqFcaPhyDrvCondition => '1.3.6.1.4.1.232.16.2.5.1.1.31', - cpqFcaPhyDrvSize => '1.3.6.1.4.1.232.16.2.5.1.1.38', - cpqFcaPhyDrvBusNumber => '1.3.6.1.4.1.232.16.2.5.1.1.42', - cpqFcaPhyDrvStatusValue => { - 1 => 'other', - 2 => 'unconfigured', - 3 => 'ok', - 4 => 'threshExceeded', - 5 => 'predictiveFailure', - 6 => 'failed', - }, - cpqFcaPhyDrvConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }, - }; - - # INDEX { cpqFcaPhyDrvBoxIndex, cpqFcaPhyDrvIndex } - foreach ($self->get_entries($oids, 'cpqFcaPhyDrvEntry')) { - push(@{$self->{physical_drives}}, - HP::Proliant::Component::DiskSubsystem::Fca::PhysicalDrive->new(%{$_})); - } - - $oids = { - cpqFcaMibRevMajor => '1.3.6.1.4.1.232.16.1.1.0', - cpqFcaMibRevMinor => '1.3.6.1.4.1.232.16.1.2.0', - cpqFcaMibCondition => '1.3.6.1.4.1.232.16.1.3.0', - cpqFcaMibConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }, - }; - $self->{global_status} = - HP::Proliant::Component::DiskSubsystem::Fca::GlobalStatus->new( - runtime => $self->{runtime}, - cpqFcaMibCondition => - SNMP::Utils::get_object_value($snmpwalk, - $oids->{cpqFcaMibCondition}, $oids->{cpqFcaMibConditionValue}) - ); -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,426 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Fca; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - host_controllers => [], - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - global_status => undef, - blacklisted => 0, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Fca::SNMP'; - } else { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Fca::CLI'; - } - $self->init(); - $self->assemble(); - return $self; -} - -sub assemble { - my $self = shift; - $self->trace(3, sprintf "%s controllers und platten zusammenfuehren", - ref($self)); - $self->trace(3, sprintf "has %d host controllers", - scalar(@{$self->{host_controllers}})); - $self->trace(3, sprintf "has %d controllers", - scalar(@{$self->{controllers}})); - $self->trace(3, sprintf "has %d physical_drives", - scalar(@{$self->{physical_drives}})); - $self->trace(3, sprintf "has %d logical_drives", - scalar(@{$self->{logical_drives}})); - $self->trace(3, sprintf "has %d spare_drives", - scalar(@{$self->{spare_drives}})); -} - -sub check { - my $self = shift; - foreach (@{$self->{host_controllers}}) { - $_->check(); - } - foreach (@{$self->{controllers}}) { - $_->check(); - } - foreach (@{$self->{accelerators}}) { - $_->check(); - } - foreach (@{$self->{logical_drives}}) { - $_->check(); - } - foreach (@{$self->{physical_drives}}) { - $_->check(); - } - # wozu eigentlich? - #if (! $self->has_controllers()) { - #$self->{global_status}->check(); - #} -} - -sub dump { - my $self = shift; - foreach (@{$self->{host_controllers}}) { - $_->dump(); - } - foreach (@{$self->{controllers}}) { - $_->dump(); - } - foreach (@{$self->{accelerators}}) { - $_->dump(); - } - foreach (@{$self->{logical_drives}}) { - $_->dump(); - } - foreach (@{$self->{physical_drives}}) { - $_->dump(); - } - #$self->{global_status}->dump(); -} - - -package HP::Proliant::Component::DiskSubsystem::Fca::GlobalStatus; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqFcaMibCondition => $params{cpqFcaMibCondition}, - }; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - if ($self->{cpqFcaMibCondition} ne 'ok') { - $self->add_message(CRITICAL, - sprintf 'fcal overall condition is %s', $self->{cpqFcaMibCondition}); - } - $self->{info} = - sprintf 'fcal overall condition is %s', $self->{cpqFcaMibCondition}; -} - -sub dump { - my $self = shift; - printf "[FCAL]\n"; - foreach (qw(cpqFcaMibCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Fca::HostController; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqFcaHostCntlr/, keys %params; - $self->{name} = $params{name} || $self->{cpqFcaHostCntlrIndex}; - $self->{controllerindex} = $self->{cpqFcaHostCntlrIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('fcahc', $self->{name}); - my $info = sprintf 'fcal host controller %s in slot %s is %s', - $self->{name}, $self->{cpqFcaHostCntlrSlot}, $self->{cpqFcaHostCntlrCondition}; - if ($self->{cpqFcaHostCntlrCondition} eq 'other') { - $info .= sprintf ' and needs attention (%s)', $self->{cpqFcaHostCntlrStatus}; - $self->add_message(CRITICAL, $info); - $self->add_info($info); - } elsif ($self->{cpqFcaHostCntlrCondition} ne 'ok') { - $self->add_message(CRITICAL, $info); - $self->add_info($info); - } else { - $self->add_info($info); - } - $self->blacklist('fcahco', $self->{name}); - $info = sprintf 'fcal host controller %s overall condition is %s', - $self->{name}, $self->{cpqFcaHostCntlrOverallCondition}; - if ($self->{cpqFcaHostCntlrOverallCondition} ne 'ok') { - $self->add_message(WARNING, $info); - } - $self->add_info($info); -} - -sub dump { - my $self = shift; - printf "[FCAL_HOST_CONTROLLER_%s]\n", $self->{name}; - foreach (qw(cpqFcaHostCntlrIndex cpqFcaHostCntlrSlot - cpqFcaHostCntlrModel cpqFcaHostCntlrStatus cpqFcaHostCntlrCondition - cpqFcaHostCntlrOverallCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Fca::Controller; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqFcaCntlr/, keys %params; - $self->{name} = $params{name} || - $self->{cpqFcaCntlrBoxIndex}.':'.$self->{cpqFcaCntlrBoxIoSlot}; - $self->{controllerindex} = $self->{cpqFcaCntlrBoxIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('fcaco', $self->{name}); - my $info = sprintf 'fcal controller %s in box %s/slot %s is %s', - $self->{name}, $self->{cpqFcaCntlrBoxIndex}, $self->{cpqFcaCntlrBoxIoSlot}, - $self->{cpqFcaCntlrCondition}; - if ($self->{cpqFcaCntlrCondition} eq 'other') { - if (1) { # was ist mit phys. drives? - $info .= ' needs attention'; - $info .= sprintf(' (%s)', $self->{cpqFcaCntlrStatus}) unless $self->{cpqFcaCntlrStatus} eq 'ok'; - $self->add_message(CRITICAL, $info); - $self->add_info($info); - } else { - $self->add_info($info); - $self->{blacklisted} = 1; - } - } elsif ($self->{cpqFcaCntlrCondition} ne 'ok') { - $info .= ' needs attention'; - $info .= sprintf(' (%s)', $self->{cpqFcaCntlrStatus}) unless $self->{cpqFcaCntlrStatus} eq 'ok'; - $self->add_message(CRITICAL, $info); - $self->add_info($info); - } else { - $self->add_info($info); - } -} - -sub dump { - my $self = shift; - printf "[FCAL_CONTROLLER_%s]\n", $self->{name}; - foreach (qw(cpqFcaCntlrBoxIndex cpqFcaCntlrBoxIoSlot cpqFcaCntlrModel - cpqFcaCntlrStatus cpqFcaCntlrCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Fca::Accelerator; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqFcaAccel/, keys %params; - $self->{name} = $params{name} || - $self->{cpqFcaAccelBoxIndex}.':'.$self->{cpqFcaAccelBoxIoSlot}; - $self->{controllerindex} = $self->{cpqFcaAccelBoxIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - # !!! cpqFcaAccelStatus - $self->blacklist('fcaac', $self->{name}); - my $info = sprintf 'fcal accelerator %s in box %s/slot %s is ', - $self->{name}, $self->{cpqFcaAccelBoxIndex}, $self->{cpqFcaAccelBoxIoSlot}; - if ($self->{cpqFcaAccelStatus} eq 'invalid') { - $info .= 'not installed'; - $self->add_info($info); - } elsif ($self->{cpqFcaAccelStatus} eq 'tmpDisabled') { - $info .= 'temp disabled'; - $self->add_info($info); - } elsif ($self->{cpqFcaAccelCondition} eq 'other') { - $info .= sprintf '%s and needs attention (%s)', - $self->{cpqFcaAccelCondition}, $self->{cpqFcaAccelErrCode}; - $self->add_message(CRITICAL, $info); - $self->add_info($info); - } elsif ($self->{cpqFcaAccelCondition} ne 'ok') { - $info .= sprintf '%s and needs attention (%s)', - $self->{cpqFcaAccelCondition}, $self->{cpqFcaAccelErrCode}; - $self->add_message(CRITICAL, $info); - $self->add_info($info); - } else { - $info .= sprintf '%s', $self->{cpqFcaAccelCondition}; - $self->add_info($info); - } -} - -sub dump { - my $self = shift; - printf "[FCAL_ACCELERATOR_%s]\n", $self->{name}; - foreach (qw(cpqFcaAccelBoxIndex cpqFcaAccelBoxIoSlot cpqFcaAccelStatus - cpqFcaAccelErrCode cpqFcaAccelBatteryStatus cpqFcaAccelCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Fca::LogicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqFcaLogDrv/, keys %params; - bless $self, $class; - $self->{name} = $params{name} || - $self->{cpqFcaLogDrvBoxIndex}.':'. - $self->{cpqFcaLogDrvIndex}; - $self->{controllerindex} = $self->{cpqFcaLogDrvBoxIndex}; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('fcald', $self->{name}); - my $info = sprintf 'logical drive %s (%s) is %s', - $self->{name}, $self->{cpqFcaLogDrvFaultTol}, $self->{cpqFcaLogDrvCondition}; - if ($self->{cpqFcaLogDrvCondition} ne "ok") { - $info .= sprintf ' (%s)', $self->{cpqFcaLogDrvStatus}; - if ($self->{cpqFcaLogDrvStatus} =~ - /rebuild|recovering|expand/) { - $info .= sprintf ' (%s)', $self->{cpqFcaLogDrvStatus}; - $self->add_message(WARNING, $info); - } else { - $self->add_message(CRITICAL, $info); - } - } - $self->add_info($info); -} - -sub dump { - my $self = shift; - printf "[LOGICAL_DRIVE_%s]\n", $self->{name}; - foreach (qw(cpqFcaLogDrvBoxIndex cpqFcaLogDrvIndex cpqFcaLogDrvFaultTol - cpqFcaLogDrvStatus cpqFcaLogDrvPercentRebuild cpqFcaLogDrvSize - cpqFcaLogDrvPhyDrvIDs cpqFcaLogDrvCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Fca::PhysicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqFcaPhyDrv/, keys %params; - $self->{name} = $params{name} || - $self->{cpqFcaPhyDrvBoxIndex}.':'.$self->{cpqFcaPhyDrvIndex}; ####vorerst - $self->{controllerindex} = $self->{cpqScsiPhyDrvCntlrIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('fcapd', $self->{name}); - my $info = sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqFcaPhyDrvStatus}; - if ($self->{cpqFcaPhyDrvStatus} eq 'unconfigured') { - # not part of a logical drive - # condition will surely be other - } elsif ($self->{cpqFcaPhyDrvCondition} ne 'ok') { - $self->add_message(CRITICAL, $info); - } - $self->add_info($info); -} - -sub dump { - my $self = shift; - printf "[PHYSICAL_DRIVE_%s]\n", $self->{name}; - foreach (qw(cpqFcaPhyDrvBoxIndex cpqFcaPhyDrvIndex cpqFcaPhyDrvModel - cpqFcaPhyDrvBay cpqFcaPhyDrvStatus cpqFcaPhyDrvCondition - cpqFcaPhyDrvSize cpqFcaPhyDrvBusNumber)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Fca::SpareDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub dump { - my $self = shift; - printf "[SPARE_DRIVE]\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Ide::CLI; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,114 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Ide::SNMP; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - - # CPQIDE-MIB - my $oids = { - cpqIdeControllerEntry => '1.3.6.1.4.1.232.14.2.3.1.1', - cpqIdeControllerIndex => '1.3.6.1.4.1.232.14.2.3.1.1.1', - cpqIdeControllerOverallCondition => '1.3.6.1.4.1.232.14.2.3.1.1.2', - cpqIdeControllerModel => '1.3.6.1.4.1.232.14.2.3.1.1.3', - cpqIdeControllerSlot => '1.3.6.1.4.1.232.14.2.3.1.1.5', - cpqIdeControllerOverallConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - }; - - # INDEX { cpqIdeControllerIndex } - foreach ($self->get_entries($oids, 'cpqIdeControllerEntry')) { - push(@{$self->{controllers}}, - HP::Proliant::Component::DiskSubsystem::Ide::Controller->new(%{$_})); - } - - $oids = { - cpqIdeLogicalDriveEntry => '1.3.6.1.4.1.232.14.2.6.1.1', - cpqIdeLogicalDriveControllerIndex => '1.3.6.1.4.1.232.14.2.6.1.1.1', - cpqIdeLogicalDriveIndex => '1.3.6.1.4.1.232.14.2.6.1.1.2', - cpqIdeLogicalDriveRaidLevel => '1.3.6.1.4.1.232.14.2.6.1.1.3', - cpqIdeLogicalDriveCapacity => '1.3.6.1.4.1.232.14.2.6.1.1.4', - cpqIdeLogicalDriveStatus => '1.3.6.1.4.1.232.14.2.6.1.1.5', - cpqIdeLogicalDriveCondition => '1.3.6.1.4.1.232.14.2.6.1.1.6', - cpqIdeLogicalDriveDiskIds => '1.3.6.1.4.1.232.14.2.6.1.1.7', - cpqIdeLogicalDriveSpareIds => '1.3.6.1.4.1.232.14.2.6.1.1.9', - cpqIdeLogicalDriveRebuildingDisk => '1.3.6.1.4.1.232.14.2.6.1.1.10', - cpqIdeLogicalDriveRaidLevelValue => { - 1 => "other", - 2 => "raid0", - 3 => "raid1", - 4 => "raid0plus1", - }, - cpqIdeLogicalDriveStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "rebuilding", - 5 => "failed", - }, - cpqIdeLogicalDriveConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - }; - # INDEX { cpqIdeLogicalDriveControllerIndex, cpqIdeLogicalDriveIndex } - foreach ($self->get_entries($oids, 'cpqIdeLogicalDriveEntry')) { - push(@{$self->{logical_drives}}, - HP::Proliant::Component::DiskSubsystem::Ide::LogicalDrive->new(%{$_})); - } - - $oids = { - cpqIdeAtaDiskEntry => '1.3.6.1.4.1.232.14.2.4.1.1', - cpqIdeAtaDiskControllerIndex => '1.3.6.1.4.1.232.14.2.4.1.1.1', - cpqIdeAtaDiskIndex => '1.3.6.1.4.1.232.14.2.4.1.1.2', - cpqIdeAtaDiskModel => '1.3.6.1.4.1.232.14.2.4.1.1.3', - cpqIdeAtaDiskStatus => '1.3.6.1.4.1.232.14.2.4.1.1.6', - cpqIdeAtaDiskCondition => '1.3.6.1.4.1.232.14.2.4.1.1.7', - cpqIdeAtaDiskCapacity => '1.3.6.1.4.1.232.14.2.4.1.1.8', - cpqIdeAtaDiskLogicalDriveMember => '1.3.6.1.4.1.232.14.2.4.1.1.13', - cpqIdeAtaDiskIsSpare => '1.3.6.1.4.1.232.14.2.4.1.1.14', - cpqIdeAtaDiskStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "smartError", - 4 => "failed", - }, - cpqIdeAtaDiskConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - }; - # INDEX { cpqIdeAtaDiskControllerIndex, cpqIdeAtaDiskIndex } - foreach ($self->get_entries($oids, 'cpqIdeAtaDiskEntry')) { - push(@{$self->{physical_drives}}, - HP::Proliant::Component::DiskSubsystem::Ide::PhysicalDrive->new(%{$_})); - } - -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,252 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Ide; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - controllers => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - condition => undef, - blacklisted => 0, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Ide::SNMP'; - } else { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Ide::CLI'; - } - $self->init(); - $self->assemble(); - return $self; -} - -sub check { - my $self = shift; - foreach (@{$self->{controllers}}) { - $_->check(); - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{controllers}}) { - $_->dump(); - } -} - -package HP::Proliant::Component::DiskSubsystem::Ide::Controller; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqIdeControllerIndex => $params{cpqIdeControllerIndex}, - cpqIdeControllerOverallCondition => $params{cpqIdeControllerOverallCondition}, - cpqIdeControllerModel => $params{cpqIdeControllerModel}, - cpqIdeControllerSlot => $params{cpqIdeControllerSlot}, # -1 ist sysboard? - blacklisted => 0, - }; - $self->{name} = $params{name} || $self->{cpqIdeControllerIndex}; - $self->{controllerindex} = $self->{cpqIdeControllerIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - if ($self->{cpqIdeControllerOverallCondition} eq 'other') { - if (scalar(@{$self->{physical_drives}})) { - $self->add_message(CRITICAL, - sprintf 'ide controller %s in slot %s needs attention', - $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); - $self->add_info(sprintf 'ide controller %s in slot %s needs attention', - $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); - } else { - $self->add_info(sprintf 'ide controller %s in slot %s is ok and unused', - $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); - $self->{blacklisted} = 1; - } - } elsif ($self->{cpqIdeControllerOverallCondition} ne 'ok') { - $self->add_message(CRITICAL, - sprintf 'ide controller %s in slot %s needs attention', - $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); - $self->add_info(sprintf 'ide controller %s in slot %s needs attention', - $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); - } else { - $self->add_info(sprintf 'ide controller %s in slot %s is ok', - $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); - } - foreach (@{$self->{logical_drives}}) { - $_->check(); - } - foreach (@{$self->{physical_drives}}) { - $_->check(); - } - foreach (@{$self->{spare_drives}}) { - $_->check(); - } -} - -sub dump { - my $self = shift; - printf "[IDE_CONTROLLER_%s]\n", $self->{name}; - foreach (qw(cpqIdeControllerIndex cpqIdeControllerSlot - cpqIdeControllerModel cpqIdeControllerOverallCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; - foreach (@{$self->{logical_drives}}) { - $_->dump(); - } - foreach (@{$self->{physical_drives}}) { - $_->dump(); - } - foreach (@{$self->{spare_drives}}) { - $_->dump(); - } -} - - -package HP::Proliant::Component::DiskSubsystem::Ide::LogicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqIdeLogicalDriveControllerIndex => $params{cpqIdeLogicalDriveControllerIndex}, - cpqIdeLogicalDriveIndex => $params{cpqIdeLogicalDriveIndex}, - cpqIdeLogicalDriveRaidLevel => $params{cpqIdeLogicalDriveRaidLevel}, - cpqIdeLogicalDriveCapacity => $params{cpqIdeLogicalDriveCapacity}, - cpqIdeLogicalDriveStatus => $params{cpqIdeLogicalDriveStatus}, - cpqIdeLogicalDriveCondition => $params{cpqIdeLogicalDriveCondition}, - cpqIdeLogicalDriveDiskIds => $params{cpqIdeLogicalDriveDiskIds}, - cpqIdeLogicalDriveSpareIds => $params{cpqIdeLogicalDriveSpareIds}, - cpqIdeLogicalDriveRebuildingDisk => $params{cpqIdeLogicalDriveRebuildingDisk}, - blacklisted => 0, - }; - bless $self, $class; - $self->{name} = $params{name} || - $self->{cpqIdeLogicalDriveControllerIndex}.':'. - $self->{cpqIdeLogicalDriveIndex}; - $self->{controllerindex} = $self->{cpqIdeLogicalDriveControllerIndex}; - return $self; -} - -sub check { - my $self = shift; - if ($self->{cpqIdeLogicalDriveCondition} ne "ok") { - if ($self->{cpqIdeLogicalDriveStatus} =~ - /rebuild/) { - $self->add_message(WARNING, - sprintf "logical drive %s is %s", - $self->{name}, $self->{cpqIdeLogicalDriveStatus}); - } else { - $self->add_message(CRITICAL, - sprintf "logical drive %s is %s", - $self->{name}, $self->{cpqIdeLogicalDriveStatus}); - } - } - $self->add_info( - sprintf "logical drive %s is %s", $self->{name}, - $self->{cpqIdeLogicalDriveStatus}); -} - -sub dump { - my $self = shift; - printf "[LOGICAL_DRIVE]\n"; - foreach (qw(cpqIdeLogicalDriveControllerIndex cpqIdeLogicalDriveIndex - cpqIdeLogicalDriveRaidLevel cpqIdeLogicalDriveCapacity - cpqIdeLogicalDriveDiskIds cpqIdeLogicalDriveSpareIds - cpqIdeLogicalDriveRebuildingDisk cpqIdeLogicalDriveStatus - cpqIdeLogicalDriveCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Ide::PhysicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqIdeAtaDiskControllerIndex => $params{cpqIdeAtaDiskControllerIndex}, - cpqIdeAtaDiskIndex => $params{cpqIdeAtaDiskIndex}, - cpqIdeAtaDiskModel => $params{cpqIdeAtaDiskModel}, - cpqIdeAtaDiskStatus => $params{cpqIdeAtaDiskStatus}, - cpqIdeAtaDiskCondition => $params{cpqIdeAtaDiskCondition}, - cpqIdeAtaDiskCapacity => $params{cpqIdeAtaDiskCapacity}, - cpqIdeAtaDiskLogicalDriveMember => $params{cpqIdeAtaDiskLogicalDriveMember}, - cpqIdeAtaDiskIsSpare => $params{cpqIdeAtaDiskIsSpare}, - blacklisted => 0, - }; - $self->{name} = $params{name} || - $self->{cpqIdeAtaDiskControllerIndex}.':'. - $self->{cpqIdeAtaDiskIndex}; ####vorerst - $self->{controllerindex} = $self->{cpqIdeAtaDiskControllerIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - if ($self->{cpqIdeAtaDiskCondition} ne 'ok') { - $self->add_message(CRITICAL, - sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqIdeAtaDiskCondition}); - } - $self->add_info( - sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqIdeAtaDiskCondition}); -} - -sub dump { - my $self = shift; - printf "[PHYSICAL_DRIVE]\n"; - foreach (qw(cpqIdeAtaDiskControllerIndex cpqIdeAtaDiskIndex - cpqIdeAtaDiskModel cpqIdeAtaDiskCapacity cpqIdeAtaDiskLogicalDriveMember - cpqIdeAtaDiskStatus cpqIdeAtaDiskCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Ide::SpareDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub dump { - my $self = shift; - printf "[SPARE_DRIVE]\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Sas::CLI; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,125 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Sas::SNMP; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - - # CPQSCSI-MIB - my $oids = { - cpqSasHbaEntry => "1.3.6.1.4.1.232.5.5.1.1.1", - cpqSasHbaIndex => "1.3.6.1.4.1.232.5.5.1.1.1.1", - cpqSasHbaLocation => "1.3.6.1.4.1.232.5.5.1.1.1.2", - cpqSasHbaSlot => "1.3.6.1.4.1.232.5.5.1.1.1.6", - cpqSasHbaStatus => "1.3.6.1.4.1.232.5.5.1.1.1.4", - cpqSasHbaStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "failed", - }, - cpqSasHbaCondition => "1.3.6.1.4.1.232.5.5.1.1.1.5", - cpqSasHbaConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - }; - - # INDEX { cpqSasHbaIndex } - foreach ($self->get_entries($oids, 'cpqSasHbaEntry')) { - push(@{$self->{controllers}}, - HP::Proliant::Component::DiskSubsystem::Sas::Controller->new(%{$_})); - } - - $oids = { - cpqSasLogDrvEntry => "1.3.6.1.4.1.232.5.5.3.1.1", - cpqSasLogDrvHbaIndex => "1.3.6.1.4.1.232.5.5.3.1.1.1", - cpqSasLogDrvIndex => "1.3.6.1.4.1.232.5.5.3.1.1.2", - cpqSasLogDrvStatus => "1.3.6.1.4.1.232.5.5.3.1.1.4", - cpqSasLogDrvCondition => "1.3.6.1.4.1.232.5.5.3.1.1.5", - cpqSasLogDrvRebuildingPercent => "1.3.6.1.4.1.232.5.5.3.1.1.12", - cpqSasLogDrvRaidLevel => "1.3.6.1.4.1.232.5.5.3.1.1.3", - cpqSasLogDrvRaidLevelValue => { - 1 => "other", - 2 => "raid0", - 3 => "raid1", - 4 => "raid0plus1", - 5 => "raid5", - 6 => "raid15", - 7 => "volume", - }, - cpqSasLogDrvConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqSasLogDrvStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "rebuilding", - 5 => "failed", - 6 => "offline", - } - }; - # INDEX { cpqSasLogDrvCntlrIndex, cpqSasLogDrvIndex } - foreach ($self->get_entries($oids, 'cpqSasLogDrvEntry')) { - push(@{$self->{logical_drives}}, - HP::Proliant::Component::DiskSubsystem::Sas::LogicalDrive->new(%{$_})); - } - - $oids = { - cpqSasPhyDrvEntry => "1.3.6.1.4.1.232.5.5.2.1.1", - cpqSasPhyDrvHbaIndex => "1.3.6.1.4.1.232.5.5.2.1.1.1", - cpqSasPhyDrvIndex => "1.3.6.1.4.1.232.5.5.2.1.1.2", - cpqSasPhyDrvLocationString => "1.3.6.1.4.1.232.5.5.2.1.1.3", - cpqSasPhyDrvStatus => "1.3.6.1.4.1.232.5.5.2.1.1.5", - cpqSasPhyDrvSize => "1.3.6.1.4.1.232.5.5.2.1.1.8", - cpqSasPhyDrvCondition => "1.3.6.1.4.1.232.5.5.2.1.1.6", - cpqSasPhyDrvConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqSasPhyDrvStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "predictiveFailure", - 4 => "offline", - 5 => "failed", - 6 => "missingWasOk", - 7 => "missingWasPredictiveFailure", - 8 => "missingWasOffline", - 9 => "missingWasFailed", - }, - }; - - # INDEX { cpqPhyLogDrvCntlrIndex, cpqSasPhyDrvIndex } - foreach ($self->get_entries($oids, 'cpqSasPhyDrvEntry')) { - push(@{$self->{physical_drives}}, - HP::Proliant::Component::DiskSubsystem::Sas::PhysicalDrive->new(%{$_})); - } - -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,250 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Sas; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - controllers => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - condition => undef, - blacklisted => 0, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Sas::SNMP'; - } else { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Sas::CLI'; - } - $self->init(); - $self->assemble(); - return $self; -} - -sub check { - my $self = shift; - foreach (@{$self->{controllers}}) { - $_->check(); - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{controllers}}) { - $_->dump(); - } -} - -package HP::Proliant::Component::DiskSubsystem::Sas::Controller; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqSasHbaIndex => $params{cpqSasHbaIndex}, - cpqSasHbaLocation => $params{cpqSasHbaLocation}, - cpqSasHbaSlot => $params{cpqSasHbaSlot}, - cpqSasHbaStatus => $params{cpqSasHbaStatus}, - cpqSasHbaCondition => $params{cpqSasHbaCondition}, - blacklisted => 0, - }; - $self->{name} = $params{name} || $self->{cpqSasHbaSlot}; - $self->{controllerindex} = $self->{cpqSasHbaIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('saco', $self->{cpqSasHbaSlot}); - if ($self->{cpqSasHbaCondition} eq 'other') { - if (scalar(@{$self->{physical_drives}})) { - $self->add_message(CRITICAL, - sprintf 'sas controller in slot %s needs attention', - $self->{cpqSasHbaSlot}); - $self->add_info(sprintf 'sas controller in slot %s needs attention', - $self->{cpqSasHbaSlot}); - } else { - $self->add_info(sprintf 'sas controller in slot %s is ok and unused', - $self->{cpqSasHbaSlot}); - $self->{blacklisted} = 1; - } - } elsif ($self->{cpqSasHbaCondition} ne 'ok') { - $self->add_message(CRITICAL, - sprintf 'sas controller in slot %s needs attention', - $self->{cpqSasHbaSlot}); - $self->add_info(sprintf 'sas controller in slot %s needs attention', - $self->{cpqSasHbaSlot}); - } else { - $self->add_info(sprintf 'sas controller in slot %s is ok', - $self->{cpqSasHbaSlot}); - } - foreach (@{$self->{logical_drives}}) { - $_->check(); - } - foreach (@{$self->{physical_drives}}) { - $_->check(); - } - foreach (@{$self->{spare_drives}}) { - $_->check(); - } -} - -sub dump { - my $self = shift; - printf "[SAS_HBA%s]\n", $self->{name}; - foreach (qw(cpqSasHbaSlot cpqSasHbaIndex cpqSasHbaCondition - cpqSasHbaStatus cpqSasHbaLocation)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; - foreach (@{$self->{logical_drives}}) { - $_->dump(); - } - foreach (@{$self->{physical_drives}}) { - $_->dump(); - } - foreach (@{$self->{spare_drives}}) { - $_->dump(); - } -} - - -package HP::Proliant::Component::DiskSubsystem::Sas::LogicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqSasLogDrvHbaIndex => $params{cpqSasLogDrvHbaIndex}, - cpqSasLogDrvIndex => $params{cpqSasLogDrvIndex}, - cpqSasLogDrvStatus => $params{cpqSasLogDrvStatus}, - cpqSasLogDrvCondition => $params{cpqSasLogDrvCondition}, - cpqSasLogDrvRebuildingPercent => $params{cpqSasLogDrvRebuildingPercent}, - cpqSasLogDrvRaidLevel => $params{cpqSasLogDrvRaidLevel}, - blacklisted => 0, - }; - bless $self, $class; - $self->{name} = $params{name} || - $self->{cpqSasLogDrvHbaIndex}.':'.$self->{cpqSasLogDrvIndex}; ####vorerst - $self->{controllerindex} = $self->{cpqSasLogDrvHbaIndex}; - if (! $self->{cpqSasLogDrvRebuildingPercent} || - $self->{cpqSasLogDrvRebuildingPercent} == 4294967295) { - $self->{cpqSasLogDrvRebuildingPercent} = 100; - } - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('sald', $self->{name}); - if ($self->{cpqSasLogDrvCondition} ne "ok") { - if ($self->{cpqSasLogDrvStatus} =~ - /rebuild|recovering|expanding|queued/) { - $self->add_message(WARNING, - sprintf "logical drive %s is %s", - $self->{name}, $self->{cpqSasLogDrvStatus}); - } else { - $self->add_message(CRITICAL, - sprintf "logical drive %s is %s", - $self->{name}, $self->{cpqSasLogDrvStatus}); - } - } - $self->add_info( - sprintf "logical drive %s is %s (%s)", $self->{name}, - $self->{cpqSasLogDrvStatus}, $self->{cpqSasLogDrvRaidLevel}); -} - -sub dump { - my $self = shift; - printf "[LOGICAL_DRIVE]\n"; - foreach (qw(cpqSasLogDrvHbaIndex cpqSasLogDrvIndex cpqSasLogDrvRaidLevel - cpqSasLogDrvStatus cpqSasLogDrvCondition - cpqSasLogDrvRebuildingPercent)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Sas::PhysicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqSasPhyDrvHbaIndex => $params{cpqSasPhyDrvHbaIndex}, - cpqSasPhyDrvIndex => $params{cpqSasPhyDrvIndex}, - cpqSasPhyDrvLocationString => $params{cpqSasPhyDrvLocationString}, - cpqSasPhyDrvStatus => $params{cpqSasPhyDrvStatus}, - cpqSasPhyDrvSize => $params{cpqSasPhyDrvSize}, - cpqSasPhyDrvCondition => $params{cpqSasPhyDrvCondition}, - blacklisted => 0, - }; - $self->{name} = $params{name} || - $self->{cpqSasPhyDrvHbaIndex}.':'.$self->{cpqSasPhyDrvIndex}; ####vorerst - $self->{controllerindex} = $self->{cpqSasPhyDrvHbaIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('sapd', $self->{name}); - if ($self->{cpqSasPhyDrvCondition} ne 'ok') { - $self->add_message(CRITICAL, - sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqSasPhyDrvCondition}); - } - $self->add_info( - sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqSasPhyDrvCondition}); -} - -sub dump { - my $self = shift; - printf "[PHYSICAL_DRIVE]\n"; - foreach (qw(cpqSasPhyDrvHbaIndex cpqSasPhyDrvIndex cpqSasPhyDrvLocationString - cpqSasPhyDrvSize cpqSasPhyDrvStatus cpqSasPhyDrvCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Sas::SpareDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub dump { - my $self = shift; - printf "[SPARE_DRIVE]\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Scsi::CLI; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,133 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Scsi::SNMP; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - controllers => [], - accelerators => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - blacklisted => 0, - }; - bless $self, $class; - return $self; -} - -sub init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - - # CPQSCSI-MIB - my $oids = { - cpqScsiCntlrEntry => '1.3.6.1.4.1.232.5.2.2.1.1', - cpqScsiCntlrIndex => '1.3.6.1.4.1.232.5.2.2.1.1.1', - cpqScsiCntlrBusIndex => '1.3.6.1.4.1.232.5.2.2.1.1.2', - cpqScsiCntlrSlot => '1.3.6.1.4.1.232.5.2.2.1.1.6', - cpqScsiCntlrStatus => '1.3.6.1.4.1.232.5.2.2.1.1.7', - cpqScsiCntlrCondition => '1.3.6.1.4.1.232.5.2.2.1.1.12', - cpqScsiCntlrHwLocation => '1.3.6.1.4.1.232.5.2.2.1.1.16', - cpqScsiCntlrStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "failed", - }, - cpqScsiCntlrConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - } - }; - - # INDEX { cpqScsiCntlrIndex, cpqScsiCntlrBusIndex } - foreach ($self->get_entries($oids, 'cpqScsiCntlrEntry')) { - push(@{$self->{controllers}}, - HP::Proliant::Component::DiskSubsystem::Scsi::Controller->new(%{$_})); - } - - $oids = { - cpqScsiLogDrvEntry => '1.3.6.1.4.1.232.5.2.3.1.1', - cpqScsiLogDrvCntlrIndex => '1.3.6.1.4.1.232.5.2.3.1.1.1', - cpqScsiLogDrvBusIndex => '1.3.6.1.4.1.232.5.2.3.1.1.2', - cpqScsiLogDrvIndex => '1.3.6.1.4.1.232.5.2.3.1.1.3', - cpqScsiLogDrvFaultTol => '1.3.6.1.4.1.232.5.2.3.1.1.4', - cpqScsiLogDrvStatus => '1.3.6.1.4.1.232.5.2.3.1.1.5', - cpqScsiLogDrvSize => '1.3.6.1.4.1.232.5.2.3.1.1.6', - cpqScsiLogDrvPhyDrvIDs => '1.3.6.1.4.1.232.5.2.3.1.1.7', - cpqScsiLogDrvCondition => '1.3.6.1.4.1.232.5.2.3.1.1.8', - cpqScsiLogDrvStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "failed", - 4 => "unconfigured", - 5 => "recovering", - 6 => "readyForRebuild", - 7 => "rebuilding", - 8 => "wrongDrive", - 9 => "badConnect", - }, - cpqScsiLogDrvConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqScsiLogDrvFaultTolValue => { - 1 => "other", - 2 => "none", - 3 => "mirroring", - 4 => "dataGuard", - 5 => "distribDataGuard", - }, - - }; - # INDEX { cpqScsiLogDrvCntlrIndex, cpqScsiLogDrvBusIndex, cpqScsiLogDrvIndex } - foreach ($self->get_entries($oids, 'cpqScsiLogDrvEntry')) { - push(@{$self->{logical_drives}}, - HP::Proliant::Component::DiskSubsystem::Scsi::LogicalDrive->new(%{$_})); - } - - $oids = { - cpqScsiPhyDrvEntry => '1.3.6.1.4.1.232.5.2.4.1.1', - cpqScsiPhyDrvCntlrIndex => '1.3.6.1.4.1.232.5.2.4.1.1.1', - cpqScsiPhyDrvBusIndex => '1.3.6.1.4.1.232.5.2.4.1.1.2', - cpqScsiPhyDrvIndex => '1.3.6.1.4.1.232.5.2.4.1.1.3', - cpqScsiPhyDrvStatus => '1.3.6.1.4.1.232.5.2.4.1.1.9', - cpqScsiPhyDrvSize => '1.3.6.1.4.1.232.5.2.4.1.1.7', - cpqScsiPhyDrvCondition => '1.3.6.1.4.1.232.5.2.4.1.1.26', - cpqScsiPhyDrvConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqScsiPhyDrvStatusValue => { - 1 => "other", - 2 => "ok", - 3 => "failed", - 4 => "notConfigured", - 5 => "badCable", - 6 => "missingWasOk", - 7 => "missingWasFailed", - 8 => "predictiveFailure", - 9 => "missingWasPredictiveFailure", - 10 => "offline", - 11 => "missingWasOffline", - 12 => "hardError", - }, - }; - - # INDEX { cpqScsiPhyDrvCntlrIndex, cpqScsiPhyDrvBusIndex, cpqScsiPhyDrvIndex } - foreach ($self->get_entries($oids, 'cpqScsiPhyDrvEntry')) { - push(@{$self->{physical_drives}}, - HP::Proliant::Component::DiskSubsystem::Scsi::PhysicalDrive->new(%{$_})); - } - -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,226 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem::Scsi; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - controllers => [], - physical_drives => [], - logical_drives => [], - spare_drives => [], - condition => undef, - blacklisted => 0, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Scsi::SNMP'; - } else { - bless $self, 'HP::Proliant::Component::DiskSubsystem::Scsi::CLI'; - } - $self->init(); - $self->assemble(); - return $self; -} - -sub check { - my $self = shift; - foreach (@{$self->{controllers}}) { - $_->check(); - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{controllers}}) { - $_->dump(); - } -} - -package HP::Proliant::Component::DiskSubsystem::Scsi::Controller; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqScsiCntlr/, keys %params; - $self->{name} = $params{name} || $params{cpqScsiCntlrIndex}.':'.$params{cpqScsiCntlrBusIndex}; - $self->{controllerindex} = $self->{cpqScsiCntlrIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('scco', $self->{name}); - my $info = sprintf 'scsi controller %s in slot %s is %s', - $self->{name}, $self->{cpqScsiCntlrSlot}, $self->{cpqScsiCntlrCondition}; - if ($self->{cpqScsiCntlrCondition} eq 'other') { - if (scalar(@{$self->{physical_drives}})) { - $info .= ' and needs attention'; - $self->add_message(CRITICAL, $info); - $self->add_info($info); - } else { - $info .= ' and unused'; - $self->add_info($info); - $self->{blacklisted} = 1; - } - } elsif ($self->{cpqScsiCntlrCondition} ne 'ok') { - $info .= ' and needs attention'; - $self->add_message(CRITICAL, $info); - $self->add_info($info); - } else { - $self->add_info($info); - } - foreach (@{$self->{logical_drives}}) { - $_->check(); - } - foreach (@{$self->{physical_drives}}) { - $_->check(); - } - foreach (@{$self->{spare_drives}}) { - $_->check(); - } -} - -sub dump { - my $self = shift; - printf "[SCSI_CONTROLLER_%s]\n", $self->{name}; - foreach (qw(cpqScsiCntlrIndex cpqScsiCntlrBusIndex cpqScsiCntlrSlot - cpqScsiCntlrStatus cpqScsiCntlrCondition cpqScsiCntlrHwLocation)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; - foreach (@{$self->{logical_drives}}) { - $_->dump(); - } - foreach (@{$self->{physical_drives}}) { - $_->dump(); - } - foreach (@{$self->{spare_drives}}) { - $_->dump(); - } -} - - -package HP::Proliant::Component::DiskSubsystem::Scsi::LogicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqScsiLogDrv/, keys %params; - $self->{name} = $params{name} || $params{cpqScsiLogDrvCntlrIndex}.':'.$params{cpqScsiLogDrvBusIndex}.':'.$params{cpqScsiLogDrvIndex}; - bless $self, $class; - $self->{controllerindex} = $self->{cpqScsiLogDrvCntlrIndex}; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('scld', $self->{name}); - my $info = sprintf 'logical drive %s is %s', $self->{name}, $self->{cpqScsiLogDrvStatus}; - if ($self->{cpqScsiLogDrvCondition} ne "ok") { - if ($self->{cpqScsiLogDrvStatus} =~ - /rebuild|recovering/) { - $self->add_message(WARNING, $info); - } else { - $self->add_message(CRITICAL, $info); - } - } - $self->add_info($info); -} - -sub dump { - my $self = shift; - printf "[LOGICAL_DRIVE_%s]\n", $self->{name}; - foreach (qw(cpqScsiLogDrvCntlrIndex cpqScsiLogDrvBusIndex cpqScsiLogDrvIndex - cpqScsiLogDrvFaultTol cpqScsiLogDrvStatus cpqScsiLogDrvSize - cpqScsiLogDrvPhyDrvIDs cpqScsiLogDrvCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Scsi::PhysicalDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - map { $self->{$_} = $params{$_} } grep /cpqScsiPhyDrv/, keys %params; - $self->{name} = $params{name} || - $self->{cpqScsiPhyDrvCntlrIndex}.':'.$self->{cpqScsiPhyDrvBusIndex}.':'.$self->{cpqScsiPhyDrvIndex}; - $self->{controllerindex} = $self->{cpqScsiPhyDrvCntlrIndex}; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('scpd', $self->{name}); - my $info = sprintf 'physical drive %s is %s', $self->{name}, $self->{cpqScsiPhyDrvCondition}; - if ($self->{cpqScsiPhyDrvCondition} ne 'ok') { - $self->add_message(CRITICAL, $info); - } - $self->add_info($info); -} - -sub dump { - my $self = shift; - printf "[PHYSICAL_DRIVE_%s]\n", $self->{name}; - foreach (qw(cpqScsiPhyDrvCntlrIndex cpqScsiPhyDrvBusIndex cpqScsiPhyDrvIndex - cpqScsiPhyDrvStatus cpqScsiPhyDrvSize cpqScsiPhyDrvCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "\n"; -} - - -package HP::Proliant::Component::DiskSubsystem::Scsi::SpareDrive; -our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub dump { - my $self = shift; - printf "[SPARE_DRIVE]\n"; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/DiskSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,150 +0,0 @@ -package HP::Proliant::Component::DiskSubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - da_subsystem => undef, - sas_da_subsystem => undef, - ide_da_subsystem => undef, - fca_da_subsystem => undef, - scsi_da_subsystem => undef, - condition => $params{condition}, - blacklisted => 0, - }; - bless $self, $class; - $self->init(); - return $self; -} - -sub init { - my $self = shift; - $self->{da_subsystem} = HP::Proliant::Component::DiskSubsystem::Da->new( - runtime => $self->{runtime}, - rawdata => $self->{rawdata}, - method => $self->{method}, - ); - $self->{sas_subsystem} = HP::Proliant::Component::DiskSubsystem::Sas->new( - runtime => $self->{runtime}, - rawdata => $self->{rawdata}, - method => $self->{method}, - ); - $self->{scsi_subsystem} = HP::Proliant::Component::DiskSubsystem::Scsi->new( - runtime => $self->{runtime}, - rawdata => $self->{rawdata}, - method => $self->{method}, - ); - $self->{ide_subsystem} = HP::Proliant::Component::DiskSubsystem::Ide->new( - runtime => $self->{runtime}, - rawdata => $self->{rawdata}, - method => $self->{method}, - ); - $self->{fca_subsystem} = HP::Proliant::Component::DiskSubsystem::Fca->new( - runtime => $self->{runtime}, - rawdata => $self->{rawdata}, - method => $self->{method}, - ); -} - -sub check { - my $self = shift; - $self->add_info('checking disk subsystem'); - $self->{da_subsystem}->check(); - $self->{sas_subsystem}->check(); - $self->{scsi_subsystem}->check(); - $self->{ide_subsystem}->check(); - $self->{fca_subsystem}->check(); - $self->disk_summary(); -} - -sub dump { - my $self = shift; - $self->{da_subsystem}->dump(); - $self->{sas_subsystem}->dump(); - $self->{scsi_subsystem}->dump(); - $self->{ide_subsystem}->dump(); - $self->{fca_subsystem}->dump(); -} - -sub disk_summary { - my $self = shift; - foreach my $subsys (qw(da sas scsi ide fca)) { - if (my $pd = $self->{$subsys.'_subsystem'}->has_physical_drives()) { - my $ld = $self->{$subsys.'_subsystem'}->has_logical_drives(); - $self->add_summary(sprintf '%s: %d logical drives, %d physical drives', - $subsys, $ld, $pd); - } - } -} - -sub assemble { - my $self = shift; - $self->trace(3, sprintf "%s controllers und platten zusammenfuehren", - ref($self)); - $self->trace(3, sprintf "has %d controllers", - scalar(@{$self->{controllers}})); - $self->trace(3, sprintf "has %d accelerators", - scalar(@{$self->{accelerators}})) if exists $self->{accelerators}; - $self->trace(3, sprintf "has %d physical_drives", - scalar(@{$self->{physical_drives}})); - $self->trace(3, sprintf "has %d logical_drives", - scalar(@{$self->{logical_drives}})); - $self->trace(3, sprintf "has %d spare_drives", - scalar(@{$self->{spare_drives}})); - my $found = { - accelerators => {}, - logical_drives => {}, - physical_drives => {}, - spare_drives => {}, - }; - # found->{komponente}->{controllerindex} ist ein array - # von teilen, die zu einem controller gehoeren - foreach my $item (qw(accelerators logical_drives physical_drives spare_drives)) { - foreach (@{$self->{$item}}) { - $found->{item}->{$_->{controllerindex}} = [] - unless exists $found->{$item}->{$_->{controllerindex}}; - push(@{$found->{$item}->{$_->{controllerindex}}}, $_); - } - } - foreach my $item (qw(accelerators logical_drives physical_drives spare_drives)) { - foreach (@{$self->{controllers}}) { - if (exists $found->{$item}->{$_->{controllerindex}}) { - $_->{$item} = $found->{$item}->{$_->{controllerindex}}; - delete $found->{$item}->{$_->{controllerindex}}; - } else { - $_->{$item} = []; # z.b. ein leerer controller: physical_drives = [] - } - } - } - # was jetzt noch in $found uebrig ist, gehoert zu keinem controller - # d.h. komponenten mit ungueltigen cnrtlindex wurden gefunden -} - -sub has_controllers { - my $self = shift; - return scalar(@{$self->{controllers}}); -} - -sub has_accelerators { - my $self = shift; - return exists $self->{accelerators} ? scalar(@{$self->{accelerators}}) : 0; -} - -sub has_physical_drives { - my $self = shift; - return scalar(@{$self->{physical_drives}}); -} - -sub has_logical_drives { - my $self = shift; - return scalar(@{$self->{logical_drives}}); -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,78 +0,0 @@ -package HP::Proliant::Component::EventSubsystem::CLI; -our @ISA = qw(HP::Proliant::Component::EventSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; -use Time::Local; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - events => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - - -sub init { - my $self = shift; - my %params = @_; - my %tmpevent = ( - runtime => $params{runtime}, - ); - my $inblock = 0; - foreach (grep(/^iml/, split(/\n/, $self->{rawdata}))) { - s/^iml\s*//g; - if (/^Event:\s+(\d+)\s+[\w]+:\s+(\d+)\/(\d+)\/(\d+)\s+(\d+):(\d+)/) { - # Event: 31 Added: 09/22/2011 05:11 - # 1 2 3 4 5 6 - $tmpevent{cpqHeEventLogEntryNumber} = $1; - if ($4 == 0) { - # Event: 29 Added: 00/00/0000 00:00 - $tmpevent{cpqHeEventLogUpdateTime} = 0; - } else { - eval { - $tmpevent{cpqHeEventLogUpdateTime} = timelocal(0, $6, $5, $3, $2 - 1, $4); - }; - if ($@) { - # Event: 10 Added: 27/27/2027 27:27 - $tmpevent{cpqHeEventLogUpdateTime} = 0; - } - } - $inblock = 1; - } elsif (/^(\w+):\s+(.*?)\s+\-\s+(.*)/) { - $tmpevent{cpqHeEventLogEntrySeverity} = $1; - $tmpevent{cpqHeEventLogEntryClass} = $2; - $tmpevent{cpqHeEventLogErrorDesc} = $3; - if ($tmpevent{cpqHeEventLogErrorDesc} =~ /.*?:\s+(\d+)/) { - $tmpevent{cpqHeEventLogEntryCode} = $1; - } else { - $tmpevent{cpqHeEventLogEntryCode} = 0; - } - } elsif (/^\s*$/) { - if ($inblock) { - $inblock = 0; - push(@{$self->{events}}, - HP::Proliant::Component::EventSubsystem::Event->new(%tmpevent)); - %tmpevent = ( - runtime => $params{runtime}, - ); - } - } - } - if ($inblock) { - push(@{$self->{events}}, - HP::Proliant::Component::EventSubsystem::Event->new(%tmpevent)); - } -} - -1; - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,221 +0,0 @@ -package HP::Proliant::Component::EventSubsystem::SNMP; -our @ISA = qw(HP::Proliant::Component::EventSubsystem - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; -use Time::Local; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - events => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->overall_init(%params); - $self->init(%params); - return $self; -} - -sub overall_init { - my $self = shift; - my %params = @_; - my $snmpwalk = $params{rawdata}; - # overall - my $cpqHeEventLogSupported = '1.3.6.1.4.1.232.6.2.11.1.0'; - my $cpqHeEventLogSupportedValue = { - 1 => 'other', - 2 => 'notSupported', - 3 => 'supported', - 4 => 'clear', - }; - my $cpqHeEventLogCondition = '1.3.6.1.4.1.232.6.2.11.2.0'; - my $cpqHeEventLogConditionValue = { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }; - $self->{eventsupp} = SNMP::Utils::get_object_value( - $snmpwalk, $cpqHeEventLogSupported, - $cpqHeEventLogSupportedValue); - $self->{eventstatus} = SNMP::Utils::get_object_value( - $snmpwalk, $cpqHeEventLogCondition, - $cpqHeEventLogConditionValue); - $self->{eventsupp} |= lc $self->{eventsupp}; - $self->{eventstatus} |= lc $self->{eventstatus}; -} - -sub init { - my $self = shift; - my %params = @_; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqHeEventLogEntry => "1.3.6.1.4.1.232.6.2.11.3.1", - cpqHeEventLogEntryNumber => "1.3.6.1.4.1.232.6.2.11.3.1.1", - cpqHeEventLogEntrySeverity => "1.3.6.1.4.1.232.6.2.11.3.1.2", - cpqHeEventLogEntryClass => "1.3.6.1.4.1.232.6.2.11.3.1.3", - cpqHeEventLogEntryCode => "1.3.6.1.4.1.232.6.2.11.3.1.4", - cpqHeEventLogEntryCount => "1.3.6.1.4.1.232.6.2.11.3.1.5", - cpqHeEventLogInitialTime => "1.3.6.1.4.1.232.6.2.11.3.1.6", - cpqHeEventLogUpdateTime => "1.3.6.1.4.1.232.6.2.11.3.1.7", - cpqHeEventLogErrorDesc => "1.3.6.1.4.1.232.6.2.11.3.1.8", - - cpqHeEventLogEntryClassValue => { - # 2 Fan Failure (Fan 1, Location I/O Board) - # Internal Storage System Overheating (Slot 0, Zone 1, Location Storage, Temperature Unknown) - # System Fans Not Redundant (Location I/O Board) - # MY MUSTARD: only critical events should lead to an alert, if at all. The caution events mean "loss of redundancy". - # We monitor temperatures and fan status anyway. - #2 => "", - # 3 Corrected Memory Error threshold exceeded (System Memory, Memory Module 1) - # Uncorrectable Memory Error detected by ROM-based memory validation (Board 1, Memory Module 4) - # MY MUSTARD: threshold exceeded is caution. Uncorrectable errors are critical. Both should be detected anyway. - 3 => "Main Memory", - # 4 Accelerator Cache Memory Parity Error (Socket 1) - #4 => "", - # 5 Processor Correctable error threshold exceeded (Board 0, Processor 2) - #5 => "", - # 6 Unrecoverable Intermodule Bus error (Error code 0x00000000) - #6 => "", - # 8 PCI Bus Error (Slot 0, Bus 0, Device 0, Function 0) - 8 => "PCI Bus", - # 10 1720-S.M.A.R.T. Hard Drive Detects Imminent Failure - # POST Error: 201-Memory Error Multi-bit error occurred during memory initialization, Board 1, Bank B. Bank containing DIMM(s) has been disabled.. - # POST Error: 201-Memory Error Single-bit error occured during memory initialization, Board 1, DIMM 1. Bank containing DIMM(s) has been disabled.. - # POST Error: 207-Memory Configuration Warning - memory boards should be installed sequentially. - # POST Error: 210-Memory Board Failure on board 4. - # POST Error: 210-Memory Board Power Fault on board 3. - # POST Error: 207-Memory initialization error on Memory Board 5 DIMM 7. The operating system may not have access to all of the memory installed in the system.. - # POST Error: 207-Invalid Memory Configuration-Mismatched DIMMs within DIMM Bank Memory in Bank A Not Utilized.. - 10 => "POST Messages", - 11 => "Power Subsystem", - 13 => "ASR", - # 14 Automatic Operating System Shutdown Initiated Due to Overheat Condition - # Automatic Operating System Shutdown Initiated Due to Fan Failure - # Blue Screen Trap (BugCheck, STOP: 0x00000050 (0x9CB2C5B4, 0x00000001, 0x00000004, 0x00000000)) - # Operating System failure (BugCheck, STOP: 0x000000AB (0x00000005, 0x00000488, 0x00000000, 0x00000002)) - 14 => "OS Class", - # 15 Unknown Event (Class 15, Code 255) - #15 => "", - # 17 Network Adapter Link Down (Slot 0, Port 4) - # Network Adapters Redundancy Reduced (Slot 0, Port 1) - 17 => "Network Adapter", - # 19 Drive Array Device Failure (Slot 0, Bus 2, Bay 4) - # Internal SAS Enclosure Device Failure (Bay 1, Box 1, Port 2I, Slot 1) - #19 => "", - # 20 An Unrecoverable System Error (NMI) has occurred - # Unrecoverable System Error has occurred (Error code 0x01AE0E2F, 0x00000000) - 20 => "Unrecoverable System Error", - # 32 ROM flashed (New version: 01/09/2008) - 32 => "System Revision", - # 33 IML Cleared (Administrator) - # IML cleared through HP ProLiant Health Agent (cmahealthd) - # Insight Diagnostics Note: Physisches Festplattenlaufwerk 5, Controller Steckplatz 0-Diagnosis: Fehlgeschlagen - 33 => "Maintenance Note", - # 34 New Chassis Connected (Enclosure Address 27AC) - # Loss Of Chassis Connectivity (Enclosure Serial Number 8004******) - # Server Blade Enclosure Server Blade Inserted (Slot 16, Enclosure Address 0000) - #34 => "", - }, - cpqHeEventLogEntrySeverityValue => { - 2 => "informational", - 3 => "infoWithAlert", - 6 => "repaired", - 9 => "caution", - 15 => "critical", - }, - # Time - # 07 D8 09 02 11 11 - }; - # INDEX { cpqHeEventLogEntryNumber } - foreach ($self->get_entries($oids, 'cpqHeEventLogEntry')) { - if ($_->{cpqHeEventLogInitialTime} =~ /^(([0-9a-fA-F]{2})( [0-9a-fA-F]{2})*)\s*$/) { - $_->{cpqHeEventLogInitialTime} =~ s/ //; - my ($year, $month, $day, $hour, $min) = map { hex($_) } split(/\s+/, $_->{cpqHeEventLogInitialTime}); - if ($year == 0) { - $_->{cpqHeEventLogInitialTime} = 0; - } else { - eval { - $_->{cpqHeEventLogInitialTime} = timelocal(0, $min, $hour, $day, $month - 1, $year); - }; - if ($@) { - $_->{cpqHeEventLogInitialTime} = 0; - } - } - } elsif ($_->{cpqHeEventLogInitialTime} =~ /^0x([0-9a-fA-F]{4})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/) { - my ($year, $month, $day, $hour, $min) = map { hex($_) } ($1, $2, $3, $4, $5); - if ($year == 0) { - $_->{cpqHeEventLogInitialTime} = 0; - } else { - eval { - $_->{cpqHeEventLogInitialTime} = timelocal(0, $min, $hour, $day, $month - 1, $year); - }; - if ($@) { - $_->{cpqHeEventLogInitialTime} = 0; - } - } - } elsif ($_->{cpqHeEventLogInitialTime} =~ /^\0\0\0\0\0\0/) { - $_->{cpqHeEventLogInitialTime} = 0; - } - if ($_->{cpqHeEventLogUpdateTime} =~ /^(([0-9a-fA-F]{2})( [0-9a-fA-F]{2})*)\s*$/) { - $_->{cpqHeEventLogUpdateTime} =~ s/ //; - my ($year, $month, $day, $hour, $min) = map { hex($_) } split(/\s+/, $_->{cpqHeEventLogUpdateTime}); - if ($year == 0) { - $_->{cpqHeEventLogUpdateTime} = 0; - } else { - eval { - $_->{cpqHeEventLogUpdateTime} = timelocal(0, $min, $hour, $day, $month - 1, $year); - }; - if ($@) { - $_->{cpqHeEventLogUpdateTime} = 0; - } - } - } elsif ($_->{cpqHeEventLogUpdateTime} =~ /^0x([0-9a-fA-F]{4})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/) { - my ($year, $month, $day, $hour, $min) = map { hex($_) } ($1, $2, $3, $4, $5); - if ($year == 0) { - $_->{cpqHeEventLogUpdateTime} = 0; - } else { - eval { - $_->{cpqHeEventLogUpdateTime} = timelocal(0, $min, $hour, $day, $month - 1, $year); - }; - if ($@) { - $_->{cpqHeEventLogUpdateTime} = 0; - } - } - } elsif ($_->{cpqHeEventLogUpdateTime} =~ /^\0\0\0\0\0\0/) { - $_->{cpqHeEventLogUpdateTime} = 0; - } - if ($_->{cpqHeEventLogErrorDesc} =~ /^(([0-9a-fA-F]{2})(\s+[0-9a-fA-F]{2})*)\s*$/) { - $_->{cpqHeEventLogErrorDesc} = join "", map { chr($_) } map { if (hex($_) > 127) { 20; } else { hex($_) } } split(/\s+/, $_->{cpqHeEventLogErrorDesc}); - } - push(@{$self->{events}}, - HP::Proliant::Component::EventSubsystem::Event->new(%{$_})); - } -} - -sub overall_check { - my $self = shift; - my $result = 0; - $self->blacklist('oe', ''); - if ($self->{eventsupp} && $self->{eventsupp} eq "supported") { - if ($self->{eventstatus} eq "ok") { - $result = 0; - $self->add_info('eventlog system is ok'); - } else { - $result = 0; - $self->add_info(sprintf "eventlog system is %s", $self->{eventstatus}); - } - } else { - $result = 0; - $self->add_info('no event status found'); - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,236 +0,0 @@ -package HP::Proliant::Component::EventSubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - events => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - boottime => 0, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - $self = HP::Proliant::Component::EventSubsystem::SNMP->new(%params); - my $sysUpTime = SNMP::Utils::get_object( - $self->{rawdata}, '1.3.6.1.2.1.1.3.0') || 3600*24*100; - $self->{boottime} = int(time - $sysUpTime / 100); - } elsif ($self->{method} eq 'cli') { - $self = HP::Proliant::Component::EventSubsystem::CLI->new(%params); - my $uptime = do { local (@ARGV, $/) = "/proc/uptime"; my $x = <>; close ARGV; $x }; - # also watch 10 minutes of booting before the operating system starts ticking - $self->{boottime} = time - int((split(/\s+/, $uptime))[0]) - 600; - } else { - die "unknown method"; - } - # repair dates - my $lasttime = 0; - for my $event (reverse @{$self->{events}}) { - if ($event->{cpqHeEventLogUpdateTime} != 0) { - $lasttime = $event->{cpqHeEventLogUpdateTime}; - } else { - $event->{cpqHeEventLogUpdateTime} = $lasttime; - } - } - # maybe the most recent events had zero timestamps. - # fill them up with timestamps from the past. - for my $event (@{$self->{events}}) { - if ($event->{cpqHeEventLogUpdateTime} != 0) { - $lasttime = $event->{cpqHeEventLogUpdateTime}; - } else { - $event->{cpqHeEventLogUpdateTime} = $lasttime; - } - } - # we need the boottime in the event's check method - for my $event (@{$self->{events}}) { - $event->{boottime} = $self->{boottime}; - } - return $self; -} - -sub check { - my $self = shift; - my $errorfound = 0; - $self->add_info('checking events'); - if (scalar (@{$self->{events}}) == 0) { - #$self->overall_check(); - $self->add_info('no events found'); - } else { - foreach (sort { $a->{cpqHeEventLogEntryNumber} <=> $b->{cpqHeEventLogEntryNumber}} - @{$self->{events}}) { - $_->check($self->{warningtime}, $self->{criticaltime}); - } - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{events}}) { - $_->dump(); - } -} - - -package HP::Proliant::Component::EventSubsystem::Event; -our @ISA = qw(HP::Proliant::Component::EventSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -{ - our $interesting_events = { - # POST Error: 201-Memory Error Multi-bit error occurred during memory initialization, Board 1, Bank B. Bank containing DIMM(s) has been disabled.. - # POST Error: 201-Memory Error Single-bit error occured during memory initialization, Board 1, DIMM 1. Bank containing DIMM(s) has been disabled.. - # POST Error: 207-Memory initialization error on Memory Board 5 DIMM 7. The operating system may not have access to all of the memory installed in the system.. - # POST Error: 207-Invalid Memory Configuration-Mismatched DIMMs within DIMM Bank Memory in Bank A Not Utilized.. - # POST Error: 210 - Quick Path Interconnect (QPI) Link Degradation. A QPI link is operating in a degraded performace state.. - 'POST Messages' => [ - '201-Memory', '207-Memory', - '210\s*-\s*Quick Path Interconnect.*degraded.*' - ], - 'Main Memory' => [ - 'Corrected Memory Error threshold exceeded', - 'Uncorrectable Memory Error', - ], - }; -} - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqHeEventLogEntryNumber => $params{cpqHeEventLogEntryNumber}, - cpqHeEventLogEntrySeverity => lc $params{cpqHeEventLogEntrySeverity}, - cpqHeEventLogEntryClass => $params{cpqHeEventLogEntryClass}, - cpqHeEventLogEntryCount => $params{cpqHeEventLogEntryCount} || 1, - cpqHeEventLogInitialTime => $params{cpqHeEventLogInitialTime}, - cpqHeEventLogUpdateTime => $params{cpqHeEventLogUpdateTime}, - cpqHeEventLogErrorDesc => $params{cpqHeEventLogErrorDesc}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - if (! $self->{cpqHeEventLogInitialTime}) { - $self->{cpqHeEventLogInitialTime} = $self->{cpqHeEventLogUpdateTime}; - } - # - # - #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - # |warn |crit |now - # - #<----- ignore -------><----- warning ------><---------- critical ---------> - # - # If we have --eventrange / - # Very young events are shown as critical - # If the event gets older, it is shown as warning - # At some time, the event is no longer shown - # Without --eventrange the event is shown as critical until you manually repair it - if ($params{runtime}->{options}->{eventrange}) { - my ($warningrange, $criticalrange) = split(/\//, $params{runtime}->{options}->{eventrange}); - if (! $criticalrange) { - $criticalrange = $warningrange; - } - if ($criticalrange =~ /^(\d+)[s]*$/) { - $criticalrange = $1; - } elsif ($criticalrange =~ /^(\d+)m$/) { - $criticalrange = $1 * 60; - } elsif ($criticalrange =~ /^(\d+)h$/) { - $criticalrange = $1 * 3600; - } elsif ($criticalrange =~ /^(\d+)d$/) { - $criticalrange = $1 * 3600 * 24; - } else { - die "range has to be [smhd]"; - } - if ($warningrange =~ /^(\d+)[s]*$/) { - $warningrange = $1; - } elsif ($warningrange =~ /^(\d+)m$/) { - $warningrange = $1 * 60; - } elsif ($warningrange =~ /^(\d+)h$/) { - $warningrange = $1 * 3600; - } elsif ($warningrange =~ /^(\d+)d$/) { - $warningrange = $1 * 3600 * 24; - } else { - die "range has to be [smhd]"; - } - $self->{warningtime} = time - $warningrange; - $self->{criticaltime} = time - $criticalrange; - } else { - $self->{warningtime} = 0; - $self->{criticaltime} = 0; - } - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('evt', $self->{cpqHeEventLogEntryNumber}); - # only check severity "critical" and "caution" - # optional: only check interesting events - # POST events only if they date maximum from reboot-5min - # younger than critical? -> critical - # - $self->add_info(sprintf "Event: %d Added: %s Class: (%s) %s %s", - $self->{cpqHeEventLogEntryNumber}, - $self->{cpqHeEventLogUpdateTime}, - $self->{cpqHeEventLogEntryClass}, - $self->{cpqHeEventLogEntrySeverity}, - $self->{cpqHeEventLogErrorDesc}); - if ($self->{cpqHeEventLogEntrySeverity} eq "caution" || - $self->{cpqHeEventLogEntrySeverity} eq "critical") { - # also watch 10 minutes of booting before the operating system starts ticking - if ($self->{cpqHeEventLogUpdateTime} >= $self->{boottime}) { - foreach my $class (keys %{$HP::Proliant::Component::EventSubsystem::Event::interesting_events}) { - foreach my $pattern (@{$HP::Proliant::Component::EventSubsystem::Event::interesting_events->{$class}}) { - if ($self->{cpqHeEventLogErrorDesc} =~ /$pattern/) { - if ($self->{cpqHeEventLogUpdateTime} < $self->{warningtime}) { - # you didn't care for this problem too long. - # don't say i didn't warn you. - if (0) { - # auto-ack? - } - last; - } elsif ($self->{cpqHeEventLogUpdateTime} < $self->{criticaltime}) { - $self->add_message(WARNING, $self->{info}); - last; - } else { - $self->add_message(CRITICAL, $self->{info}); - last; - } - } - } - } - } - } else { - # info, repair... - } -} - -sub dump { - my $self = shift; - printf "[EVENT_%s]\n", $self->{cpqHeEventLogEntryNumber}; - foreach (qw(cpqHeEventLogEntryNumber cpqHeEventLogEntrySeverity - cpqHeEventLogEntryCount cpqHeEventLogInitialTime - cpqHeEventLogUpdateTime cpqHeEventLogErrorDesc)) { - if ($_ =~ /.*Time$/) { - printf "%s: %s\n", $_, scalar localtime $self->{$_}; - } else { - printf "%s: %s\n", $_, $self->{$_}; - } - } - printf "info: %s\n\n", $self->{info}; -} - -1; - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,101 +0,0 @@ -package HP::Proliant::Component::FanSubsystem::CLI; -our @ISA = qw(HP::Proliant::Component::FanSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - fans => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -# partner not available = cpqHeFltTolFanRedundantPartner=0 -# cpqHeFltTolFanTypeValue = other -sub init { - my $self = shift; - my %params = @_; - my %tmpfan = (); - foreach (grep(/^fans/, split(/\n/, $self->{rawdata}))) { - s/^fans //g; - if (/^#(\d+)\s+([\w#_\/\-]+)\s+(\w+)\s+(\w+)\s+(FAILED|[N\/A\d]+)%*\s+([\w\/]+)\s+(FAILED|[N\/A\d]+)\s+(\w+)/) { - %tmpfan = ( - cpqHeFltTolFanIndex => $1, - cpqHeFltTolFanLocale => lc $2, - cpqHeFltTolFanPresent => lc $3, - cpqHeFltTolFanSpeed => lc $4, - cpqHeFltTolFanPctMax => lc $5, # (FAILED|[N\/A\d]+) - cpqHeFltTolFanRedundant => lc $6, - cpqHeFltTolFanRedundantPartner => lc $7, # (FAILED|[N\/A\d]+) - cpqHeFltTolFanHotPlug => lc $8, - ); - } elsif (/^#(\d+)\s+([\w#_\/\-]+?)(Yes|No|N\/A)\s+(\w+)\s+(FAILED|[N\/A\d]+)%*\s+([\w\/]+)\s+(FAILED|[N\/A\d]+)\s+(\w+)/) { - # #5 SCSI_BACKPLANE_ZONEYes NORMAL N/A .... - %tmpfan = ( - cpqHeFltTolFanIndex => $1, - cpqHeFltTolFanLocale => lc $2, - cpqHeFltTolFanPresent => lc $3, - cpqHeFltTolFanSpeed => lc $4, - cpqHeFltTolFanPctMax => lc $5, - cpqHeFltTolFanRedundant => lc $6, - cpqHeFltTolFanRedundantPartner => lc $7, - cpqHeFltTolFanHotPlug => lc $8, - ); - } elsif (/^#(\d+)\s+([\w#_\/\-]+)\s+[NOno]+\s/) { - # Fan is not installed. #2 CPU#2 No - - No N/A - - } elsif (/^#(\d+)/) { - main::contact_author("FAN", $_); - } - if (%tmpfan) { - $tmpfan{runtime} = $params{runtime}; - $tmpfan{cpqHeFltTolFanChassis} = 1; # geht aus hpasmcli nicht hervor - $tmpfan{cpqHeFltTolFanType} = 'other'; - if ($tmpfan{cpqHeFltTolFanPctMax} !~ /^\d+$/) { - if ($tmpfan{cpqHeFltTolFanSpeed} eq 'normal') { - $tmpfan{cpqHeFltTolFanPctMax} = 50; - } elsif ($tmpfan{cpqHeFltTolFanSpeed} eq 'high') { - $tmpfan{cpqHeFltTolFanPctMax} = 100; - } else { - $tmpfan{cpqHeFltTolFanPctMax} = 0; - } - } - if($tmpfan{cpqHeFltTolFanSpeed} eq 'failed') { - $tmpfan{cpqHeFltTolFanCondition} = 'failed'; - } elsif($tmpfan{cpqHeFltTolFanSpeed} eq 'n/a') { - $tmpfan{cpqHeFltTolFanCondition} = 'other'; - } else { - $tmpfan{cpqHeFltTolFanCondition} = 'ok'; - } - $tmpfan{cpqHeFltTolFanRedundant} = - $tmpfan{cpqHeFltTolFanRedundant} eq 'yes' ? 'redundant' : - $tmpfan{cpqHeFltTolFanRedundant} eq 'no' ? 'notRedundant' : 'other'; - $tmpfan{cpqHeFltTolFanPresent} = - $tmpfan{cpqHeFltTolFanPresent} eq 'yes' ? 'present' : - $tmpfan{cpqHeFltTolFanPresent} eq 'failed' ? 'present' : - $tmpfan{cpqHeFltTolFanPresent} eq 'no' ? 'absent' : 'other'; - $tmpfan{cpqHeFltTolFanHotPlug} = - $tmpfan{cpqHeFltTolFanHotPlug} eq 'yes' ? 'hotPluggable' : - $tmpfan{cpqHeFltTolFanHotPlug} eq 'no' ? 'nonHotPluggable' : 'other'; - push(@{$self->{fans}}, - HP::Proliant::Component::FanSubsystem::Fan->new(%tmpfan)); - %tmpfan = (); - } - } -} - -sub overall_check { - my $self = shift; - # nix. nur wegen der gleichheit mit snmp - return 0; -} -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,231 +0,0 @@ -package HP::Proliant::Component::FanSubsystem::SNMP; -our @ISA = qw(HP::Proliant::Component::FanSubsystem - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - fans => [], - he_fans => [], - th_fans => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->overall_init(%params); - $self->he_init(%params); - $self->te_init(%params); - $self->unite(); - return $self; -} - -sub overall_init { - my $self = shift; - my %params = @_; - my $snmpwalk = $params{rawdata}; - # overall - my $cpqHeThermalSystemFanStatus = '1.3.6.1.4.1.232.6.2.6.4.0'; - my $cpqHeThermalSystemFanStatusValue = { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }; - my $cpqHeThermalCpuFanStatus = '1.3.6.1.4.1.232.6.2.6.5.0'; - my $cpqHeThermalCpuFanStatusValue = { - 1 => 'other', - 2 => 'ok', - 4 => 'failed', # shutdown - }; - $self->{sysstatus} = SNMP::Utils::get_object_value( - $snmpwalk, $cpqHeThermalSystemFanStatus, - $cpqHeThermalSystemFanStatusValue); - $self->{cpustatus} = SNMP::Utils::get_object_value( - $snmpwalk, $cpqHeThermalCpuFanStatus, - $cpqHeThermalCpuFanStatusValue); - $self->{sysstatus} |= lc $self->{sysstatus}; - $self->{cpustatus} |= lc $self->{cpustatus}; -} - -sub te_init { - my $self = shift; - my %params = @_; - my $snmpwalk = $params{rawdata}; - my $ignore_redundancy = $params{ignore_redundancy}; - # cpqHeThermalFanTable - my $oids = { - cpqHeThermalFanEntry => '1.3.6.1.4.1.232.6.2.6.6.1', - cpqHeThermalFanIndex => '1.3.6.1.4.1.232.6.2.6.6.1.1', - cpqHeThermalFanRequired => '1.3.6.1.4.1.232.6.2.6.6.1.2', - cpqHeThermalFanPresent => '1.3.6.1.4.1.232.6.2.6.6.1.3', - cpqHeThermalFanCpuFan => '1.3.6.1.4.1.232.6.2.6.6.1.4', - cpqHeThermalFanStatus => '1.3.6.1.4.1.232.6.2.6.6.1.5', - cpqHeThermalFanHwLocation => '1.3.6.1.4.1.232.6.2.6.6.1.6', - cpqHeThermalFanRequiredValue => { - 1 => 'other', - 2 => 'nonRequired', - 3 => 'required', - }, - cpqHeThermalFanPresentValue => { - 1 => 'other', - 2 => 'absent', - 3 => 'present', - }, - cpqHeThermalFanCpuFanValue => { - 1 => 'other', - 2 => 'systemFan', - 3 => 'cpuFan', - }, - cpqHeThermalFanStatusValue => { - 1 => 'other', - 2 => 'ok', - 4 => 'failed', - }, - }; - # INDEX { cpqHeThermalFanIndex } - foreach ($self->get_entries($oids, 'cpqHeThermalFanEntry')) { - next if ! $_->{cpqHeThermalFanPresent}; - push(@{$self->{th_fans}}, - HP::Proliant::Component::FanSubsystem::Fan->new(%{$_})); - } -} - -sub he_init { - my $self = shift; - my %params = @_; - my $snmpwalk = $params{rawdata}; - my $ignore_redundancy = $params{ignore_redundancy}; - # cpqHeFltTolFanTable - my $oids = { - cpqHeFltTolFanEntry => '1.3.6.1.4.1.232.6.2.6.7.1', - cpqHeFltTolFanChassis => '1.3.6.1.4.1.232.6.2.6.7.1.1', - cpqHeFltTolFanIndex => '1.3.6.1.4.1.232.6.2.6.7.1.2', - cpqHeFltTolFanLocale => '1.3.6.1.4.1.232.6.2.6.7.1.3', - cpqHeFltTolFanPresent => '1.3.6.1.4.1.232.6.2.6.7.1.4', - cpqHeFltTolFanType => '1.3.6.1.4.1.232.6.2.6.7.1.5', - cpqHeFltTolFanSpeed => '1.3.6.1.4.1.232.6.2.6.7.1.6', - cpqHeFltTolFanRedundant => '1.3.6.1.4.1.232.6.2.6.7.1.7', - cpqHeFltTolFanRedundantPartner => '1.3.6.1.4.1.232.6.2.6.7.1.8', - cpqHeFltTolFanCondition => '1.3.6.1.4.1.232.6.2.6.7.1.9', - cpqHeFltTolFanHotPlug => '1.3.6.1.4.1.232.6.2.6.7.1.10', - cpqHeFltTolFanHwLocation => '1.3.6.1.4.1.232.6.2.6.7.1.11', - cpqHeFltTolFanCurrentSpeed => '1.3.6.1.4.1.232.6.2.6.7.1.12', - cpqHeFltTolFanLocaleValue => { - 1 => "other", - 2 => "unknown", - 3 => "system", - 4 => "systemBoard", - 5 => "ioBoard", - 6 => "cpu", - 7 => "memory", - 8 => "storage", - 9 => "removableMedia", - 10 => "powerSupply", - 11 => "ambient", - 12 => "chassis", - 13 => "bridgeCard", - }, - cpqHeFltTolFanPresentValue => { - 1 => "other", - 2 => "absent", - 3 => "present", - }, - cpqHeFltTolFanSpeedValue => { - 1 => "other", - 2 => "normal", - 3 => "high", - }, - cpqHeFltTolFanRedundantValue => { - 1 => "other", - 2 => "notRedundant", - 3 => "redundant", - }, - cpqHeFltTolFanTypeValue => { - 1 => "other", - 2 => "tachInput", - 3 => "spinDetect", - }, - cpqHeFltTolFanConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqHeFltTolFanHotPlugValue => { - 1 => "other", - 2 => "nonHotPluggable", - 3 => "hotPluggable", - }, - }; - # INDEX { cpqHeFltTolFanChassis, cpqHeFltTolFanIndex } - foreach ($self->get_entries($oids, 'cpqHeFltTolFanEntry')) { - next if ! defined $_->{cpqHeFltTolFanIndex}; - # z.b. USM65201WS hat nur solche fragmente. die werden erst gar nicht - # als fans akzeptiert. dafuer gibts dann die overall condition - # SNMPv2-SMI::enterprises.232.6.2.6.7.1.1.0.1 = INTEGER: 0 - # SNMPv2-SMI::enterprises.232.6.2.6.7.1.1.0.2 = INTEGER: 0 - $_->{cpqHeFltTolFanPctMax} = ($_->{cpqHeFltTolFanPresent} eq 'present') ? - 50 : 0; - push(@{$self->{he_fans}}, - HP::Proliant::Component::FanSubsystem::Fan->new(%{$_})); - } - -} - -sub unite { - my $self = shift; - my $tmpfans = {}; - foreach (@{$self->{he_fans}}) { - $tmpfans->{$_->{cpqHeFltTolFanIndex}} = $_; - } - foreach (@{$self->{he_fans}}) { - if (exists $tmpfans->{$_->{cpqHeFltTolFanRedundantPartner}}) { - $_->{partner} = $tmpfans->{$_->{cpqHeFltTolFanRedundantPartner}}; - } else { - $_->{partner} = undef; - } - } - @{$self->{fans}} = @{$self->{he_fans}}; -} - -sub overall_check { - my $self = shift; - my $result = 0; - $self->blacklist('ofs', ''); - if ($self->{sysstatus} && $self->{cpustatus}) { - if ($self->{sysstatus} eq 'degraded') { - $result = 1; - $self->add_message(WARNING, - sprintf 'system fan overall status is %s', $self->{sysstatus}); - } elsif ($self->{sysstatus} eq 'failed') { - $result = 2; - $self->add_message(CRITICAL, - sprintf 'system fan overall status is %s', $self->{sysstatus}); - } - if ($self->{cpustatus} eq 'degraded') { - $result = 1; - $self->add_message(WARNING, - sprintf 'cpu fan overall status is %s', $self->{cpustatus}); - } elsif ($self->{cpustatus} eq 'failed') { - $result = 2; - $self->add_message(CRITICAL, - sprintf 'cpu fan overall status is %s', $self->{cpustatus}); - } - $self->add_info(sprintf 'overall fan status: system=%s, cpu=%s', - $self->{sysstatus}, $self->{cpustatus}); - } else { - $result = 0; - $self->add_info('this system seems to be water-cooled. no fans found'); - } - return $result; -} - -1; - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/FanSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,262 +0,0 @@ -package HP::Proliant::Component::FanSubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; -################################## fan_redundancy ########## - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - fans => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - return HP::Proliant::Component::FanSubsystem::SNMP->new(%params); - } elsif ($self->{method} eq 'cli') { - return HP::Proliant::Component::FanSubsystem::CLI->new(%params); - } else { - die 'unknown method'; - } - return $self; -} - -sub check { - my $self = shift; - my $errorfound = 0; - $self->add_info('checking fans'); - $self->blacklist('ff', ''); - if (scalar (@{$self->{fans}}) == 0) { - $self->overall_check(); # sowas ist mir nur einmal untergekommen - # die maschine hatte alles in allem nur 2 oids (cpqHeFltTolFanChassis) - # SNMPv2-SMI::enterprises.232.6.2.6.7.1.1.0.1 = INTEGER: 0 - # SNMPv2-SMI::enterprises.232.6.2.6.7.1.1.0.2 = INTEGER: 0 - } else { - my $overallhealth = $self->overall_check(); - foreach (@{$self->{fans}}) { - $_->{overallhealth} = $overallhealth; - $_->check(); - } - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{fans}}) { - $_->dump(); - } -} - -sub get_fan_by_index { - my $self = shift; - my $index; - foreach (@{$self->{fans}}) { - return $_ if exists $_->{cpqHeFltTolFanIndex} && - $_->{cpqHeFltTolFanIndex} == $index; - } - return undef; -} - - -package HP::Proliant::Component::FanSubsystem::Fan; -our @ISA = qw(HP::Proliant::Component::FanSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - if (exists $params{cpqHeFltTolFanRedundant}) { - return HP::Proliant::Component::FanSubsystem::Fan::FTol->new(%params); - } else { - return HP::Proliant::Component::FanSubsystem::Fan::Thermal->new(%params); - } -} - - -package HP::Proliant::Component::FanSubsystem::Fan::FTol; -our @ISA = qw(HP::Proliant::Component::FanSubsystem::Fan); - - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqHeFltTolFanChassis => $params{cpqHeFltTolFanChassis}, - cpqHeFltTolFanIndex => $params{cpqHeFltTolFanIndex}, - cpqHeFltTolFanLocale => $params{cpqHeFltTolFanLocale}, - cpqHeFltTolFanPresent => $params{cpqHeFltTolFanPresent}, - cpqHeFltTolFanType => $params{cpqHeFltTolFanType}, - cpqHeFltTolFanSpeed => $params{cpqHeFltTolFanSpeed}, - cpqHeFltTolFanRedundant => $params{cpqHeFltTolFanRedundant}, - cpqHeFltTolFanRedundantPartner => $params{cpqHeFltTolFanRedundantPartner}, - cpqHeFltTolFanCondition => $params{cpqHeFltTolFanCondition}, - cpqHeFltTolFanPctMax => $params{cpqHeFltTolFanPctMax}, #!!! - cpqHeFltTolFanHotPlug => $params{cpqHeFltTolFanHotPlug}, #!!! - partner => $params{partner}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if (($self->{cpqHeFltTolFanRedundant} eq 'redundant') && - ((! defined $self->{cpqHeFltTolFanRedundantPartner}) || - (! $self->{cpqHeFltTolFanRedundantPartner}))) { - $self->{cpqHeFltTolFanRedundant} = 'notRedundant'; - # cpqHeFltTolFanRedundantPartner=0: partner not avail - } - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('f', $self->{cpqHeFltTolFanIndex}); - $self->add_info(sprintf 'fan %d is %s, speed is %s, pctmax is %s%%, '. - 'location is %s, redundance is %s, partner is %s', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanPresent}, - $self->{cpqHeFltTolFanSpeed}, $self->{cpqHeFltTolFanPctMax}, - $self->{cpqHeFltTolFanLocale}, $self->{cpqHeFltTolFanRedundant}, - $self->{cpqHeFltTolFanRedundantPartner}); - $self->add_extendedinfo(sprintf 'fan_%s=%d%%', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanPctMax}); - if ($self->{cpqHeFltTolFanPresent} eq 'present') { - if ($self->{cpqHeFltTolFanSpeed} eq 'high') { - $self->add_info(sprintf 'fan %d (%s) runs at high speed', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); - $self->add_message(CRITICAL, $self->{info}); - } elsif ($self->{cpqHeFltTolFanSpeed} ne 'normal') { - $self->add_info(sprintf 'fan %d (%s) needs attention', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); - $self->add_message(CRITICAL, $self->{info}); - } - if ($self->{cpqHeFltTolFanCondition} eq 'failed') { - $self->add_info(sprintf 'fan %d (%s) failed', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); - $self->add_message(CRITICAL, $self->{info}); - } elsif ($self->{cpqHeFltTolFanCondition} eq 'degraded') { - $self->add_info(sprintf 'fan %d (%s) degraded', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); - $self->add_message(WARNING, $self->{info}); - } elsif ($self->{cpqHeFltTolFanCondition} ne 'ok') { - $self->add_info(sprintf 'fan %d (%s) is not ok', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); - $self->add_message(WARNING, $self->{info}); - } - if ($self->{cpqHeFltTolFanRedundant} eq 'notRedundant') { - # sieht so aus, als waere notRedundant und partner=0 normal z.b. dl360 - # das duerfte der fall sein, wenn nur eine cpu verbaut wurde und - # statt einem redundanten paar nur dummies drinstecken. - # "This specifies if the fan is in a redundant configuration" - # notRedundant heisst also sowohl nicht redundant wegen ausfall - # des partners als auch von haus aus nicht redundant ausgelegt - if ($self->{cpqHeFltTolFanRedundantPartner}) { - # nicht redundant, hat aber einen partner. da muss man genauer - # hinschauen - #if (my $partner = $self->{partner}) { - #} - if ($self->{overallhealth}) { - # da ist sogar das system der meinung, dass etwas faul ist - if (! $self->{runtime}->{options}->{ignore_fan_redundancy}) { - $self->add_info(sprintf 'fan %d (%s) is not redundant', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); - $self->add_message(WARNING, $self->{info}); - } - } else { - # das ist wohl so gewollt, dass einzelne fans eingebaut werden, - # obwohl redundante paerchen vorgesehen sind. - # scheint davon abzuhaengen, wieviele cpus geordert wurden. - } - } - } elsif ($self->{cpqHeFltTolFanRedundant} eq 'other') { - #seen on a dl320 g5p with bios from 2008. - # maybe redundancy is not supported at all - } - } elsif ($self->{cpqHeFltTolFanPresent} eq 'failed') { # from cli - $self->add_info(sprintf 'fan %d (%s) failed', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); - $self->add_message(CRITICAL, $self->{info}); - } elsif ($self->{cpqHeFltTolFanPresent} eq 'absent') { - $self->add_info(sprintf 'fan %d (%s) needs attention (is absent)', - $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); - # weiss nicht, ob absent auch kaputt bedeuten kann - # wenn nicht, dann wuerde man sich hier dumm und daemlich blacklisten - #$self->add_message(CRITICAL, $self->{info}); - $self->add_message(WARNING, $self->{info}) if $self->{overallhealth}; - } - if ($self->{runtime}->{options}->{perfdata}) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('fan_%s', $self->{cpqHeFltTolFanIndex}), - value => $self->{cpqHeFltTolFanPctMax}, - uom => '%', - ); - } -} - -sub dump { - my $self = shift; - printf "[FAN_%s]\n", $self->{cpqHeFltTolFanIndex}; - foreach (qw(cpqHeFltTolFanChassis cpqHeFltTolFanIndex cpqHeFltTolFanLocale - cpqHeFltTolFanPresent cpqHeFltTolFanType cpqHeFltTolFanSpeed - cpqHeFltTolFanRedundant cpqHeFltTolFanRedundantPartner - cpqHeFltTolFanCondition cpqHeFltTolFanHotPlug)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n", $self->{info}; - printf "\n"; -} - - -package HP::Proliant::Component::FanSubsystem::Fan::Thermal; -our @ISA = qw(HP::Proliant::Component::FanSubsystem::Fan); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqHeThermalFanIndex => $params{cpqHeThermalFanIndex}, - cpqHeThermalFanRequired => $params{cpqHeThermalFanRequired}, - cpqHeThermalFanPresent => $params{cpqHeThermalFanPresent}, - cpqHeThermalFanCpuFan => $params{cpqHeThermalFanCpuFan}, - cpqHeThermalFanStatus => $params{cpqHeThermalFanStatus}, - cpqHeThermalFanHwLocation => $params{cpqHeThermalFanHwLocation}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; -} - -sub dump { - my $self = shift; - printf "[FAN_%s]\n", $self->{cpqHeThermalFanIndex}; - foreach (qw(cpqHeThermalFanIndex cpqHeThermalFanRequired - cpqHeThermalFanPresent cpqHeThermalFanCpuFan cpqHeThermalFanStatus - cpqHeThermalFanHwLocation)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n", $self->{info}; - printf "\n"; -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,87 +0,0 @@ -package HP::Proliant::Component::MemorySubsystem::CLI; -our @ISA = qw(HP::Proliant::Component::MemorySubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - dimms => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - $self->{dimms} = []; - my %tmpdimm = ( - runtime => $params{runtime}, - ); - my $inblock = 0; - foreach (grep(/^dimm/, split(/\n/, $self->{rawdata}))) { - s/^dimm\s*$//g; - if (/Cartridge #:\s+(\d+)/ || /Processor #:\s+(\d+)/) { - # neuerdings (g6) tauchen hier prozessor- statt cartridge-angaben auf - $tmpdimm{cartridge} = $1; - $tmpdimm{board} = $1; - $inblock = 1; - } elsif (/Module #:\s+(\d+)/) { - $tmpdimm{module} = $1; - } elsif (/Present:\s+(\w+)/) { - $tmpdimm{status} = lc $1 eq 'yes' ? 'present' : - lc $1 eq 'no' ? 'notPresent' : 'other'; - } elsif (/Status:\s+(.+?)\s*$/) { - $tmpdimm{condition} = lc $1 =~ /degraded/ ? 'degraded' : - lc $1 eq 'ok' ? 'ok' : lc $1 =~ /n\/a/ ? 'n/a' : 'other'; - } elsif (/Size:\s+(\d+)\s*(.+?)\s*$/) { - $tmpdimm{size} = $1 * (lc $2 eq 'mb' ? 1024*1024 : - lc $2 eq 'gb' ? 1024*1024*1024 : 1); - } elsif (/^\s*$/) { - if ($inblock) { - $inblock = 0; - push(@{$self->{dimms}}, - HP::Proliant::Component::MemorySubsystem::Dimm->new(%tmpdimm)); - %tmpdimm = ( - runtime => $params{runtime}, - ); - } - } elsif (/(\d+)\s+(\d+)\s+(\w+)\s+(0x\w+)\s+(0x\w+)\s+(\d+[MGT]B)\s+(\d+MHz)\s+(\w+)/) { - $tmpdimm{cartridge} = $1; - $tmpdimm{module} = $2; - $tmpdimm{status} = lc $3 eq 'yes' ? 'present' : - lc $3 eq 'no' ? 'notPresent' : 'other'; - my $formfactor = $4; - my $memorytype = $5; - my $memorysize = $6; - my $memoryspeed = $7; - $tmpdimm{condition} = lc $8 =~ /degraded/ ? 'degraded' : - lc $8 eq 'ok' ? 'ok' : lc $8 =~ /n\/a/ ? 'n/a' : 'other'; - $memorysize =~ /(\d+)([MGT]B)/; - $tmpdimm{size} = $1 * (lc $2 eq 'mb' ? 1024*1024 : - lc $2 eq 'gb' ? 1024*1024*1024 : 1); - push(@{$self->{dimms}}, - HP::Proliant::Component::MemorySubsystem::Dimm->new(%tmpdimm)); - } - } - if ($inblock) { - push(@{$self->{dimms}}, - HP::Proliant::Component::MemorySubsystem::Dimm->new(%tmpdimm)); - } -} - -sub is_faulty { - my $self = shift; - return 0; # cli hat so einen globalen status nicht -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,746 +0,0 @@ -package HP::Proliant::Component::MemorySubsystem::SNMP; -our @ISA = qw(HP::Proliant::Component::MemorySubsystem - HP::Proliant::Component::SNMP); - -use strict; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - dimms => [], - si_dimms => [], - he_dimms => [], - h2_dimms => [], - he_cartridges => [], - h2_cartridges => [], - si_overall_condition => undef, - he_overall_condition => undef, - h2_overall_condition => undef, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->si_init(); - $self->he_init(); - $self->he_cartridge_init(); - $self->h2_init(); - #$self->h2_cartridge_init(); - $self->condense(); - return $self; -} - -sub si_init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqSiMemModuleEntry => '1.3.6.1.4.1.232.2.2.4.5.1', - cpqSiMemBoardIndex => '1.3.6.1.4.1.232.2.2.4.5.1.1', - cpqSiMemModuleIndex => '1.3.6.1.4.1.232.2.2.4.5.1.2', - cpqSiMemModuleSize => '1.3.6.1.4.1.232.2.2.4.5.1.3', - cpqSiMemModuleType => '1.3.6.1.4.1.232.2.2.4.5.1.4', - cpqSiMemECCStatus => '1.3.6.1.4.1.232.2.2.4.5.1.11', - cpqSiMemModuleHwLocation => '1.3.6.1.4.1.232.2.2.4.5.1.12', - cpqSiMemModuleTypeValue => { - 1 => 'other', - 2 => 'board', - 3 => 'cpqSingleWidthModule', - 4 => 'cpqDoubleWidthModule', - 5 => 'simm', - 6 => 'pcmcia', - 7 => 'compaq-specific', - 8 => 'dimm', - 9 => 'smallOutlineDimm', - 10 => 'rimm', - 11 => 'srimm', - }, - cpqSiMemECCStatusValue => { - 0 => "n/a", - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "degradedModuleIndexUnknown", - 34 => 'n/a', # es ist zum kotzen... - 104 => 'n/a', - }, - }; - # INDEX { cpqSiMemBoardIndex, cpqSiMemModuleIndex } - foreach ($self->get_entries($oids, 'cpqSiMemModuleEntry')) { - $_->{cartridge} = $_->{cpqSiMemBoardIndex}; - $_->{module} = $_->{cpqSiMemModuleIndex}; - next if (! defined $_->{cartridge} || ! defined $_->{module}); - $_->{size} = $_->{cpqSiMemModuleSize}; - $_->{type} = $_->{cpqSiMemModuleType}; - $_->{condition} = $_->{cpqSiMemECCStatus}; - $_->{status} = ($_->{cpqSiMemModuleSize} > 0) ? 'present' : 'notPresent'; - push(@{$self->{si_dimms}}, - HP::Proliant::Component::MemorySubsystem::Dimm->new(%{$_}) - ); - } - my $cpqSiMemECCCondition = '1.3.6.1.4.1.232.2.2.4.15.0'; - my $cpqSiMemECCConditionValue = { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - }; - $self->{si_overall_condition} = SNMP::Utils::get_object_value( - $self->{rawdata}, $cpqSiMemECCCondition, - $cpqSiMemECCConditionValue); - $self->trace(2, sprintf 'overall si condition is %s', - $self->{si_overall_condition} || 'undefined'); -} - -sub he_init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqHeResMemModuleEntry => '1.3.6.1.4.1.232.6.2.14.11.1', - cpqHeResMemBoardIndex => '1.3.6.1.4.1.232.6.2.14.11.1.1', - cpqHeResMemModuleIndex => '1.3.6.1.4.1.232.6.2.14.11.1.2', - cpqHeResMemModuleStatus => '1.3.6.1.4.1.232.6.2.14.11.1.4', - cpqHeResMemModuleCondition => '1.3.6.1.4.1.232.6.2.14.11.1.5', - cpqHeResMemModuleStatusValue => { - 1 => "other", # unknown or could not be determined - 2 => "notPresent", # not present or un-initialized - 3 => "present", # present but not in use - 4 => "good", # present and in use. ecc threshold not exceeded - 5 => "add", # added but not yet in use - 6 => "upgrade", # upgraded but not yet in use - 7 => "missing", # expected but missing - 8 => "doesNotMatch", # does not match the other modules in the bank - 9 => "notSupported", # module not supported - 10 => "badConfig", # violates add/upgrade configuration - 11 => "degraded", # ecc exceeds threshold - }, - # condition = status of the correctable memory errors - cpqHeResMemModuleConditionValue => { - 0 => "n/a", # this appears only with buggy firmwares. - # (only 1 module shows up) - 1 => "other", - 2 => "ok", - 3 => "degraded", - }, - }; - my $tablesize = SNMP::Utils::get_size($snmpwalk, - $oids->{cpqHeResMemModuleEntry}); - # INDEX { cpqHeResMemBoardIndex, cpqHeResMemModuleIndex } - foreach ($self->get_entries($oids, 'cpqHeResMemModuleEntry')) { - $_->{cartridge} = $_->{cpqHeResMemBoardIndex}; - $_->{module} = $_->{cpqHeResMemModuleIndex}; - $_->{present} = $_->{cpqHeResMemModuleStatus}; - $_->{status} = $_->{cpqHeResMemModuleStatus}; - $_->{condition} = $_->{cpqHeResMemModuleCondition}; - if ((! defined $_->{module}) && ($_->{cartridge} == 0)) { - $_->{module} = $_->{index2}; # auf dem systemboard verbaut - } - - push(@{$self->{he_dimms}}, - HP::Proliant::Component::MemorySubsystem::Dimm->new(%{$_}) - ) unless (! defined $_->{cartridge} || ! defined $_->{module} || - $tablesize == 1); - } - my $cpqHeResilientMemCondition = '1.3.6.1.4.1.232.6.2.14.4.0'; - my $cpqHeResilientMemConditionValue = { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - }; - $self->{he_overall_condition} = SNMP::Utils::get_object_value( - $self->{rawdata}, $cpqHeResilientMemCondition, - $cpqHeResilientMemConditionValue); - $self->trace(2, sprintf 'overall he condition is %s', - $self->{hei_overall_condition} || 'undefined'); -} - -sub he_cartridge_init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqHeResMemBoardEntry => '1.3.6.1.4.1.232.6.2.14.10.1', - cpqHeResMemBoardSlotIndex => '1.3.6.1.4.1.232.6.2.14.10.1.1', - cpqHeResMemBoardOnlineStatus => '1.3.6.1.4.1.232.6.2.14.10.1.2', - cpqHeResMemBoardErrorStatus => '1.3.6.1.4.1.232.6.2.14.10.1.3', - cpqHeResMemBoardNumSockets => '1.3.6.1.4.1.232.6.2.14.10.1.5', - cpqHeResMemBoardOsMemSize => '1.3.6.1.4.1.232.6.2.14.10.1.6', - cpqHeResMemBoardTotalMemSize => '1.3.6.1.4.1.232.6.2.14.10.1.7', - cpqHeResMemBoardCondition => '1.3.6.1.4.1.232.6.2.14.10.1.8', - # onlinestatus - cpqHeResMemBoardOnlineStatusValue => { - 0 => "n/a", # this appears only with buggy firmwares. - # (only 1 module shows up) - 1 => "other", - 2 => "present", - 3 => "absent", - }, - cpqHeResMemBoardErrorStatusValue => { - 1 => "other", # - 2 => "noError", # - 3 => "dimmEccError", # - 4 => "unlockError", # - 5 => "configError", # - 6 => "busError", # - 7 => "powerError", # - }, - # condition = status of the correctable memory errors - cpqHeResMemBoardConditionValue => { - 0 => "n/a", # this appears only with buggy firmwares. - # (only 1 module shows up) - 1 => "other", - 2 => "ok", - 3 => "degraded", - }, - }; - my $tablesize = SNMP::Utils::get_size($snmpwalk, - $oids->{cpqHeResMemBoardEntry}); - # INDEX { cpqHeResMemBoardIndex, cpqHeResMemBoardIndex } - foreach ($self->get_entries($oids, 'cpqHeResMemBoardEntry')) { - push(@{$self->{he_cartridges}}, - HP::Proliant::Component::MemorySubsystem::Cartridge->new(%{$_}) - ) unless (! defined $_->{cpqHeResMemBoardSlotIndex} || $tablesize == 1); - } -} - -sub h2_init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqHeResMem2ModuleEntry => '1.3.6.1.4.1.232.6.2.14.13.1', - cpqHeResMem2BoardNum => '1.3.6.1.4.1.232.6.2.14.13.1.2', - cpqHeResMem2ModuleNum => '1.3.6.1.4.1.232.6.2.14.13.1.5', - cpqHeResMem2ModuleStatus => '1.3.6.1.4.1.232.6.2.14.13.1.19', - cpqHeResMem2ModuleCondition => '1.3.6.1.4.1.232.6.2.14.13.1.20', - cpqHeResMem2ModuleSize => '1.3.6.1.4.1.232.6.2.14.13.1.6', - - cpqHeResMem2ModuleStatusValue => { - 1 => "other", # unknown or could not be determined - 2 => "notPresent", # not present or un-initialized - 3 => "present", # present but not in use - 4 => "good", # present and in use. ecc threshold not exceeded - 5 => "add", # added but not yet in use - 6 => "upgrade", # upgraded but not yet in use - 7 => "missing", # expected but missing - 8 => "doesNotMatch", # does not match the other modules in the bank - 9 => "notSupported", # module not supported - 10 => "badConfig", # violates add/upgrade configuration - 11 => "degraded", # ecc exceeds threshold - }, - # condition = status of the correctable memory errors - cpqHeResMem2ModuleConditionValue => { - 0 => "n/a", # this appears only with buggy firmwares. - # (only 1 module shows up) - 1 => "other", - 2 => "ok", - 3 => "degraded", - }, - }; - # INDEX { cpqHeResMem2ModuleNum } - my $lastboard = 0; - my $lastmodule = 0; - my $myboard= 0; - my $hpboard = 0; - foreach (sort { $a->{index1} <=> $b->{index1} } - $self->get_entries($oids, 'cpqHeResMem2ModuleEntry')) { - $hpboard = $_->{cpqHeResMem2BoardNum}; - # dass hier faelschlicherweise 0 zurueckkommt, wundert mich schon - # gar nicht mehr - $_->{module} = $_->{cpqHeResMem2ModuleNum}; - if ($_->{module} < $lastmodule) { - # sieht so aus, als haette man es mit einem neuen board zu tun - # da hp zu bloed ist, selber hochzuzaehlen, muss ich das tun - $myboard++; - } - $lastmodule = $_->{cpqHeResMem2ModuleNum}; - $_->{cartridge} = ($myboard != $hpboard) ? $myboard : $hpboard; - $_->{present} = $_->{cpqHeResMem2ModuleStatus}; - $_->{status} = $_->{cpqHeResMem2ModuleStatus}; - $_->{condition} = $_->{cpqHeResMem2ModuleCondition}; - $_->{size} = $_->{cpqHeResMem2ModuleSize}; - push(@{$self->{h2_dimms}}, - HP::Proliant::Component::MemorySubsystem::Dimm->new(%{$_}) - ) unless (! defined $_->{cpqHeResMem2BoardNum} || - ! defined $_->{cpqHeResMem2ModuleNum}); - } -} - -sub h2_cartridge_init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqHeResMem2BoardEntry => '1.3.6.1.4.1.232.6.2.14.12.1', - cpqHeResMem2BoardIndex => '1.3.6.1.4.1.232.6.2.14.12.1.1', - cpqHeResMem2BoardOnlineStatus => '1.3.6.1.4.1.232.6.2.14.12.1.5', - cpqHeResMem2BoardErrorStatus => '1.3.6.1.4.1.232.6.2.14.12.1.6', - cpqHeResMem2BoardNumSockets => '1.3.6.1.4.1.232.6.2.14.12.1.8', - cpqHeResMem2BoardOsMemSize => '1.3.6.1.4.1.232.6.2.14.12.1.9', - cpqHeResMem2BoardTotalMemSize => '1.3.6.1.4.1.232.6.2.14.12.1.10', - cpqHeResMem2BoardCondition => '1.3.6.1.4.1.232.6.2.14.12.1.11', - # onlinestatus - cpqHeResMem2BoardOnlineStatusValue => { - 0 => "n/a", # this appears only with buggy firmwares. - # (only 1 module shows up) - 1 => "other", - 2 => "present", - 3 => "absent", - }, - cpqHeResMem2BoardErrorStatusValue => { - 1 => "other", # - 2 => "noError", # - 3 => "dimmEccError", # - 4 => "unlockError", # - 5 => "configError", # - 6 => "busError", # - 7 => "powerError", # - }, - # condition = status of the correctable memory errors - cpqHeResMem2BoardConditionValue => { - 0 => "n/a", # this appears only with buggy firmwares. - # (only 1 module shows up) - 1 => "other", - 2 => "ok", - 3 => "degraded", - }, - }; - my $tablesize = SNMP::Utils::get_size($snmpwalk, - $oids->{cpqHeResMemBoardEntry}); - # INDEX { cpqHeResMem2BoardIndex, cpqHeResMem2BoardIndex } - foreach ($self->get_entries($oids, 'cpqHeResMem2BoardEntry')) { - push(@{$self->{h2_cartridges}}, - HP::Proliant::Component::MemorySubsystem::Cartridge->new(%{$_}) - ) unless (! defined $_->{cpqHeRes2MemBoardIndex} || $tablesize == 1); - } -} - -sub condense { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - # wenn saemtliche dimms n/a sind - # wenn ignore dimms: ignoring %d dimms with status 'n/a' - # wenn buggyfirmware: ignoring %d dimms with status 'n/a' because of buggy firmware - # if buggy firmware : condition n/a ist normal - # ignore-dimms : - # es gibt si_dimms und he_dimms - my $si_dimms = scalar(@{$self->{si_dimms}}); - my $he_dimms = scalar(@{$self->{he_dimms}}); - my $h2_dimms = scalar(@{$self->{h2_dimms}}); - $self->trace(2, sprintf "SI: %02d HE: %02d H2: %02d", - $si_dimms, $he_dimms, $h2_dimms) - if ($self->{runtime}->{options}->{verbose} >= 2); - foreach ($self->get_si_boards()) { - printf "SI%02d-> ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); - foreach ($self->get_si_modules($_)) { - printf "%02d ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); - } - printf "\n" if ($self->{runtime}->{options}->{verbose} >= 2); - } - foreach ($self->get_he_boards()) { - printf "HE%02d-> ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); - foreach ($self->get_he_modules($_)) { - printf "%02d ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); - } - printf "\n" if ($self->{runtime}->{options}->{verbose} >= 2); - } - foreach ($self->get_h2_boards()) { - printf "H2%02d-> ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); - foreach ($self->get_h2_modules($_)) { - printf "%02d ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); - } - printf "\n" if ($self->{runtime}->{options}->{verbose} >= 2); - } - if (($h2_dimms == 0) && ($he_dimms == 0) && ($si_dimms > 0)) { - printf "TYP1 %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - @{$self->{dimms}} = $self->update_si_with_si(); - } elsif (($h2_dimms == 0) && ($he_dimms > 0) && ($si_dimms > 0)) { - printf "TYP2 %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - @{$self->{dimms}} = $self->update_si_with_he(); - } elsif (($h2_dimms == 0) && ($he_dimms > 0) && ($si_dimms == 0)) { - printf "TYP3 %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - @{$self->{dimms}} = $self->update_he_with_he(); - } elsif (($h2_dimms > 0) && ($he_dimms == 0) && ($si_dimms == 0)) { - printf "TYP4 %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - @{$self->{dimms}} = $self->update_h2_with_h2(); - } elsif (($h2_dimms > 0) && ($he_dimms > 0) && ($si_dimms == 0)) { - printf "TYP5 %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - @{$self->{dimms}} = $self->update_he_with_h2(); - } elsif (($h2_dimms > 0) && ($he_dimms == 0) && ($si_dimms > 0)) { - printf "TYP6 %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - @{$self->{dimms}} = $self->update_si_with_h2(); - } elsif (($h2_dimms > 0) && ($he_dimms > 0) && ($si_dimms > 0)) { - if ($h2_dimms > $si_dimms) { - printf "TYP7 %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - @{$self->{dimms}} = $self->update_he_with_h2(); - } else { - printf "TYP8 %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - @{$self->{dimms}} = $self->update_si_with_he(); - } - } else { - printf "TYPX %s\n", $self->{runtime}->{product} - if ($self->{runtime}->{options}->{verbose} >= 2); - } - my $all_dimms = scalar(@{$self->{dimms}}); - $self->trace(2, sprintf "ALL: %02d", $all_dimms); -} - -sub dump { - my $self = shift; - if ($self->{runtime}->{options}->{verbose} > 2) { - printf "[SI]\n"; - foreach (@{$self->{si_dimms}}) { - $_->dump(); - } - printf "[HE]\n"; - foreach (@{$self->{he_dimms}}) { - $_->dump(); - } - printf "[H2]\n"; - foreach (@{$self->{h2_dimms}}) { - $_->dump(); - } - } - $self->SUPER::dump(); -} - -sub update_si_with_si { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - my @dimms = (); - my $repaircondition = undef; - # wenn si keine statusinformationen liefert, dann besteht die chance - # dass ein undokumentiertes he-fragment vorliegt - # 1.3.6.1.4.1.232.6.2.14.11.1.1.0. - my $cpqHeResMemModuleEntry = "1.3.6.1.4.1.232.6.2.14.11.1"; - if (SNMP::Utils::get_size($snmpwalk, $cpqHeResMemModuleEntry) == 1) { - $repaircondition = lc SNMP::Utils::get_object( - $snmpwalk, $cpqHeResMemModuleEntry.'.1.0.'.scalar(@{$self->{si_dimms}})); - # repaircondition 0 (ok) biegt alles wieder gerade - } else { - # anderer versuch - if ($self->{si_overall_condition} && - $self->{si_overall_condition} eq 'ok') { - $repaircondition = 0; - } - } - foreach my $si_dimm (@{$self->{si_dimms}}) { - if (($si_dimm->{condition} eq 'n/a') || - ($si_dimm->{condition} eq 'other')) { - $si_dimm->{condition} = 'ok' if - (defined $repaircondition && $repaircondition == 0); - } - push(@dimms, - HP::Proliant::Component::MemorySubsystem::Dimm->new( - runtime => $si_dimm->{runtime}, - cartridge => $si_dimm->{cartridge}, - module => $si_dimm->{module}, - size => $si_dimm->{size}, - status => $si_dimm->{status}, - condition => $si_dimm->{condition}, - )); - } - return @dimms; -} - -sub update_si_with_he { - my $self = shift; - my @dimms = (); - my $first_si_cartridge = ($self->get_si_boards())[0]; - my $first_he_cartridge = ($self->get_he_boards())[0]; - my $offset = 0; - if (scalar(@{$self->{si_dimms}}) == scalar(@{$self->{he_dimms}})) { - # aufpassen! sowas kann vorkommen: si cartridge 0...6, he cartridge 1...7 - if ($first_si_cartridge != $first_he_cartridge) { - # README case 5 - $offset = $first_si_cartridge - $first_he_cartridge; - } - } elsif ((scalar(@{$self->{si_dimms}}) > 1) && - (scalar(@{$self->{he_dimms}}) == 1)) { - # siehe update_si_with_si. he-fragment - return $self->update_si_with_si(); - } else { - # z.b. 4 si notpresent, 4 si present, 4 he - } - foreach my $si_dimm (@{$self->{si_dimms}}) { - if (($si_dimm->{condition} eq 'n/a') || - ($si_dimm->{condition} eq 'other')) { - if (my $he_dimm = $self->get_he_module( - $si_dimm->{cartridge} - $offset, $si_dimm->{module})) { - # vielleicht hat he mehr ahnung - $si_dimm->{condition} = $he_dimm->{condition}; - if (($si_dimm->{condition} eq 'n/a') || - ($si_dimm->{condition} eq 'other')) { - # wenns immer noch kein brauchbares ergebnis gibt.... - if ($self->{he_overall_condition} && - $self->{he_overall_condition} eq 'ok') { - # wird schon stimmen... - $si_dimm->{condition} = 'ok'; - } else { - # ansonsten stellen wir uns dumm - $si_dimm->{status} = 'notPresent'; - } - } - } else { - # in dem fall zeigt si unbestueckte cartridges an - } - } - push(@dimms, - HP::Proliant::Component::MemorySubsystem::Dimm->new( - runtime => $si_dimm->{runtime}, - cartridge => $si_dimm->{cartridge}, - module => $si_dimm->{module}, - size => $si_dimm->{size}, - status => $si_dimm->{status}, - condition => $si_dimm->{condition}, - )); - } - return @dimms; -} - -sub update_he_with_he { - my $self = shift; - my @dimms = (); - foreach my $he_dimm (@{$self->{he_dimms}}) { - push(@dimms, - HP::Proliant::Component::MemorySubsystem::Dimm->new( - runtime => $he_dimm->{runtime}, - cartridge => $he_dimm->{cartridge}, - module => $he_dimm->{module}, - size => $he_dimm->{size}, - status => $he_dimm->{status}, - condition => $he_dimm->{condition}, - )); - } - return @dimms; -} - -sub update_si_with_h2 { - my $self = shift; - my @dimms = (); - my $first_si_cartridge = ($self->get_si_boards())[0]; - my $first_h2_cartridge = ($self->get_h2_boards())[0]; - my $offset = 0; - if (scalar(@{$self->{si_dimms}}) == scalar(@{$self->{h2_dimms}})) { - # aufpassen! sowas kann vorkommen: si cartridge 0...6, he cartridge 1...7 - if ($first_si_cartridge != $first_h2_cartridge) { - # README case 5 - $offset = $first_si_cartridge - $first_h2_cartridge; - } - } else { - # z.b. 4 si notpresent, 4 si present, 4 he - } - foreach my $si_dimm (@{$self->{si_dimms}}) { - if (($si_dimm->{condition} eq 'n/a') || - ($si_dimm->{condition} eq 'other')) { - if (my $h2_dimm = $self->get_h2_module( - $si_dimm->{cartridge} - $offset, $si_dimm->{module})) { - # vielleicht hat h2 mehr ahnung - $si_dimm->{condition} = $h2_dimm->{condition}; - if (1) { - # ist zwar da, aber irgendwie auskonfiguriert - $si_dimm->{status} = 'notPresent' if $h2_dimm->{status} eq 'other'; - } - } else { - # in dem fall zeigt si unbestueckte cartridges an - } - } - push(@dimms, - HP::Proliant::Component::MemorySubsystem::Dimm->new( - runtime => $si_dimm->{runtime}, - cartridge => $si_dimm->{cartridge}, - module => $si_dimm->{module}, - size => $si_dimm->{size}, - status => $si_dimm->{status}, - condition => $si_dimm->{condition}, - )); - } - return @dimms; -} - -sub update_he_with_h2 { - my $self = shift; - my @dimms = (); - my $first_he_cartridge = ($self->get_he_boards())[0]; - my $first_h2_cartridge = ($self->get_h2_boards())[0]; - my $offset = 0; - # auch hier koennte sowas u.u.vorkommen: he cartridge 0..6, h2 cartridge 1..7 - # ich habs zwar nie gesehen, aber wer weiss... - if ($first_h2_cartridge != $first_he_cartridge) { - $offset = $first_h2_cartridge - $first_he_cartridge; - } - foreach my $he_dimm (@{$self->{he_dimms}}) { - if (($he_dimm->{condition} eq 'n/a') || - ($he_dimm->{condition} eq 'other')) { - if (my $h2_dimm = $self->get_h2_module( - $he_dimm->{cartridge} + $offset, $he_dimm->{module})) { - # vielleicht hat h2 mehr ahnung - $he_dimm->{condition} = $h2_dimm->{condition}; - if (1) { - # ist zwar da, aber irgendwie auskonfiguriert - $he_dimm->{status} = 'notPresent' if $h2_dimm->{status} eq 'other'; - } - } else { - # in dem fall weiss he mehr als h2 - } - } - if ($he_dimm->{size} == 0) { - if (my $h2_dimm = $self->get_h2_module( - $he_dimm->{cartridge} + $offset, $he_dimm->{module})) { - $he_dimm->{size} = $h2_dimm->{size}; - # h2 beinhaltet eine size-oid - } - } - push(@dimms, - HP::Proliant::Component::MemorySubsystem::Dimm->new( - runtime => $he_dimm->{runtime}, - cartridge => $he_dimm->{cartridge}, - module => $he_dimm->{module}, - size => $he_dimm->{size}, - status => $he_dimm->{status}, - condition => $he_dimm->{condition}, - )); - } - return @dimms; -} - -sub update_h2_with_h2 { - my $self = shift; - my @dimms = (); - foreach my $h2_dimm (@{$self->{h2_dimms}}) { - push(@dimms, - HP::Proliant::Component::MemorySubsystem::Dimm->new( - runtime => $h2_dimm->{runtime}, - cartridge => $h2_dimm->{cartridge}, - module => $h2_dimm->{module}, - size => $h2_dimm->{size}, - status => $h2_dimm->{status}, - condition => $h2_dimm->{condition}, - )); - } - return @dimms; -} - -sub is_faulty { - my $self = shift; - if (scalar(@{$self->{si_dimms}}) > 0 && - scalar(@{$self->{he_dimms}}) > 0) { - return $self->si_is_faulty() || $self->he_is_faulty(); - } elsif (scalar(@{$self->{si_dimms}}) > 0 && - scalar(@{$self->{he_dimms}}) == 0) { - return $self->si_is_faulty(); - } elsif (scalar(@{$self->{si_dimms}}) == 0 && - scalar(@{$self->{he_dimms}}) > 0) { - return $self->he_is_faulty(); - } else { - return 0; - } -} - -sub si_is_faulty { - my $self = shift; - return ! defined $self->{si_overall_condition} ? 0 : - $self->{si_overall_condition} eq 'degraded' ? 1 : 0; -} - -sub si_is_ok { - my $self = shift; - return ! defined $self->{si_overall_condition} ? 1 : - $self->{si_overall_condition} eq 'ok' ? 1 : 0; -} - -sub he_is_faulty { - my $self = shift; - return ! defined $self->{he_overall_condition} ? 0 : - $self->{he_overall_condition} eq 'degraded' ? 1 : 0; -} - -sub he_is_ok { - my $self = shift; - return ! defined $self->{he_overall_condition} ? 1 : - $self->{he_overall_condition} eq 'ok' ? 1 : 0; -} - -sub get_si_boards { - my $self = shift; - my %found = (); - foreach (@{$self->{si_dimms}}) { - $found{$_->{cartridge}} = 1; - } - return sort { $a <=> $b } keys %found; -} - -sub get_si_modules { - my $self = shift; - my $board = shift; - my %found = (); - foreach (grep { $_->{cartridge} == $board } @{$self->{si_dimms}}) { - $found{$_->{module}} = 1; - } - return sort { $a <=> $b } keys %found; -} - -sub get_he_boards { - my $self = shift; - my %found = (); - foreach (@{$self->{he_dimms}}) { - $found{$_->{cartridge}} = 1; - } - return sort { $a <=> $b } keys %found; -} - -sub get_he_modules { - my $self = shift; - my $board = shift; - my %found = (); - foreach (grep { $_->{cartridge} == $board } @{$self->{he_dimms}}) { - $found{$_->{module}} = 1; - } - return sort { $a <=> $b } keys %found; -} - -sub get_he_module { - my $self = shift; - my $board = shift; - my $module = shift; - my $found = (grep { $_->{cartridge} == $board && $_->{module} == $module } - @{$self->{he_dimms}})[0]; - return $found; -} - -sub get_h2_boards { - my $self = shift; - my %found = (); - # - foreach (@{$self->{h2_dimms}}) { - $found{$_->{cartridge}} = 1; - } - return sort { $a <=> $b } keys %found; -} - -sub get_h2_modules { - my $self = shift; - my $board = shift; - my %found = (); - foreach (grep { $_->{cartridge} == $board } @{$self->{h2_dimms}}) { - $found{$_->{module}} = 1; - } - return sort { $a <=> $b } keys %found; -} - -sub get_h2_module { - my $self = shift; - my $board = shift; - my $module = shift; - my $found = (grep { $_->{cartridge} == $board && $_->{module} == $module } - @{$self->{h2_dimms}})[0]; - return $found; -} - - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,197 +0,0 @@ -package HP::Proliant::Component::MemorySubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - dimms => [], - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - return HP::Proliant::Component::MemorySubsystem::SNMP->new(%params); - } elsif ($self->{method} eq 'cli') { - return HP::Proliant::Component::MemorySubsystem::CLI->new(%params); - } else { - die "unknown method"; - } -} - -sub check { - my $self = shift; - my $errorfound = 0; - $self->add_info('checking memory'); - foreach (@{$self->{dimms}}) { - $_->check(); # info ausfuellen - } - if ((scalar(grep { - $_->is_present() && - ($_->{condition} ne 'n/a' && $_->{condition} ne 'other' ) - } @{$self->{dimms}})) != 0) { - foreach (@{$self->{dimms}}) { - if (($_->is_present()) && ($_->{condition} ne 'ok')) { - $_->add_message(CRITICAL, $_->{info}); - $errorfound++; - } - } - } else { - if ($self->{runtime}->{options}->{ignore_dimms}) { - $self->add_message(OK, - sprintf "ignoring %d dimms with status 'n/a' ", - scalar(grep { ($_->is_present()) } @{$self->{dimms}})); - } elsif ($self->{runtime}->{options}->{buggy_firmware}) { - $self->add_message(OK, - sprintf "ignoring %d dimms with status 'n/a' because of buggy firmware", - scalar(grep { ($_->is_present()) } @{$self->{dimms}})); - } else { - $self->add_message(WARNING, - sprintf "status of all %d dimms is n/a (please upgrade firmware)", - scalar(grep { $_->is_present() } @{$self->{dimms}})); - $errorfound++; - } - } - foreach (@{$self->{dimms}}) { - printf "%s\n", $_->{info} if $self->{runtime}->{options}->{verbose} >= 2; - } - if (! $errorfound && $self->is_faulty()) { - #if ($self->is_faulty()) { - $self->add_message(WARNING, - sprintf 'overall memory error found'); - } -} - -sub dump { - my $self = shift; - printf "i dump the memory\n"; - foreach (@{$self->{dimms}}) { - $_->dump(); - } -} - -package HP::Proliant::Component::MemorySubsystem::Dimm; -our @ISA = qw(HP::Proliant::Component::MemorySubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cartridge => $params{cartridge}, - module => $params{module}, - size => $params{size} || 0, - status => $params{status}, - condition => $params{condition}, - type => $params{type}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->{name} = sprintf '%s:%s', - $self->{cartridge}, $self->{module}; - $self->{location} = sprintf 'module %s @ cartridge %s', - $self->{module}, $self->{cartridge}; - return $self; -} - -sub check { - my $self = shift; - # check dient nur dazu, info und extended_info zu füllen - # die eigentliche bewertung findet eins höher statt - $self->blacklist('d', $self->{name}); - if (($self->{status} eq 'present') || ($self->{status} eq 'good')) { - if ($self->{condition} eq 'other') { - $self->add_info(sprintf 'dimm %s (%s) is n/a', - $self->{name}, $self->{location}); - } elsif ($self->{condition} ne 'ok') { - $self->add_info( - sprintf "dimm module %s (%s) needs attention (%s)", - $self->{name}, $self->{location}, $self->{condition}); - } else { - $self->add_info(sprintf 'dimm module %s (%s) is %s', - $self->{name}, $self->{location}, $self->{condition}); - } - } elsif ($self->{status} eq 'notPresent') { - $self->add_info(sprintf 'dimm module %s (%s) is not present', - $self->{name}, $self->{location}); - } else { - $self->add_info( - sprintf "dimm module %s (%s) needs attention (%s)", - $self->{name}, $self->{location}, $self->{condition}); - } -} - -sub is_present { - my $self = shift; - my @signs_of_presence = (qw(present good add upgraded doesnotmatch - notsupported badconfig degraded)); - return scalar(grep { $self->{status} eq $_ } @signs_of_presence); -} - - -sub dump { - my $self = shift; - #printf "[DIMM_%s_%s]\n", $self->{cartridge}, $self->{module}; - #foreach (qw(cartridge module size status condition info)) { - # printf "%s: %s\n", $_, $self->{$_}; - #} - #printf "status: %s\n", $self->{status} if exists $self->{status}; - #printf "\n"; - printf "car %02d mod %02d siz %.0f sta %-12s con %-10s typ %s\n", - $self->{cartridge}, $self->{module}, $self->{size}, - $self->{status}, $self->{condition}, defined $self->{type} ? $self->{type} : ""; -} - - -package HP::Proliant::Component::MemorySubsystem::Cartridge; -our @ISA = qw(HP::Proliant::Component::MemorySubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - cpqHeResMemBoardSlotIndex => $params{cpqHeResMemBoardSlotIndex}, - cpqHeResMemBoardOnlineStatus => $params{cpqHeResMemBoardOnlineStatus}, - cpqHeResMemBoardErrorStatus => $params{cpqHeResMemBoardErrorStatus}, - cpqHeResMemBoardNumSockets => $params{cpqHeResMemBoardNumSockets}, - cpqHeResMemBoardOsMemSize => $params{cpqHeResMemBoardOsMemSize}, - cpqHeResMemBoardTotalMemSize => $params{cpqHeResMemBoardTotalMemSize}, - cpqHeResMemBoardCondition => $params{cpqHeResMemBoardCondition}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - return $self; -} - -sub dump { - my $self = shift; - #printf "[CARTRIDGE_%s_%s]\n", $self->{cpqHeResMemBoardSlotIndex}; - #foreach (qw(cpqHeResMemBoardSlotIndex cpqHeResMemBoardOnlineStatus - # cpqHeResMemBoardErrorStatus cpqHeResMemBoardNumSockets - # cpqHeResMemBoardOsMemSize cpqHeResMemBoardTotalMemSize - # cpqHeResMemBoardCondition)) { - # printf "%s: %s\n", $_, $self->{$_}; - #} - #printf "\n"; -} - - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,189 +0,0 @@ -package HP::Proliant::Component::NicSubsystem::SNMP; -our @ISA = qw(HP::Proliant::Component::NicSubsystem - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - logical_nics => [], - physical_nics => [], - }; - bless $self, $class; - $self->overall_init(%params); - $self->init(); - return $self; -} - -sub overall_init { - my $self = shift; - my %params = @_; - my $snmpwalk = $params{rawdata}; - # overall - my $cpqNicIfLogMapOverallCondition = '1.3.6.1.4.1.232.18.2.2.2.0'; - my $cpqNicIfLogMapOverallConditionValue = { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }; - $self->{lognicstatus} = lc SNMP::Utils::get_object_value( - $snmpwalk, $cpqNicIfLogMapOverallCondition, - $cpqNicIfLogMapOverallConditionValue); -} - -sub init { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - my $ifconnect = {}; - # CPQNIC-MIB - my $oids = { - cpqNicIfLogMapEntry => '1.3.6.1.4.1.232.18.2.2.1.1', - cpqNicIfLogMapIndex => '1.3.6.1.4.1.232.18.2.2.1.1.1', - cpqNicIfLogMapIfNumber => '1.3.6.1.4.1.232.18.2.2.1.1.2', - cpqNicIfLogMapDescription => '1.3.6.1.4.1.232.18.2.2.1.1.3', - cpqNicIfLogMapGroupType => '1.3.6.1.4.1.232.18.2.2.1.1.4', - cpqNicIfLogMapAdapterCount => '1.3.6.1.4.1.232.18.2.2.1.1.5', - cpqNicIfLogMapAdapterOKCount => '1.3.6.1.4.1.232.18.2.2.1.1.6', - cpqNicIfLogMapPhysicalAdapters => '1.3.6.1.4.1.232.18.2.2.1.1.7', - cpqNicIfLogMapMACAddress => '1.3.6.1.4.1.232.18.2.2.1.1.8', - cpqNicIfLogMapSwitchoverMode => '1.3.6.1.4.1.232.18.2.2.1.1.9', - cpqNicIfLogMapCondition => '1.3.6.1.4.1.232.18.2.2.1.1.10', - cpqNicIfLogMapStatus => '1.3.6.1.4.1.232.18.2.2.1.1.11', - cpqNicIfLogMapNumSwitchovers => '1.3.6.1.4.1.232.18.2.2.1.1.12', - cpqNicIfLogMapHwLocation => '1.3.6.1.4.1.232.18.2.2.1.1.13', - cpqNicIfLogMapSpeed => '1.3.6.1.4.1.232.18.2.2.1.1.14', - cpqNicIfLogMapVlanCount => '1.3.6.1.4.1.232.18.2.2.1.1.15', - cpqNicIfLogMapVlans => '1.3.6.1.4.1.232.18.2.2.1.1.16', - - cpqNicIfLogMapGroupTypeValue => { - 1 => "unknown", - 2 => "none", - 3 => "redundantPair", - 4 => "nft", - 5 => "alb", - 6 => "fec", - 7 => "gec", - 8 => "ad", - 9 => "slb", - 10 => "tlb", - 11 => "redundancySet", - }, - cpqNicIfLogMapConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqNicIfLogMapStatusValue => { - 1 => "unknown", - 2 => "ok", - 3 => "primaryFailed", - 4 => "standbyFailed", - 5 => "groupFailed", - 6 => "redundancyReduced", - 7 => "redundancyLost", - }, - cpqNicIfLogMapSwitchoverModeValue => { - 1 => "unknown", - 2 => "none", - 3 => "manual", - 4 => "switchOnFail", - 5 => "preferredPrimary", - }, - }; - - # INDEX { cpqNicIfLogMapIndex } - foreach ($self->get_entries($oids, 'cpqNicIfLogMapEntry')) { - push(@{$self->{logical_nics}}, - HP::Proliant::Component::NicSubsystem::LogicalNic->new(%{$_}) - ); - } - - $oids = { - cpqNicIfPhysAdapterEntry => '1.3.6.1.4.1.232.18.2.3.1.1', - cpqNicIfPhysAdapterIndex => '1.3.6.1.4.1.232.18.2.3.1.1.1', - cpqNicIfPhysAdapterIfNumber => '1.3.6.1.4.1.232.18.2.3.1.1.2', - cpqNicIfPhysAdapterRole => '1.3.6.1.4.1.232.18.2.3.1.1.3', - cpqNicIfPhysAdapterMACAddress => '1.3.6.1.4.1.232.18.2.3.1.1.4', - cpqNicIfPhysAdapterSlot => '1.3.6.1.4.1.232.18.2.3.1.1.5', - cpqNicIfPhysAdapterIoAddr => '1.3.6.1.4.1.232.18.2.3.1.1.6', - cpqNicIfPhysAdapterIrq => '1.3.6.1.4.1.232.18.2.3.1.1.7', - cpqNicIfPhysAdapterDma => '1.3.6.1.4.1.232.18.2.3.1.1.8', - cpqNicIfPhysAdapterMemAddr => '1.3.6.1.4.1.232.18.2.3.1.1.9', - cpqNicIfPhysAdapterPort => '1.3.6.1.4.1.232.18.2.3.1.1.10', - cpqNicIfPhysAdapterDuplexState => '1.3.6.1.4.1.232.18.2.3.1.1.11', - cpqNicIfPhysAdapterCondition => '1.3.6.1.4.1.232.18.2.3.1.1.12', - cpqNicIfPhysAdapterState => '1.3.6.1.4.1.232.18.2.3.1.1.13', - cpqNicIfPhysAdapterStatus => '1.3.6.1.4.1.232.18.2.3.1.1.14', - cpqNicIfPhysAdapterStatsValid => '1.3.6.1.4.1.232.18.2.3.1.1.15', - cpqNicIfPhysAdapterGoodTransmits => '1.3.6.1.4.1.232.18.2.3.1.1.16', - cpqNicIfPhysAdapterGoodReceives => '1.3.6.1.4.1.232.18.2.3.1.1.17', - cpqNicIfPhysAdapterBadTransmits => '1.3.6.1.4.1.232.18.2.3.1.1.18', - cpqNicIfPhysAdapterBadReceives => '1.3.6.1.4.1.232.18.2.3.1.1.19', - cpqNicIfPhysAdapterAlignmentErrors => '1.3.6.1.4.1.232.18.2.3.1.1.20', - cpqNicIfPhysAdapterFCSErrors => '1.3.6.1.4.1.232.18.2.3.1.1.21', - cpqNicIfPhysAdapterSingleCollisionFrames => '1.3.6.1.4.1.232.18.2.3.1.1.22', - cpqNicIfPhysAdapterMultipleCollisionFrames => '1.3.6.1.4.1.232.18.2.3.1.1.23', - cpqNicIfPhysAdapterDeferredTransmissions => '1.3.6.1.4.1.232.18.2.3.1.1.24', - cpqNicIfPhysAdapterLateCollisions => '1.3.6.1.4.1.232.18.2.3.1.1.25', - cpqNicIfPhysAdapterExcessiveCollisions => '1.3.6.1.4.1.232.18.2.3.1.1.26', - cpqNicIfPhysAdapterInternalMacTransmitErrors => '1.3.6.1.4.1.232.18.2.3.1.1.27', - cpqNicIfPhysAdapterCarrierSenseErrors => '1.3.6.1.4.1.232.18.2.3.1.1.28', - cpqNicIfPhysAdapterFrameTooLongs => '1.3.6.1.4.1.232.18.2.3.1.1.29', - cpqNicIfPhysAdapterInternalMacReceiveErrors => '1.3.6.1.4.1.232.18.2.3.1.1.30', - cpqNicIfPhysAdapterHwLocation => '1.3.6.1.4.1.232.18.2.3.1.1.31', - cpqNicIfPhysAdapterPartNumber => '1.3.6.1.4.1.232.18.2.3.1.1.32', - cpqNicIfPhysAdapterRoleValue => { - 1 => "unknown", - 2 => "primary", - 3 => "secondary", - 4 => "member", - 5 => "txRx", - 6 => "tx", - 7 => "standby", - 8 => "none", - 255 => "notApplicable", - }, - cpqNicIfPhysAdapterDuplexStateValue => { - 1 => "unknown", - 2 => "half", - 3 => "full", - }, - cpqNicIfPhysAdapterConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqNicIfPhysAdapterStateValue => { - 1 => "unknown", - 2 => "ok", - 3 => "standby", - 4 => "failed", - }, - cpqNicIfPhysAdapterStatusValue => { - 1 => "unknown", - 2 => "ok", - 3 => "generalFailure", - 4 => "linkFailure", - }, - - }; - # INDEX { cpqNicIfPhysAdapterIndex } - foreach ($self->get_entries($oids, 'cpqNicIfPhysAdapterEntry')) { - push(@{$self->{physical_nics}}, - HP::Proliant::Component::NicSubsystem::PhysicalNic->new(%{$_})); - } - -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/NicSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/NicSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/NicSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/NicSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,202 +0,0 @@ -package HP::Proliant::Component::NicSubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - logical_nics => [], - physical_nics => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - return HP::Proliant::Component::NicSubsystem::SNMP->new(%params); - } elsif ($self->{method} eq 'cli') { - return HP::Proliant::Component::NicSubsystem::CLI->new(%params); - } else { - die "unknown method"; - } - return $self; -} - -sub check { - my $self = shift; - my $errorfound = 0; - $self->add_info('checking nic teams'); - if (scalar (@{$self->{logical_nics}}) == 0) { - $self->add_info('no logical nics found'); - $self->overall_check(); - } else { - foreach (@{$self->{logical_nics}}) { - $_->check(); - } - } - if (scalar (@{$self->{physical_nics}}) == 0) { - $self->add_info('no physical nics found. do you connect with slip?'); - } else { - foreach (@{$self->{physical_nics}}) { - $_->check(); - } - } -} - -sub num_logical_nics { - my $self = shift; - return scalar @{$self->{logical_nics}}; -} - -sub num_physical_nics { - my $self = shift; - return scalar @{$self->{physical_nics}}; -} - -sub dump { - my $self = shift; - foreach (@{$self->{logical_nics}}) { - $_->dump(); - } - foreach (@{$self->{physical_nics}}) { - $_->dump(); - } -} - -sub overall_check { - my $self = shift; - if ($self->{lognicstatus} ne "ok") { - $self->add_info(sprintf 'overall logical nic status is %s', - $self->{lognicstatus}); - } -} - - -package HP::Proliant::Component::NicSubsystem::LogicalNic; -our @ISA = qw(HP::Proliant::Component::NicSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - foreach (qw(cpqNicIfLogMapIndex cpqNicIfLogMapIfNumber cpqNicIfLogMapDescription cpqNicIfLogMapGroupType cpqNicIfLogMapAdapterCount cpqNicIfLogMapAdapterOKCount cpqNicIfLogMapPhysicalAdapters cpqNicIfLogMapSwitchoverMode cpqNicIfLogMapCondition cpqNicIfLogMapStatus cpqNicIfLogMapNumSwitchovers cpqNicIfLogMapHwLocation cpqNicIfLogMapSpeed cpqNicIfLogMapVlanCount cpqNicIfLogMapVlans)) { - $self->{$_} = $params{$_}; - } - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('lni', $self->{cpqNicIfLogMapIndex}); - if ($self->{cpqNicIfLogMapAdapterCount} > 0) { - if ($self->{cpqNicIfLogMapCondition} eq "other") { - # simply ignore this. if there is a physical nic - # it is usually unknown/other/scheissegal - $self->add_info(sprintf "logical nic %d (%s) is %s", - $self->{cpqNicIfLogMapIndex}, $self->{cpqNicIfLogMapDescription}, - $self->{cpqNicIfLogMapCondition}); - } elsif ($self->{cpqNicIfLogMapCondition} ne "ok") { - $self->add_info(sprintf "logical nic %d (%s) is %s (%s)", - $self->{cpqNicIfLogMapIndex}, $self->{cpqNicIfLogMapDescription}, - $self->{cpqNicIfLogMapCondition}, $self->{cpqNicIfLogMapStatus}); - $self->add_message(CRITICAL, $self->{info}); - } else { - $self->add_info(sprintf "logical nic %d (%s) is %s", - $self->{cpqNicIfLogMapIndex}, $self->{cpqNicIfLogMapDescription}, - $self->{cpqNicIfLogMapCondition}); - } - } else { - $self->add_info(sprintf "logical nic %d (%s) has 0 physical nics", - $self->{cpqNicIfLogMapIndex}, $self->{cpqNicIfLogMapDescription}); - } -} - -sub dump { - my $self = shift; - printf "[LNIC_%s]\n", $self->{cpqNicIfLogMapIndex}; - foreach (qw(cpqNicIfLogMapIndex cpqNicIfLogMapIfNumber cpqNicIfLogMapDescription cpqNicIfLogMapAdapterCount cpqNicIfLogMapGroupType cpqNicIfLogMapSwitchoverMode cpqNicIfLogMapCondition cpqNicIfLogMapStatus cpqNicIfLogMapNumSwitchovers cpqNicIfLogMapHwLocation cpqNicIfLogMapSpeed)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n", $self->{info}; - printf "\n"; -} - - -package HP::Proliant::Component::NicSubsystem::PhysicalNic; -our @ISA = qw(HP::Proliant::Component::NicSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - foreach (qw(cpqNicIfPhysAdapterIndex cpqNicIfPhysAdapterIfNumber cpqNicIfPhysAdapterRole cpqNicIfPhysAdapterDuplexState cpqNicIfPhysAdapterCondition cpqNicIfPhysAdapterState cpqNicIfPhysAdapterStatus cpqNicIfPhysAdapterBadTransmits cpqNicIfPhysAdapterBadReceives)) { - $self->{$_} = $params{$_}; - } - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('pni', $self->{cpqNicIfPhysAdapterIndex}); - if ($self->{cpqNicIfPhysAdapterCondition} eq "other") { - # hp doesnt output a clear status. i am optimistic, unknown/other - # means "dont care" - $self->add_info(sprintf "physical nic %d (%s) is %s", - $self->{cpqNicIfPhysAdapterIndex}, $self->{cpqNicIfPhysAdapterRole}, - $self->{cpqNicIfPhysAdapterCondition}); - } elsif ($self->{cpqNicIfPhysAdapterCondition} ne "ok") { - $self->add_info(sprintf "physical nic %d (%s) is %s (%s,%s)", - $self->{cpqNicIfPhysAdapterIndex}, $self->{cpqNicIfPhysAdapterRole}, - $self->{cpqNicIfPhysAdapterCondition}, - $self->{cpqNicIfPhysAdapterState}, $self->{cpqNicIfPhysAdapterStatus}); - $self->add_message(CRITICAL, $self->{info}); - } else { - if ($self->{cpqNicIfPhysAdapterDuplexState} ne "full") { - $self->add_info(sprintf "physical nic %d (%s) is %s duplex", - $self->{cpqNicIfPhysAdapterIndex}, $self->{cpqNicIfPhysAdapterRole}, - $self->{cpqNicIfPhysAdapterDuplexState}); - } else { - $self->add_info(sprintf "physical nic %d (%s) is %s", - $self->{cpqNicIfPhysAdapterIndex}, $self->{cpqNicIfPhysAdapterRole}, - $self->{cpqNicIfPhysAdapterCondition}); - } - } -} - -sub dump { - my $self = shift; - printf "[PNIC_%s]\n", $self->{cpqNicIfPhysAdapterIndex}; - foreach (qw(cpqNicIfPhysAdapterIndex cpqNicIfPhysAdapterIfNumber cpqNicIfPhysAdapterRole cpqNicIfPhysAdapterDuplexState cpqNicIfPhysAdapterCondition cpqNicIfPhysAdapterState cpqNicIfPhysAdapterStatus cpqNicIfPhysAdapterBadTransmits cpqNicIfPhysAdapterBadReceives)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n", $self->{info}; - printf "\n"; -} - - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,81 +0,0 @@ -package HP::Proliant::Component::PowersupplySubsystem::CLI; -our @ISA = qw(HP::Proliant::Component::PowersupplySubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - powersupplies => [], - powerconverters => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - my %tmpps = ( - runtime => $self->{runtime}, - cpqHeFltTolPowerSupplyChassis => 1, - ); - my $inblock = 0; - foreach (grep(/^powersupply/, split(/\n/, $self->{rawdata}))) { - s/^powersupply\s*//g; - if (/^Power supply #(\d+)/) { - if ($inblock) { - $inblock = 0; - push(@{$self->{powersupplies}}, - HP::Proliant::Component::PowersupplySubsystem::Powersupply->new(%tmpps)); - %tmpps = ( - runtime => $self->{runtime}, - cpqHeFltTolPowerSupplyChassis => 1, - ); - } - $tmpps{cpqHeFltTolPowerSupplyBay} = $1; - $inblock = 1; - } elsif (/\s*Present\s+:\s+(\w+)/) { - $tmpps{cpqHeFltTolPowerSupplyPresent} = lc $1 eq 'yes' ? 'present' : - lc $1 eq 'no' ? 'absent': 'other'; - } elsif (/\s*Redundant\s*:\s+(\w+)/) { - $tmpps{cpqHeFltTolPowerSupplyRedundant} = lc $1 eq 'yes' ? 'redundant' : - lc $1 eq 'no' ? 'notRedundant' : 'other'; - } elsif (/\s*Condition\s*:\s+(\w+)/) { - $tmpps{cpqHeFltTolPowerSupplyCondition} = lc $1; - } elsif (/\s*Power\s*:\s+(\d+)/) { - $tmpps{cpqHeFltTolPowerSupplyCapacityUsed} = $1; - } elsif (/\s*Power Supply not present/) { - $tmpps{cpqHeFltTolPowerSupplyPresent} = "absent"; - $tmpps{cpqHeFltTolPowerSupplyCondition} = "other"; - $tmpps{cpqHeFltTolPowerSupplyRedundant} = "notRedundant"; - } elsif (/^\s*$/) { - if ($inblock) { - $inblock = 0; - push(@{$self->{powersupplies}}, - HP::Proliant::Component::PowersupplySubsystem::Powersupply->new(%tmpps)); - %tmpps = ( - runtime => $self->{runtime}, - cpqHeFltTolPowerSupplyChassis => 1, - ); - } - } - } - if ($inblock) { - push(@{$self->{powersupplies}}, - HP::Proliant::Component::PowersupplySubsystem::Powersupply->new(%tmpps)); - %tmpps = ( - runtime => $params{runtime}, - ); - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,96 +0,0 @@ -package HP::Proliant::Component::PowersupplySubsystem::SNMP; -our @ISA = qw(HP::Proliant::Component::PowersupplySubsystem - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - powersupplies => [], - powerconverters => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqHeFltTolPowerSupplyEntry => "1.3.6.1.4.1.232.6.2.9.3.1", - cpqHeFltTolPowerSupplyChassis => "1.3.6.1.4.1.232.6.2.9.3.1.1", - cpqHeFltTolPowerSupplyBay => "1.3.6.1.4.1.232.6.2.9.3.1.2", - cpqHeFltTolPowerSupplyPresent => "1.3.6.1.4.1.232.6.2.9.3.1.3", - cpqHeFltTolPowerSupplyCondition => "1.3.6.1.4.1.232.6.2.9.3.1.4", - cpqHeFltTolPowerSupplyRedundant => "1.3.6.1.4.1.232.6.2.9.3.1.9", - cpqHeFltTolPowerSupplyPresentValue => { - 1 => "other", - 2 => "absent", - 3 => "present", - }, - cpqHeFltTolPowerSupplyConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqHeFltTolPowerSupplyCapacityUsed => '1.3.6.1.4.1.232.6.2.9.3.1.7', - cpqHeFltTolPowerSupplyCapacityMaximum => '1.3.6.1.4.1.232.6.2.9.3.1.8', - cpqHeFltTolPowerSupplyRedundantValue => { - 1 => "other", - 2 => "notRedundant", - 3 => "redundant", - }, - }; - - # INDEX { cpqHeFltTolPowerSupplyChassis, cpqHeFltTolPowerSupplyBay } - foreach ($self->get_entries($oids, 'cpqHeFltTolPowerSupplyEntry')) { - push(@{$self->{powersupplies}}, - HP::Proliant::Component::PowersupplySubsystem::Powersupply->new(%{$_})); - } - - $oids = { - cpqHePowerConvEntry => "1.3.6.1.4.1.232.6.2.13.3.1", - cpqHePowerConvChassis => "1.3.6.1.4.1.232.6.2.13.3.1.1", - cpqHePowerConvIndex => "1.3.6.1.4.1.232.6.2.13.3.1.2", - cpqHePowerConvPresent => "1.3.6.1.4.1.232.6.2.13.3.1.3", - cpqHePowerConvRedundant => "1.3.6.1.4.1.232.6.2.13.3.1.6", - cpqHePowerConvCondition => "1.3.6.1.4.1.232.6.2.13.3.1.8", - cpqHePowerConvPresentValue => { - 1 => "other", - 2 => "absent", - 3 => "present", - }, - cpqHePowerConvRedundantValue => { - 1 => "other", - 2 => "notRedundant", - 3 => "redundant", - }, - cpqHePowerConvConditionValue => { - 1 => "other", - 2 => "ok", - 3 => "degraded", - 4 => "failed", - }, - cpqHePowerConvHwLocation => "1.3.6.1.4.1.232.6.2.13.3.1.9", - }; - - # INDEX { cpqHePowerConvChassis cpqHePowerConvIndex } - foreach ($self->get_entries($oids, 'cpqHePowerConvEntry')) { - push(@{$self->{powerconverters}}, - HP::Proliant::Component::PowersupplySubsystem::Powerconverter->new(%{$_})); - } - # keine ahnung, was man damit machen kann - -} - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,214 +0,0 @@ -package HP::Proliant::Component::PowersupplySubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - powersupplies => [], - powerconverters => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if ($self->{method} eq 'snmp') { - return HP::Proliant::Component::PowersupplySubsystem::SNMP->new(%params); - } elsif ($self->{method} eq 'cli') { - return HP::Proliant::Component::PowersupplySubsystem::CLI->new(%params); - } else { - die "unknown method"; - } - return $self; -} - -sub check { - my $self = shift; - my $errorfound = 0; - $self->add_info('checking power supplies'); - if (scalar (@{$self->{powersupplies}}) == 0) { - #$self->overall_check(); - } else { - foreach (@{$self->{powersupplies}}) { - $_->check(); - } - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{powersupplies}}) { - $_->dump(); - } -} - - -package HP::Proliant::Component::PowersupplySubsystem::Powersupply; -our @ISA = qw(HP::Proliant::Component::PowersupplySubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqHeFltTolPowerSupplyChassis => $params{cpqHeFltTolPowerSupplyChassis}, - cpqHeFltTolPowerSupplyBay => $params{cpqHeFltTolPowerSupplyBay}, - cpqHeFltTolPowerSupplyPresent => $params{cpqHeFltTolPowerSupplyPresent}, - cpqHeFltTolPowerSupplyCondition => $params{cpqHeFltTolPowerSupplyCondition}, - cpqHeFltTolPowerSupplyRedundant => $params{cpqHeFltTolPowerSupplyRedundant}, - cpqHeFltTolPowerSupplyCapacityUsed => $params{cpqHeFltTolPowerSupplyCapacityUsed} || 0, - cpqHeFltTolPowerSupplyCapacityMaximum => $params{cpqHeFltTolPowerSupplyCapacityMaximum} || 0, - blacklisted => 0, - info => undef, - extendexinfo => undef, - }; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('p', $self->{cpqHeFltTolPowerSupplyBay}); - if ($self->{cpqHeFltTolPowerSupplyPresent} eq "present") { - if ($self->{cpqHeFltTolPowerSupplyCondition} ne "ok") { - if ($self->{cpqHeFltTolPowerSupplyCondition} eq "other") { - $self->add_info(sprintf "powersupply %d is missing", - $self->{cpqHeFltTolPowerSupplyBay}); - } else { - $self->add_info(sprintf "powersupply %d needs attention (%s)", - $self->{cpqHeFltTolPowerSupplyBay}, - $self->{cpqHeFltTolPowerSupplyCondition}); - } - $self->add_message(CRITICAL, $self->{info}); - } else { - $self->add_info(sprintf "powersupply %d is %s", - $self->{cpqHeFltTolPowerSupplyBay}, - $self->{cpqHeFltTolPowerSupplyCondition}); - } - $self->add_extendedinfo(sprintf "ps_%s=%s", - $self->{cpqHeFltTolPowerSupplyBay}, - $self->{cpqHeFltTolPowerSupplyCondition}); - if ($self->{cpqHeFltTolPowerSupplyCapacityUsed} && - $self->{cpqHeFltTolPowerSupplyCapacityMaximum}) { - if ($self->{runtime}->{options}->{perfdata}) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf("pc_%s", $self->{cpqHeFltTolPowerSupplyBay}), - value => $self->{cpqHeFltTolPowerSupplyCapacityUsed}, - warning => $self->{cpqHeFltTolPowerSupplyCapacityMaximum}, - critical => $self->{cpqHeFltTolPowerSupplyCapacityMaximum} - ); - } - } elsif ($self->{cpqHeFltTolPowerSupplyCapacityUsed}) { - if ($self->{runtime}->{options}->{perfdata}) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf("pc_%s", $self->{cpqHeFltTolPowerSupplyBay}), - value => $self->{cpqHeFltTolPowerSupplyCapacityUsed} - ); - } - } - } else { - $self->add_info(sprintf "powersupply %d is %s", - $self->{cpqHeFltTolPowerSupplyBay}, - $self->{cpqHeFltTolPowerSupplyPresent}); - $self->add_extendedinfo(sprintf "ps_%s=%s", - $self->{cpqHeFltTolPowerSupplyBay}, - $self->{cpqHeFltTolPowerSupplyPresent}); - } -} - - -sub dump { - my $self = shift; - printf "[PS_%s]\n", $self->{cpqHeFltTolPowerSupplyBay}; - foreach (qw(cpqHeFltTolPowerSupplyBay cpqHeFltTolPowerSupplyChassis - cpqHeFltTolPowerSupplyPresent cpqHeFltTolPowerSupplyCondition - cpqHeFltTolPowerSupplyRedundant cpqHeFltTolPowerSupplyCapacityUsed - cpqHeFltTolPowerSupplyCapacityMaximum)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n\n", $self->{info}; -} - - -package HP::Proliant::Component::PowersupplySubsystem::Powerconverter; -our @ISA = qw(HP::Proliant::Component::PowersupplySubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - - cpqHePowerConvEntry => $params{cpqHePowerConvEntry}, - cpqHePowerConvChassis => $params{cpqHePowerConvChassis}, - cpqHePowerConvIndex => $params{cpqHePowerConvIndex}, - cpqHePowerConvPresent => $params{cpqHePowerConvPresent}, - cpqHePowerConvRedundant => $params{cpqHePowerConvRedundant}, - cpqHePowerConvCondition => $params{cpqHePowerConvCondition}, - cpqHePowerConvHwLocation => $params{cpqHePowerConvHwLocation}, - blacklisted => 0, - info => undef, - extendexinfo => undef, - }; - bless $self, $class; - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('pc', $self->{cpqHePowerConvIndex}); - if ($self->{cpqHePowerConvPresent} eq "present") { - if ($self->{cpqHePowerConvCondition} ne "ok") { - if ($self->{cpqHePowerConvCondition} eq "other") { - $self->add_info(sprintf "powerconverter %d is missing", - $self->{cpqHePowerConvIndex}); - } else { - $self->add_info(sprintf "powerconverter %d needs attention (%s)", - $self->{cpqHePowerConvIndex}, - $self->{cpqHePowerConvCondition}); - } - $self->add_message(CRITICAL, $self->{info}); - } else { - $self->add_info(sprintf "powerconverter %d is %s", - $self->{cpqHePowerConvIndex}, - $self->{cpqHePowerConvCondition}); - } - $self->add_extendedinfo(sprintf "pc_%s=%s", - $self->{cpqHePowerConvIndex}, - $self->{cpqHePowerConvCondition}); - } else { - $self->add_info(sprintf "powerconverter %d is %s", - $self->{cpqHePowerConvIndex}, - $self->{cpqHePowerConvPresent}); - $self->add_extendedinfo(sprintf "pc_%s=%s", - $self->{cpqHePowerConvIndex}, - $self->{cpqHePowerConvPresent}); - } -} - - -sub dump { - my $self = shift; - printf "[PS_%s]\n", ($self->{cpqHePowerConvChassis} ? $self->{cpqHePowerConvChassis}.":" : "").$self->{cpqHePowerConvIndex}; - foreach (qw(cpqHePowerConvIndex cpqHePowerConvPresent cpqHePowerConvRedundant cpqHePowerConvCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n\n", $self->{info}; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,67 +0,0 @@ -package HP::Proliant::Component::SNMP; - -sub get_entries { - my $self = shift; - my $oids = shift; - my $entry = shift; - my $snmpwalk = $self->{rawdata}; - my @params = (); - my @indices = SNMP::Utils::get_indices($snmpwalk, $oids->{$entry}); - foreach (@indices) { - my @idx = @{$_}; - my %params = ( - runtime => $self->{runtime}, - ); - my $maxdimension = scalar(@idx) - 1; - foreach my $idxnr (1..scalar(@idx)) { - $params{'index'.$idxnr} = $_->[$idxnr - 1]; - } - foreach my $oid (keys %{$oids}) { - next if $oid =~ /Entry$/; - next if $oid =~ /Value$/; - if (exists $oids->{$oid.'Value'}) { - $params{$oid} = SNMP::Utils::get_object_value( - $snmpwalk, $oids->{$oid}, $oids->{$oid.'Value'}, @idx); - if (! defined $params{$oid}) { - my $numerical_value = SNMP::Utils::get_object( - $snmpwalk, $oids->{$oid}, @idx); - if (! defined $numerical_value) { - # maschine liefert schrott - $params{$oid} = 'value_unknown'; - } else { - $params{$oid} = 'value_'.SNMP::Utils::get_object( - $snmpwalk, $oids->{$oid}, @idx); - } - } - } else { - $params{$oid} = SNMP::Utils::get_object( - $snmpwalk, $oids->{$oid}, @idx); - } - } - push(@params, \%params); - } - return @params; -} - -sub mib { - my $self = shift; - my $mib = shift; - my $condition = { - 0 => 'other', - 1 => 'ok', - 2 => 'degraded', - 3 => 'failed', - }; - my $MibRevMajor = $mib.'.1.0'; - my $MibRevMinor = $mib.'.2.0'; - my $MibRevCondition = $mib.'.3.0'; - return ( - $self->SNMP::Utils::get_object($self->{rawdata}, - $MibRevMajor), - $self->SNMP::Utils::get_object($self->{rawdata}, - $MibRevMinor), - $self->SNMP::Utils::get_object_value($self->{rawdata}, - $MibRevCondition, $condition)); -}; - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/CLI.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,56 +0,0 @@ -package HP::Proliant::Component::TemperatureSubsystem::CLI; -our @ISA = qw(HP::Proliant::Component::TemperatureSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - temperatures => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - my $tempcnt = 1; - foreach (grep(/^temp/, split(/\n/, $params{rawdata}))) { - s/^temp\s*//g; - if (/^#(\d+)\s+([\w_\/\-#]+)\s+(-*\d+)C\/(\d+)F\s+(\d+)C\/(\d+)F/) { - my %params = (); - $params{runtime} = $self->{runtime}; - $params{cpqHeTemperatureChassis} = 1; - $params{cpqHeTemperatureIndex} = $1; - $params{cpqHeTemperatureLocale} = lc $2; - $params{cpqHeTemperatureCelsius} = $3; - $params{cpqHeTemperatureThresholdCelsius} = $5; - $params{cpqHeTemperatureCondition} = 'unknown'; - push(@{$self->{temperatures}}, - HP::Proliant::Component::TemperatureSubsystem::Temperature->new( - %params)); - } elsif (/^#(\d+)\s+([\w_\/\-#]+)\s+\-\s+(\d+)C\/(\d+)F/) { - # #3 CPU#2 - 0C/0F - $self->trace(2, sprintf "skipping temperature %s", $_); - } elsif (/^#(\d+)\s+([\w_\/\-#]+)\s+(\d+)C\/(\d+)F\s+\-/) { - # #3 CPU#2 0C/0F - - $self->trace(2, sprintf "skipping temperature %s", $_); - } elsif (/^#(\d+)\s+([\w_\/\-#]+)\s+\-\s+\-/) { - # #3 CPU#2 - - - $self->trace(2, sprintf "skipping temperature %s", $_); - } elsif (/^#(\d+)/) { - $self->trace(0, sprintf "send this to lausser: %s", $_); - } - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,119 +0,0 @@ -package HP::Proliant::Component::TemperatureSubsystem::SNMP; -our @ISA = qw(HP::Proliant::Component::TemperatureSubsystem - HP::Proliant::Component::SNMP); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - temperatures => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - $self->overall_init(%params); - $self->init(%params); - return $self; -} - -sub overall_init { - my $self = shift; - my %params = @_; - my $snmpwalk = $params{rawdata}; - # overall - my $cpqHeThermalTempStatus = '1.3.6.1.4.1.232.6.2.6.3.0'; - my $cpqHeThermalTempStatusValue = { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }; - $self->{tempstatus} = lc SNMP::Utils::get_object_value( - $snmpwalk, $cpqHeThermalTempStatus, - $cpqHeThermalTempStatusValue); - $self->{tempstatus} |= lc $self->{tempstatus}; -} - -sub init { - my $self = shift; - my %params = @_; - my $snmpwalk = $self->{rawdata}; - my $oids = { - cpqHeTemperatureEntry => "1.3.6.1.4.1.232.6.2.6.8.1", - cpqHeTemperatureChassis => "1.3.6.1.4.1.232.6.2.6.8.1.1", - cpqHeTemperatureIndex => "1.3.6.1.4.1.232.6.2.6.8.1.2", - cpqHeTemperatureLocale => "1.3.6.1.4.1.232.6.2.6.8.1.3", - cpqHeTemperatureCelsius => "1.3.6.1.4.1.232.6.2.6.8.1.4", - cpqHeTemperatureThresholdCelsius => "1.3.6.1.4.1.232.6.2.6.8.1.5", - cpqHeTemperatureCondition => "1.3.6.1.4.1.232.6.2.6.8.1.6", - cpqHeTemperatureThresholdType => "1.3.6.1.4.1.232.6.2.6.8.1.7", - cpqHeTemperatureLocaleValue => { - 1 => "other", - 2 => "unknown", - 3 => "system", - 4 => "systemBoard", - 5 => "ioBoard", - 6 => "cpu", - 7 => "memory", - 8 => "storage", - 9 => "removableMedia", - 10 => "powerSupply", - 11 => "ambient", - 12 => "chassis", - 13 => "bridgeCard", - }, - cpqHeTemperatureConditionValue => { - 1 => 'other', - 2 => 'ok', - 3 => 'degraded', - 4 => 'failed', - }, - cpqHeTemperatureThresholdTypeValue => { - 1 => 'other', - 5 => 'blowout', - 9 => 'caution', - 15 => 'critical', - }, - }; - # INDEX { cpqHeTemperatureChassis, cpqHeTemperatureIndex } - foreach ($self->get_entries($oids, 'cpqHeTemperatureEntry')) { - # sieht aus, als wurden die gar nicht existieren. - # im ilo4 werden sie als n/a angezeigt - next if $_->{cpqHeTemperatureThresholdType} eq "caution" && $_->{cpqHeTemperatureThresholdCelsius} == 0; - push(@{$self->{temperatures}}, - HP::Proliant::Component::TemperatureSubsystem::Temperature->new(%{$_})); - } -} - -sub overall_check { - my $self = shift; - my $result = 0; - $self->blacklist('ots', ''); - if ($self->{tempstatus}) { - if ($self->{tempstatus} eq "ok") { - $result = 0; - $self->add_info('all temp sensors are within normal operating range'); - } elsif ($self->{tempstatus} eq "degraded") { - $result = 1; - $self->add_info('a temp sensor is outside of normal operating range'); - } elsif ($self->{tempstatus} eq "failed") { - $result = 2; - $self->add_info('a temp sensor detects a condition that could permanently -damage the system'); - } elsif ($self->{tempstatus} eq "other") { - $result = 0; - $self->add_info('temp sensing is not supported by this system or driver'); - } - } else { - $result = 0; - $self->add_info('no global temp status found'); - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,205 +0,0 @@ -package HP::Proliant::Component::TemperatureSubsystem; -our @ISA = qw(HP::Proliant::Component); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; -################################## custom_thresholds - my %params = @_; - my $self = { - runtime => $params{runtime}, - rawdata => $params{rawdata}, - method => $params{method}, - condition => $params{condition}, - status => $params{status}, - temperatures => [], - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if ($params{runtime}->{options}->{customthresholds}) { - if (-f $params{runtime}->{options}->{customthresholds}) { - $params{runtime}->{options}->{customthresholds} = - do { local (@ARGV, $/) = - $params{runtime}->{options}->{customthresholds}; <> }; - } - foreach my $ct_items - (split(/\//, $params{runtime}->{options}->{customthresholds})) { - if ($ct_items =~ /^(\d+):(\d+)$/) { - $params{runtime}->{options}->{thresholds}->{$1} = $2; - } else { - die sprintf "invalid threshold %s", $ct_items; - } - } - } - if ($self->{method} eq 'snmp') { - return HP::Proliant::Component::TemperatureSubsystem::SNMP->new(%params); - } elsif ($self->{method} eq 'cli') { - return HP::Proliant::Component::TemperatureSubsystem::CLI->new(%params); - } else { - die "unknown method"; - } - return $self; -} - -sub check { - my $self = shift; - my $errorfound = 0; - $self->add_info('checking temperatures'); - if (scalar (@{$self->{temperatures}}) == 0) { - #$self->overall_check(); - $self->add_info('no temperatures found'); - } else { - foreach (sort { $a->{cpqHeTemperatureIndex} <=> $b->{cpqHeTemperatureIndex}} - @{$self->{temperatures}}) { - $_->check(); - } - } -} - -sub dump { - my $self = shift; - foreach (@{$self->{temperatures}}) { - $_->dump(); - } -} - - -package HP::Proliant::Component::TemperatureSubsystem::Temperature; -our @ISA = qw(HP::Proliant::Component::TemperatureSubsystem); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - cpqHeTemperatureChassis => $params{cpqHeTemperatureChassis}, - cpqHeTemperatureIndex => $params{cpqHeTemperatureIndex}, - cpqHeTemperatureLocale => $params{cpqHeTemperatureLocale}, - cpqHeTemperatureCelsius => $params{cpqHeTemperatureCelsius}, - cpqHeTemperatureThresholdCelsius => $params{cpqHeTemperatureThresholdCelsius}, - cpqHeTemperatureCondition => $params{cpqHeTemperatureCondition}, - cpqHeTemperatureThresholdType => $params{cpqHeTemperatureThresholdType} || "unknown", - blacklisted => 0, - info => undef, - extendedinfo => undef, - }; - bless $self, $class; - if ($params{runtime}->{options}->{celsius}) { - $self->{cpqHeTemperatureUnits} = 'C'; - $self->{cpqHeTemperature} = $self->{cpqHeTemperatureCelsius}; - $self->{cpqHeTemperatureThreshold} = - $self->{cpqHeTemperatureThresholdCelsius}; - } else { - $self->{cpqHeTemperatureUnits} = 'F'; - $self->{cpqHeTemperature} = - (($self->{cpqHeTemperatureCelsius} * 9) / 5) + 32; - $self->{cpqHeTemperatureThreshold} = - (($self->{cpqHeTemperatureThresholdCelsius} * 9) / 5) + 32; - } - my $index = $self->{cpqHeTemperatureIndex}; - if (exists $params{runtime}->{options}->{thresholds}->{$index}) { - $self->{cpqHeTemperatureThreshold} = - $params{runtime}->{options}->{thresholds}->{$index}; - - } - if ($self->{cpqHeTemperatureThresholdCelsius} == -99) { - bless $self, 'HP::Proliant::Component::TemperatureSubsystem::SoSTemperature'; - } elsif ($self->{cpqHeTemperatureThresholdCelsius} == 0) { - # taucht auf, seit man gen8 ueber das ilo abfragen kann - bless $self, 'HP::Proliant::Component::TemperatureSubsystem::SoSTemperature'; - } - return $self; -} - -sub check { - my $self = shift; - $self->blacklist('t', $self->{cpqHeTemperatureIndex}); - if ($self->{cpqHeTemperature} > $self->{cpqHeTemperatureThreshold}) { - $self->add_info(sprintf "%d %s temperature too high (%d%s, %d max)", - $self->{cpqHeTemperatureIndex}, $self->{cpqHeTemperatureLocale}, - $self->{cpqHeTemperature}, $self->{cpqHeTemperatureUnits}, - $self->{cpqHeTemperatureThreshold}); - $self->add_message(CRITICAL, $self->{info}); - } elsif ($self->{cpqHeTemperature} < 0) { - # #21 SCSI_BACKPLANE_ZONE -1C/31F 60C/140F OK - can't be true - $self->add_info(sprintf "%d %s temperature too low (%d%s)", - $self->{cpqHeTemperatureIndex}, $self->{cpqHeTemperatureLocale}, - $self->{cpqHeTemperature}, $self->{cpqHeTemperatureUnits}); - $self->add_message(CRITICAL, $self->{info}); - } else { - $self->add_info(sprintf "%d %s temperature is %d%s (%d max)", - $self->{cpqHeTemperatureIndex}, $self->{cpqHeTemperatureLocale}, - $self->{cpqHeTemperature}, $self->{cpqHeTemperatureUnits}, - $self->{cpqHeTemperatureThreshold}); - } - if ($self->{runtime}->{options}->{perfdata} == 2) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('temp_%s', $self->{cpqHeTemperatureIndex}), - value => $self->{cpqHeTemperature}, - warning => $self->{cpqHeTemperatureThreshold}, - critical => $self->{cpqHeTemperatureThreshold} - ); - } elsif ($self->{runtime}->{options}->{perfdata} == 1) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('temp_%s_%s', $self->{cpqHeTemperatureIndex}, - $self->{cpqHeTemperatureLocale}), - value => $self->{cpqHeTemperature}, - warning => $self->{cpqHeTemperatureThreshold}, - critical => $self->{cpqHeTemperatureThreshold} - ); - } - $self->add_extendedinfo(sprintf "temp_%s=%d", - $self->{cpqHeTemperatureIndex}, - $self->{cpqHeTemperature}); -} - -sub dump { - my $self = shift; - printf "[TEMP_%s]\n", $self->{cpqHeTemperatureIndex}; - foreach (qw(cpqHeTemperatureChassis cpqHeTemperatureIndex - cpqHeTemperatureLocale cpqHeTemperatureCelsius cpqHeTemperatureThreshold - cpqHeTemperatureThresholdType cpqHeTemperatureCondition)) { - printf "%s: %s\n", $_, $self->{$_}; - } - printf "info: %s\n\n", $self->{info}; -} - - -package HP::Proliant::Component::TemperatureSubsystem::SoSTemperature; -our @ISA = qw(HP::Proliant::Component::TemperatureSubsystem::Temperature); - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub check { - my $self = shift; - $self->blacklist('t', $self->{cpqHeTemperatureIndex}); - $self->add_info(sprintf "%d %s temperature is %d%s (no thresh.)", - $self->{cpqHeTemperatureIndex}, $self->{cpqHeTemperatureLocale}, - $self->{cpqHeTemperature}, $self->{cpqHeTemperatureUnits}); - if ($self->{runtime}->{options}->{perfdata} == 2) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('temp_%s', $self->{cpqHeTemperatureIndex}), - value => $self->{cpqHeTemperature}, - ); - } elsif ($self->{runtime}->{options}->{perfdata} == 1) { - $self->{runtime}->{plugin}->add_perfdata( - label => sprintf('temp_%s_%s', $self->{cpqHeTemperatureIndex}, - $self->{cpqHeTemperatureLocale}), - value => $self->{cpqHeTemperature}, - ); - } - $self->add_extendedinfo(sprintf "temp_%s=%d", - $self->{cpqHeTemperatureIndex}, - $self->{cpqHeTemperature}); -} - -1; - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant/Component.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -package HP::Proliant::Component; -our @ISA = qw(HP::Proliant); - -1; - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Proliant.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,714 +0,0 @@ -package HP::Proliant; - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; -use Data::Dumper; - -our @ISA = qw(HP::Server); - -sub init { - my $self = shift; - $self->{components} = { - powersupply_subsystem => undef, - fan_subsystem => undef, - temperature_subsystem => undef, - cpu_subsystem => undef, - memory_subsystem => undef, - nic_subsystem => undef, - disk_subsystem => undef, - asr_subsystem => undef, - event_subsystem => undef, - }; - $self->{serial} = 'unknown'; - $self->{product} = 'unknown'; - $self->{romversion} = 'unknown'; - $self->collect(); - if (! $self->{runtime}->{plugin}->check_messages() && - ! exists $self->{noinst_hint}) { - $self->set_serial(); - $self->check_for_buggy_firmware(); - $self->analyze_cpus(); - $self->analyze_powersupplies(); - $self->analyze_fan_subsystem(); - $self->analyze_temperatures(); - $self->analyze_memory_subsystem(); - $self->analyze_nic_subsystem(); - $self->analyze_disk_subsystem(); - $self->analyze_asr_subsystem(); - $self->analyze_event_subsystem(); - $self->auto_blacklist(); - $self->check_cpus(); - $self->check_powersupplies(); - $self->check_fan_subsystem(); - $self->check_temperatures(); - $self->check_memory_subsystem(); - $self->check_nic_subsystem(); - $self->check_disk_subsystem(); - $self->check_asr_subsystem(); - $self->check_event_subsystem(); - } -} - -sub identify { - my $self = shift; - foreach (qw(product serial romversion)) { - $self->{$_} =~ s/^\s+//; - $self->{$_} =~ s/\s+$//; - } - return sprintf "System: '%s', S/N: '%s', ROM: '%s'", - $self->{product}, $self->{serial}, $self->{romversion}; -} - -sub check_for_buggy_firmware { - my $self = shift; - my @buggyfirmwares = ( - "P24 12/11/2001", - "P24 11/15/2002", - "D13 06/03/2003", - "D13 09/15/2004", - "P20 12/17/2002" - ); - $self->{runtime}->{options}->{buggy_firmware} = - grep /^$self->{romversion}/, @buggyfirmwares; -} - -sub dump { - my $self = shift; - printf STDERR "serial %s\n", $self->{serial}; - printf STDERR "product %s\n", $self->{product}; - printf STDERR "romversion %s\n", $self->{romversion}; - printf STDERR "%s\n", Data::Dumper::Dumper($self->{components}); -} - -sub analyze_powersupplies { - my $self = shift; - $self->{components}->{powersupply_subsystem} = - HP::Proliant::Component::PowersupplySubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_fan_subsystem { - my $self = shift; - $self->{components}->{fan_subsystem} = - HP::Proliant::Component::FanSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_temperatures { - my $self = shift; - $self->{components}->{temperature_subsystem} = - HP::Proliant::Component::TemperatureSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_cpus { - my $self = shift; - $self->{components}->{cpu_subsystem} = - HP::Proliant::Component::CpuSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_memory_subsystem { - my $self = shift; - $self->{components}->{memory_subsystem} = - HP::Proliant::Component::MemorySubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_nic_subsystem { - my $self = shift; - return if $self->{method} ne "snmp"; - $self->{components}->{nic_subsystem} = - HP::Proliant::Component::NicSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_disk_subsystem { - my $self = shift; - $self->{components}->{disk_subsystem} = - HP::Proliant::Component::DiskSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_asr_subsystem { - my $self = shift; - $self->{components}->{asr_subsystem} = - HP::Proliant::Component::AsrSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_event_subsystem { - my $self = shift; - $self->{components}->{event_subsystem} = - HP::Proliant::Component::EventSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub check_cpus { - my $self = shift; - $self->{components}->{cpu_subsystem}->check(); - $self->{components}->{cpu_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_powersupplies { - my $self = shift; - $self->{components}->{powersupply_subsystem}->check(); - $self->{components}->{powersupply_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_fan_subsystem { - my $self = shift; - $self->{components}->{fan_subsystem}->check(); - $self->{components}->{fan_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_temperatures { - my $self = shift; - $self->{components}->{temperature_subsystem}->check(); - $self->{components}->{temperature_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_memory_subsystem { - my $self = shift; - $self->{components}->{memory_subsystem}->check(); - $self->{components}->{memory_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_nic_subsystem { - my $self = shift; - return if $self->{method} ne "snmp"; - if ($self->{runtime}->{plugin}->{opts}->get('eval-nics')) { - $self->{components}->{nic_subsystem}->check(); - $self->{components}->{nic_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; - } -} -sub check_disk_subsystem { - my $self = shift; - $self->{components}->{disk_subsystem}->check(); - $self->{components}->{disk_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; - # zum anhaengen an die normale ausgabe... da: 2 logical drives, 5 physical... - $self->{runtime}->{plugin}->add_message(OK, - $self->{components}->{disk_subsystem}->{summary}) - if $self->{components}->{disk_subsystem}->{summary}; -} - -sub check_asr_subsystem { - my $self = shift; - $self->{components}->{asr_subsystem}->check(); - $self->{components}->{asr_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_event_subsystem { - my $self = shift; - $self->{components}->{event_subsystem}->check(); - $self->{components}->{event_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub auto_blacklist() { - my $self = shift; - if ($self->{product} =~ /380 g6/) { - # http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c01723408/c01723408.pdf seite 19 - if ($self->{components}->{cpu_subsystem}->num_cpus() == 1) { - $self->add_blacklist('ff/f:5,6'); - } - } elsif ($self->{product} =~ /380 g6/) { - # http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c01704762/c01704762.pdf Fan 2 is only required when processor 2 is installed in the server. - } -} - - -package HP::Proliant::CLI; - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -our @ISA = qw(HP::Proliant); - -sub collect { - my $self = shift; - my $hpasmcli = undef; - if (($self->{runtime}->{plugin}->opts->hpasmcli) && - (-f $self->{runtime}->{plugin}->opts->hpasmcli) && - (! -x $self->{runtime}->{plugin}->opts->hpasmcli)) { - no strict 'refs'; - open(BIRK, $self->{runtime}->{plugin}->opts->hpasmcli); - # all output in one file prefixed with server|powersupply|fans|temp|dimm - while() { - chomp; - $self->{rawdata} .= $_."\n"; - } - close BIRK; - # If you run this script and redirect it's output to a file - # you can use it for testing purposes with - # --hpasmcli - # It must not be executable. (chmod 644) - my $diag = <<'EOEO'; - hpasmcli=$(which hpasmcli) - hpacucli=$(which hpacucli) - for i in server powersupply fans temp dimm - do - $hpasmcli -s "show $i" | while read line - do - printf "%s %s\n" $i "$line" - done - done - if [ -x "$hpacucli" ]; then - for i in config status - do - $hpacucli ctrl all show $i | while read line - do - printf "%s %s\n" $i "$line" - done - done - fi -EOEO - } else { - #die "exec hpasmcli"; - # alles einsammeln und in rawdata stecken - my $hpasmcli = undef; - $hpasmcli = $self->{runtime}->{plugin}->opts->hpasmcli ? - $self->{runtime}->{plugin}->opts->hpasmcli : '/sbin/hpasmcli'; -# check if this exists at all -# descend the directory - if ($self->{runtime}->{plugin}->opts->hpasmcli && - -e $self->{runtime}->{plugin}->opts->hpasmcli) { - $hpasmcli = $self->{runtime}->{plugin}->opts->hpasmcli; - } elsif (-e '/sbin/hpasmcli') { - $hpasmcli = '/sbin/hpasmcli'; - } else { - $hpasmcli = undef; - } - if ($hpasmcli) { - if ($< != 0) { - close STDIN; - $hpasmcli = "sudo -S ".$hpasmcli; - } - $self->trace(2, sprintf "calling %s\n", $hpasmcli); - $self->check_daemon(); - if (! $self->{runtime}->{plugin}->check_messages()) { - $self->check_hpasm_client($hpasmcli); - if (! $self->{runtime}->{plugin}->check_messages()) { - foreach my $component (qw(server fans temp dimm powersupply iml)) { - if (open HPASMCLI, "$hpasmcli -s \"show $component\" ; - close HPASMCLI; - $self->{rawdata} .= join("\n", map { - $component.' '.$_; - } @output); - } - } - if ($self->{runtime}->{options}->{hpacucli}) { - #1 oder 0. pfad selber finden - my $hpacucli = undef; - if (-e '/usr/sbin/hpacucli') { - $hpacucli = '/usr/sbin/hpacucli'; - } elsif (-e '/usr/local/sbin/hpacucli') { - $hpacucli = '/usr/local/sbin/hpacucli'; - } else { - $hpacucli = $hpasmcli; - $hpacucli =~ s/^sudo\s*//; - $hpacucli =~ s/hpasmcli/hpacucli/; - $hpacucli = -e $hpacucli ? $hpacucli : undef; - } - if ($hpacucli) { - if ($< != 0) { - close STDIN; - $hpacucli = "sudo -S ".$hpacucli; - } - $self->trace(2, sprintf "calling %s\n", $hpacucli); - $self->check_hpacu_client($hpacucli); - if (! $self->{runtime}->{plugin}->check_messages()) { - if (open HPACUCLI, "$hpacucli ctrl all show status 2>&1|") { - my @output = ; - close HPACUCLI; - $self->{rawdata} .= join("\n", map { - 'status '.$_; - } @output); - } - if (open HPACUCLI, "$hpacucli ctrl all show config 2>&1|") { - my @output = ; - close HPACUCLI; - $self->{rawdata} .= join("\n", map { - 'config '.$_; - } @output); - if (grep /Syntax error at "config"/, @output) { - # older version of hpacucli CLI 7.50.18.0 - foreach my $slot (0..10) { - if (open HPACUCLI, "$hpacucli ctrl slot=$slot logicaldrive all show 2>&1|") { - my @output = ; - close HPACUCLI; - $self->{rawdata} .= join("\n", map { - 'config '.$_; - } @output); - } - if (open HPACUCLI, "$hpacucli ctrl slot=$slot physicaldrive all show 2>&1|") { - my @output = ; - close HPACUCLI; - $self->{rawdata} .= join("\n", map { - 'config '.$_; - } @output); - } - } - } - } - } elsif ($self->{runtime}->{options}->{hpacucli} == 2) { - # we probably don't have sudo-privileges, but we were compiled with - # --enable-hpacucli=maybe - # so we cover it up in silence - $self->remove_message(UNKNOWN); - $self->trace(2, sprintf "calling %s seems to have failed, but nobody cares\n", $hpacucli); - } - } else { - if ($self->{runtime}->{options}->{noinstlevel} eq 'ok') { - $self->add_message(OK, - 'hpacucli is not installed. let\'s hope the best...'); - } else { - $self->add_message( - uc $self->{runtime}->{options}->{noinstlevel}, - 'hpacucli is not installed.'); - } - } - } - } - } - } else { - if ($self->{runtime}->{options}->{noinstlevel} eq 'ok') { - $self->add_message(OK, - 'hpasm is not installed, i can only guess'); - $self->{noinst_hint} = 1; - } else { - $self->add_message( - uc $self->{runtime}->{options}->{noinstlevel}, - 'hpasmcli is not installed.'); - } - } - } -} - - -sub check_daemon { - my $self = shift; - my $multiproc_os_signatures_files = { - '/etc/SuSE-release' => 'VERSION\s*=\s*8', - '/etc/trustix-release' => '.*', - '/etc/redhat-release' => '.*Pensacola.*', - '/etc/debian_version' => '3\.1', - '/etc/issue' => '.*Kernel 2\.4\.9-vmnix2.*', # VMware ESX Server 2.5.4 - }; - if (open PS, "/bin/ps -e -ocmd|") { - my $numprocs = 0; - my $numcliprocs = 0; - my @procs = ; - close PS; - $numprocs = grep /hpasm.*d$/, map { (split /\s+/, $_)[0] } @procs; - $numcliprocs = grep /hpasmcli/, grep !/check_hpasm/, @procs; - if (! $numprocs ) { - $self->add_message(CRITICAL, 'hpasmd needs to be restarted'); - } elsif ($numprocs > 1) { - my $known = 0; - foreach my $osfile (keys %{$multiproc_os_signatures_files}) { - if (-f $osfile) { - open OSSIG, $osfile; - if (grep /$multiproc_os_signatures_files->{$osfile}/, ) { - $known = 1; - } - close OSSIG; - } - } - if (! $known) { - $self->add_message(UNKNOWN, 'multiple hpasmd procs'); - } - } - if ($numcliprocs == 1) { - $self->add_message(UNKNOWN, 'another hpasmcli is running'); - } elsif ($numcliprocs > 1) { - $self->add_message(UNKNOWN, 'hanging hpasmcli processes'); - } - } -} - -sub check_hpasm_client { - my $self = shift; - my $hpasmcli = shift; - if (open HPASMCLI, "$hpasmcli -s help 2>&1 |") { - my @output = ; - close HPASMCLI; - if (grep /Could not communicate with hpasmd/, @output) { - $self->add_message(CRITICAL, 'hpasmd needs to be restarted'); - } elsif (grep /(asswor[dt]:)|(You must be root)/, @output) { - $self->add_message(UNKNOWN, - sprintf "insufficient rights to call %s", $hpasmcli); - } elsif (grep /must have a tty/, @output) { - $self->add_message(CRITICAL, - 'sudo must be configured with requiretty=no (man sudo)'); - } elsif (! grep /CLEAR/, @output) { - $self->add_message(UNKNOWN, - sprintf "insufficient rights to call %s", $hpasmcli); - } - } else { - $self->add_message(UNKNOWN, - sprintf "insufficient rights to call %s", $hpasmcli); - } -} - -sub check_hpacu_client { - my $self = shift; - my $hpacucli = shift; - if (open HPACUCLI, "$hpacucli help 2>&1 |") { - my @output = ; - close HPACUCLI; - if (grep /Another instance of hpacucli is running/, @output) { - $self->add_message(UNKNOWN, 'another hpacucli is running'); - } elsif (grep /You need to have administrator rights/, @output) { - $self->add_message(UNKNOWN, - sprintf "insufficient rights to call %s", $hpacucli); - } elsif (grep /(asswor[dt]:)|(You must be root)/, @output) { - $self->add_message(UNKNOWN, - sprintf "insufficient rights to call %s", $hpacucli); - } elsif (! grep /(CLI Syntax)|(ACU CLI)/, @output) { - $self->add_message(UNKNOWN, - sprintf "insufficient rights to call %s", $hpacucli); - } - } else { - $self->add_message(UNKNOWN, - sprintf "insufficient rights to call %s", $hpacucli); - } -} - -sub set_serial { - my $self = shift; - foreach (grep(/^server/, split(/\n/, $self->{rawdata}))) { - if (/System\s+:\s+(.*[^\s])/) { - $self->{product} = lc $1; - } elsif (/Serial No\.\s+:\s+(\w+)/) { - $self->{serial} = $1; - } elsif (/ROM version\s+:\s+(.*[^\s])/) { - $self->{romversion} = $1; - } - } - $self->{serial} = $self->{serial}; - $self->{product} = lc $self->{product}; - $self->{romversion} = $self->{romversion}; - foreach (qw(serial product romversion)) { - $self->{$_} =~ s/\s+$//g; - } -} - - -package HP::Proliant::SNMP; - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -our @ISA = qw(HP::Proliant); - -sub collect { - my $self = shift; - my %oidtables = ( - system => "1.3.6.1.2.1.1", - cpqSeProcessor => "1.3.6.1.4.1.232.1.2.2", - cpqHePWSComponent => "1.3.6.1.4.1.232.6.2.9", - cpqHeThermal => "1.3.6.1.4.1.232.6.2.6", - cpqHeMComponent => "1.3.6.1.4.1.232.6.2.14", - cpqDaComponent => "1.3.6.1.4.1.232.3.2", - cpqSiComponent => "1.3.6.1.4.1.232.2.2", - cpqSeRom => "1.3.6.1.4.1.232.1.2.6", - cpqSasComponent => "1.3.6.1.4.1.232.5", - cpqIdeComponent => "1.3.6.1.4.1.232.14", - cpqFcaComponent => "1.3.6.1.4.1.232.16.2", - cpqHeAsr => "1.3.6.1.4.1.232.6.2.5", - cpqNic => "1.3.6.1.4.1.232.18.2", - cpqHeEventLog => "1.3.6.1.4.1.232.6.2.11", - - # cpqHeComponent => "1.3.6.1.4.1.232.6.2", - # cpqHeFComponent => "1.3.6.1.4.1.232.6.2.6.7", - # cpqHeTComponent => "1.3.6.1.4.1.232.6.2.6.8", - ); - my %oidvalues = ( - cpqHeEventLogSupported => "1.3.6.1.4.1.232.6.2.11.1.0", - cpqHeEventLogCondition => "1.3.6.1.4.1.232.6.2.11.2.0", - cpqNicIfLogMapOverallCondition => "1.3.6.1.4.1.232.18.2.2.2.0", - cpqHeThermalTempStatus => "1.3.6.1.4.1.232.6.2.6.3.0", - cpqHeThermalSystemFanStatus => "1.3.6.1.4.1.232.6.2.6.4.0", - cpqHeThermalCpuFanStatus => "1.3.6.1.4.1.232.6.2.6.5.0", - cpqHeAsrStatus => "1.3.6.1.4.1.232.6.2.5.1.0", - cpqHeAsrCondition => "1.3.6.1.4.1.232.6.2.5.17.0", - ); - if ($self->{runtime}->{plugin}->opts->snmpwalk) { - my $cpqSeMibCondition = '1.3.6.1.4.1.232.1.1.3.0'; # 2=ok - my $cpqHeMibCondition = '1.3.6.1.4.1.232.6.1.3.0'; # hat nicht jeder - if ($self->{productname} =~ /4LEE/) { - # rindsarsch! - $self->{rawdata}->{$cpqHeMibCondition} = 0; - } - if (! exists $self->{rawdata}->{$cpqHeMibCondition} && - ! exists $self->{rawdata}->{$cpqSeMibCondition}) { # vlt. geht doch was - $self->add_message(CRITICAL, - 'snmpwalk returns no health data (cpqhlth-mib)'); - } - $self->{fullrawdata} = {}; - %{$self->{fullrawdata}} = %{$self->{rawdata}}; - $self->{rawdata} = {}; - if (! $self->{runtime}->{plugin}->check_messages()) { - # for a better simulation, only put those oids into - # rawdata which would also be put by a real snmp agent. - foreach my $table (keys %oidtables) { - my $oid = $oidtables{$table}; - $oid =~ s/\./\\./g; - my $tmpoids = {}; - my $tic = time; - map { $tmpoids->{$_} = $self->{fullrawdata}->{$_} } - grep /^$oid/, %{$self->{fullrawdata}}; - my $tac = time; - $self->trace(2, sprintf "%03d seconds for walk %s (%d oids)", - $tac - $tic, $table, scalar(keys %{$tmpoids})); - map { $self->{rawdata}->{$_} = $tmpoids->{$_} } keys %{$tmpoids}; - } - my @oids = values %oidvalues; - map { $self->{rawdata}->{$_} = $self->{fullrawdata}->{$_} } @oids; - } - } else { - my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 - #$params{'-translate'} = [ - # -all => 0x0 - #]; - my ($session, $error) = - Net::SNMP->session(%{$self->{runtime}->{snmpparams}}); - if (! defined $session) { - $self->{plugin}->add_message(CRITICAL, 'cannot create session object'); - $self->trace(1, Data::Dumper::Dumper($self->{runtime}->{snmpparams})); - } else { - $session->translate(['-timeticks' => 0]); - # revMajor is often used for discovery of hp devices - my $cpqHeMibRev = '1.3.6.1.4.1.232.6.1'; - my $cpqHeMibRevMajor = '1.3.6.1.4.1.232.6.1.1.0'; - my $cpqHeMibCondition = '1.3.6.1.4.1.232.6.1.3.0'; - my $result = $session->get_request( - -varbindlist => [$cpqHeMibCondition] - ); - if ($self->{productname} =~ /4LEE/) { - # rindsarsch! - $result->{$cpqHeMibCondition} = 0; - } - if (!defined($result) || - $result->{$cpqHeMibCondition} eq 'noSuchInstance' || - $result->{$cpqHeMibCondition} eq 'noSuchObject' || - $result->{$cpqHeMibCondition} eq 'endOfMibView') { - $self->add_message(CRITICAL, - 'snmpwalk returns no health data (cpqhlth-mib)'); - $session->close; - } else { - # this is not reliable. many agents return 4=failed - #if ($result->{$cpqHeMibCondition} != 2) { - # $obstacle = "cmapeerstart"; - #} - } - } - if (! $self->{runtime}->{plugin}->check_messages()) { - # snmp peer is alive - $self->trace(2, sprintf "Protocol is %s", - $self->{runtime}->{snmpparams}->{'-version'}); - $session->translate; - my $response = {}; #break the walk up in smaller pieces - foreach my $table (keys %oidtables) { - my $oid = $oidtables{$table}; - my $tic = time; - my $tmpresponse = $session->get_table( - -baseoid => $oid); - if (scalar (keys %{$tmpresponse}) == 0) { - $self->trace(2, sprintf "maxrepetitions failed. fallback"); - $tmpresponse = $session->get_table( - -maxrepetitions => 1, - -baseoid => $oid); - } - my $tac = time; - $self->trace(2, sprintf "%03d seconds for walk %s (%d oids)", - $tac - $tic, $table, scalar(keys %{$tmpresponse})); - map { $response->{$_} = $tmpresponse->{$_} } keys %{$tmpresponse}; - } - my @oids = values %oidvalues; - my $tic = time; - my $tmpresponse = $session->get_request( - -varbindlist => \@oids, - ); - my $tac = time; - $self->trace(2, sprintf "%03d seconds for get various (%d oids)", - $tac - $tic, scalar(keys %{$tmpresponse})); - map { $response->{$_} = $tmpresponse->{$_} } keys %{$tmpresponse}; - $session->close(); - $self->{rawdata} = $response; - } - } - return $self->{runtime}->{plugin}->check_messages(); -} - -sub set_serial { - my $self = shift; - - my $cpqSiSysSerialNum = "1.3.6.1.4.1.232.2.2.2.1.0"; - my $cpqSiProductName = "1.3.6.1.4.1.232.2.2.4.2.0"; - my $cpqSeSysRomVer = "1.3.6.1.4.1.232.1.2.6.1.0"; - - $self->{serial} = - SNMP::Utils::get_object($self->{rawdata}, $cpqSiSysSerialNum); - $self->{product} = - SNMP::Utils::get_object($self->{rawdata}, $cpqSiProductName); - $self->{romversion} = - SNMP::Utils::get_object($self->{rawdata}, $cpqSeSysRomVer); - if ($self->{romversion} && $self->{romversion} =~ - #/(\d{2}\/\d{2}\/\d{4}).*?([ADP]{1}\d{2}).*/) { - /(\d{2}\/\d{2}\/\d{4}).*?Family.*?([A-Z]{1})(\d+).*/) { - $self->{romversion} = sprintf("%s%02d %s", $2, $3, $1); - } elsif ($self->{romversion} && $self->{romversion} =~ - /([ADP]{1}\d{2})\-(\d{2}\/\d{2}\/\d{4})/) { - $self->{romversion} = sprintf("%s %s", $1, $2); - } - if (!$self->{serial} && $self->{romversion}) { - # this probably is a very, very old server. - $self->{serial} = "METHUSALEM"; - $self->{runtime}->{scrapiron} = 1; - } - $self->{serial} = $self->{serial}; - $self->{product} = lc $self->{product}; - $self->{romversion} = $self->{romversion}; - $self->{runtime}->{product} = $self->{product}; -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Server.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Server.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Server.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Server.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,403 +0,0 @@ -package HP::Server; - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - runtime => $params{runtime}, - productname => 'unknown', - }; - bless $self, $class; - if (! ($self->{runtime}->{plugin}->opts->hostname || - $self->{runtime}->{plugin}->opts->snmpwalk)) { - bless $self, 'HP::Proliant::CLI'; - $self->{method} = 'cli'; - } else { - $self->check_snmp_and_model(); - if ($self->{runtime}->{options}->{servertype}) { - $self->{productname} = 'ProLiant' if - $self->{runtime}->{options}->{servertype} eq 'proliant'; - $self->{productname} = 'BladeSystem' if - $self->{runtime}->{options}->{servertype} eq 'bladesystem'; - $self->{productname} = 'Storage' if - $self->{runtime}->{options}->{servertype} eq 'storage'; - } - if (! $self->{runtime}->{plugin}->check_messages()) { - if ($self->{productname} =~ /ProLiant/) { - bless $self, 'HP::Proliant::SNMP'; - $self->trace(3, 'using HP::Proliant::SNMP'); - } elsif ($self->{productname} =~ /^DL\d+\s*G\d+/) { - bless $self, 'HP::Proliant::SNMP'; - $self->trace(3, 'using HP::Proliant::SNMP'); - } elsif ($self->{productname} =~ /OpenView .* appliance/) { - bless $self, 'HP::Proliant::SNMP'; - $self->trace(3, 'using HP::Proliant::SNMP'); - } elsif ($self->{productname} =~ /BladeSystem/) { - bless $self, 'HP::BladeSystem'; - $self->trace(3, 'using HP::BladeSystem'); - } elsif ($self->{productname} =~ /PROLIANT 4LEE/) { - bless $self, 'HP::Storage'; - $self->trace(3, 'using HP::Storage'); - } elsif ($self->{productname} =~ /X\d+[\s\w]* Network Storage/) { - # HP X1600 Network Storage System - # HP X1600 G2 Network Storage System - bless $self, 'HP::Proliant::SNMP'; - $self->trace(3, 'using HP::Proliant::SNMP'); - } elsif ($self->{productname} =~ /Storage/) { # fake - bless $self, 'HP::Storage'; - $self->trace(3, 'using HP::Storage'); - } else { - $self->add_message(CRITICAL, - sprintf('unknown device%s', $self->{productname} eq 'unknown' ? - '' : '('.$self->{productname}.')')); - } - $self->{method} = 'snmp'; - } - } - if ($self->{runtime}->{options}->{blacklist} && - -f $self->{runtime}->{options}->{blacklist}) { - $self->{runtime}->{options}->{blacklist} = do { - local (@ARGV, $/) = $self->{runtime}->{options}->{blacklist}; <> }; - } - return $self; -} - -sub check_snmp_and_model { -# uptime pruefen -# dann whoami - my $self = shift; - if ($self->{runtime}->{plugin}->opts->snmpwalk) { - my $response = {}; - if (! -f $self->{runtime}->{plugin}->opts->snmpwalk) { - $self->{runtime}->{plugin}->add_message(CRITICAL, - sprintf 'file %s not found', - $self->{runtime}->{plugin}->opts->snmpwalk); - } elsif (-x $self->{runtime}->{plugin}->opts->snmpwalk) { - my $cmd = sprintf "%s -On -v%s -c%s %s 1.3.6.1.4.1.232 2>&1", - $self->{runtime}->{plugin}->opts->snmpwalk, - $self->{runtime}->{plugin}->opts->protocol, - $self->{runtime}->{plugin}->opts->community, - $self->{runtime}->{plugin}->opts->hostname; - open(WALK, "$cmd |"); - while () { - if (/^.*?\.(232\.[\d\.]+) = .*?: (\-*\d+)/) { - $response->{'1.3.6.1.4.1.'.$1} = $2; - } elsif (/^.*?\.(232\.[\d\.]+) = .*?: "(.*?)"/) { - $response->{'1.3.6.1.4.1.'.$1} = $2; - $response->{'1.3.6.1.4.1.'.$1} =~ s/\s+$//; - } - } - close WALK; - } else { - open(MESS, $self->{runtime}->{plugin}->opts->snmpwalk); - my $in_string = 0; - my $in_hex_string = 0; - my $hex_oid = 0; - while() { - chomp; - if ($in_hex_string && /^(([0-9a-fA-F]{2})( [0-9a-fA-F]{2})*)\s*$/) { - $response->{$hex_oid} .= " ".$1; - } elsif ($in_string) { - if (/(.*)"$/) { - $response->{$hex_oid} .= $1; - $in_string = 0; - } else { - $response->{$hex_oid} .= $_; - } - } elsif (/^.*?\.(232\.[\d\.]+) = .*?: (\-*\d+)\s*$/) { - # SNMPv2-SMI::enterprises.232.6.2.6.7.1.3.1.4 = INTEGER: 6 - $response->{'1.3.6.1.4.1.'.$1} = $2; - $in_hex_string = 0; - } elsif (/^.*?\.(232\.[\d\.]+) = .*?: "(.*?)"/) { - $response->{'1.3.6.1.4.1.'.$1} = $2; - $response->{'1.3.6.1.4.1.'.$1} =~ s/\s+$//; - $in_hex_string = 0; - } elsif (/^.*?\.(232\.[\d\.]+) = (\-*\d+)/) { - $response->{'1.3.6.1.4.1.'.$1} = $2; - $in_hex_string = 0; - } elsif (/^.*?\.(232\.[\d\.]+) = "(.*?)"/) { - $response->{'1.3.6.1.4.1.'.$1} = $2; - $response->{'1.3.6.1.4.1.'.$1} =~ s/\s+$//; - $in_hex_string = 0; - } elsif (/^.*?\.(232\.[\d\.]+) = STRING: "(.*?[^"])$/) { - $response->{'1.3.6.1.4.1.'.$1} = $2; - $response->{'1.3.6.1.4.1.'.$1} =~ s/\s+$//; - $in_string = 0; - $in_hex_string = 0; - } elsif (/^.*?\.(232\.[\d\.]+) = Hex-STRING: (.*)/) { - $response->{'1.3.6.1.4.1.'.$1} = $2; - $in_hex_string = 1; - $hex_oid = '1.3.6.1.4.1.'.$1; - } elsif (/^.*?\.(232\.[\d\.]+) =[ ]{1,2}Hex: (.*)/) { - $response->{'1.3.6.1.4.1.'.$1} = $2; - $in_hex_string = 1; - $hex_oid = '1.3.6.1.4.1.'.$1; - } - } - close MESS; - } - map { $response->{$_} =~ s/^\s+//; $response->{$_} =~ s/\s+$//; } - keys %$response; - $self->{rawdata} = $response; - $self->whoami(); - } else { - if (eval "require Net::SNMP") { - my %params = (); - my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 - $params{'-translate'} = [ - -timeticks => 0x0 - ]; - $params{'-hostname'} = $self->{runtime}->{plugin}->opts->hostname; - $params{'-version'} = $self->{runtime}->{plugin}->opts->protocol; - if ($self->{runtime}->{plugin}->opts->port) { - $params{'-port'} = $self->{runtime}->{plugin}->opts->port; - } - if ($self->{runtime}->{plugin}->opts->protocol eq '3') { - $params{'-username'} = $self->{runtime}->{plugin}->opts->username; - if ($self->{runtime}->{plugin}->opts->authpassword) { - $params{'-authpassword'} = $self->{runtime}->{plugin}->opts->authpassword; - } - if ($self->{runtime}->{plugin}->opts->authprotocol) { - $params{'-authprotocol'} = $self->{runtime}->{plugin}->opts->authprotocol; - } - if ($self->{runtime}->{plugin}->opts->privpassword) { - $params{'-privpassword'} = $self->{runtime}->{plugin}->opts->privpassword; - } - if ($self->{runtime}->{plugin}->opts->privprotocol) { - $params{'-privprotocol'} = $self->{runtime}->{plugin}->opts->privprotocol; - } - } else { - $params{'-community'} = $self->{runtime}->{plugin}->opts->community; - } - $self->{runtime}->{snmpparams} = \%params; - my ($session, $error) = Net::SNMP->session(%params); - $self->{session} = $session; - if (! defined $session) { - $self->add_message(CRITICAL, 'cannot create session object (maybe wrong hostname)'); - $self->trace(1, Data::Dumper::Dumper(\%params)); - } else { - my $sysUpTime = '1.3.6.1.2.1.1.3.0'; - my $result = $session->get_request( - -varbindlist => [$sysUpTime] - ); - if (!defined($result)) { - $self->add_message(CRITICAL, - 'could not contact snmp agent'); - $session->close; - } else { - $self->trace(3, 'snmp agent answered'); - $self->whoami(); - } - } - } else { - $self->add_message(CRITICAL, - 'could not find Net::SNMP module'); - } - } -} - -sub whoami { - my $self = shift; - my $productname = undef; - if ($self->{runtime}->{plugin}->opts->snmpwalk) { - my $cpqSiProductName = '1.3.6.1.4.1.232.2.2.4.2.0'; - my $cpqSsMibRevMajor = '1.3.6.1.4.1.232.8.1.1.0'; - my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'.'.1.1'; - if ($productname = $self->{rawdata}->{$cpqSiProductName}) { - if (! $productname) { - $self->{productname} = 'ProLiant'; - } else { - $self->{productname} = $self->{rawdata}->{$cpqSiProductName}; - } - } elsif (exists $self->{rawdata}->{$cpqSsBackplaneModel}) { - $self->{productname} = $self->{rawdata}->{$cpqSsBackplaneModel}; - } elsif (exists $self->{rawdata}->{$cpqSsMibRevMajor}) { - # at least there is a CPQSTSYS-MIB - $self->{productname} = 'Storage' - } else { - $self->add_message(CRITICAL, - 'snmpwalk returns no product name (cpqsinfo-mib)'); - } - } else { - my $cpqSiProductName = '1.3.6.1.4.1.232.2.2.4.2.0'; - my $cpqSsMibRevMajor = '1.3.6.1.4.1.232.8.1.1.0'; - my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'.'.1.1'; - my $dummy = '1.3.6.1.2.1.1.5.0'; - if ($productname = $self->valid_response($cpqSiProductName)) { - if ($productname eq '') { - $self->{productname} = 'ProLiant'; - } else { - $self->{productname} = $productname; - } - } elsif ($productname = $self->valid_response($cpqSsBackplaneModel)) { - $self->{productname} = $productname; - } elsif ($self->valid_response($cpqSsMibRevMajor)) { - # at least there is a CPQSTSYS-MIB - $self->{productname} = 'Storage' - } else { - $self->add_message(CRITICAL, - 'snmpwalk returns no product name (cpqsinfo-mib)'); - $self->{session}->close; - } - $self->trace(3, 'whoami: '.$self->{productname}); - } -} - -sub valid_response { - my $self = shift; - my $oid = shift; - my $result = $self->{session}->get_request( - -varbindlist => [$oid] - ); - if (!defined($result) || - ! defined $result->{$oid} || - $result->{$oid} eq 'noSuchInstance' || - $result->{$oid} eq 'noSuchObject' || - $result->{$oid} eq 'endOfMibView') { - return undef; - } else { - return $result->{$oid}; - } -} - -sub trace { - my $self = shift; - my $level = shift; - my $message = shift; - if ($self->{runtime}->{options}->{verbose} >= $level) { - printf "%s\n", $message; - } -} - -sub blacklist { - my $self = shift; - my $type = shift; - my $name = shift; - $self->{blacklisted} = $self->is_blacklisted($type, $name); -} - -sub add_blacklist { - my $self = shift; - my $list = shift; - $self->{runtime}->{options}->{blacklist} = join('/', - (split('/', $self->{runtime}->{options}->{blacklist}), $list)); -} - -sub is_blacklisted { - my $self = shift; - my $type = shift; - my $name = shift; - my $blacklisted = 0; -# $name =~ s/\:/-/g; - foreach my $bl_items (split(/\//, $self->{runtime}->{options}->{blacklist})) { - if ($bl_items =~ /^(\w+):([\:\d\-,]+)$/) { - my $bl_type = $1; - my $bl_names = $2; - foreach my $bl_name (split(/,/, $bl_names)) { - if ($bl_type eq $type && $bl_name eq $name) { - $blacklisted = 1; - } - } - } elsif ($bl_items =~ /^(\w+)$/) { - my $bl_type = $1; - if ($bl_type eq $type) { - $blacklisted = 1; - } - } - } - return $blacklisted; -} - -sub add_message { - my $self = shift; - my $level = shift; - my $message = shift; - $self->{runtime}->{plugin}->add_message($level, $message) - unless $self->{blacklisted}; - if (exists $self->{failed}) { - if ($level == UNKNOWN && $self->{failed} == OK) { - $self->{failed} = $level; - } elsif ($level > $self->{failed}) { - $self->{failed} = $level; - } - } -} - -sub remove_message { - my $self = shift; - my $level = shift; - my $message = shift; - $self->{runtime}->{plugin}->remove_message($level) ; -} - -sub has_failed { - my $self = shift; - return $self->{failed}; -} - -sub add_info { - my $self = shift; - my $info = shift; - $info = $self->{blacklisted} ? $info.' (blacklisted)' : $info; - $self->{info} = $info; - if (! exists $self->{runtime}->{plugin}->{info}) { - $self->{runtime}->{plugin}->{info} = []; - } - push(@{$self->{runtime}->{plugin}->{info}}, $info); -} - -sub annotate_info { - my $self = shift; - my $annotation = shift; - my $lastinfo = pop(@{$self->{runtime}->{plugin}->{info}}); - $lastinfo .= sprintf ' (%s)', $annotation; - push(@{$self->{runtime}->{plugin}->{info}}, $lastinfo); -} - -sub add_extendedinfo { - my $self = shift; - my $info = shift; - $self->{extendedinfo} = $info; - return if ! $self->{runtime}->{options}->{extendedinfo}; - if (! exists $self->{runtime}->{plugin}->{extendedinfo}) { - $self->{runtime}->{plugin}->{extendedinfo} = []; - } - push(@{$self->{runtime}->{plugin}->{extendedinfo}}, $info); -} - -sub get_extendedinfo { - my $self = shift; - if (! exists $self->{runtime}->{plugin}->{extendedinfo}) { - $self->{runtime}->{plugin}->{extendedinfo} = []; - } - return join(' ', @{$self->{runtime}->{plugin}->{extendedinfo}}); -} - -sub add_summary { - my $self = shift; - my $summary = shift; - if (! exists $self->{runtime}->{plugin}->{summary}) { - $self->{runtime}->{plugin}->{summary} = []; - } - push(@{$self->{runtime}->{plugin}->{summary}}, $summary); -} - -sub get_summary { - my $self = shift; - if (! exists $self->{runtime}->{plugin}->{summary}) { - $self->{runtime}->{plugin}->{summary} = []; - } - return join(', ', @{$self->{runtime}->{plugin}->{summary}}); -} - -sub dumper { - my $self = shift; - my $object = shift; - my $run = $object->{runtime}; - delete $object->{runtime}; - printf STDERR "%s\n", Data::Dumper::Dumper($object); - $object->{runtime} = $run; -} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/SNMP/Utils.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/SNMP/Utils.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/SNMP/Utils.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/SNMP/Utils.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,103 +0,0 @@ -package SNMP::Utils; - -use strict; - -{ - sub get_indices { - my $oids = shift; - my $entry = shift; - my $numindices = shift; - # find all oids beginning with $entry - # then skip one field for the sequence - # then read the next numindices fields - my $entrypat = $entry; - $entrypat =~ s/\./\\\./g; - my @indices = map { - /^$entrypat\.\d+\.(.*)/ && $1; - } grep { - /^$entrypat/ - } keys %{$oids}; - my %seen = (); - my @o = map {[split /\./]} sort grep !$seen{$_}++, @indices; - return @o; - } - - sub get_size { - my $oids = shift; - my $entry = shift; - my $entrypat = $entry; - $entrypat =~ s/\./\\\./g; - my @entries = grep { - /^$entrypat/ - } keys %{$oids}; - return scalar(@entries); - } - - sub get_object { - my $oids = shift; - my $object = shift; - my @indices = @_; - #my $oid = $object.'.'.join('.', @indices); - my $oid = $object; - $oid .= '.'.join('.', @indices) if (@indices); - return $oids->{$oid}; - } - - sub get_object_value { - my $oids = shift; - my $object = shift; - my $values = shift; - my @indices = @_; - my $key = get_object($oids, $object, @indices); - if (defined $key) { - return $values->{$key}; - } else { - return undef; - } - } - - #SNMP::Utils::counter([$idxs1, $idxs2], $idx1, $idx2), - # this flattens a n-dimensional array and returns the absolute position - # of the element at position idx1,idx2,...,idxn - # element 1,2 in table 0,0 0,1 0,2 1,0 1,1 1,2 2,0 2,1 2,2 is at pos 6 - sub get_number { - my $indexlists = shift; #, zeiger auf array aus [1, 2] - my @element = @_; - my $dimensions = scalar(@{$indexlists->[0]}); - my @sorted = (); - my $number = 0; - if ($dimensions == 1) { - @sorted = - sort { $a->[0] <=> $b->[0] } @{$indexlists}; - } elsif ($dimensions == 2) { - @sorted = - sort { $a->[0] <=> $b->[0] || $a->[1] <=> $b->[1] } @{$indexlists}; - } elsif ($dimensions == 3) { - @sorted = - sort { $a->[0] <=> $b->[0] || - $a->[1] <=> $b->[1] || - $a->[2] <=> $b->[2] } @{$indexlists}; - } - foreach (@sorted) { - if ($dimensions == 1) { - if ($_->[0] == $element[0]) { - last; - } - } elsif ($dimensions == 2) { - if ($_->[0] == $element[0] && $_->[1] == $element[1]) { - last; - } - } elsif ($dimensions == 3) { - if ($_->[0] == $element[0] && - $_->[1] == $element[1] && - $_->[2] == $element[2]) { - last; - } - } - $number++; - } - return ++$number; - } - -} - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Storage.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Storage.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Storage.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/HP/Storage.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,308 +0,0 @@ -package HP::Storage; - -use strict; -use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; -use Data::Dumper; - -our @ISA = qw(HP::Server); - -sub init { - my $self = shift; - $self->{components} = { - powersupply_subsystem => undef, - fan_subsystem => undef, - temperature_subsystem => undef, - cpu_subsystem => undef, - memory_subsystem => undef, - disk_subsystem => undef, - sensor_subsystem => undef, - }; - $self->{serial} = 'unknown'; - $self->{product} = 'unknown'; - $self->{romversion} = 'unknown'; - $self->collect(); - if (! $self->{runtime}->{plugin}->check_messages()) { - $self->set_serial(); -# $self->check_for_buggy_firmware(); -# $self->analyze_cpus(); -# $self->analyze_powersupplies(); -# $self->analyze_fan_subsystem(); -# $self->analyze_temperatures(); -# $self->analyze_memory_subsystem(); - $self->analyze_disk_subsystem(); -## $self->analyze_sensor_subsystem(); -# $self->check_cpus(); -# $self->check_powersupplies(); -# $self->check_fan_subsystem(); -# $self->check_temperatures(); -# $self->check_memory_subsystem(); - $self->check_disk_subsystem(); -## $self->check_sensor_subsystem(); - } -} - -sub identify { - my $self = shift; - return sprintf "System: '%s', S/N: '%s', ROM: '%s'", - $self->{product}, $self->{serial}, $self->{romversion}; -} - -sub check_for_buggy_firmware { - my $self = shift; - my @buggyfirmwares = ( - "P24 12/11/2001", - "P24 11/15/2002", - "D13 06/03/2003", - "D13 09/15/2004", - "P20 12/17/2002" - ); - $self->{runtime}->{options}->{buggy_firmware} = - grep /^$self->{romversion}/, @buggyfirmwares; -} - -sub dump { - my $self = shift; - printf STDERR "serial %s\n", $self->{serial}; - printf STDERR "product %s\n", $self->{product}; - printf STDERR "romversion %s\n", $self->{romversion}; - printf STDERR "%s\n", Data::Dumper::Dumper($self->{components}); -} - -sub analyze_powersupplies { - my $self = shift; - $self->{components}->{powersupply_subsystem} = - HP::Storage::Component::PowersupplySubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_fan_subsystem { - my $self = shift; - $self->{components}->{fan_subsystem} = - HP::Storage::Component::FanSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_temperatures { - my $self = shift; - $self->{components}->{temperature_subsystem} = - HP::Storage::Component::TemperatureSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_cpus { - my $self = shift; - $self->{components}->{cpu_subsystem} = - HP::Storage::Component::CpuSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_memory_subsystem { - my $self = shift; - $self->{components}->{memory_subsystem} = - HP::Storage::Component::MemorySubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_disk_subsystem { - my $self = shift; - $self->{components}->{disk_subsystem} = - HP::Proliant::Component::DiskSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub analyze_sensor_subsystem { - my $self = shift; - $self->{components}->{sensor_subsystem} = - HP::FCMGMT::Component::SensorSubsystem->new( - rawdata => $self->{rawdata}, - method => $self->{method}, - runtime => $self->{runtime}, - ); -} - -sub check_cpus { - my $self = shift; - $self->{components}->{cpu_subsystem}->check(); - $self->{components}->{cpu_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_powersupplies { - my $self = shift; - $self->{components}->{powersupply_subsystem}->check(); - $self->{components}->{powersupply_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_fan_subsystem { - my $self = shift; - $self->{components}->{fan_subsystem}->check(); - $self->{components}->{fan_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_temperatures { - my $self = shift; - $self->{components}->{temperature_subsystem}->check(); - $self->{components}->{temperature_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_memory_subsystem { - my $self = shift; - $self->{components}->{memory_subsystem}->check(); - $self->{components}->{memory_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 2; -} - -sub check_disk_subsystem { - my $self = shift; - $self->{components}->{disk_subsystem}->check(); - $self->{components}->{disk_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 1; -} - -sub check_sensor_subsystem { - my $self = shift; - $self->{components}->{isensor_subsystem}->check(); - $self->{components}->{sensor_subsystem}->dump() - if $self->{runtime}->{options}->{verbose} >= 1; -} - - -sub collect { - my $self = shift; - if ($self->{runtime}->{plugin}->opts->snmpwalk) { - my $cpqSeMibCondition = '1.3.6.1.4.1.232.6.1.3.0'; - # rindsarsch! - $self->{rawdata}->{$cpqSeMibCondition} = 0; - if (! exists $self->{rawdata}->{$cpqSeMibCondition}) { - $self->add_message(CRITICAL, - 'snmpwalk returns no health data (cpqhlth-mib)'); - } - } else { - my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 - #$params{'-translate'} = [ - # -all => 0x0 - #]; - my ($session, $error) = - Net::SNMP->session(%{$self->{runtime}->{snmpparams}}); - if (! defined $session) { - $self->{plugin}->add_message(CRITICAL, 'cannot create session object'); - $self->trace(1, Data::Dumper::Dumper($self->{runtime}->{snmpparams})); - } else { - # revMajor is often used for discovery of hp devices - my $cpqSeMibRev = '1.3.6.1.4.1.232.6.1'; - my $cpqSeMibRevMajor = '1.3.6.1.4.1.232.6.1.1.0'; - my $cpqSeMibCondition = '1.3.6.1.4.1.232.6.1.3.0'; - my $result = $session->get_request( - -varbindlist => [$cpqSeMibCondition] - ); - # rindsarsch! - $result->{$cpqSeMibCondition} = 0; - if (!defined($result) || - $result->{$cpqSeMibCondition} eq 'noSuchInstance' || - $result->{$cpqSeMibCondition} eq 'noSuchObject' || - $result->{$cpqSeMibCondition} eq 'endOfMibView') { - $self->add_message(CRITICAL, - 'snmpwalk returns no health data (cpqhlth-mib)'); - $session->close; - } else { - # this is not reliable. many agents return 4=failed - #if ($result->{$cpqSeMibCondition} != 2) { - # $obstacle = "cmapeerstart"; - #} - } - } - if (! $self->{runtime}->{plugin}->check_messages()) { - # snmp peer is alive - $self->trace(2, sprintf "Protocol is %s", - $self->{runtime}->{snmpparams}->{'-version'}); - my $cpqSsSys = "1.3.6.1.4.1.232.8"; - $session->translate; - my $response = {}; #break the walk up in smaller pieces - my $tic = time; my $tac = $tic; - my $response1 = $session->get_table( - -baseoid => $cpqSsSys); - $tac = time; - $self->trace(2, sprintf "%03d seconds for walk cpqSsSys (%d oids)", - $tac - $tic, scalar(keys %{$response1})); - $session->close; - map { $response->{$_} = $response1->{$_} } keys %{$response1}; - map { $response->{$_} =~ s/^\s+//; $response->{$_} =~ s/\s+$//; } - keys %$response; - $self->{rawdata} = $response; - } - } - return $self->{runtime}->{plugin}->check_messages(); -} - -sub set_serial { - my $self = shift; - my $snmpwalk = $self->{rawdata}; - my @serials = (); - my @models = (); - my @fws = (); - my $cpqSsBackplaneEntry = '1.3.6.1.4.1.232.8.2.2.6.1'; - my $cpqSsBackplaneFWRev = '1.3.6.1.4.1.232.8.2.2.6.1.3'; - my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'; - my $cpqSsBackplaneSerialNumber = '1.3.6.1.4.1.232.8.2.2.6.1.13'; - # INDEX { cpqSsBackplaneChassisIndex, cpqSsBackplaneIndex } - my @indexes = SNMP::Utils::get_indices($snmpwalk, - $cpqSsBackplaneEntry); - foreach (@indexes) { - my($idx1, $idx2) = ($_->[0], $_->[1]); - my $fw = SNMP::Utils::get_object($snmpwalk, - $cpqSsBackplaneFWRev, $idx1, $idx2); - my $model = SNMP::Utils::get_object($snmpwalk, - $cpqSsBackplaneModel, $idx1, $idx2); - my $serial = SNMP::Utils::get_object($snmpwalk, - $cpqSsBackplaneSerialNumber, $idx1, $idx2); - push(@serials, $serial); - push(@models, $model); - push(@fws, $fw); - } - - $self->{serial} = join('/', @serials); - $self->{product} = join('/', @models); - $self->{romversion} = join('/', @fws); - $self->{runtime}->{product} = $self->{product}; -} - - - - - - - - - - - - - - - - - - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Makefile.am nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Makefile.am --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Makefile.am 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,100 +0,0 @@ -## Process this file with automake to produce Makefile.in - -SED=/bin/sed -GREP=/bin/grep -CAT=/bin/cat -ECHO=/bin/echo - -SUFFIXES = .pl .pm .sh - -VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t - -libexec_SCRIPTS=check_hpasm -MY_MODULES= -EXTRA_MODULES=\ - Nagios/MiniPlugin.pm \ - HP/SNMP/Utils.pm \ - HP/Proliant/Component/EventSubsystem.pm \ - HP/Proliant/Component/EventSubsystem/CLI.pm \ - HP/Proliant/Component/EventSubsystem/SNMP.pm \ - HP/Proliant/Component/PowersupplySubsystem.pm \ - HP/Proliant/Component/PowersupplySubsystem/CLI.pm \ - HP/Proliant/Component/PowersupplySubsystem/SNMP.pm \ - HP/Proliant/Component/TemperatureSubsystem.pm \ - HP/Proliant/Component/TemperatureSubsystem/CLI.pm \ - HP/Proliant/Component/TemperatureSubsystem/SNMP.pm \ - HP/Proliant/Component/CpuSubsystem.pm \ - HP/Proliant/Component/CpuSubsystem/CLI.pm \ - HP/Proliant/Component/CpuSubsystem/SNMP.pm \ - HP/Proliant/Component/FanSubsystem.pm \ - HP/Proliant/Component/FanSubsystem/CLI.pm \ - HP/Proliant/Component/FanSubsystem/SNMP.pm \ - HP/Proliant/Component/MemorySubsystem/CLI.pm \ - HP/Proliant/Component/MemorySubsystem/SNMP.pm \ - HP/Proliant/Component/MemorySubsystem.pm \ - HP/Proliant/Component/NicSubsystem/SNMP.pm \ - HP/Proliant/Component/NicSubsystem.pm \ - HP/Proliant/Component/AsrSubsystem/CLI.pm \ - HP/Proliant/Component/AsrSubsystem/SNMP.pm \ - HP/Proliant/Component/AsrSubsystem.pm \ - HP/Proliant/Component/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Da/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Da.pm \ - HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Sas.pm \ - HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Scsi.pm \ - HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Ide.pm \ - HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Fca.pm \ - HP/Proliant/Component/DiskSubsystem.pm \ - HP/Proliant/Component.pm \ - HP/Proliant.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm \ - HP/BladeSystem/Component/PowerEnclosureSubsystem.pm \ - HP/BladeSystem/Component/PowerSupplySubsystem.pm \ - HP/BladeSystem/Component/NetConnectorSubsystem.pm \ - HP/BladeSystem/Component/ServerBladeSubsystem.pm \ - HP/BladeSystem/Component.pm \ - HP/BladeSystem.pm \ - HP/Storage.pm \ - HP/Server.pm -EXTRA_DIST=check_hpasm.pl $(EXTRA_MODULES) - -CLEANFILES=$(libexec_SCRIPTS) - -AM_INSTALL_PROGRAM_FLAGS=@INSTALL_OPTS@ - -.pm : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -.pl : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -.sh : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -$(libexec_SCRIPTS) : $(EXTRA_DIST) - $(ECHO) "#! #PERL# -w" | $(AWK) -f ./subst > $@ - $(ECHO) >> $@ - for m in ${EXTRA_MODULES}; do \ - $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "use Nagios::Plugin" >> $@; \ - done - $(ECHO) "package main;" >> $@ - $(CAT) check_hpasm.pl | $(AWK) -f ./subst >> $@ - chmod +x $@ -#| $(GREP) -v "use Nagios" >> $@; - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Makefile.in nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Makefile.in --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,403 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = plugins-scripts -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/subst.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_CLEAN_FILES = subst -am__installdirs = "$(DESTDIR)$(libexecdir)" -libexecSCRIPT_INSTALL = $(INSTALL_SCRIPT) -SCRIPTS = $(libexec_SCRIPTS) -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -VPATH = $(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t -INSTALL = @INSTALL@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CELSIUS = @CELSIUS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXTENDEDINFO = @EXTENDEDINFO@ -HPACUCLI = @HPACUCLI@ -HWINFO = @HWINFO@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_OPTS = @INSTALL_OPTS@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -NOINSTLEVEL = @NOINSTLEVEL@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERFDATA = @PERFDATA@ -PERL = @PERL@ -RELEASE = @RELEASE@ -SET_MAKE = @SET_MAKE@ -SH = @SH@ -SHELL = @SHELL@ -STRIP = @STRIP@ -SUPPORT = @SUPPORT@ -VERSION = @VERSION@ -WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__leading_dot = @am__leading_dot@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -with_nagios_group = @with_nagios_group@ -with_nagios_user = @with_nagios_user@ -SED = /bin/sed -GREP = /bin/grep -CAT = /bin/cat -ECHO = /bin/echo -SUFFIXES = .pl .pm .sh -libexec_SCRIPTS = check_hpasm -MY_MODULES = -EXTRA_MODULES = \ - Nagios/MiniPlugin.pm \ - HP/SNMP/Utils.pm \ - HP/Proliant/Component/EventSubsystem.pm \ - HP/Proliant/Component/EventSubsystem/CLI.pm \ - HP/Proliant/Component/EventSubsystem/SNMP.pm \ - HP/Proliant/Component/PowersupplySubsystem.pm \ - HP/Proliant/Component/PowersupplySubsystem/CLI.pm \ - HP/Proliant/Component/PowersupplySubsystem/SNMP.pm \ - HP/Proliant/Component/TemperatureSubsystem.pm \ - HP/Proliant/Component/TemperatureSubsystem/CLI.pm \ - HP/Proliant/Component/TemperatureSubsystem/SNMP.pm \ - HP/Proliant/Component/CpuSubsystem.pm \ - HP/Proliant/Component/CpuSubsystem/CLI.pm \ - HP/Proliant/Component/CpuSubsystem/SNMP.pm \ - HP/Proliant/Component/FanSubsystem.pm \ - HP/Proliant/Component/FanSubsystem/CLI.pm \ - HP/Proliant/Component/FanSubsystem/SNMP.pm \ - HP/Proliant/Component/MemorySubsystem/CLI.pm \ - HP/Proliant/Component/MemorySubsystem/SNMP.pm \ - HP/Proliant/Component/MemorySubsystem.pm \ - HP/Proliant/Component/NicSubsystem/SNMP.pm \ - HP/Proliant/Component/NicSubsystem.pm \ - HP/Proliant/Component/AsrSubsystem/CLI.pm \ - HP/Proliant/Component/AsrSubsystem/SNMP.pm \ - HP/Proliant/Component/AsrSubsystem.pm \ - HP/Proliant/Component/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Da/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Da.pm \ - HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Sas.pm \ - HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Scsi.pm \ - HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Ide.pm \ - HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm \ - HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm \ - HP/Proliant/Component/DiskSubsystem/Fca.pm \ - HP/Proliant/Component/DiskSubsystem.pm \ - HP/Proliant/Component.pm \ - HP/Proliant.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm \ - HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm \ - HP/BladeSystem/Component/PowerEnclosureSubsystem.pm \ - HP/BladeSystem/Component/PowerSupplySubsystem.pm \ - HP/BladeSystem/Component/NetConnectorSubsystem.pm \ - HP/BladeSystem/Component/ServerBladeSubsystem.pm \ - HP/BladeSystem/Component.pm \ - HP/BladeSystem.pm \ - HP/Storage.pm \ - HP/Server.pm - -EXTRA_DIST = check_hpasm.pl $(EXTRA_MODULES) -CLEANFILES = $(libexec_SCRIPTS) -AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .pl .pm .sh -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins-scripts/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu plugins-scripts/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -subst: $(top_builddir)/config.status $(srcdir)/subst.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -install-libexecSCRIPTS: $(libexec_SCRIPTS) - @$(NORMAL_INSTALL) - test -z "$(libexecdir)" || $(mkdir_p) "$(DESTDIR)$(libexecdir)" - @list='$(libexec_SCRIPTS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(libexecSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(libexecdir)/$$f'"; \ - $(libexecSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(libexecdir)/$$f"; \ - else :; fi; \ - done - -uninstall-libexecSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(libexec_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(libexecdir)/$$f'"; \ - rm -f "$(DESTDIR)$(libexecdir)/$$f"; \ - done -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/HP $(distdir)/HP/BladeSystem $(distdir)/HP/BladeSystem/Component $(distdir)/HP/BladeSystem/Component/CommonEnclosureSubsystem $(distdir)/HP/Proliant $(distdir)/HP/Proliant/Component $(distdir)/HP/Proliant/Component/AsrSubsystem $(distdir)/HP/Proliant/Component/CpuSubsystem $(distdir)/HP/Proliant/Component/DiskSubsystem $(distdir)/HP/Proliant/Component/DiskSubsystem/Da $(distdir)/HP/Proliant/Component/DiskSubsystem/Fca $(distdir)/HP/Proliant/Component/DiskSubsystem/Ide $(distdir)/HP/Proliant/Component/DiskSubsystem/Sas $(distdir)/HP/Proliant/Component/DiskSubsystem/Scsi $(distdir)/HP/Proliant/Component/EventSubsystem $(distdir)/HP/Proliant/Component/FanSubsystem $(distdir)/HP/Proliant/Component/MemorySubsystem $(distdir)/HP/Proliant/Component/NicSubsystem $(distdir)/HP/Proliant/Component/PowersupplySubsystem $(distdir)/HP/Proliant/Component/TemperatureSubsystem $(distdir)/HP/SNMP $(distdir)/Nagios - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(SCRIPTS) -installdirs: - for dir in "$(DESTDIR)$(libexecdir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: install-libexecSCRIPTS - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am uninstall-libexecSCRIPTS - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am \ - install-libexecSCRIPTS install-man install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ - uninstall-libexecSCRIPTS - - -.pm : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -.pl : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -.sh : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -$(libexec_SCRIPTS) : $(EXTRA_DIST) - $(ECHO) "#! #PERL# -w" | $(AWK) -f ./subst > $@ - $(ECHO) >> $@ - for m in ${EXTRA_MODULES}; do \ - $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "use Nagios::Plugin" >> $@; \ - done - $(ECHO) "package main;" >> $@ - $(CAT) check_hpasm.pl | $(AWK) -f ./subst >> $@ - chmod +x $@ -#| $(GREP) -v "use Nagios" >> $@; -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Nagios/MiniPlugin.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Nagios/MiniPlugin.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Nagios/MiniPlugin.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/Nagios/MiniPlugin.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,333 +0,0 @@ -package Nagios::MiniPlugin; - -use strict; -use Getopt::Long qw(:config no_ignore_case bundling); - -our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); - -require Exporter; -our @ISA = qw(Exporter); -our @EXPORT = (@STATUS_CODES, qw(nagios_exit nagios_die check_messages)); -our @EXPORT_OK = qw(%ERRORS); - -use constant OK => 0; -use constant WARNING => 1; -use constant CRITICAL => 2; -use constant UNKNOWN => 3; -use constant DEPENDENT => 4; - -our %ERRORS = ( - 'OK' => OK, - 'WARNING' => WARNING, - 'CRITICAL' => CRITICAL, - 'UNKNOWN' => UNKNOWN, - 'DEPENDENT' => DEPENDENT, -); - -our %STATUS_TEXT = reverse %ERRORS; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - perfdata => [], - messages => { - ok => [], - warning => [], - critical => [], - unknown => [], - }, - args => [], - opts => Nagios::MiniPlugin::Getopt->new(%params), - }; - foreach (qw(shortname usage version url plugin blurb extra - license timeout)) { - $self->{$_} = $params{$_}; - } - bless $self, $class; -} - -sub add_arg { - my $self = shift; - $self->{opts}->add_arg(@_); -} - -sub getopts { - my $self = shift; - $self->{opts}->getopts(); -} - -sub opts { - my $self = shift; - return $self->{opts}; -} - -sub add_message { - my $self = shift; - my ($code, @messages) = @_; - $code = (qw(ok warning critical unknown))[$code] if $code =~ /^\d+$/; - $code = lc $code; - push @{$self->{messages}->{$code}}, @messages; -} - -sub remove_message { - my $self = shift; - my ($code, @messages) = @_; - $code = (qw(ok warning critical unknown))[$code] if $code =~ /^\d+$/; - $code = lc $code; - pop @{$self->{messages}->{$code}}; -} - -sub add_perfdata { - my ($self, %args) = @_; - my $str = $args{label}.'='.$args{value}; - if ($args{uom}) { - $str .= $args{uom}; - } - if ($args{warning}) { - $str .= ';'.$args{warning}; - } - if ($args{critical}) { - $str .= ';'.$args{critical}; - } - push @{$self->{perfdata}}, $str; -} - - -sub check_messages { - my $self = shift; - my %args = @_; - - # Add object messages to any passed in as args - for my $code (qw(critical warning unknown ok)) { - my $messages = $self->{messages}->{$code} || []; - if ($args{$code}) { - unless (ref $args{$code} eq 'ARRAY') { - if ($code eq 'ok') { - $args{$code} = [ $args{$code} ]; - } - } - push @{$args{$code}}, @$messages; - } else { - $args{$code} = $messages; - } - } - my %arg = %args; - $arg{join} = ' ' unless defined $arg{join}; - - # Decide $code - my $code = OK; - $code ||= CRITICAL if @{$arg{critical}}; - $code ||= WARNING if @{$arg{warning}}; - $code ||= UNKNOWN if @{$arg{unknown}}; - return $code unless wantarray; - - # Compose message - my $message = ''; - if ($arg{join_all}) { - $message = join( $arg{join_all}, - map { @$_ ? join( $arg{'join'}, @$_) : () } - $arg{critical}, - $arg{warning}, - $arg{unknown}, - $arg{ok} ? (ref $arg{ok} ? $arg{ok} : [ $arg{ok} ]) : [] - ); - } - - else { - $message ||= join( $arg{'join'}, @{$arg{critical}} ) - if $code == CRITICAL; - $message ||= join( $arg{'join'}, @{$arg{warning}} ) - if $code == WARNING; - $message ||= join( $arg{'join'}, @{$arg{unknown}} ) - if $code == UNKNOWN; - $message ||= ref $arg{ok} ? join( $arg{'join'}, @{$arg{ok}} ) : $arg{ok} - if $arg{ok}; - } - - return ($code, $message); -} - -sub nagios_exit { - my $self = shift; - my ($code, $message, $arg) = @_; - $code = $ERRORS{$code} if defined $code && exists $ERRORS{$code}; - $code = UNKNOWN unless defined $code && exists $STATUS_TEXT{$code}; - $message = '' unless defined $message; - if (ref $message && ref $message eq 'ARRAY') { - $message = join(' ', map { chomp; $_ } @$message); - } else { - chomp $message; - } - my $output = "$STATUS_TEXT{$code}"; - $output .= " - $message" if defined $message && $message ne ''; - if (scalar (@{$self->{perfdata}})) { - $output .= " | ".join(" ", @{$self->{perfdata}}); - } - $output .= "\n"; - print $output; - exit $code; -} - -package Nagios::MiniPlugin::Getopt; - -use strict; -use File::Basename; -use Data::Dumper; -use Getopt::Long qw(:config no_ignore_case bundling); - -# Standard defaults -my %DEFAULT = ( - timeout => 60, - verbose => 0, - license => -"This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY. -It may be used, redistributed and/or modified under the terms of the GNU -General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).", -); -# Standard arguments -my @ARGS = ({ - spec => 'usage|?', - help => "-?, --usage\n Print usage information", - }, { - spec => 'help|h', - help => "-h, --help\n Print detailed help screen", - }, { - spec => 'version|V', - help => "-V, --version\n Print version information", - }, { - #spec => 'extra-opts:s@', - #help => "--extra-opts=[
[@]]\n Section and/or config_file from which to load extra options (may repeat)", - }, { - spec => 'timeout|t=i', - help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)", - default => $DEFAULT{timeout}, - }, { - spec => 'verbose|v+', - help => "-v, --verbose\n Show details for command-line debugging (can repeat up to 3 times)", - default => $DEFAULT{verbose}, - }, -); -# Standard arguments we traditionally display last in the help output -my %DEFER_ARGS = map { $_ => 1 } qw(timeout verbose); - -sub _init -{ - my $self = shift; - my %params = @_; - # Check params - my $plugin = basename($ENV{NAGIOS_PLUGIN} || $0); - #my %attr = validate( @_, { - my %attr = ( - usage => 1, - version => 0, - url => 0, - plugin => { default => $plugin }, - blurb => 0, - extra => 0, - 'extra-opts' => 0, - license => { default => $DEFAULT{license} }, - timeout => { default => $DEFAULT{timeout} }, - ); - - # Add attr to private _attr hash (except timeout) - $self->{timeout} = delete $attr{timeout}; - $self->{_attr} = { %attr }; - foreach (keys %{$self->{_attr}}) { - if (exists $params{$_}) { - $self->{_attr}->{$_} = $params{$_}; - } else { - $self->{_attr}->{$_} = $self->{_attr}->{$_}->{default} - if ref ($self->{_attr}->{$_}) eq 'HASH' && - exists $self->{_attr}->{$_}->{default}; - } - } - # Chomp _attr values - chomp foreach values %{$self->{_attr}}; - - # Setup initial args list - $self->{_args} = [ grep { exists $_->{spec} } @ARGS ]; - - $self -} - -sub new -{ - my $class = shift; - my $self = bless {}, $class; - $self->_init(@_); -} - -sub add_arg { - my $self = shift; - my %arg = @_; - push (@{$self->{_args}}, \%arg); -} - -sub getopts { - my $self = shift; - my %commandline = (); - my @params = map { $_->{spec} } @{$self->{_args}}; - if (! GetOptions(\%commandline, @params)) { - $self->print_help(); - exit 0; - } else { - no strict 'refs'; - do { $self->print_help(); exit 0; } if $commandline{help}; - do { $self->print_version(); exit 0 } if $commandline{version}; - do { $self->print_usage(); exit 0 } if $commandline{usage}; - foreach (map { $_->{spec} =~ /^([\w\-]+)/; $1; } @{$self->{_args}}) { - my $field = $_; - *{"$field"} = sub { - return $self->{opts}->{$field}; - }; - } - foreach (grep { exists $_->{default} } @{$self->{_args}}) { - $_->{spec} =~ /^([\w\-]+)/; - my $spec = $1; - $self->{opts}->{$spec} = $_->{default}; - } - foreach (keys %commandline) { - $self->{opts}->{$_} = $commandline{$_}; - } - } -} - -sub get { - my $self = shift; - my $opt = shift; - return $self->{opts}->{$opt}; -} - -sub print_help { - my $self = shift; - $self->print_version(); - printf "\n%s\n", $self->{_attr}->{license}; - printf "\n%s\n\n", $self->{_attr}->{blurb}; - $self->print_usage(); - foreach (@{$self->{_args}}) { - printf " %s\n", $_->{help}; - } - exit 0; -} - -sub print_usage { - my $self = shift; - printf $self->{_attr}->{usage}, $self->{_attr}->{plugin}; - print "\n"; -} - -sub print_version { - my $self = shift; - printf "%s %s", $self->{_attr}->{plugin}, $self->{_attr}->{version}; - printf " [%s]", $self->{_attr}->{url} if $self->{_attr}->{url}; - print "\n"; -} - -sub print_license { - my $self = shift; - printf "%s\n", $self->{_attr}->{license}; - print "\n"; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/subst.in nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/subst.in --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/subst.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/plugins-scripts/subst.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,64 +0,0 @@ -#!/usr/bin/awk - -function which(c,path) { - cmd = "test -x " c; - - if (system(cmd)==0) { - return c; - } - - sub(/\/.*\//,"",c); - for (dir in path) { - cmd = "test -x " path[dir] "/" c; - if (system(cmd)==0) { - return path[dir] "/" c; - } - } - - - return c; -} - -# used to replace "use lib utils.pm" with "use lib @libexecdir" -# -function led() { - led1 = "@libexecdir@"; - led2 = "@exec_prefix@"; - led3 = "@prefix@"; - if ( match(led1, /^\$\{exec_prefix\}/ ) != 0 ) { - return "\"" led3 "/libexec\" " ; - - } - return "\"" led1 "\"" ; -} - -BEGIN { - split(ENVIRON["PATH"] ":/sbin:/usr/sbin",path,/:/); - -} - -# scripting language (first line) - -/^#! ?\/.*\/python/ {sub(/^#! ?\/.*\/python/,"#! @PYTHON@");} -/^#! ?\/.*\/perl/ {sub(/^#! ?\/.*\/perl/,"#! @PERL@");} -/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");} -/^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");} - -# add to libexecdir to INC for perl utils.pm -/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } } - - -# Replace the placeholders with the values from configure -/#PERL#/ {sub(/#PERL#/,"@PERL@");} -/my \$NOINSTLEVEL = 'unknown'/ {sub(/unknown/,"@NOINSTLEVEL@");} -/my \$CELSIUS = 1;/ {sub(/1/,"@CELSIUS@");} -/my \$PERFDATA = 1;/ {sub(/1/,"@PERFDATA@");} -/my \$EXTENDEDINFO = 1;/ {sub(/1/,"@EXTENDEDINFO@");} -/my \$HWINFO = 1;/ {sub(/1/,"@HWINFO@");} -/my \$HPACUCLI = 1;/ {sub(/1/,"@HPACUCLI@");} -/version => '.*',/ {sub(/'.*'/,"'@PACKAGE_VERSION@'");} - -{ - print; -} - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/README nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/README --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/README 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,346 +0,0 @@ -check_hpasm Nagios Plugin README ---------------------- - -This plugin checks the hardware health of HP Proliant servers with the -hpasm software installed. It uses the hpasmcli command to acquire the -condition of the system's critical components like cpus, power supplies, -temperatures, fans and memory modules. Newer versions also use SNMP. - -* For instructions on installing this plugin for use with Nagios, - see below. In addition, generic instructions for the GNU toolchain - can be found in the INSTALL file. - -* For major changes between releases, read the CHANGES file. - -* For information on detailed changes that have been made, - read the Changelog file. - -* This plugins is self documenting. All plugins that comply with - the basic guidelines for development will provide detailed help when - invoked with the '-h' or '--help' options. - -You can check for the latest plugin at: - http://www.consol.de/opensource/nagios/check-hpasm - -Send mail to gerhard.lausser@consol.de for assistance. -Please include the OS type and version that you are using. -Also, run the plugin with the '-v' option and provide the resulting -version information. Of course, there may be additional diagnostic information -required as well. Use good judgment. - - -How to "compile" the check_hpasm script. --------------------------------------------------------- - -1) Run the configure script to initialize variables and create a Makefile, etc. - - ./configure --prefix=BASEDIRECTORY --with-nagios-user=SOMEUSER --with-nagios-group=SOMEGROUP --with-perl=PATH_TO_PERL --with-noinst-level=LEVEL --with-degrees=UNIT --with-perfdata --with-hpacucli - - a) Replace BASEDIRECTORY with the path of the directory under which Nagios - is installed (default is '/usr/local/nagios') - b) Replace SOMEUSER with the name of a user on your system that will be - assigned permissions to the installed plugins (default is 'nagios') - c) Replace SOMEGRP with the name of a group on your system that will be - assigned permissions to the installed plugins (default is 'nagios') - d) Replace PATH_TO_PERL with the path where a perl binary can be found. - Besides the system wide perl you might have installed a private perl - just for the nagios plugins (default is the perl in your path). - e) Replace LEVEL with one of ok, warning, critical or unknown. - If the required hpasm-rpm is not installed, the check_hpasm plugin - will exit with the level specified. If you chose ok, the message - will say "ok - .... hpasm is not installed". This is different from - the "ok - hardware working fine" if hpasm was found. - The default is to treat a missing hpasm package as ok. - f) Replace UNIT with one of celsius or fahrenheit. The hpasmcli "show temp" - prints temperatures both in units of celsius and fahrenheit. With the - --with-degrees option you can decide which units will be shown in an - alarm message. - The default is "celsius". - g) You can tell check_hpasm to output performance data by default if - you call configure with the --enable-perfdata option. - h) You can tell check_hpasm to check the raid status with the hpacucli command - if you call configure with the --enable-hpacucli option. - You need the hpacucli rpm. - -2) "Compile" the plugin with the following command: - - make - - This will produce a "check_hpasm" script. You will also find - a "check_hpasm.pl" which you better ignore. It is the base for - the compilation filled with placeholders. These will be replaced during - the make process. - - -3) Install the compiled plugin script with the following command: - - make install - - The installation procedure will attempt to place the plugin in a - 'libexec/' subdirectory in the base directory you specified with - the --prefix argument to the configure script. - - -4) Verify that your configuration files for Nagios contains - the correct paths to the new plugin. - - -5) Add this line to /etc/sudoers: - nagios ALL=NOPASSWD: /sbin/hpasmcli - or ths, if you also installed the hpacu package - nagios ALL=NOPASSWD: /sbin/hpasmcli, /usr/sbin/hpacucli - - - -Command line parameters ------------------------ - --v, --verbose - Increased verbosity will print how check_hpasm communicates with the - hpasm daemon and which values were acquired. - --t, --timeout - The number of seconds after which the plugin will abort. - --b, --blacklist - If some components of your system are missing (mostly the secondary - power supply bay is empty) and you tolerate this, then blacklist the - missing/failed component to avoid false alarms. - The value for this option is a slash-separated list of components to - ignore. - Example: -b p:1,2/f:2/t:3,4/c:1/d:0-1,0-2 - means: ignore power supplies #1 and #2, fan #2, temperature #3 and #4, - cpu #1 and dimms #1 and #2 in cartridge #0. - --c, --customthresh - Override the machine-default temperature thresholds. - Example: -c 1:60/4:80/5:50 - Sets limit for temperature 1 to 60 degrees, temperature 4 to 80 degrees - and temperature 5 to 50 degrees. You get the consecutive numbers by - calling check_hpasm -v - ... - checking temperatures - 1 processor_zone temperature is 46 (62 max) - 2 cpu#1 temperature is 43 (73 max) - 3 i/o_zone temperature is 54 (68 max) - 4 cpu#2 temperature is 46 (73 max) - 5 power_supply_bay temperature is 38 (55 max) - --p, --perfdata - Add performance data to the output even if you did not compile check_hpasm - with --with-perfdata in step 1. - - - -SNMP and Memory Modules ------------------------ -Older hardware does not always show valuable information when queried for -the health of memory modules. Maybe it's because older modules do not support -error checking at all. - - -1. no cpqHeResMemModule ---------------------------------------------------------------------------- - -2. collapsed cpqHeResMemModule ---------------------------------------------------------------------------- - -Some (older) systems do not support the cpqHeResMemModuleEntry table. -Either there is no oid with 1.3.6.1.4.1.232.6.2.14.11.1 at all -or there is a single oid like - -Example: -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.1 = INTEGER: 524288 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.2 = INTEGER: 262144 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.3 = INTEGER: 0 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.4 = INTEGER: 524288 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.5 = INTEGER: 262144 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.6 = INTEGER: 0 - - ^-- module number - ^-- cartridge number (0 = system board) - ^-- size - -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.6 = INTEGER: 0 - -I compared 300 systems and found out that with -1.3.6.1.4.1.232.6.2.14.11.1... = -no1 is always 1 -no2 is always 0 -no3 is the number of memory slots (including the empty ones). -no4 is always 0. It is probably the health status of the -overall memory subsystem. I don't know. -I will implement 0 = ok, not 0 = ask compaq - -cpqSiMemECCStatus provides no usable information. All my test systems -showed 0 which is an undocumented value. - -function get_size(cpqHeResMemModuleEntry) will return 1. - -3. cpqHeResMemModule containing crap ---------------------------------------------------------------------------- - -grepping for cpqSiMemBoardSize shows 4 modules -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.1 = INTEGER: 262144 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.2 = INTEGER: 262144 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.3 = INTEGER: 0 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.4 = INTEGER: 262144 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.5 = INTEGER: 262144 -iso.3.6.1.4.1.232.2.2.4.5.1.3.0.6 = INTEGER: 0 - -grepping for cpqHeResMemEntry shows one module with zero values -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.0 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.2.0.0 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.3.0.0 = "" -iso.3.6.1.4.1.232.6.2.14.11.1.4.0.0 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.5.0.0 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.6.0.0 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - - -4. cpqHeResMemModuleEntry and cpqSiMemModuleEntry use different table indexes ---------------------------------------------------------------------------- - -cpqSiMemBoardIndex 1.3.6.1.4.1.232.2.2.4.5.1.1 -cpqSiMemModuleIndex 1.3.6.1.4.1.232.2.2.4.5.1.2 - -cpqHeResMemBoardIndex 1.3.6.1.4.1.232.6.2.14.11.1.1 -cpqHeResMemModuleIndex 1.3.6.1.4.1.232.6.2.14.11.1.2 - - -cpqSiMemBoardIndex -SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.1 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.2 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.3 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.4 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.5 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.6 = INTEGER: 0 - -cpqHeResMemBoardIndex -SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.1 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.2 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.3 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.4 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.5 = INTEGER: 0 -SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.6 = INTEGER: 0 - -It is not possible to use the SNMP-table-indices to identify the -corresponding he-entry. Matching is done with nested loops. - -5. even worse: cpqHeResMemBoardIndex and cpqSiMemBoardIndex don't match ---------------------------------------------------------------------------- - -cpqSiMemBoardIndex -iso.3.6.1.4.1.232.2.2.4.5.1.1.1.1 = INTEGER: 1 -iso.3.6.1.4.1.232.2.2.4.5.1.1.1.2 = INTEGER: 1 -iso.3.6.1.4.1.232.2.2.4.5.1.1.1.3 = INTEGER: 1 -iso.3.6.1.4.1.232.2.2.4.5.1.1.1.4 = INTEGER: 1 -iso.3.6.1.4.1.232.2.2.4.5.1.1.1.5 = INTEGER: 1 -iso.3.6.1.4.1.232.2.2.4.5.1.1.1.6 = INTEGER: 1 -iso.3.6.1.4.1.232.2.2.4.5.1.1.1.7 = INTEGER: 1 -iso.3.6.1.4.1.232.2.2.4.5.1.1.1.8 = INTEGER: 1 -iso.3.6.1.4.1.232.2.2.4.5.1.1.2.1 = INTEGER: 2 -iso.3.6.1.4.1.232.2.2.4.5.1.1.2.2 = INTEGER: 2 -iso.3.6.1.4.1.232.2.2.4.5.1.1.2.3 = INTEGER: 2 -iso.3.6.1.4.1.232.2.2.4.5.1.1.2.4 = INTEGER: 2 -iso.3.6.1.4.1.232.2.2.4.5.1.1.2.5 = INTEGER: 2 -iso.3.6.1.4.1.232.2.2.4.5.1.1.2.6 = INTEGER: 2 -iso.3.6.1.4.1.232.2.2.4.5.1.1.2.7 = INTEGER: 2 -iso.3.6.1.4.1.232.2.2.4.5.1.1.2.8 = INTEGER: 2 -iso.3.6.1.4.1.232.2.2.4.5.1.1.3.1 = INTEGER: 3 - -cpqHeResMemBoardIndex -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.1 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.2 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.3 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.4 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.5 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.6 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.7 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.1.0.8 = INTEGER: 0 -iso.3.6.1.4.1.232.6.2.14.11.1.1.1.1 = INTEGER: 1 -iso.3.6.1.4.1.232.6.2.14.11.1.1.1.2 = INTEGER: 1 -iso.3.6.1.4.1.232.6.2.14.11.1.1.1.3 = INTEGER: 1 -iso.3.6.1.4.1.232.6.2.14.11.1.1.1.4 = INTEGER: 1 -iso.3.6.1.4.1.232.6.2.14.11.1.1.1.5 = INTEGER: 1 -iso.3.6.1.4.1.232.6.2.14.11.1.1.1.6 = INTEGER: 1 -iso.3.6.1.4.1.232.6.2.14.11.1.1.1.7 = INTEGER: 1 -iso.3.6.1.4.1.232.6.2.14.11.1.1.1.8 = INTEGER: 1 -iso.3.6.1.4.1.232.6.2.14.11.1.1.2.1 = INTEGER: 2 - - -Redundant fans ------------------------ -I saw one old server which had only half of the possible fans installed. - -Fan# 1 2 3 4 5 6 - -cpqHeFltTolFanPresent yes no yes no yes no -cpqHeFltTolFanRedundant no no no no no no -cpqHeFltTolFanRedundantPartner 2 1 4 3 6 5 -cpqHeFltTolFanCondition ok other ok other ok other -cpqHeFltTolFanLocation cpu cpu cpu cpu io io - -Normally this would result in -... -fan #1 (cpu) is not redundant -fan #2 (cpu) is not redundant -fan #3 (cpu) is not redundant -fan #4 (cpu) is not redundant -fan #5 (ioboard) is not redundant -fan #6 (ioboard) is not redundant -WARNING - fan #1 (cpu) is not redundant, fan #2 (cpu) is not redundant, fan #3 (cpu) is not redundant, fan #4 (cpu) is not redundant, fan #5 (ioboard) is not redundant, fan #6 (ioboard) is not redundant - -However it was the server's owner decision not to install fan pairs but only one fan per location, so for him this is a false alert. - -By using --ignore-fan-redundancy check_hpasm only looks at the cpqHeFltTolFanCondition and ignores dependencies between two fans, so the result is: - -fan 1 speed is normal, pctmax is 50%, location is cpu, redundance is no, partner is 2 -fan 3 speed is normal, pctmax is 50%, location is cpu, redundance is no, partner is 4 -fan 5 speed is normal, pctmax is 50%, location is ioboard, redundance is no, partner is 6 -OK - System: 'proliant ml370 g3', ... - - -A snmp forwarding trick ------------------------ -local - where check_hpasm runs -remote - where a proliant can be reached -proliant - where the snmp agent runs - -remote: -ssh -R6667:localhost:6667 local -socat tcp4-listen:6667,reuseaddr,fork UDP:proliant:161 - -local: -socat udp4-listen:161,reuseaddr,fork tcp:localhost:6667 -check_hpasm --hostname 127.0.0.1 - - -Sample data from real machines ------------------------------- - -hpasmcli=$(which hpasmcli) -hpacucli=$(which hpacucli) -for i in server powersupply fans temp dimm -do - $hpasmcli -s "show $i" | while read line - do - printf "%s %s\n" $i "$line" - done -done -if [ -x "$hpacucli" ]; then - for i in config status - do - $hpacucli ctrl all show $i | while read line - do - printf "%s %s\n" $i "$line" - done - done -fi - -If you think check_hpasm is not working correctly, please run the above script -and send me the output. It's also helpful to see the output of snmpwalk -snmpwalk .... 1.3.6.1.4.1.232 - - --- -Gerhard Lausser diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/TODO nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/TODO --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.6.3.2/TODO 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.6.3.2/TODO 1970-01-01 00:00:00.000000000 +0000 @@ -1,71 +0,0 @@ -"1.3.6.1.4.1.232.6.2.9.3.1.4.0"; /* PSU Table */ -warning = 3, critical = 4 - -"1.3.6.1.4.1.232.6.2.6.4.0"; /* Fan status */ -oder auch .... 7 -warning = 3, critical = 4 -3=non-required fan im arsch -4=required fan im arsch - - -"1.3.6.1.4.1.232.3.2.5.1.1.5"; /* Location Table */ -"1.3.6.1.4.1.232.3.2.5.1.1.6"; /* Drive Table */ -"1.3.6.1.4.1.232.3.2.5.1.1.50"; /* Drive Bus */ - - -"1.3.6.1.4.1.232.6.2.6.8.1.4.1"; /* Temperature table */ - -ml370g4 - "Processor zone", - "CPU 1", - "I/O zone", - "CPU 2" - 57.0, 80.0, 53.0, 80.0 - -dl385g1 - "CPU 1", - "I/O zone", - "CPU 2", - "Processor zone", - "PSU bay" - 100.0, 62.0, 100.0, 60.0, 51.0 - -dl380g4 - "Processor zone", - "CPU 1", - "I/O zone", - "CPU 2", - "PSU bay" - 62.0, 80.0, 60.0, 80.0, 50.0 - -dl380g3 - "Processor zone", - "CPU 1", - "I/O zone", - "CPU 2", - "PSU bay" - 62.0, 73.0, 68.0, 73.0, 53.0 - -dl360g4 - "I/O zone", - "CPU 1", - "CPU 2", - "PSU bay", - "System board" - 63.0, 85.0, 85.0, 48.0, 41.0 - -dl360g3 - "Processor zone", - "CPU 1", - "I/O zone", - "CPU 2" - 56.0, 67.0, 57.0, 67.0 - -dl329g3 - "Processor zone", - "CPU 1", - "I/O zone" - 41.0, 85.0, 52.0 - - - diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/acinclude.m4 nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/acinclude.m4 --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/acinclude.m4 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/acinclude.m4 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,78 @@ +dnl @synopsis ACX_WHICH_GETHOSTBYNAME_R +dnl +dnl Provides a test to determine the correct way to call gethostbyname_r +dnl +dnl defines HAVE_GETHOSTBYNAME_R to the number of arguments required +dnl +dnl e.g. 6 arguments (linux) +dnl e.g. 5 arguments (solaris) +dnl e.g. 3 arguments (osf/1) +dnl +dnl @version $Id: acinclude.m4,v 1.5 2004/02/18 14:56:34 kdebisschop Exp $ +dnl @author Brian Stafford +dnl +dnl based on version by Caolan McNamara +dnl based on David Arnold's autoconf suggestion in the threads faq +dnl +AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R], +[AC_CACHE_CHECK(number of arguments to gethostbyname_r, + acx_which_gethostbyname_r, [ + AC_TRY_COMPILE([ +# include + ], [ + + char *name; + struct hostent *he; + struct hostent_data data; + (void) gethostbyname_r(name, he, &data); + + ],acx_which_gethostbyname_r=3, + [ +dnl acx_which_gethostbyname_r=0 + AC_TRY_COMPILE([ +# include + ], [ + char *name; + struct hostent *he, *res; + char *buffer = NULL; + int buflen = 2048; + int h_errnop; + (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) + ],acx_which_gethostbyname_r=6, + + [ +dnl acx_which_gethostbyname_r=0 + AC_TRY_COMPILE([ +# include + ], [ + char *name; + struct hostent *he; + char *buffer = NULL; + int buflen = 2048; + int h_errnop; + (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) + ],acx_which_gethostbyname_r=5,acx_which_gethostbyname_r=0) + + ] + + ) + ] + ) + ]) + +if test $acx_which_gethostbyname_r -gt 0 ; then + AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME_R], $acx_which_gethostbyname_r, + [Number of parameters to gethostbyname_r or 0 if not available]) +fi + +]) + +dnl @synopsis ACX_HELP_STRING(OPTION,DESCRIPTION) +AC_DEFUN([ACX_HELP_STRING], + [ $1 builtin([substr],[ ],len($1))[$2]]) + + +dnl @synopsis ACX_FEATURE(ENABLE_OR_WITH,NAME[,VALUE]) +AC_DEFUN([ACX_FEATURE], + [echo "builtin([substr],[ ],len(--$1-$2))--$1-$2: ifelse($3,,[$]translit($1-$2,-,_),$3)"]) + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/aclocal.m4 nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/aclocal.m4 --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/aclocal.m4 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,559 @@ +# generated automatically by aclocal 1.9.6 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.9.6])]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 12 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.58])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +]) +]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $1 | $1:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"$am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. +# +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories +# created by `make install' are always world readable, even if the +# installer happens to have an overly restrictive umask (e.g. 077). +# This was a mistake. There are at least two reasons why we must not +# use `-m 0755': +# - it causes special bits like SGID to be ignored, +# - it may be too restrictive (some setups expect 775 directories). +# +# Do not use -m 0755 and let people choose whatever they expect by +# setting umask. +# +# We cannot accept any implementation of `mkdir' that recognizes `-p'. +# Some implementations (such as Solaris 8's) are not thread-safe: if a +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' +# concurrently, both version can detect that a/ is missing, but only +# one can create it and the other will error out. Consequently we +# restrict ourselves to GNU make (using the --version option ensures +# this.) +AC_DEFUN([AM_PROG_MKDIR_P], +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + # We used to keeping the `.' as first argument, in order to + # allow $(mkdir_p) to be used without argument. As in + # $(mkdir_p) $(somedir) + # where $(somedir) is conditionally defined. However this is wrong + # for two reasons: + # 1. if the package is installed by a user who cannot write `.' + # make install will fail, + # 2. the above comment should most certainly read + # $(mkdir_p) $(DESTDIR)$(somedir) + # so it does not work when $(somedir) is undefined and + # $(DESTDIR) is not. + # To support the latter case, we have to write + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), + # so the `.' trick is pointless. + mkdir_p='mkdir -p --' +else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + for d in ./-p ./--version; + do + test -d $d && rmdir $d + done + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. + if test -f "$ac_aux_dir/mkinstalldirs"; then + mkdir_p='$(mkinstalldirs)' + else + mkdir_p='$(install_sh) -d' + fi +fi +AC_SUBST([mkdir_p])]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([acinclude.m4]) diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/AUTHORS nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/AUTHORS --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/AUTHORS 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/AUTHORS 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1 @@ +Gerhard Lausser diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/ChangeLog nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/ChangeLog --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/ChangeLog 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/ChangeLog 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,277 @@ +####################################### +# Changelog of the check_hpasm plugin # +####################################### + +4.7.1.1 2015-06-08 +- bugfix for gen9 with broken SysRomVer string + +4.7.1 2015-03-23 +- interpret other status for fcal as ok + +4.7.0.2 2014-03-18 +- add another storageworks detection +- add StoreEasy detection (thanks Alexander Laimer) + +4.7.0.1 2014-03-04 +- bugfix in blacklisting (Thanks Ingvar Hagelund) + +4.7 2014-02-21 +- add StorageWorks + +4.6.3.4 2013-05-15 +- fix a bug in fan perfdata (absent fans were shown with 0%) + +4.6.3.3 2013-04-10 +- fix a bug in snmp overall nic condition +- sort events by id numerically + +4.6.3.2 2013-03-19 +- fix a bug in proliant/gen8/ilo temperature thresholds (Thanks Kai Benninghoff and Stephane Loeuillet) + +4.6.3.1 2013-01-10 +- fix a bug in da disk in local mode +- fix a bux in overall_init proliant nics (Thanks Fanming Jen) + +4.6.3 2012-11-25 +- gen8 should work now +- fix the problem with -99 degrees +- fix the problem with binary zero EventUpdateTime + +4.6.2.1 2012-11-09 +- some bugfixes in bladecenter temperatures (Thanks Thomas Reichel) + +4.6.2 2012-08-20 +- fix some bugs in snmpget where the system responded with undef values + +4.6.1 2012-08-14 +- fix a small bug in boottime +- skip pagination in long "show iml" lists +- make bulk requests if possible + +4.6 2012-06-07 +- output power consumption as performance data (only newer proliant models) +- support older <=7 versions of hpacucli +- add another error log: Uncorrectable Memory Error +- raise the default timeout from 15 to 60 seconds + +4.5.3.1 2012-04-19 +- change the way --snmpwalk reads oids from a file + +4.5.3 2012-03-26 +- fix a bug in snmp-eventlogs + +4.5.2 2012-03-06 +- add another error log: Main Memory - Corrected Memory Error threshold exceeded +4.5.1 2012-02 +- add another error log: 210 - Quick Path Interconnect (QPI) Link Degradation +- remove watt percent for blade center power supply +- make the snmp oid collection phase shorter for blade center + +4.5 2012-01-26 +- output power consumption perfdata for BladeCenters +- correctly identify dl388g7 (Thanks lilei8) + +4.4 2011-12-16 +- add checks for power converters +- add checks for nic teaming (experimental!!, must be enabled with --eval-nics) +- fix a bug with invalid date/time from iml +- fix a bug in blade enclosure manager verbose output +- add msa2xxx storage sensors + +4.3 2011-10-14 +- add monitoring of IML events (Thanks Klaus) + esp. Memory initialization error... The OS may not have access to all of the memory installed in the system + +4.2.5 +- G2 series of X1660 storage systems are now correctly detected. (Thanks Andre Zaborowski) +- blacklisting for SAS controller & disks was added (Thanks Jewi) + +4.2.4.1 2011-08-09 +- dimm output of G7 hpasmcli (under Solaris) is now handled (Thanks Ron Waffle) + +4.2.4 2011-07-21 +add a check for asr (Thanks Ingmar Verheij http://www.ingmarverheij.com/) + +4.2.3 2011-07-21 +- add a global temperature check when no temperature sensors are found +- check power converters if no fault tolerant power supplies are found + +4.2.2.1 2011-04-17 +- fix a bug when a wrong --hostname was used (Thanks Wim Savenberg) + +4.2.2 2011-01-21 +- add support for msa500 and hpasmcli (Thanks Kalle Andersson) + +4.2.1.1 +- added support for x1** nas storage, which was detected as storage but in fact is like a proliant (Thanks Maik Schulz) + +4.2.1 +- added timeout handling +- better hpacucli da controller handling +- fix a bug in memory detection (0 dimms were shown) (Thanks Anthony Cano) +- better handling for failed and disabled controller batteries. warning only. + +4.2 2010-03-20 +- added temperatures for bladesystems (although not implemented by HP) +- added fuses for bladesystems +- added enclosure managers for bladesystems +- added blacklisting for scsi devices (scco,scld,scpd) (Thanks Marco Hill) +- added blacklisting for overall fan status (ofs) (Thanks Thomas Jampen) + +4.1.2.1 2010-03-03 +- fixed a harmless bug in BladeCenter::Powersupply output + +4.1.2 2010-02-09 +- fixed a severe bug in detecting multiple logical drives with hpacucli (Thanks Trond Hasle) + +4.1.1 2010-01-07 +- detect more smart array types when run in local mode (Thanks Trond Hasle) + +4.1 2009-12-07 +- added more details for bladecenters (power suppl., server blades) +- fixed a bug in powersupply checks with hpasmcli (Thanks Guillaume) + +4.0.1 2009-12-02 +- added the missing output for --help +- non-redundant fans are now tolerated if the global fan status says "ok" +- added detection for servers with a hidden model description +- fixed a bug in celsius-fahrenheit-conversion + +4.0 2009-11-30 +- added support for the new g6-models +- complete rewrite of the code +- autodetection for proliant, bladecenter and storage +- detailed dump of the hardware with -vvv +- new format for blacklist + +3.5.1 2009-04-22 +- fixed a bug where the server didn't reveal serial no. and rom rev. (thanks Daniel Rich) +- fixed a bug in the snmpv3 code. + +3.5 2009-03-20 +- added support for SNMPv3 +- added new parameter --port + +3.2.1 2009-02-26 +- fixed a bug which showed degraded dimms as missing. (thanks matt at adicio.com) + +3.2 2009-02-20 +- added support for external disk arrays. (M. M. has a MSA20) + +3.1.1.1 2009-02-13 +- added an error message when sudo was configured with requiretty=yes. (thanks Jeff The Riffer) + +3.1.1 2009-02-06 +- fixed a bug which caused ugly perl warnings. (thanks Martin Hofmann and Bill Katz) + +3.1 2009-01-21 +- added support for sas and ide controllers/disks (only with snmp) + +3.0.7.2 2009-01-16 +- minor bugfix for dl320g5+hpasmcli+fan+n/a. (thanks Bruce Jackson) + +3.0.7.1 2008-12-05 +- minor bugfix. snmpwalk now uses -On + +3.0.7 2008-11-29 +- bugfix in controller blacklists (thanks Maurice Moric) +- no need for Net::SNMP with --snmpwalk /usr/bin/snmpwalk + +3.0.6 2008-10-30 +- buxfix in ignore-dimms (thanks tumtliw) + +3.0.5 2008-10-23 +- higher speed through decreased amount of transferred oids (thanks Yannick Gravel) +- new switch --ignore-fan-redundancy for old boxes without double fans + +3.0.4 2008-09-18 +- rewrote snmp memory checking for better handling of missing health info +- new configure option --enable-extendedinfo (outputs lots of crap) + +3.0.3.2 2008-09-11 +- --protocol ist now optional (this was a bug) + +3.0.3.1 2008-09-10 +- Only accept 1, 2 or 2c as SNMP protocol +- Try both bulk walk and get-next + +3.0.3 2008-08-11 +- cpqSiMem instead of cpqHeResMem +- new parameter --protocol (default: 2c) +- cpqHeComponents are fetched with get-next instead of get-bulk (Net::SNMP grr) + +3.0.2 2008-08-01 +- skip memory checking if snmp returns garbage +- bugfix in numbering of snmp table indexes + +3.0.1 2008-07-31 +- bugfix in customthresholds&snmp (thanks TheCry) +- broke up the snmpwalk into smaller pieces. + +3.0 2008-07-20 +- first release with snmp support for remote checks (thanks Matthias Flacke) +- simulation is possible with --snmpwalk or --hpasmcli + +2.0.3.3 - 2008-05-22 Brangerdog +- support fan partner# 0 with proliant support pack 8.0 (thanks Mark Wagner) + +2.0.3.2 - 2008-05-03 +- fixed a typo in README + +2.0.3.1 - 2008-04-16 +- fixed a bug in path to perl binary +- fixed a bug in --enable-perfdata (thanks Birk Bohne) + +2.0.3 - 2008-04-09 +- fixed a bug in dimm code +- added blacklisting for raid controllers (thanks Andreas Schrogl) +- added blacklisting for cache&battery (thanks Harrold Nabben) + +2.0.2 - 2008-02-11 +- empty cpu&fan sockets are now properly handled + +2.0.1 - 2008-02-08 +- multiline output for nagios 3.x + +2.0 - 2008-02-08 +- complete code redesign +- integrated raid checking with hpacucli + (thanks Kelly Kristiaan van Vliet who was the first to propose this feature) + (thanks Mess for calling me "FAULE SAU!!!") + +1.6.2.2 - 2008-01-18 +- added debian 3.1 to the osses where multiple hpasmd are considered normal. + +1.6.2.1 - 2007-12-12 +- fixed a bug which caused overlooked fans. Thanks Michael Krebs. +- such unknown patterns which might be important will be reported now. + +1.6.2 - 2007-11-16 +- Marcus Fleige contributed the -i and a more meaningful ok output + +1.6.1 - 2007-11-07 +- fixed a bug which caused overlooked failed fans + +1.6 - 2007-07-27 +- added performance data for fan speed and temperatures + +1.5.1 - 2007-07-11 +- hpasmcli can also be a link +- fixed a bug, so more fan locations can be found + +1.5 - 2007-06-14 +- added support for userdefined temperature thresholds (Kelly Kristiaan van Vliet) + +1.4 - 2007-05-22 +- added support for hpasmxld und hpasmlited + +1.3 - 2007-04-17 +- added --with-degree to configure (celsius or fahrenheit output) + added -b/--blacklist + added trustix 2.2 to the osses where multipel hpasmd are considered normal. + +1.2 - 2007-04-16 +- added --with-noinst-level + +1.1 - 2007-04-14 +- First public release diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/config.guess nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/config.guess --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/config.guess 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/config.guess 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,1558 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright 1992-2013 Free Software Foundation, Inc. + +timestamp='2013-06-10' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD +# +# Please send patches with a ChangeLog entry to config-patches@gnu.org. + + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright 1992-2013 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + or1k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + or32:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + fi + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; +esac + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/config.sub nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/config.sub --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/config.sub 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/config.sub 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,1788 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright 1992-2013 Free Software Foundation, Inc. + +timestamp='2013-04-24' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). + + +# Please send patches with a ChangeLog entry to config-patches@gnu.org. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright 1992-2013 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze*) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | be32 | be64 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | epiphany \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ + | ns16k | ns32k \ + | open8 \ + | or1k | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pyramid \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ + | we32k \ + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pyramid-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze*) + basic_machine=microblaze-xilinx + ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i386-pc + os=-msys + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc | ppcbe) basic_machine=powerpc-unknown + ;; + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or1k-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/configure nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/configure --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/configure 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/configure 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,3839 @@ +#! /bin/sh +# From configure.in . +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for check_hpasm 4.7.1.1. +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='check_hpasm' +PACKAGE_TARNAME='check_hpasm' +PACKAGE_VERSION='4.7.1.1' +PACKAGE_STRING='check_hpasm 4.7.1.1' +PACKAGE_BUGREPORT='' +PACKAGE_URL='' + +ac_default_prefix=/usr/local/nagios +ac_subst_vars='LTLIBOBJS +LIBOBJS +PERL +SH +HPACUCLI +HWINFO +EXTENDEDINFO +PERFDATA +CELSIUS +NOINSTLEVEL +INSTALL_OPTS +with_nagios_group +with_nagios_user +SUPPORT +WARRANTY +INSTALL +RELEASE +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +with_nagios_user +with_nagios_group +with_noinst_level +with_degrees +enable_perfdata +enable_extendedinfo +enable_hwinfo +enable_hpacucli +with_perl +' + ac_precious_vars='build_alias +host_alias +target_alias' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures check_hpasm 4.7.1.1 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/check_hpasm] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of check_hpasm 4.7.1.1:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-perfdata wether to output perfdata (default=no) + --enable-extendedinfo wether to output extended info (default=no) + --disable-hwinfo wether to output model desc., serial no., bios version (default=yes) + --enable-hpacucli wether to check raid status with hpacucli (default=no) + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-nagios-user=USER set user name to run nagios + --with-nagios-group=GROUP set group name to run nagios + --with-noinst-level=LEVEL error level if hpasm is not installed + --with-degrees=UNIT which temperature unit to use. (celsius or fahrenheit) + --with-perl=PATH sets path to perl executable + +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +check_hpasm configure 4.7.1.1 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by check_hpasm $as_me 4.7.1.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +am__api_version="1.9" +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + # We used to keeping the `.' as first argument, in order to + # allow $(mkdir_p) to be used without argument. As in + # $(mkdir_p) $(somedir) + # where $(somedir) is conditionally defined. However this is wrong + # for two reasons: + # 1. if the package is installed by a user who cannot write `.' + # make install will fail, + # 2. the above comment should most certainly read + # $(mkdir_p) $(DESTDIR)$(somedir) + # so it does not work when $(somedir) is undefined and + # $(DESTDIR) is not. + # To support the latter case, we have to write + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), + # so the `.' trick is pointless. + mkdir_p='mkdir -p --' +else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + for d in ./-p ./--version; + do + test -d $d && rmdir $d + done + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. + if test -f "$ac_aux_dir/mkinstalldirs"; then + mkdir_p='$(mkinstalldirs)' + else + mkdir_p='$(install_sh) -d' + fi +fi + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='check_hpasm' + VERSION='4.7.1.1' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +install_sh=${install_sh-"$am_aux_dir/install-sh"} + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 +$as_echo_n "checking how to create a pax tar archive... " >&6; } +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' +_am_tools=${am_cv_prog_tar_pax-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + { echo "$as_me:$LINENO: $_am_tar --version" >&5 + ($_am_tar --version) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && break + done + am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x pax -w "$$tardir"' + am__tar_='pax -L -x pax -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H pax -L' + am__tar_='find "$tardir" -print | cpio -o -H pax -L' + am__untar='cpio -i -H pax -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_pax}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 + (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + rm -rf conftest.dir + if test -s conftest.tar; then + { echo "$as_me:$LINENO: $am__untar &5 + ($am__untar &5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +if ${am_cv_prog_tar_pax+:} false; then : + $as_echo_n "(cached) " >&6 +else + am_cv_prog_tar_pax=$_am_tool +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 +$as_echo "$am_cv_prog_tar_pax" >&6; } + + + + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + + +RELEASE=1 + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + + +WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" + + +SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" + + + +# Check whether --with-nagios_user was given. +if test "${with_nagios_user+set}" = set; then : + withval=$with_nagios_user; with_nagios_user=$withval +else + with_nagios_user=nagios +fi + + +# Check whether --with-nagios_group was given. +if test "${with_nagios_group+set}" = set; then : + withval=$with_nagios_group; with_nagios_group=$withval +else + with_nagios_group=nagios +fi + + + +INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" + + +# Check whether --with-noinst_level was given. +if test "${with_noinst_level+set}" = set; then : + withval=$with_noinst_level; with_noinst_level=$withval +else + with_noinst_level=unknown +fi + +NOINSTLEVEL=$with_noinst_level + + +# Check whether --with-degrees was given. +if test "${with_degrees+set}" = set; then : + withval=$with_degrees; with_degrees=$withval +else + with_degrees=unknown +fi + +case "$with_degrees" in + fahrenheit) + CELSIUS=0 + + ;; + *) + CELSIUS=1 + + ;; +esac +# Check whether --enable-perfdata was given. +if test "${enable_perfdata+set}" = set; then : + enableval=$enable_perfdata; +else + enable_perfdata=no +fi + +if test x"$enable_perfdata" = xyes ; then + PERFDATA=1 + +else + PERFDATA=0 + +fi +# Check whether --enable-extendedinfo was given. +if test "${enable_extendedinfo+set}" = set; then : + enableval=$enable_extendedinfo; +else + enable_extendedinfo=no +fi + +if test x"$enable_extendedinfo" = xyes ; then + EXTENDEDINFO=1 + +else + EXTENDEDINFO=0 + +fi +# Check whether --enable-hwinfo was given. +if test "${enable_hwinfo+set}" = set; then : + enableval=$enable_hwinfo; +else + enable_hwinfo=yes +fi + + +if test x"$enable_hwinfo" = xyes ; then + HWINFO=1 + +else + HWINFO=0 + +fi +# Check whether --enable-hpacucli was given. +if test "${enable_hpacucli+set}" = set; then : + enableval=$enable_hpacucli; +else + enable_hpacucli=no +fi + + +if test x"$enable_hpacucli" = xyes ; then + HPACUCLI=1 + +elif test x"$enable_hpacucli" = xmaybe ; then + HPACUCLI=2 + +else + HPACUCLI=0 + +fi + + + + + +case "$host_os" in + *hp*) + defaulttrustedpath=/bin:/sbin:/usr/bin:/usr/sbin:/usr/contrib/bin + ;; + *) + defaulttrustedpath=/bin:/sbin:/usr/bin:/usr/sbin + ;; +esac + +EXTRAS= + +# Extract the first word of "sh", so it can be a program name with args. +set dummy sh; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SH+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SH in + [\\/]* | ?:[\\/]*) + ac_cv_path_SH="$SH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SH=$ac_cv_path_SH +if test -n "$SH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 +$as_echo "$SH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + +# Check whether --with-perl was given. +if test "${with_perl+set}" = set; then : + withval=$with_perl; with_perl=$withval +else + with_perl=$PERL +fi + +PERL=$with_perl + + +ac_config_files="$ac_config_files Makefile plugins-scripts/Makefile plugins-scripts/subst" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} +t clear +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +t quote +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +t quote +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` + + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by check_hpasm $as_me 4.7.1.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Report bugs to the package provider." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +check_hpasm config.status 4.7.1.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "plugins-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;; + "plugins-scripts/subst") CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + + +eval set X " :F $CONFIG_FILES " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + + + + esac + +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +echo " --with-perl: $with_perl" +echo " --with-nagios-user: $with_nagios_user" +echo " --with-nagios-group: $with_nagios_group" +echo " --with-noinst-level: $with_noinst_level" +echo " --with-degrees: $with_degrees" +echo " --enable-perfdata: $enable_perfdata" +echo " --enable-extendedinfo: $enable_extendedinfo" +echo " --enable-hwinfo: $enable_hwinfo" +echo " --enable-hpacucli: $enable_hpacucli" diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/configure.in nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/configure.in --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/configure.in 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/configure.in 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,133 @@ +dnl Process this file with autoconf to produce a configure script. +AC_REVISION ($Revision: 1.150 $) +AC_PREREQ(2.58) +AC_INIT(check_hpasm,4.7.1.1) +AM_INIT_AUTOMAKE([1.9 tar-pax]) +AC_CANONICAL_HOST + +RELEASE=1 +AC_SUBST(RELEASE) + +AC_PREFIX_DEFAULT(/usr/local/nagios) + +dnl Figure out how to invoke "install" and what install options to use. +AC_PROG_INSTALL +AC_SUBST(INSTALL) + +AC_PROG_MAKE_SET +AC_PROG_AWK + +WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" +AC_SUBST(WARRANTY) + +SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" +AC_SUBST(SUPPORT) + +AC_ARG_WITH(nagios_user, + ACX_HELP_STRING([--with-nagios-user=USER], + [set user name to run nagios]), + with_nagios_user=$withval, + with_nagios_user=nagios) +AC_ARG_WITH(nagios_group, + ACX_HELP_STRING([--with-nagios-group=GROUP], + [set group name to run nagios]), + with_nagios_group=$withval, + with_nagios_group=nagios) +AC_SUBST(with_nagios_user) +AC_SUBST(with_nagios_group) +INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" +AC_SUBST(INSTALL_OPTS) +AC_ARG_WITH(noinst_level, + ACX_HELP_STRING([--with-noinst-level=LEVEL], + [error level if hpasm is not installed]), + with_noinst_level=$withval, + with_noinst_level=unknown) +AC_SUBST(NOINSTLEVEL, $with_noinst_level) +AC_ARG_WITH(degrees, + ACX_HELP_STRING([--with-degrees=UNIT], + [which temperature unit to use. (celsius or fahrenheit)]), + with_degrees=$withval, + with_degrees=unknown) +case "$with_degrees" in + fahrenheit) + AC_SUBST(CELSIUS, 0) + ;; + *) + AC_SUBST(CELSIUS, 1) + ;; +esac +AC_ARG_ENABLE([perfdata], +[ --enable-perfdata wether to output perfdata (default=no)], ,enable_perfdata=no) +if test x"$enable_perfdata" = xyes ; then + AC_SUBST(PERFDATA, 1) +else + AC_SUBST(PERFDATA, 0) +fi +AC_ARG_ENABLE([extendedinfo], +[ --enable-extendedinfo wether to output extended info (default=no)], ,enable_extendedinfo=no) +if test x"$enable_extendedinfo" = xyes ; then + AC_SUBST(EXTENDEDINFO, 1) +else + AC_SUBST(EXTENDEDINFO, 0) +fi +AC_ARG_ENABLE([hwinfo], +[ --disable-hwinfo wether to output model desc., serial no., bios version (default=yes)], ,enable_hwinfo=yes) + +if test x"$enable_hwinfo" = xyes ; then + AC_SUBST(HWINFO, 1) +else + AC_SUBST(HWINFO, 0) +fi +AC_ARG_ENABLE([hpacucli], +[ --enable-hpacucli wether to check raid status with hpacucli (default=no)], ,enable_hpacucli=no) + +if test x"$enable_hpacucli" = xyes ; then + AC_SUBST(HPACUCLI, 1) +elif test x"$enable_hpacucli" = xmaybe ; then + AC_SUBST(HPACUCLI, 2) +else + AC_SUBST(HPACUCLI, 0) +fi + + + + + +case "$host_os" in + *hp*) + defaulttrustedpath=/bin:/sbin:/usr/bin:/usr/sbin:/usr/contrib/bin + ;; + *) + defaulttrustedpath=/bin:/sbin:/usr/bin:/usr/sbin + ;; +esac + +EXTRAS= +dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH + +dnl Checks for programs. +AC_PATH_PROG(SH,sh) +AC_PATH_PROG(PERL,perl) + +dnl allow them to override the path of perl +AC_ARG_WITH(perl, + ACX_HELP_STRING([--with-perl=PATH], + [sets path to perl executable]), + with_perl=$withval,with_perl=$PERL) +AC_SUBST(PERL, $with_perl) + +AC_OUTPUT( + Makefile + plugins-scripts/Makefile + plugins-scripts/subst +) + +ACX_FEATURE([with],[perl]) +ACX_FEATURE([with],[nagios-user]) +ACX_FEATURE([with],[nagios-group]) +ACX_FEATURE([with],[noinst-level]) +ACX_FEATURE([with],[degrees]) +ACX_FEATURE([enable],[perfdata]) +ACX_FEATURE([enable],[extendedinfo]) +ACX_FEATURE([enable],[hwinfo]) +ACX_FEATURE([enable],[hpacucli]) diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/COPYING nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/COPYING --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/COPYING 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/COPYING 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/INSTALL nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/INSTALL --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/INSTALL 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/INSTALL 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,229 @@ +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software +Foundation, Inc. + + This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have to compile the package for one architecture at a +time in the source code directory. After you have installed the +package for one architecture, use `make distclean' before reconfiguring +for another architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=PATH' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the `--target=TYPE' option to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +will cause the specified gcc to be used as the C compiler (unless it is +overridden in the site shell script). + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/install-sh nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/install-sh --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/install-sh 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/install-sh 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,527 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2011-11-20.07; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# 'make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +nl=' +' +IFS=" "" $nl" + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +no_target_directory= + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/Makefile.am nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/Makefile.am --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/Makefile.am 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/Makefile.am 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,6 @@ +## Process this file with automake to produce Makefile.in + +SUBDIRS = plugins-scripts + +dist-hook: + make diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/Makefile.in nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/Makefile.in --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/Makefile.in 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,574 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = . +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +LIBOBJDIR = +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ + ChangeLog INSTALL NEWS TODO config.guess config.sub install-sh \ + missing +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno configure.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-exec-recursive install-info-recursive \ + install-recursive installcheck-recursive installdirs-recursive \ + pdf-recursive ps-recursive uninstall-info-recursive \ + uninstall-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +INSTALL = @INSTALL@ +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CELSIUS = @CELSIUS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EXTENDEDINFO = @EXTENDEDINFO@ +HPACUCLI = @HPACUCLI@ +HWINFO = @HWINFO@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_OPTS = @INSTALL_OPTS@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +NOINSTLEVEL = @NOINSTLEVEL@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERFDATA = @PERFDATA@ +PERL = @PERL@ +RELEASE = @RELEASE@ +SET_MAKE = @SET_MAKE@ +SH = @SH@ +SHELL = @SHELL@ +STRIP = @STRIP@ +SUPPORT = @SUPPORT@ +VERSION = @VERSION@ +WARRANTY = @WARRANTY@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +with_nagios_group = @with_nagios_group@ +with_nagios_user = @with_nagios_user@ +SUBDIRS = plugins-scripts +all: all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ + cd $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +uninstall-info-am: + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + mkdir $(distdir) + $(mkdir_p) $(distdir)/plugins-scripts + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(mkdir_p) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + distdir) \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-info-am + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ + check-am clean clean-generic clean-recursive ctags \ + ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \ + dist-shar dist-tarZ dist-zip distcheck distclean \ + distclean-generic distclean-recursive distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-exec install-exec-am install-info \ + install-info-am install-man install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic maintainer-clean-recursive \ + mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ + pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ + uninstall-info-am + + +dist-hook: + make +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/missing nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/missing --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/missing 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/missing 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,215 @@ +#! /bin/sh +# Common wrapper for a few potentially missing GNU programs. + +scriptversion=2012-06-26.16; # UTC + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try '$0 --help' for more information" + exit 1 +fi + +case $1 in + + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; + + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + +Supported PROGRAM values: + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man + +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: unknown '$1' option" + echo 1>&2 "Try '$0 --help' for more information" + exit 1 + ;; + +esac + +# Run the given program, remember its exit status. +"$@"; st=$? + +# If it succeeded, we are done. +test $st -eq 0 && exit 0 + +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch. This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then + msg="probably too old" +elif test $st -eq 127; then + # Program was missing. + msg="missing on your system" +else + # Program was found and executed, but failed. Give up. + exit $st +fi + +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ + case $1 in + aclocal|automake) + echo "The '$1' program is part of the GNU Automake package:" + echo "<$gnu_software_URL/automake>" + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/autoconf>" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + autoconf|autom4te|autoheader) + echo "The '$1' program is part of the GNU Autoconf package:" + echo "<$gnu_software_URL/autoconf/>" + echo "It also requires GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + esac +} + +give_advice () +{ + # Normalize program name to check for. + normalized_program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + + printf '%s\n' "'$1' is $msg." + + configure_deps="'configure.ac' or m4 files included by 'configure.ac'" + case $normalized_program in + autoconf*) + echo "You should only need it if you modified 'configure.ac'," + echo "or m4 files included by it." + program_details 'autoconf' + ;; + autoheader*) + echo "You should only need it if you modified 'acconfig.h' or" + echo "$configure_deps." + program_details 'autoheader' + ;; + automake*) + echo "You should only need it if you modified 'Makefile.am' or" + echo "$configure_deps." + program_details 'automake' + ;; + aclocal*) + echo "You should only need it if you modified 'acinclude.m4' or" + echo "$configure_deps." + program_details 'aclocal' + ;; + autom4te*) + echo "You might have modified some maintainer files that require" + echo "the 'automa4te' program to be rebuilt." + program_details 'autom4te' + ;; + bison*|yacc*) + echo "You should only need it if you modified a '.y' file." + echo "You may want to install the GNU Bison package:" + echo "<$gnu_software_URL/bison/>" + ;; + lex*|flex*) + echo "You should only need it if you modified a '.l' file." + echo "You may want to install the Fast Lexical Analyzer package:" + echo "<$flex_URL>" + ;; + help2man*) + echo "You should only need it if you modified a dependency" \ + "of a man page." + echo "You may want to install the GNU Help2man package:" + echo "<$gnu_software_URL/help2man/>" + ;; + makeinfo*) + echo "You should only need it if you modified a '.texi' file, or" + echo "any other file indirectly affecting the aspect of the manual." + echo "You might want to install the Texinfo package:" + echo "<$gnu_software_URL/texinfo/>" + echo "The spurious makeinfo call might also be the consequence of" + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "want to install GNU make:" + echo "<$gnu_software_URL/make/>" + ;; + *) + echo "You might have modified some files without having the proper" + echo "tools for further handling them. Check the 'README' file, it" + echo "often tells you about the needed prerequisites for installing" + echo "this package. You may also peek at any GNU archive site, in" + echo "case some other package contains this missing '$1' program." + ;; + esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ + -e '2,$s/^/ /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/check_hpasm.pl nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/check_hpasm.pl --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/check_hpasm.pl 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/check_hpasm.pl 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,208 @@ +#! /usr/bin/perl + +use strict; + +my $CELSIUS = 1; +my $PERFDATA = 1; +my $EXTENDEDINFO = 1; +my $HWINFO = 1; +my $HPACUCLI = 1; +my $NOINSTLEVEL = 'unknown'; + +use constant OK => 0; +use constant WARNING => 1; +use constant CRITICAL => 2; +use constant UNKNOWN => 3; +use constant DEPENDENT => 4; + +my $plugin = Nagios::MiniPlugin->new( + shortname => '', + usage => 'Usage: %s [ -v|--verbose ] [ -t ] '. + '--hostname --community '. + ' ...]', + version => '4.0', + blurb => 'This plugin checks the hardware of hp/compaq proliant servers', + url => 'http://labs.consol.de/nagios/check_hpasm', + timeout => 60, + shortname => '', +); +$plugin->add_arg( + spec => 'blacklist|b=s', + help => '--blacklist + Blacklist some (missing/failed) components', + required => 0, + default => '', +); +$plugin->add_arg( + spec => 'ignore-dimms|i', + help => '--ignore-dimms + Ignore "N/A"-DIMM status on misc. servers (e.g. older DL320)', + required => 0, +); +$plugin->add_arg( + spec => 'ignore-fan-redundancy', + help => '--ignore-fan-redundancy + Ignore missing redundancy partners', + required => 0, +); +$plugin->add_arg( + spec => 'customthresholds|c=s', + help => '--customthresholds + Use custom thresholds for certain temperatures', + required => 0, +); +$plugin->add_arg( + spec => 'eventrange=s', + help => '--eventrange=/ + Period of time before critical IML events respecively become warnings or vanish + A range is descibed as a number and a unit (s, m, h, d), e.g. --eventrange 1h/20m', + required => 0, +); +$plugin->add_arg( + spec => 'perfdata=s', + help => '--perfdata=[short] + Output performance data. If your performance data string becomes + too long and is truncated by Nagios, then you can use --perfdata=short + instead. This will output temperature tags without location information', + required => 0, +); +$plugin->add_arg( + spec => 'hostname|H=s', + help => '--hostname + Hostname or IP-address of the server (SNMP mode only)', + required => 0, +); +$plugin->add_arg( + spec => 'port=i', + help => '--port + The SNMP port to use (default: 161)', + required => 0, + default => 161, +); +$plugin->add_arg( + spec => 'protocol|P=s', + help => '--protocol + The SNMP protocol to use (default: 2c, other possibilities: 1,3)', + required => 0, + default => '2c', +); +$plugin->add_arg( + spec => 'community|C=s', + help => '--community + SNMP community of the server (SNMP v1/2 only)', + required => 0, + default => 'public', +); +$plugin->add_arg( + spec => 'username=s', + help => '--username + The securityName for the USM security model (SNMPv3 only)', + required => 0, +); +$plugin->add_arg( + spec => 'authpassword=s', + help => '--authpassword + The authentication password for SNMPv3', + required => 0, +); +$plugin->add_arg( + spec => 'authprotocol=s', + help => '--authprotocol + The authentication protocol for SNMPv3 (md5|sha)', + required => 0, +); +$plugin->add_arg( + spec => 'privpassword=s', + help => '--privpassword + The password for authPriv security level', + required => 0, +); +$plugin->add_arg( + spec => 'privprotocol=s', + help => '--privprotocol + The private protocol for SNMPv3 (des|aes|aes128|3des|3desde)', + required => 0, +); +$plugin->add_arg( + spec => 'snmpwalk=s', + help => '--snmpwalk + A file with the output of snmpwalk 1.3.6.1.4.1.232', + required => 0, +); +$plugin->add_arg( + spec => 'hpasmcli=s', + help => '--hpasmcli + A file with the output of hpasmcli', + required => 0, +); +$plugin->add_arg( + spec => 'servertype=s', + help => '--servertype + The type of the server: proliant (default) or bladesystem', + required => 0, +); +$plugin->add_arg( + spec => 'eval-nics', + help => '--eval-nics + Check network interfaces (and groups). Try it and report me whyt you think about it. I need to build up some know how on this subject. If get an error and you think, it is not justified for your configuration, please tell me about it. (alwasy send the output of "snmpwalk -On .... 1.3.6.1.4.1.232" and a description how you setup your nics and why it is correct opposed to the plugins error message', + required => 0, +); + +$plugin->getopts(); +if (! $PERFDATA && $plugin->opts->get('perfdata')) { + $PERFDATA = 1; +} +if ($PERFDATA && $plugin->opts->get('perfdata') && + ($plugin->opts->get('perfdata') eq 'short')) { + $PERFDATA = 2; +} +$plugin->{messages}->{unknown} = []; # wg. add_message(UNKNOWN,...) + +$plugin->{info} = []; # gefrickel + +$SIG{'ALRM'} = sub { + printf "UNKNOWN - check_hpasm timed out after %d seconds\n", + $plugin->opts->get('timeout'); + exit $ERRORS{UNKNOWN}; +}; +alarm($plugin->opts->get('timeout')); + +my $server = HP::Server->new( runtime => { + plugin => $plugin, + options => { + servertype => $plugin->opts->get('servertype'), + verbose => $plugin->opts->get('verbose'), + scrapiron => 0, + ignore_fan_redundancy => $plugin->opts->get('ignore-fan-redundancy'), + ignore_dimms => $plugin->opts->get('ignore-dimms'), + customthresholds => $plugin->opts->get('customthresholds'), + eventrange => $plugin->opts->get('eventrange'), + blacklist => $plugin->opts->get('blacklist'), + celsius => $CELSIUS, + perfdata => $PERFDATA, + extendedinfo => $EXTENDEDINFO, + hwinfo => $HWINFO, + hpacucli => $HPACUCLI, + noinstlevel => $NOINSTLEVEL, + }, +},); +if (! $plugin->check_messages()) { + $server->init(); + $plugin->add_message(OK, $server->identify()) if $HWINFO; + if (! $plugin->check_messages()) { + $plugin->add_message(OK, 'hardware working fine'); + $plugin->add_message(OK, $server->get_summary()) + if $server->get_summary(); + $plugin->add_message(OK, $server->get_extendedinfo()) + if $server->get_extendedinfo(); + } +} else { + $plugin->add_message(CRITICAL, 'wrong device'); +} + +my ($code, $message) = $plugin->check_messages(join => ', ', join_all => ', '); +$message .= sprintf "\n%s\n", join("\n", @{$plugin->{info}}) + if $plugin->opts->get('verbose') >= 1; +#printf "%s\n", Data::Dumper::Dumper($plugin->{info}); +$plugin->nagios_exit($code, $message); + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,139 @@ +package HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem; +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + fans => [], + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + my $oids = { + cpqRackCommonEnclosureFanEntry => '1.3.6.1.4.1.232.22.2.3.1.3.1', + cpqRackCommonEnclosureFanRack => '1.3.6.1.4.1.232.22.2.3.1.3.1.1', + cpqRackCommonEnclosureFanChassis => '1.3.6.1.4.1.232.22.2.3.1.3.1.2', + cpqRackCommonEnclosureFanIndex => '1.3.6.1.4.1.232.22.2.3.1.3.1.3', + cpqRackCommonEnclosureFanEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.3.1.4', + cpqRackCommonEnclosureFanLocation => '1.3.6.1.4.1.232.22.2.3.1.3.1.5', + cpqRackCommonEnclosureFanPartNumber => '1.3.6.1.4.1.232.22.2.3.1.3.1.6', + cpqRackCommonEnclosureFanSparePartNumber => '1.3.6.1.4.1.232.22.2.3.1.3.1.7', + cpqRackCommonEnclosureFanPresent => '1.3.6.1.4.1.232.22.2.3.1.3.1.8', + cpqRackCommonEnclosureFanRedundant => '1.3.6.1.4.1.232.22.2.3.1.3.1.9', + cpqRackCommonEnclosureFanRedundantGroupId => '1.3.6.1.4.1.232.22.2.3.1.3.1.10', + cpqRackCommonEnclosureFanCondition => '1.3.6.1.4.1.232.22.2.3.1.3.1.11', + cpqRackCommonEnclosureFanEnclosureSerialNum => '1.3.6.1.4.1.232.22.2.3.1.3.1.12', + cpqRackCommonEnclosureFanPresentValue => { + 1 => 'other', + 2 => 'absent', + 3 => 'present', + }, + cpqRackCommonEnclosureFanRedundantValue => { + 0 => 'other', # meiner phantasie entsprungen, da sich hp nicht aeussert + 1 => 'other', + 2 => 'notRedundant', + 3 => 'redundant', + }, + cpqRackCommonEnclosureFanConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + } + }; + # INDEX { cpqRackCommonEnclosureFanRack, cpqRackCommonEnclosureFanChassis, cpqRackCommonEnclosureFanIndex } + foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureFanEntry')) { + push(@{$self->{fans}}, + HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem::Fan->new(%{$_})); + } + +} + +sub check { + my $self = shift; + foreach (@{$self->{fans}}) { + $_->check() if $_->{cpqRackCommonEnclosureFanPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{fans}}) { + $_->dump() if $_->{cpqRackCommonEnclosureFanPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + + +package HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem::Fan; + +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosureFan/, keys %params; + $self->{name} = $self->{cpqRackCommonEnclosureFanRack}.':'.$self->{cpqRackCommonEnclosureFanChassis}.':'.$self->{cpqRackCommonEnclosureFanIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('f', $self->{name}); + $self->add_info(sprintf 'fan %s is %s, location is %s, redundance is %s, condition is %s', + $self->{name}, $self->{cpqRackCommonEnclosureFanPresent}, + $self->{cpqRackCommonEnclosureFanLocation}, + $self->{cpqRackCommonEnclosureFanRedundant}, + $self->{cpqRackCommonEnclosureFanCondition}); + if ($self->{cpqRackCommonEnclosureFanCondition} eq 'degraded') { + $self->{info} .= sprintf ", (SparePartNum: %s)", $self->{cpqRackCommonEnclosureFanSparePartNumber}; + $self->add_message(WARNING, $self->{info}); + } elsif ($self->{cpqRackCommonEnclosureFanCondition} eq 'failed') { + $self->{info} .= sprintf ", (SparePartNum: %s)", $self->{cpqRackCommonEnclosureFanSparePartNumber}; + $self->add_message(CRITICAL, $self->{info}); + } +} + +sub dump { + my $self = shift; + printf "[FAN_%s]\n", $self->{name}; + foreach (qw(cpqRackCommonEnclosureFanRack cpqRackCommonEnclosureFanChassis + cpqRackCommonEnclosureFanIndex cpqRackCommonEnclosureFanEnclosureName + cpqRackCommonEnclosureFanLocation cpqRackCommonEnclosureFanPartNumber + cpqRackCommonEnclosureFanSparePartNumber cpqRackCommonEnclosureFanPresent + cpqRackCommonEnclosureFanRedundant cpqRackCommonEnclosureFanRedundantGroupId + cpqRackCommonEnclosureFanCondition cpqRackCommonEnclosureFanEnclosureSerialNum)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n", $self->{info}; + printf "\n"; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,121 @@ +package HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem; +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + fuses => [], + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + my $oids = { + cpqRackCommonEnclosureFuseEntry => '1.3.6.1.4.1.232.22.2.3.1.4.1', + cpqRackCommonEnclosureFuseRack => '1.3.6.1.4.1.232.22.2.3.1.4.1.1', + cpqRackCommonEnclosureFuseChassis => '1.3.6.1.4.1.232.22.2.3.1.4.1.2', + cpqRackCommonEnclosureFuseIndex => '1.3.6.1.4.1.232.22.2.3.1.4.1.3', + cpqRackCommonEnclosureFuseEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.4.1.4', + cpqRackCommonEnclosureFuseLocation => '1.3.6.1.4.1.232.22.2.3.1.4.1.5', + cpqRackCommonEnclosureFusePresent => '1.3.6.1.4.1.232.22.2.3.1.4.1.8', + cpqRackCommonEnclosureFuseCondition => '1.3.6.1.4.1.232.22.2.3.1.4.1.11', + cpqRackCommonEnclosureFusePresentValue => { + 1 => 'other', + 2 => 'absent', + 3 => 'present', + }, + cpqRackCommonEnclosureFuseConditionValue => { + 1 => 'other', + 2 => 'ok', + 4 => 'failed', + } + }; + # INDEX { cpqRackCommonEnclosureFuseRack, cpqRackCommonEnclosureFuseChassis, cpqRackCommonEnclosureFuseIndex } + foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureFuseEntry')) { + push(@{$self->{fuses}}, + HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem::Fuse->new(%{$_})); + } + +} + +sub check { + my $self = shift; + foreach (@{$self->{fuses}}) { + $_->check() if $_->{cpqRackCommonEnclosureFusePresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{fuses}}) { + $_->dump() if $_->{cpqRackCommonEnclosureFusePresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + + +package HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem::Fuse; + +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosureFuse/, keys %params; + $self->{name} = $self->{cpqRackCommonEnclosureFuseRack}.':'.$self->{cpqRackCommonEnclosureFuseChassis}.':'.$self->{cpqRackCommonEnclosureFuseIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('fu', $self->{name}); + $self->add_info(sprintf 'fuse %s is %s, location is %s, condition is %s', + $self->{name}, $self->{cpqRackCommonEnclosureFusePresent}, + $self->{cpqRackCommonEnclosureFuseLocation}, $self->{cpqRackCommonEnclosureFuseCondition}); + if ($self->{cpqRackCommonEnclosureFuseCondition} eq 'failed') { + $self->add_message(CRITICAL, $self->{info}); + } elsif ($self->{cpqRackCommonEnclosureFuseCondition} ne 'ok') { + $self->add_message(WARNING, $self->{info}); + } +} + +sub dump { + my $self = shift; + printf "[FUSE_%s]\n", $self->{name}; + foreach (qw(cpqRackCommonEnclosureFuseRack cpqRackCommonEnclosureFuseChassis + cpqRackCommonEnclosureFuseIndex cpqRackCommonEnclosureFuseEnclosureName + cpqRackCommonEnclosureFuseLocation cpqRackCommonEnclosureFusePresent + cpqRackCommonEnclosureFuseCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n", $self->{info}; + printf "\n"; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,154 @@ +package HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem; +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + managers => [], + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + my $oids = { + cpqRackCommonEnclosureManagerEntry => '1.3.6.1.4.1.232.22.2.3.1.6.1', + cpqRackCommonEnclosureManagerRack => '1.3.6.1.4.1.232.22.2.3.1.6.1.1', + cpqRackCommonEnclosureManagerChassis => '1.3.6.1.4.1.232.22.2.3.1.6.1.2', + cpqRackCommonEnclosureManagerIndex => '1.3.6.1.4.1.232.22.2.3.1.6.1.3', + cpqRackCommonEnclosureManagerEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.6.1.4', + cpqRackCommonEnclosureManagerLocation => '1.3.6.1.4.1.232.22.2.3.1.6.1.5', + cpqRackCommonEnclosureManagerPartNumber => '1.3.6.1.4.1.232.22.2.3.1.6.1.6', + cpqRackCommonEnclosureManagerSparePartNumber => '1.3.6.1.4.1.232.22.2.3.1.6.1.7', + cpqRackCommonEnclosureManagerSerialNum => '1.3.6.1.4.1.232.22.2.3.1.6.1.8', + cpqRackCommonEnclosureManagerRole => '1.3.6.1.4.1.232.22.2.3.1.6.1.9', + cpqRackCommonEnclosureManagerPresent => '1.3.6.1.4.1.232.22.2.3.1.6.1.10', + cpqRackCommonEnclosureManagerRedundant => '1.3.6.1.4.1.232.22.2.3.1.6.1.11', + cpqRackCommonEnclosureManagerCondition => '1.3.6.1.4.1.232.22.2.3.1.6.1.12', + cpqRackCommonEnclosureManagerFWRev => '1.3.6.1.4.1.232.22.2.3.1.6.1.15', + cpqRackCommonEnclosureManagerRoleValue => { + 1 => 'standby', + 2 => 'active', + }, + cpqRackCommonEnclosureManagerPresentValue => { + 1 => 'other', + 2 => 'absent', # mit vorsicht zu geniessen! + 3 => 'present', + }, + cpqRackCommonEnclosureManagerRedundantValue => { + 0 => 'other', # meiner phantasie entsprungen, da sich hp nicht aeussert + 1 => 'other', + 2 => 'notRedundant', + 3 => 'redundant', + }, + cpqRackCommonEnclosureManagerConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + } + }; + # INDEX { cpqRackCommonEnclosureManagerRack, cpqRackCommonEnclosureManagerChassis, cpqRackCommonEnclosureManagerIndex } + foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureManagerEntry')) { + push(@{$self->{managers}}, + HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem::Manager->new(%{$_})); + } +} + +sub check { + my $self = shift; + foreach (@{$self->{managers}}) { + $_->check() if $_->{cpqRackCommonEnclosureManagerPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{managers}}) { + $_->dump() if $_->{cpqRackCommonEnclosureManagerPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + + +package HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem::Manager; + +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosureManager/, keys %params; + $self->{name} = $self->{cpqRackCommonEnclosureManagerRack}. + ':'.$self->{cpqRackCommonEnclosureManagerChassis}. + ':'.$self->{cpqRackCommonEnclosureManagerIndex}; + if ($self->{cpqRackCommonEnclosureManagerPresent} eq "absent" && + defined $self->{cpqRackCommonEnclosureManagerEnclosureName}) { + $self->{cpqRackCommonEnclosureManagerPresent} = "present"; + } + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('em', $self->{name}); + my $info = sprintf 'manager %s is %s, location is %s, redundance is %s, condition is %s, role is %s', + $self->{name}, $self->{cpqRackCommonEnclosureManagerPresent}, + $self->{cpqRackCommonEnclosureManagerLocation}, + $self->{cpqRackCommonEnclosureManagerRedundant}, + $self->{cpqRackCommonEnclosureManagerCondition}, + $self->{cpqRackCommonEnclosureManagerRole}; + $self->add_info($info) if $self->{cpqRackCommonEnclosureManagerPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent managers nur bei -vvv + if ($self->{cpqRackCommonEnclosureManagerCondition} eq 'degraded') { + $self->{info} .= sprintf ' (SparePartNum: %s)', + $self->{cpqRackCommonEnclosureManagerSparePartNumber}; + $self->add_message(WARNING, $self->{info}); + } elsif ($self->{cpqRackCommonEnclosureManagerCondition} eq 'failed') { + $self->{info} .= sprintf ' (SparePartNum: %s)', + $self->{cpqRackCommonEnclosureManagerSparePartNumber}; + $self->add_message(CRITICAL, $self->{info}); + } +} + +sub dump { + my $self = shift; + printf "[ENCLOSURE_MANAGER_%s]\n", $self->{name}; + foreach (qw(cpqRackCommonEnclosureManagerRack cpqRackCommonEnclosureManagerChassis + cpqRackCommonEnclosureManagerIndex cpqRackCommonEnclosureManagerEnclosureName + cpqRackCommonEnclosureManagerLocation cpqRackCommonEnclosureManagerPartNumber + cpqRackCommonEnclosureManagerSparePartNumber cpqRackCommonEnclosureManagerPresent + cpqRackCommonEnclosureManagerRedundant + cpqRackCommonEnclosureManagerCondition cpqRackCommonEnclosureManagerFWRev)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n", $self->{info}; + printf "\n"; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,177 @@ +package HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem; +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + temperatures => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if ($params{runtime}->{options}->{customthresholds}) { + if (-f $params{runtime}->{options}->{customthresholds}) { + open CT, $params{runtime}->{options}->{customthresholds}; + $params{runtime}->{options}->{customthresholds} = ; + close CT; + } + foreach my $ct_items + (split(/\//, $params{runtime}->{options}->{customthresholds})) { + if ($ct_items =~ /^(\d+):(\d+)$/) { + my $temp = $2; + $params{runtime}->{options}->{thresholds}->{$1} = $temp; + } else { + die sprintf "invalid threshold %s", $ct_items; + } + } + } + $self->init(); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqRackCommonEnclosureTempEntry => '1.3.6.1.4.1.232.22.2.3.1.2.1', + cpqRackCommonEnclosureTempRack => '1.3.6.1.4.1.232.22.2.3.1.2.1.1', + cpqRackCommonEnclosureTempChassis => '1.3.6.1.4.1.232.22.2.3.1.2.1.2', + cpqRackCommonEnclosureTempSensorIndex => '1.3.6.1.4.1.232.22.2.3.1.2.1.3', + cpqRackCommonEnclosureTempSensorEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.2.1.4', + cpqRackCommonEnclosureTempLocation => '1.3.6.1.4.1.232.22.2.3.1.2.1.5', + cpqRackCommonEnclosureTempCurrent => '1.3.6.1.4.1.232.22.2.3.1.2.1.6', + cpqRackCommonEnclosureTempThreshold => '1.3.6.1.4.1.232.22.2.3.1.2.1.7', + cpqRackCommonEnclosureTempCondition => '1.3.6.1.4.1.232.22.2.3.1.2.1.8', + cpqRackCommonEnclosureTempType => '1.3.6.1.4.1.232.22.2.3.1.2.1.9', + cpqRackCommonEnclosureTempConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }, + cpqRackCommonEnclosureTempTypeValue => { + 1 => 'other', + 5 => 'blowout', + 9 => 'caution', + 15 => 'critical', + }, + }; + # INDEX { cpqRackCommonEnclosureTempRack cpqRackCommonEnclosureTempChassis + # cpqRackCommonEnclosureTempSensorIndex } + foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureTempEntry')) { + push(@{$self->{temperatures}}, + HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem::Temp->new(%{$_})) if (($_->{cpqRackCommonEnclosureTempCurrent} != -1 && $_->{cpqRackCommonEnclosureTempThreshold} != -1) && ($_->{cpqRackCommonEnclosureTempThreshold} != 0)); + } + +} + + +sub check { + my $self = shift; + my $errorfound = 0; + if (scalar (@{$self->{temperatures}}) == 0) { + #$self->overall_check(); + } else { + foreach (@{$self->{temperatures}}) { + $_->check(); + } + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{temperatures}}) { + $_->dump(); + } +} + + +package HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem::Temp; +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosureTemp/, keys %params; + $self->{name} = $params{cpqRackCommonEnclosureTempRack}.':'. + $params{cpqRackCommonEnclosureTempChassis}.':'. + $params{cpqRackCommonEnclosureTempSensorIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('t', $self->{name}); + if ($self->{cpqRackCommonEnclosureTempCurrent} > $self->{cpqRackCommonEnclosureTempThreshold}) { + $self->add_info(sprintf "%s temperature too high (%d%s)", + $self->{cpqRackCommonEnclosureTempLocation}, + $self->{cpqRackCommonEnclosureTempCurrent}, + $self->{runtime}->{options}->{celsius} ? "C" : "F"); + $self->add_message(CRITICAL, $self->{info}); + } else { + $self->add_info(sprintf "%s temperature is %d%s (%d max)", + $self->{cpqRackCommonEnclosureTempLocation}, + $self->{cpqRackCommonEnclosureTempCurrent}, + $self->{runtime}->{options}->{celsius} ? "C" : "F", + $self->{cpqRackCommonEnclosureTempThreshold}); + } + if ($self->{runtime}->{options}->{perfdata} == 2) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('temp_%s', $self->{name}), + value => $self->{cpqRackCommonEnclosureTempCurrent}, + warning => $self->{cpqRackCommonEnclosureTempThreshold}, + critical => $self->{cpqRackCommonEnclosureTempThreshold} + ); + } elsif ($self->{runtime}->{options}->{perfdata} == 1) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('temp_%s_%s', $self->{name}, + $self->{cpqRackCommonEnclosureTempLocation}), + value => $self->{cpqRackCommonEnclosureTempCurrent}, + warning => $self->{cpqRackCommonEnclosureTempThreshold}, + critical => $self->{cpqRackCommonEnclosureTempThreshold} + ); + } + $self->add_extendedinfo(sprintf "temp_%s=%d", + $self->{name}, $self->{cpqRackCommonEnclosureTempCurrent}); + +} + + +sub dump { + my $self = shift; + printf "[TEMP_%s]\n", $self->{name}; + foreach (qw(cpqRackCommonEnclosureTempRack cpqRackCommonEnclosureTempChassis + cpqRackCommonEnclosureTempSensorIndex cpqRackCommonEnclosureTempSensorEnclosureName + cpqRackCommonEnclosureTempLocation + cpqRackCommonEnclosureTempCurrent cpqRackCommonEnclosureTempThreshold + cpqRackCommonEnclosureTempCondition cpqRackCommonEnclosureTempType)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n\n", $self->{info}; +} + +1; + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,176 @@ +package HP::BladeSystem::Component::CommonEnclosureSubsystem; +our @ISA = qw(HP::BladeSystem::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + common_enclosures => [], + common_enclosure_temp_subsys => undef, + common_enclosure_fan_subsys => undef, + common_enclosure_fuse_subsys => undef, + common_enclosure_manager_subsys => undef, + common_enclosure_frus => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + # jeweils ein block fuer + # enclosures, temps, fans, fuses + # loop ueber oids und entspr. new + my $oids = { + cpqRackCommonEnclosureEntry => '1.3.6.1.4.1.232.22.2.3.1.1.1', + cpqRackCommonEnclosureRack => '1.3.6.1.4.1.232.22.2.3.1.1.1.1', + cpqRackCommonEnclosureIndex => '1.3.6.1.4.1.232.22.2.3.1.1.1.2', + cpqRackCommonEnclosureModel => '1.3.6.1.4.1.232.22.2.3.1.1.1.3', + cpqRackCommonEnclosureSparePartNumber => '1.3.6.1.4.1.232.22.2.3.1.1.1.6', + cpqRackCommonEnclosureSerialNum => '1.3.6.1.4.1.232.22.2.3.1.1.1.7', + cpqRackCommonEnclosureFWRev => '1.3.6.1.4.1.232.22.2.3.1.1.1.8', + cpqRackCommonEnclosureName => '1.3.6.1.4.1.232.22.2.3.1.1.1.9', + cpqRackCommonEnclosureCondition => '1.3.6.1.4.1.232.22.2.3.1.1.1.16', + cpqRackCommonEnclosureHasServerBlades => '1.3.6.1.4.1.232.22.2.3.1.1.1.17', + cpqRackCommonEnclosureHasPowerBlades => '1.3.6.1.4.1.232.22.2.3.1.1.1.18', + cpqRackCommonEnclosureHasNetConnectors => '1.3.6.1.4.1.232.22.2.3.1.1.1.19', + cpqRackCommonEnclosureHasTempSensors => '1.3.6.1.4.1.232.22.2.3.1.1.1.20', + cpqRackCommonEnclosureHasFans => '1.3.6.1.4.1.232.22.2.3.1.1.1.21', + cpqRackCommonEnclosureHasFuses => '1.3.6.1.4.1.232.22.2.3.1.1.1.22', + cpqRackCommonEnclosureConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }, + cpqRackCommonEnclosureHasServerBladesValue => { + 1 => 'false', + 2 => 'true', + }, + }; + $oids->{cpqRackCommonEnclosureHasPowerBladesValue} = + $oids->{cpqRackCommonEnclosureHasServerBladesValue}; + $oids->{cpqRackCommonEnclosureHasNetConnectorsValue} = + $oids->{cpqRackCommonEnclosureHasServerBladesValue}; + $oids->{cpqRackCommonEnclosureHasTempSensorsValue} = + $oids->{cpqRackCommonEnclosureHasServerBladesValue}; + $oids->{cpqRackCommonEnclosureHasFansValue} = + $oids->{cpqRackCommonEnclosureHasServerBladesValue}; + $oids->{cpqRackCommonEnclosureHasServerBladesValue} = + $oids->{cpqRackCommonEnclosureHasServerBladesValue}; + # INDEX { cpqRackCommonEnclosureRack cpqRackCommonEnclosureIndex } + foreach ($self->get_entries($oids, 'cpqRackCommonEnclosureEntry')) { + push(@{$self->{common_enclosures}}, + HP::BladeSystem::Component::CommonEnclosureSubsystem::CommonEnclosure->new(%{$_})); + } + + $self->{common_enclosure_fan_subsys} = HP::BladeSystem::Component::CommonEnclosureSubsystem::FanSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); + $self->{common_enclosure_temp_subsys} = HP::BladeSystem::Component::CommonEnclosureSubsystem::TempSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); + $self->{common_enclosure_fuse_subsys} = HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); + $self->{common_enclosure_manager_subsys} = HP::BladeSystem::Component::CommonEnclosureSubsystem::ManagerSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub check { + my $self = shift; + foreach (@{$self->{common_enclosures}}) { + $_->check(); + } + $self->{common_enclosure_fan_subsys}->check(); + $self->{common_enclosure_temp_subsys}->check(); + $self->{common_enclosure_fuse_subsys}->check(); + $self->{common_enclosure_manager_subsys}->check(); +} + +sub dump { + my $self = shift; + foreach (@{$self->{common_enclosures}}) { + $_->dump(); + } + $self->{common_enclosure_fan_subsys}->dump(); + $self->{common_enclosure_temp_subsys}->dump(); + $self->{common_enclosure_fuse_subsys}->dump(); + $self->{common_enclosure_manager_subsys}->dump(); +} + + +package HP::BladeSystem::Component::CommonEnclosureSubsystem::CommonEnclosure; +our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackCommonEnclosure/, keys %params; + $self->{name} = $self->{cpqRackCommonEnclosureRack}.':'.$self->{cpqRackCommonEnclosureIndex}; + $self->{serfw} = sprintf "Ser: %s, FW: %s", $self->{cpqRackCommonEnclosureSerialNum}, + $self->{cpqRackCommonEnclosureFWRev}; + bless $self, $class; + return $self; +} + + +sub check { + my $self = shift; + $self->blacklist('ce', $self->{cpqRackCommonEnclosureName}); + my $info = sprintf 'common enclosure %s condition is %s (%s)', + $self->{cpqRackCommonEnclosureName}, $self->{cpqRackCommonEnclosureCondition}, $self->{serfw}; + $self->add_info($info); + if ($self->{cpqRackCommonEnclosureCondition} eq 'failed') { + $info .= sprintf " (SparePartNum %s)", $self->{cpqRackCommonEnclosureSparePartNumber}; + $self->add_message(CRITICAL, $info); + } elsif ($self->{cpqRackCommonEnclosureCondition} eq 'degraded') { + $info .= sprintf " (SparePartNum %s)", $self->{cpqRackCommonEnclosureSparePartNumber}; + $self->add_message(WARNING, $info); + } +} + +sub dump { + my $self = shift; + printf "[COMMON_ENCLOSURE_%s]\n", $self->{cpqRackCommonEnclosureName}; + foreach (qw(cpqRackCommonEnclosureRack cpqRackCommonEnclosureIndex cpqRackCommonEnclosureModel + cpqRackCommonEnclosureSerialNum cpqRackCommonEnclosureFWRev cpqRackCommonEnclosureFWRev + cpqRackCommonEnclosureName + cpqRackCommonEnclosureCondition cpqRackCommonEnclosureHasServerBlades + cpqRackCommonEnclosureHasPowerBlades cpqRackCommonEnclosureHasNetConnectors + cpqRackCommonEnclosureHasTempSensors cpqRackCommonEnclosureHasFans cpqRackCommonEnclosureHasFuses)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/NetConnectorSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/NetConnectorSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/NetConnectorSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/NetConnectorSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,134 @@ +package HP::BladeSystem::Component::NetConnectorSubsystem; +our @ISA = qw(HP::BladeSystem::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + net_connectors => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + my $oids = { + cpqRackNetConnectorEntry => '1.3.6.1.4.1.232.22.2.6.1.1.1', + cpqRackNetConnectorRack => '1.3.6.1.4.1.232.22.2.6.1.1.1.1', + cpqRackNetConnectorChassis => '1.3.6.1.4.1.232.22.2.6.1.1.1.2', + cpqRackNetConnectorIndex => '1.3.6.1.4.1.232.22.2.6.1.1.1.3', + cpqRackNetConnectorEnclosureName => '1.3.6.1.4.1.232.22.2.6.1.1.1.4', + cpqRackNetConnectorName => '1.3.6.1.4.1.232.22.2.6.1.1.1.5', + cpqRackNetConnectorModel => '1.3.6.1.4.1.232.22.2.6.1.1.1.6', + cpqRackNetConnectorSerialNum => '1.3.6.1.4.1.232.22.2.6.1.1.1.7', + cpqRackNetConnectorPartNumber => '1.3.6.1.4.1.232.22.2.6.1.1.1.8', + cpqRackNetConnectorSparePartNumber => '1.3.6.1.4.1.232.22.2.6.1.1.1.9', + cpqRackNetConnectorFWRev => '1.3.6.1.4.1.232.22.2.6.1.1.1.10', + cpqRackNetConnectorType => '1.3.6.1.4.1.232.22.2.6.1.1.1.11', + cpqRackNetConnectorLocation => '1.3.6.1.4.1.232.22.2.6.1.1.1.12', + cpqRackNetConnectorPresent => '1.3.6.1.4.1.232.22.2.6.1.1.1.13', + cpqRackNetConnectorHasFuses => '1.3.6.1.4.1.232.22.2.6.1.1.1.14', + cpqRackNetConnectorEnclosureSerialNum => '1.3.6.1.4.1.232.22.2.6.1.1.1.15', + cpqRackNetConnectorTypeValue => { + 0 => 'other', # undefined + 1 => 'other', + 2 => 'active', + 3 => 'passive', + }, + cpqRackNetConnectorPresentValue => { + 1 => 'other', + 2 => 'absent', + 3 => 'present', + }, + cpqRackNetConnectorHasFusesValue => { + -1 => 'false', # wird geliefert, also vermute ich false + 1 => 'false', + 2 => 'true', + }, + }; + + + # INDEX { cpqRackNetConnectorRack, cpqRackNetConnectorChassis, cpqRackNetConnectorIndex } + # dreckada dreck, dreckada + foreach ($self->get_entries($oids, 'cpqRackNetConnectorEntry')) { + push(@{$self->{net_connectors}}, + HP::BladeSystem::Component::NetConnectorSubsystem::NetConnector->new(%{$_})); + } +} + +sub check { + my $self = shift; + foreach (@{$self->{net_connectors}}) { + $_->check() if $_->{cpqRackNetConnectorPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{net_connectors}}) { + $_->dump() if $_->{cpqRackNetConnectorPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + + +package HP::BladeSystem::Component::NetConnectorSubsystem::NetConnector; +our @ISA = qw(HP::BladeSystem::Component::NetConnectorSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackNetConnector/, keys %params; + $self->{name} = $params{cpqRackNetConnectorRack}. + ':'.$params{cpqRackNetConnectorChassis}. + ':'.$params{cpqRackNetConnectorIndex}; + $self->{serfw} = sprintf "Ser: %s, FW: %s", $self->{cpqRackNetConnectorSerialNum}, $self->{cpqRackNetConnectorFWRev}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('nc', $self->{name}); + my $info = sprintf 'net connector %s is %s, model is %s (%s)', + $self->{name}.($self->{cpqRackNetConnectorName} ? ' \''.$self->{cpqRackNetConnectorName}.'\'' : ''), + $self->{cpqRackNetConnectorPresent}, $self->{cpqRackNetConnectorModel}, $self->{serfw}; + $self->add_info($info); + # hat weder status noch condition, vielleicht spaeter mal + $info .= sprintf " (SparePartNum %s)", $self->{cpqRackNetConnectorSparePartNumber}; +} + +sub dump { + my $self = shift; + printf "[NET_CONNECTOR_%s]\n", $self->{cpqRackNetConnectorName}; + foreach (qw(cpqRackNetConnectorRack cpqRackNetConnectorChassis cpqRackNetConnectorIndex cpqRackNetConnectorEnclosureName cpqRackNetConnectorName cpqRackNetConnectorModel cpqRackNetConnectorSerialNum cpqRackNetConnectorPartNumber cpqRackNetConnectorSparePartNumber cpqRackNetConnectorFWRev cpqRackNetConnectorType cpqRackNetConnectorLocation cpqRackNetConnectorPresent cpqRackNetConnectorHasFuses cpqRackNetConnectorEnclosureSerialNum)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/PowerEnclosureSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/PowerEnclosureSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/PowerEnclosureSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/PowerEnclosureSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,136 @@ +package HP::BladeSystem::Component::PowerEnclosureSubsystem; +our @ISA = qw(HP::BladeSystem::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + power_enclosures => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + +# cpqRackPowerEnclosureTable + my $oids = { + cpqRackPowerEnclosureEntry => '1.3.6.1.4.1.232.22.2.3.3.1.1', + cpqRackPowerEnclosureRack => '1.3.6.1.4.1.232.22.2.3.3.1.1.1', + cpqRackPowerEnclosureIndex => '1.3.6.1.4.1.232.22.2.3.3.1.1.2', + cpqRackPowerEnclosureName => '1.3.6.1.4.1.232.22.2.3.3.1.1.3', + cpqRackPowerEnclosureMgmgtBoardSerialNum => '1.3.6.1.4.1.232.22.2.3.3.1.1.4', + cpqRackPowerEnclosureRedundant => '1.3.6.1.4.1.232.22.2.3.3.1.1.5', + cpqRackPowerEnclosureLoadBalanced => '1.3.6.1.4.1.232.22.2.3.3.1.1.6', + cpqRackPowerEnclosureInputPwrType => '1.3.6.1.4.1.232.22.2.3.3.1.1.7', + cpqRackPowerEnclosurePwrFeedMax => '1.3.6.1.4.1.232.22.2.3.3.1.1.8', + cpqRackPowerEnclosureCondition => '1.3.6.1.4.1.232.22.2.3.3.1.1.9', + cpqRackPowerEnclosureRedundantValue => { + 1 => 'other', + 2 => 'notRedundant', + 3 => 'redundant', + }, + cpqRackPowerEnclosureLoadBalancedValue => { + 0 => 'aechz', + 1 => 'other', + 2 => 'notLoadBalanced', + 3 => 'loadBalanced', + }, + cpqRackPowerEnclosureInputPwrTypeValue => { + 1 => 'other', + 2 => 'singlePhase', + 3 => 'threePhase', + 4 => 'directCurrent', + }, + cpqRackPowerEnclosureConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + }, + }; + + + # INDEX { cpqRackPowerEnclosureRack, cpqRackPowerEnclosureIndex } + # dreckada dreck, dreckada + foreach ($self->get_entries($oids, 'cpqRackPowerEnclosureEntry')) { + push(@{$self->{power_enclosures}}, + HP::BladeSystem::Component::PowerEnclosureSubsystem::PowerEnclosure->new(%{$_})); + } +} + +sub check { + my $self = shift; + foreach (@{$self->{power_enclosures}}) { + $_->check(); + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{power_enclosures}}) { + $_->dump(); + } +} + + +package HP::BladeSystem::Component::PowerEnclosureSubsystem::PowerEnclosure; +our @ISA = qw(HP::BladeSystem::Component::PowerEnclosureSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackPowerEnclosure/, keys %params; + $self->{name} = $self->{cpqRackPowerEnclosureRack}.':'.$self->{cpqRackPowerEnclosureIndex}; + bless $self, $class; + $self->init(); + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('pe', $self->{name}); + my $info = sprintf 'power enclosure %s \'%s\' condition is %s', + $self->{name}, $self->{cpqRackPowerEnclosureName}, $self->{cpqRackPowerEnclosureCondition}; + $self->add_info($info); + if ($self->{cpqRackPowerEnclosureCondition} eq 'degraded') { + $self->add_message(WARNING, $info); + } +} + +sub dump { + my $self = shift; + printf "[POWER_ENCLOSURE_%s]\n", $self->{cpqRackPowerEnclosureName}; + foreach (qw(cpqRackPowerEnclosureRack cpqRackPowerEnclosureIndex + cpqRackPowerEnclosureName cpqRackPowerEnclosureMgmgtBoardSerialNum + cpqRackPowerEnclosureRedundant cpqRackPowerEnclosureLoadBalanced + cpqRackPowerEnclosureInputPwrType cpqRackPowerEnclosurePwrFeedMax + cpqRackPowerEnclosureCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/PowerSupplySubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/PowerSupplySubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/PowerSupplySubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/PowerSupplySubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,238 @@ +package HP::BladeSystem::Component::PowerSupplySubsystem; +our @ISA = qw(HP::BladeSystem::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + power_supplies => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + my $oids = { + cpqRackPowerSupplyEntry => '1.3.6.1.4.1.232.22.2.5.1.1.1', + cpqRackPowerSupplyRack => '1.3.6.1.4.1.232.22.2.5.1.1.1.1', + cpqRackPowerSupplyChassis => '1.3.6.1.4.1.232.22.2.5.1.1.1.2', + cpqRackPowerSupplyIndex => '1.3.6.1.4.1.232.22.2.5.1.1.1.3', + cpqRackPowerSupplyEnclosureName => '1.3.6.1.4.1.232.22.2.5.1.1.1.4', + cpqRackPowerSupplySerialNum => '1.3.6.1.4.1.232.22.2.5.1.1.1.5', + cpqRackPowerSupplySparePartNumber => '1.3.6.1.4.1.232.22.2.5.1.1.1.7', + cpqRackPowerSupplyFWRev => '1.3.6.1.4.1.232.22.2.5.1.1.1.8', + cpqRackPowerSupplyMaxPwrOutput => '1.3.6.1.4.1.232.22.2.5.1.1.1.9', + cpqRackPowerSupplyCurPwrOutput => '1.3.6.1.4.1.232.22.2.5.1.1.1.10', + cpqRackPowerSupplyIntakeTemp => '1.3.6.1.4.1.232.22.2.5.1.1.1.12', + cpqRackPowerSupplyExhaustTemp => '1.3.6.1.4.1.232.22.2.5.1.1.1.13', + cpqRackPowerSupplyStatus => '1.3.6.1.4.1.232.22.2.5.1.1.1.14', + cpqRackPowerSupplySupplyInputLineStatus => '1.3.6.1.4.1.232.22.2.5.1.1.1.15', + cpqRackPowerSupplyPresent => '1.3.6.1.4.1.232.22.2.5.1.1.1.16', + cpqRackPowerSupplyCondition => '1.3.6.1.4.1.232.22.2.5.1.1.1.17', + cpqRackPowerSupplySupplyInputLineStatusValue => { + 1 => 'noError', + 2 => 'lineOverVoltage', + 3 => 'lineUnderVoltage', + 4 => 'lineHit', + 5 => 'brownOut', + 6 => 'linePowerLoss', + }, + cpqRackPowerSupplyStatusValue => { + 1 => 'noError', + 2 => 'generalFailure', + 3 => 'bistFailure', + 4 => 'fanFailure', + 5 => 'tempFailure', + 6 => 'interlockOpen', + 7 => 'epromFailed', + 8 => 'vrefFailed', + 9 => 'dacFailed', + 10 => 'ramTestFailed', + 11 => 'voltageChannelFailed', + 12 => 'orringdiodeFailed', + 13 => 'brownOut', + 14 => 'giveupOnStartup', + 15 => 'nvramInvalid', + 16 => 'calibrationTableInvalid', + }, + cpqRackPowerSupplyPresentValue => { + 1 => 'other', + 2 => 'absent', + 3 => 'present', + }, + cpqRackPowerSupplyConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }, + }; + + + # INDEX { cpqRackPowerSupplyRack, cpqRackPowerSupplyChassis, cpqRackPowerSupplyIndex } + foreach ($self->get_entries($oids, 'cpqRackPowerSupplyEntry')) { + push(@{$self->{power_supplies}}, + HP::BladeSystem::Component::PowerSupplySubsystem::PowerSupply->new(%{$_})); + } +} + +sub check { + my $self = shift; + my $total_current_watt = 0; + my $total_max_watt = 0; + my $total_in_temp = 0; + my $total_out_temp = 0; + my $num_ps = 0; + foreach (@{$self->{power_supplies}}) { + $_->check() if $_->{cpqRackPowerSupplyPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + if ($_->{cpqRackPowerSupplyPresent} eq 'present') { + $total_max_watt += $_->{cpqRackPowerSupplyMaxPwrOutput}; + $total_current_watt += $_->{cpqRackPowerSupplyCurPwrOutput}; + $total_in_temp += $_->{cpqRackPowerSupplyIntakeTemp} + if $_->{cpqRackPowerSupplyIntakeTemp} != -1; + $total_out_temp += $_->{cpqRackPowerSupplyExhaustTemp} + if $_->{cpqRackPowerSupplyExhaustTemp} != -1; + $num_ps++; + } + } + $self->{runtime}->{plugin}->add_perfdata( + label => 'watt_total', + value => $total_current_watt, + warning => $total_max_watt, + critical => $total_max_watt, + ); + #$self->{runtime}->{plugin}->add_perfdata( + # label => 'watt_total_pct', + # value => ($total_current_watt == 0 ? 0 : + # sprintf("%.2f", + # ($total_current_watt / $total_max_watt * 100))), + # warning => 100, + # critical => 100, + # uom => '%', + #); + if ($total_in_temp) { + $self->{runtime}->{plugin}->add_perfdata( + label => 'in_temp', + value => $total_in_temp / $num_ps, + ); + } + if ($total_out_temp) { + $self->{runtime}->{plugin}->add_perfdata( + label => 'out_temp', + value => $total_out_temp / $num_ps, + ); + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{power_supplies}}) { + $_->dump() if $_->{cpqRackPowerSupplyPresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent nur bei -vvv + } +} + + +package HP::BladeSystem::Component::PowerSupplySubsystem::PowerSupply; +our @ISA = qw(HP::BladeSystem::Component::PowerSupplySubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackPowerSupply/, keys %params; + $self->{name} = $params{cpqRackPowerSupplyRack}. + ':'.$params{cpqRackPowerSupplyChassis}. + ':'.$params{cpqRackPowerSupplyIndex}; + $self->{serfw} = sprintf "Ser: %s, FW: %s", $self->{cpqRackPowerSupplySerialNum}, $self->{cpqRackPowerSupplyFWRev}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('ps', $self->{name}); + my $info = sprintf 'power supply %s is %s, condition is %s (%s)', + $self->{name}, $self->{cpqRackPowerSupplyPresent}, + $self->{cpqRackPowerSupplyCondition}, $self->{serfw}; + $self->add_info($info); + if ($self->{cpqRackPowerSupplyPresent} eq 'present') { + if ($self->{cpqRackPowerSupplyCondition} eq 'degraded') { + $info .= sprintf " (SparePartNum %s)", $self->{cpqRackPowerSupplySparePartNumber}; + $self->add_message(WARNING, $info); + $self->add_info(sprintf 'power supply %s status is %s, inp.line status is %s', + $self->{name}, $self->{cpqRackPowerSupplyStatus}, + $self->{cpqRackPowerSupplySupplyInputLineStatus}); + } elsif ($self->{cpqRackPowerSupplyCondition} eq 'failed') { + $info .= sprintf " (SparePartNum %s)", $self->{cpqRackPowerSupplySparePartNumber}; + $self->add_message(CRITICAL, $info); + $self->add_info(sprintf 'power supply %s status is %s, inp.line status is %s', + $self->{name}, $self->{cpqRackPowerSupplyStatus}, + $self->{cpqRackPowerSupplySupplyInputLineStatus}); + } + if ($self->{runtime}->{options}->{perfdata} != 2) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('watt_%s', $self->{name}), + value => $self->{cpqRackPowerSupplyCurPwrOutput}, + warning => $self->{cpqRackPowerSupplyMaxPwrOutput}, + critical => $self->{cpqRackPowerSupplyMaxPwrOutput} + ); + #$self->{runtime}->{plugin}->add_perfdata( + # label => sprintf('watt_pct_%s', $self->{name}), + # value => ($self->{cpqRackPowerSupplyCurPwrOutput} == 0 ? 0 : + # sprintf ("%.2f", + # ($self->{cpqRackPowerSupplyCurPwrOutput} / + # $self->{cpqRackPowerSupplyMaxPwrOutput} * 100))), + # warning => 100, + # critical => 100, + # uom => '%', + #); + if ($self->{cpqRackPowerSupplyIntakeTemp} != -1) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('in_temp_%s', $self->{name}), + value => $self->{cpqRackPowerSupplyIntakeTemp}, + ); + } + if ($self->{cpqRackPowerSupplyExhaustTemp} != -1) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('out_temp_%s', $self->{name}), + value => $self->{cpqRackPowerSupplyExhaustTemp}, + ); + } + } + } +} + +sub dump { + my $self = shift; + printf "[POWER_SUPPLY%s]\n", $self->{name}; + foreach (qw(cpqRackPowerSupplyRack cpqRackPowerSupplyChassis cpqRackPowerSupplyIndex cpqRackPowerSupplyEnclosureName cpqRackPowerSupplySerialNum cpqRackPowerSupplySparePartNumber cpqRackPowerSupplyFWRev cpqRackPowerSupplyMaxPwrOutput cpqRackPowerSupplyCurPwrOutput cpqRackPowerSupplyIntakeTemp cpqRackPowerSupplyExhaustTemp cpqRackPowerSupplyStatus cpqRackPowerSupplySupplyInputLineStatus cpqRackPowerSupplyPresent cpqRackPowerSupplyCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/ServerBladeSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/ServerBladeSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/ServerBladeSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component/ServerBladeSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,158 @@ +package HP::BladeSystem::Component::ServerBladeSubsystem; +our @ISA = qw(HP::BladeSystem::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + server_blades => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + my $oids = { + cpqRackServerBladeEntry => '1.3.6.1.4.1.232.22.2.4.1.1.1', + cpqRackServerBladeRack => '1.3.6.1.4.1.232.22.2.4.1.1.1.1', + cpqRackServerBladeChassis => '1.3.6.1.4.1.232.22.2.4.1.1.1.2', + cpqRackServerBladeIndex => '1.3.6.1.4.1.232.22.2.4.1.1.1.3', + cpqRackServerBladeName => '1.3.6.1.4.1.232.22.2.4.1.1.1.4', + cpqRackServerBladeEnclosureName => '1.3.6.1.4.1.232.22.2.4.1.1.1.5', + cpqRackServerBladePartNumber => '1.3.6.1.4.1.232.22.2.4.1.1.1.6', + cpqRackServerBladeSparePartNumber => '1.3.6.1.4.1.232.22.2.4.1.1.1.7', + cpqRackServerBladePosition => '1.3.6.1.4.1.232.22.2.4.1.1.1.8', + cpqRackServerBladeHeight => '1.3.6.1.4.1.232.22.2.4.1.1.1.9', + cpqRackServerBladeWidth => '1.3.6.1.4.1.232.22.2.4.1.1.1.10', + cpqRackServerBladeDepth => '1.3.6.1.4.1.232.22.2.4.1.1.1.11', + cpqRackServerBladePresent => '1.3.6.1.4.1.232.22.2.4.1.1.1.12', + cpqRackServerBladeHasFuses => '1.3.6.1.4.1.232.22.2.4.1.1.1.13', + cpqRackServerBladeEnclosureSerialNum => '1.3.6.1.4.1.232.22.2.4.1.1.1.14', + cpqRackServerBladeSlotsUsed => '1.3.6.1.4.1.232.22.2.4.1.1.1.15', + cpqRackServerBladeStatus => '1.3.6.1.4.1.232.22.2.4.1.1.1.21', + cpqRackServerBladeDiagnosticString => '1.3.6.1.4.1.232.22.2.4.1.1.1.24', + cpqRackServerBladePowered => '1.3.6.1.4.1.232.22.2.4.1.1.1.25', + cpqRackServerBladePOSTStatus => '1.3.6.1.4.1.232.22.2.4.1.1.1.35', + cpqRackServerBladePresentValue => { + 1 => 'other', + 2 => 'absent', + 3 => 'present', + }, + cpqRackServerBladeStatusValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }, + cpqRackServerBladePoweredValue => { + 0 => 'aechz', + 1 => 'other', + 2 => 'on', + 3 => 'off', + 4 => 'powerStagedOff', + 5 => 'reboot', + }, + cpqRackServerBladePOSTStatusValue => { + 1 => 'other', + 2 => 'started', + 3 => 'completed', + 4 => 'failed', + }, + }; + + + # INDEX { cpqRackServerBladeRack, cpqRackServerBladeChassis, cpqRackServerBladeIndex } + # dreckada dreck, dreckada + foreach ($self->get_entries($oids, 'cpqRackServerBladeEntry')) { + push(@{$self->{server_blades}}, + HP::BladeSystem::Component::ServerBladeSubsystem::ServerBlade->new(%{$_})); + } +} + +sub check { + my $self = shift; + foreach (@{$self->{server_blades}}) { + $_->check() if $_->{cpqRackServerBladePresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent blades nur bei -vvv + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{server_blades}}) { + $_->dump() if $_->{cpqRackServerBladePresent} eq 'present' || + $self->{runtime}->{options}->{verbose} >= 3; # absent blades nur bei -vvv + } +} + + +package HP::BladeSystem::Component::ServerBladeSubsystem::ServerBlade; +our @ISA = qw(HP::BladeSystem::Component::ServerBladeSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqRackServerBlade/, keys %params; + $self->{cpqRackServerBladeDiagnosticString} ||= ''; + $self->{name} = $self->{cpqRackServerBladeRack}. + ':'.$self->{cpqRackServerBladeChassis}. + ':'.$self->{cpqRackServerBladeIndex}; + bless $self, $class; + $self->init(); +#printf "%s\n", Data::Dumper::Dumper(\%params); + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('sb', $self->{name}); + my $info = sprintf 'server blade %s \'%s\' is %s, status is %s, powered is %s', + $self->{name}, $self->{cpqRackServerBladeName}, $self->{cpqRackServerBladePresent}, + $self->{cpqRackServerBladeStatus}, $self->{cpqRackServerBladePowered}; + $self->add_info($info); + if ($self->{cpqRackServerBladePowered} eq 'on') { + if ($self->{cpqRackServerBladeStatus} eq 'degraded') { + $self->add_message(WARNING, sprintf 'server blade %s diag is \'%s\', post status is %s', + $self->{cpqRackServerBladeName}, $self->{cpqRackServerBladeDiagnosticString}, + $self->{cpqRackServerBladePOSTStatus}); + } elsif ($self->{cpqRackServerBladeStatus} eq 'failed') { + $self->add_message(CRITICAL, sprintf 'server blade %s diag is \'%s\', post status is %s', + $self->{cpqRackServerBladeName}, $self->{cpqRackServerBladeDiagnosticString}, + $self->{cpqRackServerBladePOSTStatus}); + } + } +} + +sub dump { + my $self = shift; + printf "[SERVER_BLADE_%s]\n", $self->{cpqRackServerBladeName}; + foreach (qw(cpqRackServerBladeRack cpqRackServerBladeChassis cpqRackServerBladeIndex cpqRackServerBladeName cpqRackServerBladeEnclosureName cpqRackServerBladePartNumber cpqRackServerBladeSparePartNumber cpqRackServerBladePosition cpqRackServerBladeHeight cpqRackServerBladeWidth cpqRackServerBladeDepth cpqRackServerBladePresent cpqRackServerBladeHasFuses cpqRackServerBladeEnclosureSerialNum cpqRackServerBladeSlotsUsed cpqRackServerBladeStatus cpqRackServerBladeDiagnosticString cpqRackServerBladePowered cpqRackServerBladePOSTStatus)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem/Component.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,7 @@ +package HP::BladeSystem::Component; + +use strict; + +our @ISA = qw(HP::BladeSystem); + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/BladeSystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,240 @@ +package HP::BladeSystem; + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; +use Data::Dumper; + +our @ISA = qw(HP::Server HP::Proliant::Component::SNMP); + +sub init { + my $self = shift; + $self->{components} = { + common_enclosure_subsystem => undef, + power_enclosure_subsystem => undef, + power_supply_subsystem => undef, + net_connector_subsystem => undef, + server_blade_subsystem => undef, + }; + $self->{serial} = 'unknown'; + $self->{product} = 'unknown'; + $self->{romversion} = 'unknown'; + $self->trace(3, 'BladeSystem identified'); + $self->collect(); + if (! $self->{runtime}->{plugin}->check_messages()) { + $self->set_serial(); + $self->analyze_common_enclosures(); + $self->analyze_power_enclosures(); + $self->analyze_power_supplies(); + $self->analyze_net_connectors(); + $self->analyze_server_blades(); + $self->check_common_enclosures(); + $self->check_power_enclosures(); + $self->check_power_supplies(); + $self->check_net_connectors(); + $self->check_server_blades(); + } +} + +sub identify { + my $self = shift; + return sprintf "System: '%s', S/N: '%s'", + $self->{product}, $self->{serial}; +} + +sub dump { + my $self = shift; + printf STDERR "serial %s\n", $self->{serial}; + printf STDERR "product %s\n", $self->{product}; + printf STDERR "romversion %s\n", $self->{romversion}; + printf STDERR "%s\n", Data::Dumper::Dumper($self->{enclosures}); +} + +sub analyze_common_enclosures { + my $self = shift; + $self->{components}->{common_enclosure_subsystem} = + HP::BladeSystem::Component::CommonEnclosureSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_power_enclosures { + my $self = shift; + $self->{components}->{power_enclosure_subsystem} = + HP::BladeSystem::Component::PowerEnclosureSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_power_supplies { + my $self = shift; + $self->{components}->{power_supply_subsystem} = + HP::BladeSystem::Component::PowerSupplySubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_net_connectors { + my $self = shift; + $self->{components}->{net_connector_subsystem} = + HP::BladeSystem::Component::NetConnectorSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_server_blades { + my $self = shift; + $self->{components}->{server_blade_subsystem} = + HP::BladeSystem::Component::ServerBladeSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub check_common_enclosures { + my $self = shift; + $self->{components}->{common_enclosure_subsystem}->check(); + $self->{components}->{common_enclosure_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_power_enclosures { + my $self = shift; + $self->{components}->{power_enclosure_subsystem}->check(); + $self->{components}->{power_enclosure_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_power_supplies { + my $self = shift; + $self->{components}->{power_supply_subsystem}->check(); + $self->{components}->{power_supply_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_net_connectors { + my $self = shift; + $self->{components}->{net_connector_subsystem}->check(); + $self->{components}->{net_connector_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_server_blades { + my $self = shift; + $self->{components}->{server_blade_subsystem}->check(); + $self->{components}->{server_blade_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub collect { + my $self = shift; + if ($self->{runtime}->{plugin}->opts->snmpwalk) { + my $cpqRackMibCondition = '1.3.6.1.4.1.232.22.1.3.0'; + $self->trace(3, 'getting cpqRackMibCondition'); + if (! exists $self->{rawdata}->{$cpqRackMibCondition}) { + $self->add_message(CRITICAL, + 'snmpwalk returns no health data (cpqrack-mib)'); + } + } else { + my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 + #$params{'-translate'} = [ + # -all => 0x0 + #]; + my ($session, $error) = + Net::SNMP->session(%{$self->{runtime}->{snmpparams}}); + if (! defined $session) { + $self->{plugin}->add_message(CRITICAL, 'cannot create session object'); + $self->trace(1, Data::Dumper::Dumper($self->{runtime}->{snmpparams})); + } else { + # revMajor is often used for discovery of hp devices + my $cpqSeMibRev = '1.3.6.1.4.1.232.22.1'; + my $cpqSeMibRevMajor = '1.3.6.1.4.1.232.22.1.1.0'; + my $cpqRackMibCondition = '1.3.6.1.4.1.232.22.1.3.0'; + $self->trace(3, 'getting cpqRackMibCondition'); + my $result = $session->get_request( + -varbindlist => [$cpqRackMibCondition] + ); + if (!defined($result) || + $result->{$cpqRackMibCondition} eq 'noSuchInstance' || + $result->{$cpqRackMibCondition} eq 'noSuchObject' || + $result->{$cpqRackMibCondition} eq 'endOfMibView') { + $self->add_message(CRITICAL, + 'snmpwalk returns no health data (cpqrack-mib)'); + $session->close; + } else { + $self->trace(3, 'getting cpqRackMibCondition done'); + } + } + if (! $self->{runtime}->{plugin}->check_messages()) { + # snmp peer is alive + $self->trace(2, sprintf "Protocol is %s", + $self->{runtime}->{snmpparams}->{'-version'}); + my $oidtrees = [ + ["cpqSiComponent", "1.3.6.1.4.1.232.2.2"], + ["cpqSiAsset", "1.3.6.1.4.1.232.2.2.2"], + #["cpqRackInfo", "1.3.6.1.4.1.232.22"], + ['cpqRackCommonEnclosureEntry', '1.3.6.1.4.1.232.22.2.3.1.1.1'], + ['cpqRackCommonEnclosureTempEntry', '1.3.6.1.4.1.232.22.2.3.1.2.1'], + ['cpqRackCommonEnclosureFanEntry', '1.3.6.1.4.1.232.22.2.3.1.3.1'], + ['cpqRackCommonEnclosureFuseEntry', '1.3.6.1.4.1.232.22.2.3.1.4.1'], + ['cpqRackCommonEnclosureManagerEntry', '1.3.6.1.4.1.232.22.2.3.1.6.1'], + ['cpqRackPowerEnclosureEntry', '1.3.6.1.4.1.232.22.2.3.3.1.1'], + ['cpqRackServerBladeEntry', '1.3.6.1.4.1.232.22.2.4.1.1.1'], + ['cpqRackPowerSupplyEntry', '1.3.6.1.4.1.232.22.2.5.1.1.1'], + ['cpqRackNetConnectorEntry', '1.3.6.1.4.1.232.22.2.6.1.1.1'], + ['cpqRackMibCondition', '1.3.6.1.4.1.232.22.1.3.0'], + ]; + my $cpqSiComponent = "1.3.6.1.4.1.232.2.2"; + my $cpqSiAsset = "1.3.6.1.4.1.232.2.2.2"; + my $cpqRackInfo = "1.3.6.1.4.1.232.22"; + $session->translate; + my $response = {}; #break the walk up in smaller pieces + foreach my $subtree (@{$oidtrees}) { + my $tic = time; my $tac = $tic; + my $response0 = $session->get_table( + -baseoid => $subtree->[1]); + if (scalar (keys %{$response0}) == 0) { + $self->trace(2, sprintf "maxrepetitions failed. fallback"); + $response0 = $session->get_table( + -maxrepetitions => 1, + -baseoid => $subtree->[1]); + } + $tac = time; + $self->trace(2, sprintf "%03d seconds for walk %s (%d oids)", + $tac - $tic, $subtree->[0], scalar(keys %{$response0})); + map { $response->{$_} = $response0->{$_} } keys %{$response0}; + } + $session->close; + map { $response->{$_} =~ s/^\s+//; $response->{$_} =~ s/\s+$//; } + keys %$response; + $self->{rawdata} = $response; + } + } + return $self->{runtime}->{plugin}->check_messages(); +} + +sub set_serial { + my $self = shift; + + my $cpqSiSysSerialNum = "1.3.6.1.4.1.232.2.2.2.1.0"; + my $cpqSiProductName = "1.3.6.1.4.1.232.2.2.4.2.0"; + + $self->{serial} = + SNMP::Utils::get_object($self->{rawdata}, $cpqSiSysSerialNum); + $self->{product} = + SNMP::Utils::get_object($self->{rawdata}, $cpqSiProductName); + $self->{serial} = $self->{serial}; + $self->{product} = lc $self->{product}; + $self->{romversion} = 'unknown'; +##################################################################### +$self->{runtime}->{product} = $self->{product}; +} + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,32 @@ +package HP::Proliant::Component::AsrSubsystem::CLI; +our @ISA = qw(HP::Proliant::Component::AsrSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; +} + +sub overall_check { + my $self = shift; + my %params = @_; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,68 @@ +package HP::Proliant::Component::AsrSubsystem::SNMP; +our @ISA = qw(HP::Proliant::Component::AsrSubsystem + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->overall_init(%params); + return $self; +} + +sub overall_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $params{rawdata}; + my $cpqHeAsrStatus = "1.3.6.1.4.1.232.6.2.5.1.0"; + my $cpqHeAsrStatusValue = { + 1 => "other", + 2 => "notAvailable", + 3 => "disabled", + 4 => "enabled", + }; + my $cpqHeAsrCondition = "1.3.6.1.4.1.232.6.2.5.17.0"; + my $cpqHeAsrConditionValue = { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }; + $self->{asrcondition} = SNMP::Utils::get_object_value( + $snmpwalk, $cpqHeAsrCondition, + $cpqHeAsrConditionValue); + $self->{asrstatus} = SNMP::Utils::get_object_value( + $snmpwalk, $cpqHeAsrStatus, + $cpqHeAsrStatusValue); + $self->{asrcondition} |= lc $self->{asrcondition}; + $self->{asrstatus} |= lc $self->{asrstatus}; +} + +sub overall_check { + my $self = shift; + my $result = 0; + $self->blacklist('asr', ''); + if ($self->{asrstatus} and $self->{asrstatus} eq "enabled") { + my $info = sprintf 'ASR overall condition is %s', $self->{asrcondition}; + if ($self->{asrcondition} eq "degraded") { + $self->add_message(WARNING, $info); + } elsif ($self->{asrcondition} eq "failed") { + $self->add_message(CRITICAL, $info); + } + $self->add_info($info); + } else { + $self->add_info('This system does not have ASR.'); + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/AsrSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,45 @@ +package HP::Proliant::Component::AsrSubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + temperatures => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + return HP::Proliant::Component::AsrSubsystem::SNMP->new(%params); + } elsif ($self->{method} eq 'cli') { + return HP::Proliant::Component::AsrSubsystem::CLI->new(%params); + } else { + die "unknown method"; + } + return $self; +} + +sub check { + my $self = shift; + my $errorfound = 0; + $self->add_info('checking ASR'); + $self->overall_check(); +} + +sub dump { + my $self = shift; +} + + +1; + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,57 @@ +package HP::Proliant::Component::CpuSubsystem::CLI; +our @ISA = qw(HP::Proliant::Component::CpuSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + cpus => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + my %tmpcpu = ( + runtime => $params{runtime}, + ); + my $inblock = 0; + foreach (grep(/^server/, split(/\n/, $self->{rawdata}))) { + if (/Processor:\s+(\d+)/) { + $tmpcpu{cpqSeCpuUnitIndex} = $1; + $inblock = 1; + } elsif (/Name\s*:\s+(.+?)\s*$/) { + $tmpcpu{cpqSeCpuName} = $1; + } elsif (/Status\s*:\s+(.+?)\s*$/) { + $tmpcpu{cpqSeCpuStatus} = lc $1; + } elsif (/Socket\s*:\s+(.+?)\s*$/) { + $tmpcpu{cpqSeCpuSlot} = $1; + } elsif (/^server\s*$/) { + if ($inblock) { + $inblock = 0; + push(@{$self->{cpus}}, + HP::Proliant::Component::CpuSubsystem::Cpu->new(%tmpcpu)); + %tmpcpu = ( + runtime => $params{runtime}, + ); + } + } + } + if ($inblock) { + push(@{$self->{cpus}}, + HP::Proliant::Component::CpuSubsystem::Cpu->new(%tmpcpu)); + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,50 @@ +package HP::Proliant::Component::CpuSubsystem::SNMP; +our @ISA = qw(HP::Proliant::Component::CpuSubsystem + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + cpus => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + # CPQSTDEQ-MIB + my $oids = { + cpqSeCpuEntry => '1.3.6.1.4.1.232.1.2.2.1.1', + cpqSeCpuUnitIndex => '1.3.6.1.4.1.232.1.2.2.1.1.1', + cpqSeCpuSlot => '1.3.6.1.4.1.232.1.2.2.1.1.2', + cpqSeCpuName => '1.3.6.1.4.1.232.1.2.2.1.1.3', + cpqSeCpuStatus => '1.3.6.1.4.1.232.1.2.2.1.1.6', + cpqSeCpuStatusValue => { + 1 => "unknown", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + 5 => "disabled", + }, + }; + + # INDEX { cpqSeCpuUnitIndex } + foreach ($self->get_entries($oids, 'cpqSeCpuEntry')) { + push(@{$self->{cpus}}, + HP::Proliant::Component::CpuSubsystem::Cpu->new(%{$_})); + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/CpuSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,112 @@ +package HP::Proliant::Component::CpuSubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; +################################## scrapiron ########## + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + cpus => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + return HP::Proliant::Component::CpuSubsystem::SNMP->new(%params); + } elsif ($self->{method} eq 'cli') { + return HP::Proliant::Component::CpuSubsystem::CLI->new(%params); + } else { + die "unknown method"; + } + return $self; +} + +sub check { + my $self = shift; + my $errorfound = 0; + $self->add_info('checking cpus'); + if (scalar (@{$self->{cpus}}) == 0) { + # sachen gibts..... + # $self->overall_check(); # sowas ist mir nur einmal untergekommen + } else { + foreach (@{$self->{cpus}}) { + $_->check(); + } + } +} + +sub num_cpus { + my $self = shift; + return scalar @{$self->{cpus}}; +} + +sub dump { + my $self = shift; + foreach (@{$self->{cpus}}) { + $_->dump(); + } +} + + +package HP::Proliant::Component::CpuSubsystem::Cpu; +our @ISA = qw(HP::Proliant::Component::CpuSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqSeCpuSlot => $params{cpqSeCpuSlot}, + cpqSeCpuUnitIndex => $params{cpqSeCpuUnitIndex}, + cpqSeCpuName => $params{cpqSeCpuName}, + cpqSeCpuStatus => $params{cpqSeCpuStatus}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('c', $self->{cpqSeCpuUnitIndex}); + if ($self->{cpqSeCpuStatus} ne "ok") { + if ($self->{runtime}->{options}{scrapiron} && + ($self->{cpqSeCpuStatus} eq "unknown")) { + $self->add_info(sprintf "cpu %d probably ok (%s)", + $self->{cpqSeCpuUnitIndex}, $self->{cpqSeCpuStatus}); + } else { + $self->add_info(sprintf "cpu %d needs attention (%s)", + $self->{cpqSeCpuUnitIndex}, $self->{cpqSeCpuStatus}); + $self->add_message(CRITICAL, $self->{info}); + } + } else { + $self->add_info(sprintf "cpu %d is %s", + $self->{cpqSeCpuUnitIndex}, $self->{cpqSeCpuStatus}); + } + $self->add_extendedinfo(sprintf "cpu_%s=%s", + $self->{cpqSeCpuUnitIndex}, $self->{cpqSeCpuStatus}); +} + +sub dump { + my $self = shift; + printf "[CPU_%s]\n", $self->{cpqSeCpuUnitIndex}; + foreach (qw(cpqSeCpuSlot cpqSeCpuUnitIndex cpqSeCpuName cpqSeCpuStatus)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n", $self->{info}; + printf "\n"; +} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,216 @@ +package HP::Proliant::Component::DiskSubsystem::Da::CLI; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; + my $hpacucli = $self->{rawdata}; + my $slot = 0; + my $type = "unkn"; + my @lines = (); + my $thistype = 0; + my $tmpcntl = {}; + my $tmpaccel = {}; + my $tmpld = {}; + my $tmppd = {}; + my $cntlindex = 0; + my $ldriveindex = 0; + my $pdriveindex = 0; + my $incontroller = 0; + foreach (split(/\n/, $hpacucli)) { + next unless /^status/; + next if /^status\s*$/; + s/^status\s*//; + if (/(MSA[\s\w]+)\s+in\s+(\w+)/) { + $incontroller = 1; + $slot = $2; + $cntlindex++; + $tmpcntl->{$slot}->{cpqDaCntlrIndex} = $cntlindex; + $tmpcntl->{$slot}->{cpqDaCntlrModel} = $1; + $tmpcntl->{$slot}->{cpqDaCntlrSlot} = $slot; + } elsif (/([\s\w]+) in Slot\s+(\d+)/) { + $incontroller = 1; + $slot = $2; + $cntlindex++; + $tmpcntl->{$slot}->{cpqDaCntlrIndex} = $cntlindex; + $tmpcntl->{$slot}->{cpqDaCntlrModel} = $1; + $tmpcntl->{$slot}->{cpqDaCntlrSlot} = $slot; + } elsif (/Controller Status: (\w+)/) { + $tmpcntl->{$slot}->{cpqDaCntlrBoardCondition} = lc $1; + $tmpcntl->{$slot}->{cpqDaCntlrCondition} = lc $1; + } elsif (/Cache Status: ([\w\s]+?)\s*$/) { + # Cache Status: OK + # Cache Status: Not Configured + # Cache Status: Temporarily Disabled + $tmpaccel->{$slot}->{cpqDaAccelCntlrIndex} = $cntlindex; + $tmpaccel->{$slot}->{cpqDaAccelSlot} = $slot; + #condition: other,ok,degraded,failed + #status: other,invalid,enabled,tmpDisabled,permDisabled + $tmpaccel->{$slot}->{cpqDaAccelCondition} = lc $1; + if ($tmpaccel->{$slot}->{cpqDaAccelCondition} eq 'ok') { + $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'enabled'; + } elsif ($tmpaccel->{$slot}->{cpqDaAccelCondition} eq 'not configured') { + $tmpaccel->{$slot}->{cpqDaAccelCondition} = 'ok'; + $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'enabled'; + } elsif ($tmpaccel->{$slot}->{cpqDaAccelCondition} eq 'temporarily disabled') { + $tmpaccel->{$slot}->{cpqDaAccelCondition} = 'ok'; + $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'tmpDisabled'; + } elsif ($tmpaccel->{$slot}->{cpqDaAccelCondition} eq 'permanently disabled') { + $tmpaccel->{$slot}->{cpqDaAccelCondition} = 'ok'; + $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'permDisabled'; + } else { + $tmpaccel->{$slot}->{cpqDaAccelStatus} = 'enabled'; + } + } elsif (/Battery.* Status: (\w+)/) { + # sowas gibts auch Battery/Capacitor Status: OK + $tmpaccel->{$slot}->{cpqDaAccelBattery} = lc $1; + } elsif (/^\s*$/) { + } + } + $slot = 0; + $cntlindex = 0; + $ldriveindex = 0; + $pdriveindex = 0; + foreach (split(/\n/, $hpacucli)) { + next unless /^config/; + next if /^config\s*$/; + s/^config\s*//; + if (/(MSA[\s\w]+)\s+in\s+(\w+)/) { + $slot = $2; + $cntlindex++; + $pdriveindex = 1; + } elsif (/([\s\w]+) in Slot\s+(\d+)/) { + #if ($slot ne $2 || ! $slot) { + $cntlindex++; + # 2012-12-15 das passt nicht zur oberen schleife + # ich habe keine ahnung, was der hintergrund fuer dieses if ist + #} + $slot = $2; + $pdriveindex = 1; + } elsif (/logicaldrive\s+(.+?)\s+\((.*)\)/) { + # logicaldrive 1 (683.5 GB, RAID 5, OK) + # logicaldrive 1 (683.5 GB, RAID 5, OK) + # logicaldrive 2 (442 MB, RAID 1+0, OK) + $ldriveindex = $1; + $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvCntlrIndex} = $cntlindex; + $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvIndex} = $ldriveindex; + ($tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvSize}, + $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvFaultTol}, + $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvCondition}) = + map { lc $_ } split(/,\s*/, $2); + $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvStatus} = + $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvCondition}; + $tmpld->{$slot}->{$ldriveindex}->{cpqDaLogDrvPhyDrvIDs} = 'unknown'; + } elsif (/physicaldrive\s+(.+?)\s+\((.*)\)/) { + # physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK) + # physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 146 GB, OK) + # physicaldrive 1:1 (box 1:bay 1, Parallel SCSI, 146 GB, OK) + my $name = $1; + my($location, $type, $size, $status) = split(/,/, $2); + $status =~ s/^\s+//g; + $status =~ s/\s+$//g; + $status = lc $status; + my %location = (); + foreach (split(/:/, $location)) { + $location{$1} = $2 if /(\w+)\s+(\w+)/; + } + $location{box} ||= 0; + $location{id} ||= $pdriveindex; + $location{bay} ||= $location{id}; + $location{port} ||= $location{bay}; + $tmppd->{$slot}->{$name}->{name} = lc $name; + $tmppd->{$slot}->{$name}->{cpqDaPhyDrvCntlrIndex} = $cntlindex; + $tmppd->{$slot}->{$name}->{cpqDaPhyDrvIndex} = $location{id}; + $tmppd->{$slot}->{$name}->{cpqDaPhyDrvBay} = $location{bay}; + $tmppd->{$slot}->{$name}->{cpqDaPhyDrvBusNumber} = $location{port}; + $tmppd->{$slot}->{$name}->{cpqDaPhyDrvSize} = $size; + $tmppd->{$slot}->{$name}->{cpqDaPhyDrvStatus} = $status; + $tmppd->{$slot}->{$name}->{cpqDaPhyDrvCondition} = $status; + $tmppd->{$slot}->{$name}->{ldriveindex} = $ldriveindex || -1; + foreach (keys %{$tmppd->{$slot}->{$name}}) { + $tmppd->{$slot}->{$name}->{$_} =~ s/^\s+//g; + $tmppd->{$slot}->{$name}->{$_} =~ s/\s+$//g; + $tmppd->{$slot}->{$name}->{$_} = lc $tmppd->{$slot}->{$name}->{$_}; + } + $pdriveindex++; + } + } + + foreach my $slot (keys %{$tmpcntl}) { + if (exists $tmpcntl->{$slot}->{cpqDaCntlrModel} && + ! $self->identified($tmpcntl->{$slot}->{cpqDaCntlrModel})) { + delete $tmpcntl->{$slot}; + delete $tmpaccel->{$slot}; + delete $tmpld->{$slot}; + delete $tmppd->{$slot}; + } + } + +#printf "%s\n", Data::Dumper::Dumper($tmpcntl); +#printf "%s\n", Data::Dumper::Dumper($tmpaccel); +#printf "%s\n", Data::Dumper::Dumper($tmpld); +#printf "%s\n", Data::Dumper::Dumper($tmppd); + foreach my $slot (sort { + $tmpcntl->{$a}->{cpqDaCntlrIndex} <=> $tmpcntl->{$b}->{cpqDaCntlrIndex} + }keys %{$tmpcntl}) { + $tmpcntl->{$slot}->{runtime} = $self->{runtime}; + push(@{$self->{controllers}}, + HP::Proliant::Component::DiskSubsystem::Da::Controller->new( + %{$tmpcntl->{$slot}})); + } + foreach my $slot (sort { + $tmpaccel->{$a}->{cpqDaAccelCntlrIndex} <=> $tmpaccel->{$b}->{cpqDaAccelCntlrIndex} + } keys %{$tmpaccel}) { + $tmpaccel->{$slot}->{runtime} = $self->{runtime}; + push(@{$self->{accelerators}}, + HP::Proliant::Component::DiskSubsystem::Da::Accelerator->new( + %{$tmpaccel->{$slot}})); + } + foreach my $slot (keys %{$tmpld}) { + foreach my $ldriveindex (keys %{$tmpld->{$slot}}) { + $tmpld->{$slot}->{$ldriveindex}->{runtime} = $self->{runtime}; + push(@{$self->{logical_drives}}, + HP::Proliant::Component::DiskSubsystem::Da::LogicalDrive->new( + %{$tmpld->{$slot}->{$ldriveindex}})); + } + foreach my $pdriveindex (sort { + (split ':', $a, 2)[0] cmp (split ':', $b, 2)[0] || + (split ':', $a, 2)[1] cmp (split ':', $b, 2)[1] || + (split ':', $a, 2)[2] <=> (split ':', $b, 2)[2] + } keys %{$tmppd->{$slot}}) { + $tmppd->{$slot}->{$pdriveindex}->{runtime} = $self->{runtime}; + push(@{$self->{physical_drives}}, + HP::Proliant::Component::DiskSubsystem::Da::PhysicalDrive->new( + %{$tmppd->{$slot}->{$pdriveindex}})); + } + } +} + +sub identified { + my $self = shift; + my $info = shift; + return 1 if $info =~ /Parallel SCSI/; + return 1 if $info =~ /Smart Array/; # Trond: works fine on E200i, P400, E400 + return 1 if $info =~ /MSA500/; + #return 1 if $info =~ /Smart Array (5|6)/; + #return 1 if $info =~ /Smart Array P400i/; # snmp sagt Da, trotz SAS in cli + #return 1 if $info =~ /Smart Array P410i/; # dto + return 0; +} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,197 @@ +package HP::Proliant::Component::DiskSubsystem::Da::SNMP; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + + # CPQIDA-MIB + my $oids = { + cpqDaCntlrEntry => "1.3.6.1.4.1.232.3.2.2.1.1", + cpqDaCntlrIndex => "1.3.6.1.4.1.232.3.2.2.1.1.1", + cpqDaCntlrModel => "1.3.6.1.4.1.232.3.2.2.1.1.2", + cpqDaCntlrSlot => "1.3.6.1.4.1.232.3.2.2.1.1.5", + cpqDaCntlrCondition => "1.3.6.1.4.1.232.3.2.2.1.1.6", + cpqDaCntlrBoardCondition => "1.3.6.1.4.1.232.3.2.2.1.1.12", + cpqDaCntlrModelValue => { + 1 => 'other', + 2 => 'ida', + 3 => 'idaExpansion', + 4 => 'ida-2', + 5 => 'smart', + 6 => 'smart-2e', + 7 => 'smart-2p', + 8 => 'smart-2sl', + 9 => 'smart-3100es', + 10 => 'smart-3200', + 11 => 'smart-2dh', + 12 => 'smart-221', + 13 => 'sa-4250es', + 14 => 'sa-4200', + 15 => 'sa-integrated', + 16 => 'sa-431', + 17 => 'sa-5300', + 18 => 'raidLc2', + 19 => 'sa-5i', + 20 => 'sa-532', + 21 => 'sa-5312', + 22 => 'sa-641', + 23 => 'sa-642', + 24 => 'sa-6400', + 25 => 'sa-6400em', + 26 => 'sa-6i', + }, + cpqDaCntlrConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqDaCntlrBoardConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + }; + + # INDEX { cpqDaCntlrIndex } + foreach ($self->get_entries($oids, 'cpqDaCntlrEntry')) { + push(@{$self->{controllers}}, + HP::Proliant::Component::DiskSubsystem::Da::Controller->new(%{$_})); + } + + $oids = { + cpqDaAccelEntry => "1.3.6.1.4.1.232.3.2.2.2.1", + cpqDaAccelCntlrIndex => "1.3.6.1.4.1.232.3.2.2.2.1.1", + cpqDaAccelStatus => "1.3.6.1.4.1.232.3.2.2.2.1.2", + cpqDaAccelSlot => "1.3.6.1.4.1.232.3.2.2.2.1.5", + cpqDaAccelBattery => "1.3.6.1.4.1.232.3.2.2.2.1.6", + cpqDaAccelCondition => "1.3.6.1.4.1.232.3.2.2.2.1.9", + cpqDaAccelBatteryValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'recharging', + 4 => 'failed', + 5 => 'degraded', + 6 => 'notPresent', + }, + cpqDaAccelConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqDaAccelStatusValue => { + 1 => "other", + 2 => "invalid", + 3 => "enabled", + 4 => "tmpDisabled", + 5 => "permDisabled", + } + }; + + # INDEX { cpqDaAccelCntlrIndex } + foreach ($self->get_entries($oids, 'cpqDaAccelEntry')) { + push(@{$self->{accelerators}}, + HP::Proliant::Component::DiskSubsystem::Da::Accelerator->new(%{$_})); + } + + $oids = { + cpqDaLogDrvEntry => "1.3.6.1.4.1.232.3.2.3.1.1", + cpqDaLogDrvCntlrIndex => "1.3.6.1.4.1.232.3.2.3.1.1.1", + cpqDaLogDrvIndex => "1.3.6.1.4.1.232.3.2.3.1.1.2", + cpqDaLogDrvFaultTol => "1.3.6.1.4.1.232.3.2.3.1.1.3", + cpqDaLogDrvStatus => "1.3.6.1.4.1.232.3.2.3.1.1.4", + cpqDaLogDrvSize => "1.3.6.1.4.1.232.3.2.3.1.1.9", + cpqDaLogDrvPhyDrvIDs => "1.3.6.1.4.1.232.3.2.3.1.1.10", + cpqDaLogDrvCondition => "1.3.6.1.4.1.232.3.2.3.1.1.11", + cpqDaLogDrvPercentRebuild => "1.3.6.1.4.1.232.3.2.3.1.1.12", + cpqDaLogDrvFaultTolValue => { + 1 => "other", + 2 => "none", + 3 => "mirroring", + 4 => "dataGuard", + 5 => "distribDataGuard", + 7 => "advancedDataGuard", + }, + cpqDaLogDrvConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqDaLogDrvStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "failed", + 4 => "unconfigured", + 5 => "recovering", + 6 => "readyForRebuild", + 7 => "rebuilding", + 8 => "wrongDrive", + 9 => "badConnect", + 10 => "overheating", + 11 => "shutdown", + 12 => "expanding", + 13 => "notAvailable", + 14 => "queuedForExpansion", + }, + }; + + # INDEX { cpqDaLogDrvCntlrIndex, cpqDaLogDrvIndex } + foreach ($self->get_entries($oids, 'cpqDaLogDrvEntry')) { + $_->{cpqDaLogDrvPhyDrvIDs} ||= 'empty'; + push(@{$self->{logical_drives}}, + HP::Proliant::Component::DiskSubsystem::Da::LogicalDrive->new(%{$_})); + } + + $oids = { + cpqDaPhyDrvEntry => "1.3.6.1.4.1.232.3.2.5.1.1", + cpqDaPhyDrvCntlrIndex => "1.3.6.1.4.1.232.3.2.5.1.1.1", + cpqDaPhyDrvIndex => "1.3.6.1.4.1.232.3.2.5.1.1.2", + cpqDaPhyDrvBay => "1.3.6.1.4.1.232.3.2.5.1.1.5", + cpqDaPhyDrvStatus => "1.3.6.1.4.1.232.3.2.5.1.1.6", + cpqDaPhyDrvSize => "1.3.6.1.4.1.232.3.2.5.1.1.9", + cpqDaPhyDrvCondition => "1.3.6.1.4.1.232.3.2.5.1.1.37", + cpqDaPhyDrvBusNumber => "1.3.6.1.4.1.232.3.2.5.1.1.50", + cpqDaPhyDrvConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqDaPhyDrvStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "failed", + 4 => "predictiveFailure", + }, + }; + + # INDEX { cpqDaPhyDrvCntlrIndex, cpqDaPhyDrvIndex } + foreach ($self->get_entries($oids, 'cpqDaPhyDrvEntry')) { + push(@{$self->{physical_drives}}, + HP::Proliant::Component::DiskSubsystem::Da::PhysicalDrive->new(%{$_})); + } + +} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,355 @@ +package HP::Proliant::Component::DiskSubsystem::Da; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + condition => undef, + blacklisted => 0, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Da::SNMP'; + } else { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Da::CLI'; + } + $self->init(); + $self->assemble(); + return $self; +} + +sub check { + my $self = shift; + foreach (@{$self->{controllers}}) { + $_->check(); + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{controllers}}) { + $_->dump(); + } +} + +package HP::Proliant::Component::DiskSubsystem::Da::Controller; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqDaCntlrIndex => $params{cpqDaCntlrIndex}, + cpqDaCntlrSlot => $params{cpqDaCntlrSlot}, + cpqDaCntlrModel => $params{cpqDaCntlrModel}, + cpqDaCntlrCondition => $params{cpqDaCntlrCondition}, + cpqDaCntlrBoardCondition => $params{cpqDaCntlrBoardCondition}, + blacklisted => 0, + }; + $self->{name} = $params{name} || $self->{cpqDaCntlrSlot}; + $self->{controllerindex} = $self->{cpqDaCntlrIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; +#$self->dumper($self); + $self->blacklist('daco', $self->{cpqDaCntlrIndex}); + foreach (@{$self->{accelerators}}) { + $_->check(); + } + foreach (@{$self->{logical_drives}}) { + $_->check(); + } + foreach (@{$self->{physical_drives}}) { + $_->check(); + } + foreach (@{$self->{spare_drives}}) { + $_->check(); + } + if ($self->{cpqDaCntlrCondition} eq 'other') { + if (scalar(@{$self->{physical_drives}})) { + $self->add_message(CRITICAL, + sprintf 'da controller %s in slot %s needs attention', + $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); + $self->add_info(sprintf 'da controller %s in slot %s needs attention', + $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); + } else { + $self->add_info(sprintf 'da controller %s in slot %s is ok and unused', + $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); + $self->{blacklisted} = 1; + } + } elsif ($self->{cpqDaCntlrCondition} eq 'degraded') { + # maybe only the battery has failed and is disabled, no problem + if (scalar(grep { + $_->has_failed() && $_->is_disabled() + } @{$self->{accelerators}})) { + # message was already written in the accel code + } else { + $self->add_message(CRITICAL, + sprintf 'da controller %s in slot %s needs attention', + $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); + $self->add_info(sprintf 'da controller %s in slot %s needs attention', + $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); + } + } elsif ($self->{cpqDaCntlrCondition} ne 'ok') { + $self->add_message(CRITICAL, + sprintf 'da controller %s in slot %s needs attention', + $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); + $self->add_info(sprintf 'da controller %s in slot %s needs attention', + $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); + } else { + $self->add_info(sprintf 'da controller %s in slot %s is ok', + $self->{cpqDaCntlrIndex}, $self->{cpqDaCntlrSlot}); + } +} + +sub dump { + my $self = shift; + printf "[DA_CONTROLLER_%s]\n", $self->{name}; + foreach (qw(cpqDaCntlrSlot cpqDaCntlrIndex cpqDaCntlrCondition + cpqDaCntlrModel)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; + foreach (@{$self->{accelerators}}) { + $_->dump(); + } + foreach (@{$self->{logical_drives}}) { + $_->dump(); + } + foreach (@{$self->{physical_drives}}) { + $_->dump(); + } + foreach (@{$self->{spare_drives}}) { + $_->dump(); + } +} + + +package HP::Proliant::Component::DiskSubsystem::Da::Accelerator; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqDaAccelCntlrIndex => $params{cpqDaAccelCntlrIndex}, + cpqDaAccelBattery => $params{cpqDaAccelBattery} || 'notPresent', + cpqDaAccelCondition => $params{cpqDaAccelCondition}, + cpqDaAccelStatus => $params{cpqDaAccelStatus}, + blacklisted => 0, + failed => 0, + }; + $self->{controllerindex} = $self->{cpqDaAccelCntlrIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('daac', $self->{cpqDaAccelCntlrIndex}); + $self->add_info(sprintf 'controller accelerator is %s', + $self->{cpqDaAccelCondition}); + if ($self->{cpqDaAccelStatus} ne "enabled") { + } elsif ($self->{cpqDaAccelCondition} ne "ok") { + if ($self->{cpqDaAccelBattery} eq "failed" && + $self->{cpqDaAccelStatus} eq "tmpDisabled") { + # handled later + } else { + $self->add_message(CRITICAL, "controller accelerator needs attention"); + } + } + $self->blacklist('daacb', $self->{cpqDaAccelCntlrIndex}); + $self->add_info(sprintf 'controller accelerator battery is %s', + $self->{cpqDaAccelBattery}); + if ($self->{cpqDaAccelBattery} eq "notPresent") { + } elsif ($self->{cpqDaAccelBattery} eq "recharging") { + $self->add_message(WARNING, "controller accelerator battery recharging"); + } elsif ($self->{cpqDaAccelBattery} eq "failed" && + $self->{cpqDaAccelStatus} eq "tmpDisabled") { + $self->add_message(WARNING, "controller accelerator battery needs attention"); + } elsif ($self->{cpqDaAccelBattery} ne "ok") { + # (other) failed degraded + $self->add_message(CRITICAL, "controller accelerator battery needs attention"); + } +} + +sub has_failed { + my $self = shift; + return $self->{cpqDaAccelStatus} =~ /Disabled/ ? 1 : 0; +} + +sub is_disabled { + my $self = shift; + return $self->{cpqDaAccelStatus} =~ /Disabled/ ? 1 : 0; +} + +sub dump { + my $self = shift; + printf "[ACCELERATOR]\n"; + foreach (qw(cpqDaAccelCntlrIndex cpqDaAccelBattery + cpqDaAccelStatus cpqDaAccelCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Da::LogicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqDaLogDrvIndex => $params{cpqDaLogDrvIndex}, + cpqDaLogDrvCntlrIndex => $params{cpqDaLogDrvCntlrIndex}, + cpqDaLogDrvSize => $params{cpqDaLogDrvSize}, + cpqDaLogDrvFaultTol => $params{cpqDaLogDrvFaultTol}, + cpqDaLogDrvPercentRebuild => $params{cpqDaLogDrvPercentRebuild}, + cpqDaLogDrvStatus => $params{cpqDaLogDrvStatus}, + cpqDaLogDrvCondition => $params{cpqDaLogDrvCondition}, + cpqDaLogDrvPhyDrvIDs => $params{cpqDaLogDrvPhyDrvIDs}, + blacklisted => 0, + }; + bless $self, $class; + $self->{name} = $params{name} || + $self->{cpqDaLogDrvCntlrIndex}.':'.$self->{cpqDaLogDrvIndex}; ##vorerst + $self->{controllerindex} = $self->{cpqDaLogDrvCntlrIndex}; + if (! $self->{cpqDaLogDrvPercentRebuild} || + $self->{cpqDaLogDrvPercentRebuild} == 4294967295) { + $self->{cpqDaLogDrvPercentRebuild} = 100; + } + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('dald', $self->{name}); + $self->add_info(sprintf "logical drive %s is %s (%s)", + $self->{name}, $self->{cpqDaLogDrvStatus}, + $self->{cpqDaLogDrvFaultTol}); + if ($self->{cpqDaLogDrvCondition} ne "ok") { + if ($self->{cpqDaLogDrvStatus} =~ + /rebuild|recovering|recovery|expanding|queued/) { + $self->add_message(WARNING, + sprintf "logical drive %s is %s", + $self->{name}, $self->{cpqDaLogDrvStatus}); + } else { + $self->add_message(CRITICAL, + sprintf "logical drive %s is %s", + $self->{name}, $self->{cpqDaLogDrvStatus}); + } + } +} + +sub dump { + my $self = shift; + printf "[LOGICAL_DRIVE]\n"; + foreach (qw(cpqDaLogDrvCntlrIndex cpqDaLogDrvIndex cpqDaLogDrvSize + cpqDaLogDrvFaultTol cpqDaLogDrvStatus cpqDaLogDrvCondition + cpqDaLogDrvPercentRebuild cpqDaLogDrvPhyDrvIDs)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Da::PhysicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + name => $params{name}, + cpqDaPhyDrvCntlrIndex => $params{cpqDaPhyDrvCntlrIndex}, + cpqDaPhyDrvIndex => $params{cpqDaPhyDrvIndex}, + cpqDaPhyDrvBay => $params{cpqDaPhyDrvBay}, + cpqDaPhyDrvBusNumber => $params{cpqDaPhyDrvBusNumber}, + cpqDaPhyDrvSize => $params{cpqDaPhyDrvSize}, + cpqDaPhyDrvStatus => $params{cpqDaPhyDrvStatus}, + cpqDaPhyDrvCondition => $params{cpqDaPhyDrvCondition}, + blacklisted => 0, + }; + bless $self, $class; + $self->{name} = $params{name} || + $self->{cpqDaPhyDrvCntlrIndex}.':'.$self->{cpqDaPhyDrvIndex}; ##vorerst + $self->{controllerindex} = $self->{cpqDaPhyDrvCntlrIndex}; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('dapd', $self->{name}); + $self->add_info( + sprintf "physical drive %s is %s", + $self->{name}, $self->{cpqDaPhyDrvCondition}); + if ($self->{cpqDaPhyDrvCondition} ne 'ok') { + $self->add_message(CRITICAL, + sprintf "physical drive %s is %s", + $self->{name}, $self->{cpqDaPhyDrvCondition}); + } +} + +sub dump { + my $self = shift; + printf "[PHYSICAL_DRIVE]\n"; + foreach (qw(cpqDaPhyDrvCntlrIndex cpqDaPhyDrvIndex cpqDaPhyDrvBay + cpqDaPhyDrvBusNumber cpqDaPhyDrvSize cpqDaPhyDrvStatus + cpqDaPhyDrvCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Da::SpareDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Da); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub dump { + my $self = shift; + printf "[SPARE_DRIVE]\n"; + foreach (qw(cpqDaPhyDrvCntlrIndex cpqDaPhyDrvIndex cpqDaPhyDrvBay + cpqDaPhyDrvBusNumber cpqDaPhyDrvSize cpqDaPhyDrvStatus + cpqDaPhyDrvCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,33 @@ +package HP::Proliant::Component::DiskSubsystem::Fca::CLI; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; + # ..... + $self->{global_status} = + HP::Proliant::Component::DiskSubsystem::Fca::GlobalStatus->new( + runtime => $self->{runtime}, + cpqFcaMibCondition => 'n/a', + ); + +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,302 @@ +package HP::Proliant::Component::DiskSubsystem::Fca::SNMP; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + + # CPQFCA-MIB + my $oids = { + cpqFcaHostCntlrEntry => '1.3.6.1.4.1.232.16.2.7.1.1', + cpqFcaHostCntlrIndex => '1.3.6.1.4.1.232.16.2.7.1.1.1', + cpqFcaHostCntlrSlot => '1.3.6.1.4.1.232.16.2.7.1.1.2', + cpqFcaHostCntlrModel => '1.3.6.1.4.1.232.16.2.7.1.1.3', + cpqFcaHostCntlrStatus => '1.3.6.1.4.1.232.16.2.7.1.1.4', + cpqFcaHostCntlrCondition => '1.3.6.1.4.1.232.16.2.7.1.1.5', + cpqFcaHostCntlrOverallCondition => '1.3.6.1.4.1.232.16.2.7.1.1.8', + cpqFcaHostCntlrModelValue => { + 1 => "other", + # You may need to upgrade your driver software and\or instrument + # agent(s). You have a drive array controller in the system + # that the instrument agent does not recognize. (other according to CPQFCAL-MIB) + 2 => "fchc-p", + 3 => "fchc-e", + 4 => "fchc64", + 5 => "sa-sam", + 6 => "fca-2101", + 7 => "sw64-33", + 8 => "fca-221x", + 9 => "dpfcmc", + 10 => 'fca-2404', + 11 => 'fca-2214', + 12 => 'a7298a', + 13 => 'fca-2214dc', + 14 => 'a6826a', + 15 => 'fcmcG3', + 16 => 'fcmcG4', + 17 => 'ab46xa', + 18 => 'fc-generic', + 19 => 'fca-1143', + 20 => 'fca-1243', + 21 => 'fca-2143', + 22 => 'fca-2243', + 23 => 'fca-1050', + 24 => 'fca-lpe1105', + 25 => 'fca-qmh2462', + 26 => 'fca-1142sr', + 27 => 'fca-1242sr', + 28 => 'fca-2142sr', + 29 => 'fca-2242sr', + 30 => 'fcmc20pe', + 31 => 'fca-81q', + 32 => 'fca-82q', + 33 => 'fca-qmh2562', + 34 => 'fca-81e', + 35 => 'fca-82e', + 36 => 'fca-1205', + }, + cpqFcaHostCntlrStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "failed", + 4 => "shutdown", + 5 => "loopDegraded", + 6 => "loopFailed", + 7 => "notConnected", + }, + cpqFcaHostCntlrConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqFcaHostCntlrOverallConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, # cntrl + alle associated storage boxes + }; + + # INDEX { cpqFcaHostCntlrIndex } + foreach ($self->get_entries($oids, 'cpqFcaHostCntlrEntry')) { + push(@{$self->{host_controllers}}, + HP::Proliant::Component::DiskSubsystem::Fca::HostController->new(%{$_})); + } + + $oids = { + cpqFcaCntlrEntry => '1.3.6.1.4.1.232.16.2.2.1.1', + cpqFcaCntlrBoxIndex => '1.3.6.1.4.1.232.16.2.2.1.1.1', + cpqFcaCntlrBoxIoSlot => '1.3.6.1.4.1.232.16.2.2.1.1.2', + cpqFcaCntlrModel => '1.3.6.1.4.1.232.16.2.2.1.1.3', + cpqFcaCntlrStatus => '1.3.6.1.4.1.232.16.2.2.1.1.5', + cpqFcaCntlrCondition => '1.3.6.1.4.1.232.16.2.2.1.1.6', + cpqFcaCntlrModelValue => { + 1 => "other", + 2 => "fibreArray", + 3 => "msa1000", + 4 => "smartArrayClusterStorage", + 5 => "hsg80", + 6 => "hsv110", + 7 => "msa500g2", + 8 => "msa20", + 8 => "msa1510i", + }, + cpqFcaCntlrStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "failed", + 4 => "offline", + 5 => "redundantPathOffline", + 6 => "notConnected", + }, + cpqFcaCntlrConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + }; + + # INDEX { cpqFcaCntlrBoxIndex, cpqFcaCntlrBoxIoSlot } + foreach ($self->get_entries($oids, 'cpqFcaCntlrEntry')) { + push(@{$self->{controllers}}, + HP::Proliant::Component::DiskSubsystem::Fca::Controller->new(%{$_})); + } + + $oids = { + cpqFcaAccelEntry => '1.3.6.1.4.1.232.16.2.2.2.1', + cpqFcaAccelBoxIndex => '1.3.6.1.4.1.232.16.2.2.2.1.1', + cpqFcaAccelBoxIoSlot => '1.3.6.1.4.1.232.16.2.2.2.1.2', + cpqFcaAccelStatus => '1.3.6.1.4.1.232.16.2.2.2.1.3', + cpqFcaAccelErrCode => '1.3.6.1.4.1.232.16.2.2.2.1.5', + cpqFcaAccelBatteryStatus => '1.3.6.1.4.1.232.16.2.2.2.1.6', + cpqFcaAccelCondition => '1.3.6.1.4.1.232.16.2.2.2.1.9', + cpqFcaAccelStatusValue => { + 1 => "other", + 2 => "invalid", + 3 => "enabled", + 4 => "tmpDisabled", + 5 => "permDisabled", + }, + cpqFcaAccelErrCodeValue => { + 1 => 'other', + 2 => 'invalid', + 3 => 'badConfig', + 4 => 'lowBattery', + 5 => 'disableCmd', + 6 => 'noResources', + 7 => 'notConnected', + 8 => 'badMirrorData', + 9 => 'readErr', + 10 => 'writeErr', + 11 => 'configCmd', + 12 => 'expandInProgress', + 13 => 'snapshotInProgress', + 14 => 'redundantLowBattery', + 15 => 'redundantSizeMismatch', + 16 => 'redundantCacheFailure', + 17 => 'excessiveEccErrors', + 19 => 'postEccErrors', + }, + cpqFcaAccelBatteryStatusValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'recharging', + 4 => 'failed', + 5 => 'degraded', + 6 => 'notPresent', + }, + cpqFcaAccelConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + }; + + # INDEX { cpqFcaAccelBoxIndex, cpqFcaAccelBoxIoSlot } + foreach ($self->get_entries($oids, 'cpqFcaAccelEntry')) { + push(@{$self->{accelerators}}, + HP::Proliant::Component::DiskSubsystem::Fca::Accelerator->new(%{$_})); + } + + $oids = { + cpqFcaLogDrvEntry => '1.3.6.1.4.1.232.16.2.3.1.1', + cpqFcaLogDrvBoxIndex => '1.3.6.1.4.1.232.16.2.3.1.1.1', + cpqFcaLogDrvIndex => '1.3.6.1.4.1.232.16.2.3.1.1.2', + cpqFcaLogDrvFaultTol => '1.3.6.1.4.1.232.16.2.3.1.1.3', + cpqFcaLogDrvStatus => '1.3.6.1.4.1.232.16.2.3.1.1.4', + cpqFcaLogDrvPercentRebuild => '1.3.6.1.4.1.232.16.2.3.1.1.6', + cpqFcaLogDrvSize => '1.3.6.1.4.1.232.16.2.3.1.1.9', + cpqFcaLogDrvPhyDrvIDs => '1.3.6.1.4.1.232.16.2.3.1.1.10', + cpqFcaLogDrvCondition => '1.3.6.1.4.1.232.16.2.3.1.1.11', + cpqFcaLogDrvFaultTolValue => { + 1 => 'other', + 2 => 'none', + 3 => 'mirroring', + 4 => 'dataGuard', + 5 => 'distribDataGuard', + 7 => 'advancedDataGuard', + }, + cpqFcaLogDrvStatusValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'failed', + 4 => 'unconfigured', + 5 => 'recovering', + 6 => 'readyForRebuild', + 7 => 'rebuilding', + 8 => 'wrongDrive', + 9 => 'badConnect', + 10 => 'overheating', + 11 => 'shutdown', + 12 => 'expanding', + 13 => 'notAvailable', + 14 => 'queuedForExpansion', + 15 => 'hardError', + }, + cpqFcaLogDrvConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }, + }; + + # INDEX { cpqFcaLogDrvBoxIndex, cpqFcaLogDrvIndex } + foreach ($self->get_entries($oids, 'cpqFcaLogDrvEntry')) { + push(@{$self->{logical_drives}}, + HP::Proliant::Component::DiskSubsystem::Fca::LogicalDrive->new(%{$_})); + } + + $oids = { + cpqFcaPhyDrvEntry => '1.3.6.1.4.1.232.16.2.5.1.1', + cpqFcaPhyDrvBoxIndex => '1.3.6.1.4.1.232.16.2.5.1.1.1', + cpqFcaPhyDrvIndex => '1.3.6.1.4.1.232.16.2.5.1.1.2', + cpqFcaPhyDrvModel => '1.3.6.1.4.1.232.16.2.5.1.1.3', + cpqFcaPhyDrvBay => '1.3.6.1.4.1.232.16.2.5.1.1.5', + cpqFcaPhyDrvStatus => '1.3.6.1.4.1.232.16.2.5.1.1.6', + cpqFcaPhyDrvCondition => '1.3.6.1.4.1.232.16.2.5.1.1.31', + cpqFcaPhyDrvSize => '1.3.6.1.4.1.232.16.2.5.1.1.38', + cpqFcaPhyDrvBusNumber => '1.3.6.1.4.1.232.16.2.5.1.1.42', + cpqFcaPhyDrvStatusValue => { + 1 => 'other', + 2 => 'unconfigured', + 3 => 'ok', + 4 => 'threshExceeded', + 5 => 'predictiveFailure', + 6 => 'failed', + }, + cpqFcaPhyDrvConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }, + }; + + # INDEX { cpqFcaPhyDrvBoxIndex, cpqFcaPhyDrvIndex } + foreach ($self->get_entries($oids, 'cpqFcaPhyDrvEntry')) { + push(@{$self->{physical_drives}}, + HP::Proliant::Component::DiskSubsystem::Fca::PhysicalDrive->new(%{$_})); + } + + $oids = { + cpqFcaMibRevMajor => '1.3.6.1.4.1.232.16.1.1.0', + cpqFcaMibRevMinor => '1.3.6.1.4.1.232.16.1.2.0', + cpqFcaMibCondition => '1.3.6.1.4.1.232.16.1.3.0', + cpqFcaMibConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }, + }; + $self->{global_status} = + HP::Proliant::Component::DiskSubsystem::Fca::GlobalStatus->new( + runtime => $self->{runtime}, + cpqFcaMibCondition => + SNMP::Utils::get_object_value($snmpwalk, + $oids->{cpqFcaMibCondition}, $oids->{cpqFcaMibConditionValue}) + ); +} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,432 @@ +package HP::Proliant::Component::DiskSubsystem::Fca; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + host_controllers => [], + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + global_status => undef, + blacklisted => 0, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Fca::SNMP'; + } else { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Fca::CLI'; + } + $self->init(); + $self->assemble(); + return $self; +} + +sub assemble { + my $self = shift; + $self->trace(3, sprintf "%s controllers und platten zusammenfuehren", + ref($self)); + $self->trace(3, sprintf "has %d host controllers", + scalar(@{$self->{host_controllers}})); + $self->trace(3, sprintf "has %d controllers", + scalar(@{$self->{controllers}})); + $self->trace(3, sprintf "has %d physical_drives", + scalar(@{$self->{physical_drives}})); + $self->trace(3, sprintf "has %d logical_drives", + scalar(@{$self->{logical_drives}})); + $self->trace(3, sprintf "has %d spare_drives", + scalar(@{$self->{spare_drives}})); +} + +sub check { + my $self = shift; + foreach (@{$self->{host_controllers}}) { + $_->check(); + } + foreach (@{$self->{controllers}}) { + $_->check(); + } + foreach (@{$self->{accelerators}}) { + $_->check(); + } + foreach (@{$self->{logical_drives}}) { + $_->check(); + } + foreach (@{$self->{physical_drives}}) { + $_->check(); + } + # wozu eigentlich? + #if (! $self->has_controllers()) { + #$self->{global_status}->check(); + #} +} + +sub dump { + my $self = shift; + foreach (@{$self->{host_controllers}}) { + $_->dump(); + } + foreach (@{$self->{controllers}}) { + $_->dump(); + } + foreach (@{$self->{accelerators}}) { + $_->dump(); + } + foreach (@{$self->{logical_drives}}) { + $_->dump(); + } + foreach (@{$self->{physical_drives}}) { + $_->dump(); + } + #$self->{global_status}->dump(); +} + + +package HP::Proliant::Component::DiskSubsystem::Fca::GlobalStatus; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqFcaMibCondition => $params{cpqFcaMibCondition}, + }; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + if ($self->{cpqFcaMibCondition} eq 'other') { + $self->add_message(OK, + sprintf 'fcal overall condition is other, update your drivers, please'); + } elsif ($self->{cpqFcaMibCondition} ne 'ok') { + $self->add_message(CRITICAL, + sprintf 'fcal overall condition is %s', $self->{cpqFcaMibCondition}); + } + $self->{info} = + sprintf 'fcal overall condition is %s', $self->{cpqFcaMibCondition}; +} + +sub dump { + my $self = shift; + printf "[FCAL]\n"; + foreach (qw(cpqFcaMibCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Fca::HostController; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqFcaHostCntlr/, keys %params; + $self->{name} = $params{name} || $self->{cpqFcaHostCntlrIndex}; + $self->{controllerindex} = $self->{cpqFcaHostCntlrIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('fcahc', $self->{name}); + my $info = sprintf 'fcal host controller %s in slot %s is %s', + $self->{name}, $self->{cpqFcaHostCntlrSlot}, $self->{cpqFcaHostCntlrCondition}; + if ($self->{cpqFcaHostCntlrCondition} eq 'other') { + #$info .= sprintf ' and needs attention (%s)', $self->{cpqFcaHostCntlrStatus}; + # let's assume other=ok + $self->add_message(OK, $info); + $self->add_info($info); + } elsif ($self->{cpqFcaHostCntlrCondition} ne 'ok') { + $self->add_message(CRITICAL, $info); + $self->add_info($info); + } else { + $self->add_info($info); + } + $self->blacklist('fcahco', $self->{name}); + $info = sprintf 'fcal host controller %s overall condition is %s', + $self->{name}, $self->{cpqFcaHostCntlrOverallCondition}; + if ($self->{cpqFcaHostCntlrOverallCondition} eq 'other') { + $self->add_message(OK, $info); + } elsif ($self->{cpqFcaHostCntlrOverallCondition} ne 'ok') { + $self->add_message(WARNING, $info); + } + $self->add_info($info); +} + +sub dump { + my $self = shift; + printf "[FCAL_HOST_CONTROLLER_%s]\n", $self->{name}; + foreach (qw(cpqFcaHostCntlrIndex cpqFcaHostCntlrSlot + cpqFcaHostCntlrModel cpqFcaHostCntlrStatus cpqFcaHostCntlrCondition + cpqFcaHostCntlrOverallCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Fca::Controller; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqFcaCntlr/, keys %params; + $self->{name} = $params{name} || + $self->{cpqFcaCntlrBoxIndex}.':'.$self->{cpqFcaCntlrBoxIoSlot}; + $self->{controllerindex} = $self->{cpqFcaCntlrBoxIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('fcaco', $self->{name}); + my $info = sprintf 'fcal controller %s in box %s/slot %s is %s', + $self->{name}, $self->{cpqFcaCntlrBoxIndex}, $self->{cpqFcaCntlrBoxIoSlot}, + $self->{cpqFcaCntlrCondition}; + if ($self->{cpqFcaCntlrCondition} eq 'other') { + if (1) { # was ist mit phys. drives? + $info .= ' needs attention'; + $info .= sprintf(' (%s)', $self->{cpqFcaCntlrStatus}) unless $self->{cpqFcaCntlrStatus} eq 'ok'; + $self->add_message(CRITICAL, $info); + $self->add_info($info); + } else { + $self->add_info($info); + $self->{blacklisted} = 1; + } + } elsif ($self->{cpqFcaCntlrCondition} ne 'ok') { + $info .= ' needs attention'; + $info .= sprintf(' (%s)', $self->{cpqFcaCntlrStatus}) unless $self->{cpqFcaCntlrStatus} eq 'ok'; + $self->add_message(CRITICAL, $info); + $self->add_info($info); + } else { + $self->add_info($info); + } +} + +sub dump { + my $self = shift; + printf "[FCAL_CONTROLLER_%s]\n", $self->{name}; + foreach (qw(cpqFcaCntlrBoxIndex cpqFcaCntlrBoxIoSlot cpqFcaCntlrModel + cpqFcaCntlrStatus cpqFcaCntlrCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Fca::Accelerator; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqFcaAccel/, keys %params; + $self->{name} = $params{name} || + $self->{cpqFcaAccelBoxIndex}.':'.$self->{cpqFcaAccelBoxIoSlot}; + $self->{controllerindex} = $self->{cpqFcaAccelBoxIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + # !!! cpqFcaAccelStatus + $self->blacklist('fcaac', $self->{name}); + my $info = sprintf 'fcal accelerator %s in box %s/slot %s is ', + $self->{name}, $self->{cpqFcaAccelBoxIndex}, $self->{cpqFcaAccelBoxIoSlot}; + if ($self->{cpqFcaAccelStatus} eq 'invalid') { + $info .= 'not installed'; + $self->add_info($info); + } elsif ($self->{cpqFcaAccelStatus} eq 'tmpDisabled') { + $info .= 'temp disabled'; + $self->add_info($info); + } elsif ($self->{cpqFcaAccelCondition} eq 'other') { + $info .= sprintf '%s and needs attention (%s)', + $self->{cpqFcaAccelCondition}, $self->{cpqFcaAccelErrCode}; + $self->add_message(CRITICAL, $info); + $self->add_info($info); + } elsif ($self->{cpqFcaAccelCondition} ne 'ok') { + $info .= sprintf '%s and needs attention (%s)', + $self->{cpqFcaAccelCondition}, $self->{cpqFcaAccelErrCode}; + $self->add_message(CRITICAL, $info); + $self->add_info($info); + } else { + $info .= sprintf '%s', $self->{cpqFcaAccelCondition}; + $self->add_info($info); + } +} + +sub dump { + my $self = shift; + printf "[FCAL_ACCELERATOR_%s]\n", $self->{name}; + foreach (qw(cpqFcaAccelBoxIndex cpqFcaAccelBoxIoSlot cpqFcaAccelStatus + cpqFcaAccelErrCode cpqFcaAccelBatteryStatus cpqFcaAccelCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Fca::LogicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqFcaLogDrv/, keys %params; + bless $self, $class; + $self->{name} = $params{name} || + $self->{cpqFcaLogDrvBoxIndex}.':'. + $self->{cpqFcaLogDrvIndex}; + $self->{controllerindex} = $self->{cpqFcaLogDrvBoxIndex}; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('fcald', $self->{name}); + my $info = sprintf 'logical drive %s (%s) is %s', + $self->{name}, $self->{cpqFcaLogDrvFaultTol}, $self->{cpqFcaLogDrvCondition}; + if ($self->{cpqFcaLogDrvCondition} ne "ok") { + $info .= sprintf ' (%s)', $self->{cpqFcaLogDrvStatus}; + if ($self->{cpqFcaLogDrvStatus} =~ + /rebuild|recovering|expand/) { + $info .= sprintf ' (%s)', $self->{cpqFcaLogDrvStatus}; + $self->add_message(WARNING, $info); + } else { + $self->add_message(CRITICAL, $info); + } + } + $self->add_info($info); +} + +sub dump { + my $self = shift; + printf "[LOGICAL_DRIVE_%s]\n", $self->{name}; + foreach (qw(cpqFcaLogDrvBoxIndex cpqFcaLogDrvIndex cpqFcaLogDrvFaultTol + cpqFcaLogDrvStatus cpqFcaLogDrvPercentRebuild cpqFcaLogDrvSize + cpqFcaLogDrvPhyDrvIDs cpqFcaLogDrvCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Fca::PhysicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqFcaPhyDrv/, keys %params; + $self->{name} = $params{name} || + $self->{cpqFcaPhyDrvBoxIndex}.':'.$self->{cpqFcaPhyDrvIndex}; ####vorerst + $self->{controllerindex} = $self->{cpqScsiPhyDrvCntlrIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('fcapd', $self->{name}); + my $info = sprintf "physical drive %s is %s", + $self->{name}, $self->{cpqFcaPhyDrvStatus}; + if ($self->{cpqFcaPhyDrvStatus} eq 'unconfigured') { + # not part of a logical drive + # condition will surely be other + } elsif ($self->{cpqFcaPhyDrvCondition} ne 'ok') { + $self->add_message(CRITICAL, $info); + } + $self->add_info($info); +} + +sub dump { + my $self = shift; + printf "[PHYSICAL_DRIVE_%s]\n", $self->{name}; + foreach (qw(cpqFcaPhyDrvBoxIndex cpqFcaPhyDrvIndex cpqFcaPhyDrvModel + cpqFcaPhyDrvBay cpqFcaPhyDrvStatus cpqFcaPhyDrvCondition + cpqFcaPhyDrvSize cpqFcaPhyDrvBusNumber)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Fca::SpareDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Fca); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub dump { + my $self = shift; + printf "[SPARE_DRIVE]\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,26 @@ +package HP::Proliant::Component::DiskSubsystem::Ide::CLI; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,114 @@ +package HP::Proliant::Component::DiskSubsystem::Ide::SNMP; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + + # CPQIDE-MIB + my $oids = { + cpqIdeControllerEntry => '1.3.6.1.4.1.232.14.2.3.1.1', + cpqIdeControllerIndex => '1.3.6.1.4.1.232.14.2.3.1.1.1', + cpqIdeControllerOverallCondition => '1.3.6.1.4.1.232.14.2.3.1.1.2', + cpqIdeControllerModel => '1.3.6.1.4.1.232.14.2.3.1.1.3', + cpqIdeControllerSlot => '1.3.6.1.4.1.232.14.2.3.1.1.5', + cpqIdeControllerOverallConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + }; + + # INDEX { cpqIdeControllerIndex } + foreach ($self->get_entries($oids, 'cpqIdeControllerEntry')) { + push(@{$self->{controllers}}, + HP::Proliant::Component::DiskSubsystem::Ide::Controller->new(%{$_})); + } + + $oids = { + cpqIdeLogicalDriveEntry => '1.3.6.1.4.1.232.14.2.6.1.1', + cpqIdeLogicalDriveControllerIndex => '1.3.6.1.4.1.232.14.2.6.1.1.1', + cpqIdeLogicalDriveIndex => '1.3.6.1.4.1.232.14.2.6.1.1.2', + cpqIdeLogicalDriveRaidLevel => '1.3.6.1.4.1.232.14.2.6.1.1.3', + cpqIdeLogicalDriveCapacity => '1.3.6.1.4.1.232.14.2.6.1.1.4', + cpqIdeLogicalDriveStatus => '1.3.6.1.4.1.232.14.2.6.1.1.5', + cpqIdeLogicalDriveCondition => '1.3.6.1.4.1.232.14.2.6.1.1.6', + cpqIdeLogicalDriveDiskIds => '1.3.6.1.4.1.232.14.2.6.1.1.7', + cpqIdeLogicalDriveSpareIds => '1.3.6.1.4.1.232.14.2.6.1.1.9', + cpqIdeLogicalDriveRebuildingDisk => '1.3.6.1.4.1.232.14.2.6.1.1.10', + cpqIdeLogicalDriveRaidLevelValue => { + 1 => "other", + 2 => "raid0", + 3 => "raid1", + 4 => "raid0plus1", + }, + cpqIdeLogicalDriveStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "rebuilding", + 5 => "failed", + }, + cpqIdeLogicalDriveConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + }; + # INDEX { cpqIdeLogicalDriveControllerIndex, cpqIdeLogicalDriveIndex } + foreach ($self->get_entries($oids, 'cpqIdeLogicalDriveEntry')) { + push(@{$self->{logical_drives}}, + HP::Proliant::Component::DiskSubsystem::Ide::LogicalDrive->new(%{$_})); + } + + $oids = { + cpqIdeAtaDiskEntry => '1.3.6.1.4.1.232.14.2.4.1.1', + cpqIdeAtaDiskControllerIndex => '1.3.6.1.4.1.232.14.2.4.1.1.1', + cpqIdeAtaDiskIndex => '1.3.6.1.4.1.232.14.2.4.1.1.2', + cpqIdeAtaDiskModel => '1.3.6.1.4.1.232.14.2.4.1.1.3', + cpqIdeAtaDiskStatus => '1.3.6.1.4.1.232.14.2.4.1.1.6', + cpqIdeAtaDiskCondition => '1.3.6.1.4.1.232.14.2.4.1.1.7', + cpqIdeAtaDiskCapacity => '1.3.6.1.4.1.232.14.2.4.1.1.8', + cpqIdeAtaDiskLogicalDriveMember => '1.3.6.1.4.1.232.14.2.4.1.1.13', + cpqIdeAtaDiskIsSpare => '1.3.6.1.4.1.232.14.2.4.1.1.14', + cpqIdeAtaDiskStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "smartError", + 4 => "failed", + }, + cpqIdeAtaDiskConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + }; + # INDEX { cpqIdeAtaDiskControllerIndex, cpqIdeAtaDiskIndex } + foreach ($self->get_entries($oids, 'cpqIdeAtaDiskEntry')) { + push(@{$self->{physical_drives}}, + HP::Proliant::Component::DiskSubsystem::Ide::PhysicalDrive->new(%{$_})); + } + +} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Ide.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,252 @@ +package HP::Proliant::Component::DiskSubsystem::Ide; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + controllers => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + condition => undef, + blacklisted => 0, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Ide::SNMP'; + } else { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Ide::CLI'; + } + $self->init(); + $self->assemble(); + return $self; +} + +sub check { + my $self = shift; + foreach (@{$self->{controllers}}) { + $_->check(); + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{controllers}}) { + $_->dump(); + } +} + +package HP::Proliant::Component::DiskSubsystem::Ide::Controller; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqIdeControllerIndex => $params{cpqIdeControllerIndex}, + cpqIdeControllerOverallCondition => $params{cpqIdeControllerOverallCondition}, + cpqIdeControllerModel => $params{cpqIdeControllerModel}, + cpqIdeControllerSlot => $params{cpqIdeControllerSlot}, # -1 ist sysboard? + blacklisted => 0, + }; + $self->{name} = $params{name} || $self->{cpqIdeControllerIndex}; + $self->{controllerindex} = $self->{cpqIdeControllerIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + if ($self->{cpqIdeControllerOverallCondition} eq 'other') { + if (scalar(@{$self->{physical_drives}})) { + $self->add_message(CRITICAL, + sprintf 'ide controller %s in slot %s needs attention', + $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); + $self->add_info(sprintf 'ide controller %s in slot %s needs attention', + $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); + } else { + $self->add_info(sprintf 'ide controller %s in slot %s is ok and unused', + $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); + $self->{blacklisted} = 1; + } + } elsif ($self->{cpqIdeControllerOverallCondition} ne 'ok') { + $self->add_message(CRITICAL, + sprintf 'ide controller %s in slot %s needs attention', + $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); + $self->add_info(sprintf 'ide controller %s in slot %s needs attention', + $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); + } else { + $self->add_info(sprintf 'ide controller %s in slot %s is ok', + $self->{cpqIdeControllerIndex}, $self->{cpqIdeControllerSlot}); + } + foreach (@{$self->{logical_drives}}) { + $_->check(); + } + foreach (@{$self->{physical_drives}}) { + $_->check(); + } + foreach (@{$self->{spare_drives}}) { + $_->check(); + } +} + +sub dump { + my $self = shift; + printf "[IDE_CONTROLLER_%s]\n", $self->{name}; + foreach (qw(cpqIdeControllerIndex cpqIdeControllerSlot + cpqIdeControllerModel cpqIdeControllerOverallCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; + foreach (@{$self->{logical_drives}}) { + $_->dump(); + } + foreach (@{$self->{physical_drives}}) { + $_->dump(); + } + foreach (@{$self->{spare_drives}}) { + $_->dump(); + } +} + + +package HP::Proliant::Component::DiskSubsystem::Ide::LogicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqIdeLogicalDriveControllerIndex => $params{cpqIdeLogicalDriveControllerIndex}, + cpqIdeLogicalDriveIndex => $params{cpqIdeLogicalDriveIndex}, + cpqIdeLogicalDriveRaidLevel => $params{cpqIdeLogicalDriveRaidLevel}, + cpqIdeLogicalDriveCapacity => $params{cpqIdeLogicalDriveCapacity}, + cpqIdeLogicalDriveStatus => $params{cpqIdeLogicalDriveStatus}, + cpqIdeLogicalDriveCondition => $params{cpqIdeLogicalDriveCondition}, + cpqIdeLogicalDriveDiskIds => $params{cpqIdeLogicalDriveDiskIds}, + cpqIdeLogicalDriveSpareIds => $params{cpqIdeLogicalDriveSpareIds}, + cpqIdeLogicalDriveRebuildingDisk => $params{cpqIdeLogicalDriveRebuildingDisk}, + blacklisted => 0, + }; + bless $self, $class; + $self->{name} = $params{name} || + $self->{cpqIdeLogicalDriveControllerIndex}.':'. + $self->{cpqIdeLogicalDriveIndex}; + $self->{controllerindex} = $self->{cpqIdeLogicalDriveControllerIndex}; + return $self; +} + +sub check { + my $self = shift; + if ($self->{cpqIdeLogicalDriveCondition} ne "ok") { + if ($self->{cpqIdeLogicalDriveStatus} =~ + /rebuild/) { + $self->add_message(WARNING, + sprintf "logical drive %s is %s", + $self->{name}, $self->{cpqIdeLogicalDriveStatus}); + } else { + $self->add_message(CRITICAL, + sprintf "logical drive %s is %s", + $self->{name}, $self->{cpqIdeLogicalDriveStatus}); + } + } + $self->add_info( + sprintf "logical drive %s is %s", $self->{name}, + $self->{cpqIdeLogicalDriveStatus}); +} + +sub dump { + my $self = shift; + printf "[LOGICAL_DRIVE]\n"; + foreach (qw(cpqIdeLogicalDriveControllerIndex cpqIdeLogicalDriveIndex + cpqIdeLogicalDriveRaidLevel cpqIdeLogicalDriveCapacity + cpqIdeLogicalDriveDiskIds cpqIdeLogicalDriveSpareIds + cpqIdeLogicalDriveRebuildingDisk cpqIdeLogicalDriveStatus + cpqIdeLogicalDriveCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Ide::PhysicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqIdeAtaDiskControllerIndex => $params{cpqIdeAtaDiskControllerIndex}, + cpqIdeAtaDiskIndex => $params{cpqIdeAtaDiskIndex}, + cpqIdeAtaDiskModel => $params{cpqIdeAtaDiskModel}, + cpqIdeAtaDiskStatus => $params{cpqIdeAtaDiskStatus}, + cpqIdeAtaDiskCondition => $params{cpqIdeAtaDiskCondition}, + cpqIdeAtaDiskCapacity => $params{cpqIdeAtaDiskCapacity}, + cpqIdeAtaDiskLogicalDriveMember => $params{cpqIdeAtaDiskLogicalDriveMember}, + cpqIdeAtaDiskIsSpare => $params{cpqIdeAtaDiskIsSpare}, + blacklisted => 0, + }; + $self->{name} = $params{name} || + $self->{cpqIdeAtaDiskControllerIndex}.':'. + $self->{cpqIdeAtaDiskIndex}; ####vorerst + $self->{controllerindex} = $self->{cpqIdeAtaDiskControllerIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + if ($self->{cpqIdeAtaDiskCondition} ne 'ok') { + $self->add_message(CRITICAL, + sprintf "physical drive %s is %s", + $self->{name}, $self->{cpqIdeAtaDiskCondition}); + } + $self->add_info( + sprintf "physical drive %s is %s", + $self->{name}, $self->{cpqIdeAtaDiskCondition}); +} + +sub dump { + my $self = shift; + printf "[PHYSICAL_DRIVE]\n"; + foreach (qw(cpqIdeAtaDiskControllerIndex cpqIdeAtaDiskIndex + cpqIdeAtaDiskModel cpqIdeAtaDiskCapacity cpqIdeAtaDiskLogicalDriveMember + cpqIdeAtaDiskStatus cpqIdeAtaDiskCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Ide::SpareDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Ide); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub dump { + my $self = shift; + printf "[SPARE_DRIVE]\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,26 @@ +package HP::Proliant::Component::DiskSubsystem::Sas::CLI; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,125 @@ +package HP::Proliant::Component::DiskSubsystem::Sas::SNMP; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + + # CPQSCSI-MIB + my $oids = { + cpqSasHbaEntry => "1.3.6.1.4.1.232.5.5.1.1.1", + cpqSasHbaIndex => "1.3.6.1.4.1.232.5.5.1.1.1.1", + cpqSasHbaLocation => "1.3.6.1.4.1.232.5.5.1.1.1.2", + cpqSasHbaSlot => "1.3.6.1.4.1.232.5.5.1.1.1.6", + cpqSasHbaStatus => "1.3.6.1.4.1.232.5.5.1.1.1.4", + cpqSasHbaStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "failed", + }, + cpqSasHbaCondition => "1.3.6.1.4.1.232.5.5.1.1.1.5", + cpqSasHbaConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + }; + + # INDEX { cpqSasHbaIndex } + foreach ($self->get_entries($oids, 'cpqSasHbaEntry')) { + push(@{$self->{controllers}}, + HP::Proliant::Component::DiskSubsystem::Sas::Controller->new(%{$_})); + } + + $oids = { + cpqSasLogDrvEntry => "1.3.6.1.4.1.232.5.5.3.1.1", + cpqSasLogDrvHbaIndex => "1.3.6.1.4.1.232.5.5.3.1.1.1", + cpqSasLogDrvIndex => "1.3.6.1.4.1.232.5.5.3.1.1.2", + cpqSasLogDrvStatus => "1.3.6.1.4.1.232.5.5.3.1.1.4", + cpqSasLogDrvCondition => "1.3.6.1.4.1.232.5.5.3.1.1.5", + cpqSasLogDrvRebuildingPercent => "1.3.6.1.4.1.232.5.5.3.1.1.12", + cpqSasLogDrvRaidLevel => "1.3.6.1.4.1.232.5.5.3.1.1.3", + cpqSasLogDrvRaidLevelValue => { + 1 => "other", + 2 => "raid0", + 3 => "raid1", + 4 => "raid0plus1", + 5 => "raid5", + 6 => "raid15", + 7 => "volume", + }, + cpqSasLogDrvConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqSasLogDrvStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "rebuilding", + 5 => "failed", + 6 => "offline", + } + }; + # INDEX { cpqSasLogDrvCntlrIndex, cpqSasLogDrvIndex } + foreach ($self->get_entries($oids, 'cpqSasLogDrvEntry')) { + push(@{$self->{logical_drives}}, + HP::Proliant::Component::DiskSubsystem::Sas::LogicalDrive->new(%{$_})); + } + + $oids = { + cpqSasPhyDrvEntry => "1.3.6.1.4.1.232.5.5.2.1.1", + cpqSasPhyDrvHbaIndex => "1.3.6.1.4.1.232.5.5.2.1.1.1", + cpqSasPhyDrvIndex => "1.3.6.1.4.1.232.5.5.2.1.1.2", + cpqSasPhyDrvLocationString => "1.3.6.1.4.1.232.5.5.2.1.1.3", + cpqSasPhyDrvStatus => "1.3.6.1.4.1.232.5.5.2.1.1.5", + cpqSasPhyDrvSize => "1.3.6.1.4.1.232.5.5.2.1.1.8", + cpqSasPhyDrvCondition => "1.3.6.1.4.1.232.5.5.2.1.1.6", + cpqSasPhyDrvConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqSasPhyDrvStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "predictiveFailure", + 4 => "offline", + 5 => "failed", + 6 => "missingWasOk", + 7 => "missingWasPredictiveFailure", + 8 => "missingWasOffline", + 9 => "missingWasFailed", + }, + }; + + # INDEX { cpqPhyLogDrvCntlrIndex, cpqSasPhyDrvIndex } + foreach ($self->get_entries($oids, 'cpqSasPhyDrvEntry')) { + push(@{$self->{physical_drives}}, + HP::Proliant::Component::DiskSubsystem::Sas::PhysicalDrive->new(%{$_})); + } + +} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Sas.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,250 @@ +package HP::Proliant::Component::DiskSubsystem::Sas; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + controllers => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + condition => undef, + blacklisted => 0, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Sas::SNMP'; + } else { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Sas::CLI'; + } + $self->init(); + $self->assemble(); + return $self; +} + +sub check { + my $self = shift; + foreach (@{$self->{controllers}}) { + $_->check(); + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{controllers}}) { + $_->dump(); + } +} + +package HP::Proliant::Component::DiskSubsystem::Sas::Controller; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqSasHbaIndex => $params{cpqSasHbaIndex}, + cpqSasHbaLocation => $params{cpqSasHbaLocation}, + cpqSasHbaSlot => $params{cpqSasHbaSlot}, + cpqSasHbaStatus => $params{cpqSasHbaStatus}, + cpqSasHbaCondition => $params{cpqSasHbaCondition}, + blacklisted => 0, + }; + $self->{name} = $params{name} || $self->{cpqSasHbaSlot}; + $self->{controllerindex} = $self->{cpqSasHbaIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('saco', $self->{cpqSasHbaSlot}); + if ($self->{cpqSasHbaCondition} eq 'other') { + if (scalar(@{$self->{physical_drives}})) { + $self->add_message(CRITICAL, + sprintf 'sas controller in slot %s needs attention', + $self->{cpqSasHbaSlot}); + $self->add_info(sprintf 'sas controller in slot %s needs attention', + $self->{cpqSasHbaSlot}); + } else { + $self->add_info(sprintf 'sas controller in slot %s is ok and unused', + $self->{cpqSasHbaSlot}); + $self->{blacklisted} = 1; + } + } elsif ($self->{cpqSasHbaCondition} ne 'ok') { + $self->add_message(CRITICAL, + sprintf 'sas controller in slot %s needs attention', + $self->{cpqSasHbaSlot}); + $self->add_info(sprintf 'sas controller in slot %s needs attention', + $self->{cpqSasHbaSlot}); + } else { + $self->add_info(sprintf 'sas controller in slot %s is ok', + $self->{cpqSasHbaSlot}); + } + foreach (@{$self->{logical_drives}}) { + $_->check(); + } + foreach (@{$self->{physical_drives}}) { + $_->check(); + } + foreach (@{$self->{spare_drives}}) { + $_->check(); + } +} + +sub dump { + my $self = shift; + printf "[SAS_HBA%s]\n", $self->{name}; + foreach (qw(cpqSasHbaSlot cpqSasHbaIndex cpqSasHbaCondition + cpqSasHbaStatus cpqSasHbaLocation)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; + foreach (@{$self->{logical_drives}}) { + $_->dump(); + } + foreach (@{$self->{physical_drives}}) { + $_->dump(); + } + foreach (@{$self->{spare_drives}}) { + $_->dump(); + } +} + + +package HP::Proliant::Component::DiskSubsystem::Sas::LogicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqSasLogDrvHbaIndex => $params{cpqSasLogDrvHbaIndex}, + cpqSasLogDrvIndex => $params{cpqSasLogDrvIndex}, + cpqSasLogDrvStatus => $params{cpqSasLogDrvStatus}, + cpqSasLogDrvCondition => $params{cpqSasLogDrvCondition}, + cpqSasLogDrvRebuildingPercent => $params{cpqSasLogDrvRebuildingPercent}, + cpqSasLogDrvRaidLevel => $params{cpqSasLogDrvRaidLevel}, + blacklisted => 0, + }; + bless $self, $class; + $self->{name} = $params{name} || + $self->{cpqSasLogDrvHbaIndex}.':'.$self->{cpqSasLogDrvIndex}; ####vorerst + $self->{controllerindex} = $self->{cpqSasLogDrvHbaIndex}; + if (! $self->{cpqSasLogDrvRebuildingPercent} || + $self->{cpqSasLogDrvRebuildingPercent} == 4294967295) { + $self->{cpqSasLogDrvRebuildingPercent} = 100; + } + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('sald', $self->{name}); + if ($self->{cpqSasLogDrvCondition} ne "ok") { + if ($self->{cpqSasLogDrvStatus} =~ + /rebuild|recovering|expanding|queued/) { + $self->add_message(WARNING, + sprintf "logical drive %s is %s", + $self->{name}, $self->{cpqSasLogDrvStatus}); + } else { + $self->add_message(CRITICAL, + sprintf "logical drive %s is %s", + $self->{name}, $self->{cpqSasLogDrvStatus}); + } + } + $self->add_info( + sprintf "logical drive %s is %s (%s)", $self->{name}, + $self->{cpqSasLogDrvStatus}, $self->{cpqSasLogDrvRaidLevel}); +} + +sub dump { + my $self = shift; + printf "[LOGICAL_DRIVE]\n"; + foreach (qw(cpqSasLogDrvHbaIndex cpqSasLogDrvIndex cpqSasLogDrvRaidLevel + cpqSasLogDrvStatus cpqSasLogDrvCondition + cpqSasLogDrvRebuildingPercent)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Sas::PhysicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqSasPhyDrvHbaIndex => $params{cpqSasPhyDrvHbaIndex}, + cpqSasPhyDrvIndex => $params{cpqSasPhyDrvIndex}, + cpqSasPhyDrvLocationString => $params{cpqSasPhyDrvLocationString}, + cpqSasPhyDrvStatus => $params{cpqSasPhyDrvStatus}, + cpqSasPhyDrvSize => $params{cpqSasPhyDrvSize}, + cpqSasPhyDrvCondition => $params{cpqSasPhyDrvCondition}, + blacklisted => 0, + }; + $self->{name} = $params{name} || + $self->{cpqSasPhyDrvHbaIndex}.':'.$self->{cpqSasPhyDrvIndex}; ####vorerst + $self->{controllerindex} = $self->{cpqSasPhyDrvHbaIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('sapd', $self->{name}); + if ($self->{cpqSasPhyDrvCondition} ne 'ok') { + $self->add_message(CRITICAL, + sprintf "physical drive %s is %s", + $self->{name}, $self->{cpqSasPhyDrvCondition}); + } + $self->add_info( + sprintf "physical drive %s is %s", + $self->{name}, $self->{cpqSasPhyDrvCondition}); +} + +sub dump { + my $self = shift; + printf "[PHYSICAL_DRIVE]\n"; + foreach (qw(cpqSasPhyDrvHbaIndex cpqSasPhyDrvIndex cpqSasPhyDrvLocationString + cpqSasPhyDrvSize cpqSasPhyDrvStatus cpqSasPhyDrvCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Sas::SpareDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Sas); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub dump { + my $self = shift; + printf "[SPARE_DRIVE]\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,26 @@ +package HP::Proliant::Component::DiskSubsystem::Scsi::CLI; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,133 @@ +package HP::Proliant::Component::DiskSubsystem::Scsi::SNMP; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + controllers => [], + accelerators => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + blacklisted => 0, + }; + bless $self, $class; + return $self; +} + +sub init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + + # CPQSCSI-MIB + my $oids = { + cpqScsiCntlrEntry => '1.3.6.1.4.1.232.5.2.2.1.1', + cpqScsiCntlrIndex => '1.3.6.1.4.1.232.5.2.2.1.1.1', + cpqScsiCntlrBusIndex => '1.3.6.1.4.1.232.5.2.2.1.1.2', + cpqScsiCntlrSlot => '1.3.6.1.4.1.232.5.2.2.1.1.6', + cpqScsiCntlrStatus => '1.3.6.1.4.1.232.5.2.2.1.1.7', + cpqScsiCntlrCondition => '1.3.6.1.4.1.232.5.2.2.1.1.12', + cpqScsiCntlrHwLocation => '1.3.6.1.4.1.232.5.2.2.1.1.16', + cpqScsiCntlrStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "failed", + }, + cpqScsiCntlrConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + } + }; + + # INDEX { cpqScsiCntlrIndex, cpqScsiCntlrBusIndex } + foreach ($self->get_entries($oids, 'cpqScsiCntlrEntry')) { + push(@{$self->{controllers}}, + HP::Proliant::Component::DiskSubsystem::Scsi::Controller->new(%{$_})); + } + + $oids = { + cpqScsiLogDrvEntry => '1.3.6.1.4.1.232.5.2.3.1.1', + cpqScsiLogDrvCntlrIndex => '1.3.6.1.4.1.232.5.2.3.1.1.1', + cpqScsiLogDrvBusIndex => '1.3.6.1.4.1.232.5.2.3.1.1.2', + cpqScsiLogDrvIndex => '1.3.6.1.4.1.232.5.2.3.1.1.3', + cpqScsiLogDrvFaultTol => '1.3.6.1.4.1.232.5.2.3.1.1.4', + cpqScsiLogDrvStatus => '1.3.6.1.4.1.232.5.2.3.1.1.5', + cpqScsiLogDrvSize => '1.3.6.1.4.1.232.5.2.3.1.1.6', + cpqScsiLogDrvPhyDrvIDs => '1.3.6.1.4.1.232.5.2.3.1.1.7', + cpqScsiLogDrvCondition => '1.3.6.1.4.1.232.5.2.3.1.1.8', + cpqScsiLogDrvStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "failed", + 4 => "unconfigured", + 5 => "recovering", + 6 => "readyForRebuild", + 7 => "rebuilding", + 8 => "wrongDrive", + 9 => "badConnect", + }, + cpqScsiLogDrvConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqScsiLogDrvFaultTolValue => { + 1 => "other", + 2 => "none", + 3 => "mirroring", + 4 => "dataGuard", + 5 => "distribDataGuard", + }, + + }; + # INDEX { cpqScsiLogDrvCntlrIndex, cpqScsiLogDrvBusIndex, cpqScsiLogDrvIndex } + foreach ($self->get_entries($oids, 'cpqScsiLogDrvEntry')) { + push(@{$self->{logical_drives}}, + HP::Proliant::Component::DiskSubsystem::Scsi::LogicalDrive->new(%{$_})); + } + + $oids = { + cpqScsiPhyDrvEntry => '1.3.6.1.4.1.232.5.2.4.1.1', + cpqScsiPhyDrvCntlrIndex => '1.3.6.1.4.1.232.5.2.4.1.1.1', + cpqScsiPhyDrvBusIndex => '1.3.6.1.4.1.232.5.2.4.1.1.2', + cpqScsiPhyDrvIndex => '1.3.6.1.4.1.232.5.2.4.1.1.3', + cpqScsiPhyDrvStatus => '1.3.6.1.4.1.232.5.2.4.1.1.9', + cpqScsiPhyDrvSize => '1.3.6.1.4.1.232.5.2.4.1.1.7', + cpqScsiPhyDrvCondition => '1.3.6.1.4.1.232.5.2.4.1.1.26', + cpqScsiPhyDrvConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqScsiPhyDrvStatusValue => { + 1 => "other", + 2 => "ok", + 3 => "failed", + 4 => "notConfigured", + 5 => "badCable", + 6 => "missingWasOk", + 7 => "missingWasFailed", + 8 => "predictiveFailure", + 9 => "missingWasPredictiveFailure", + 10 => "offline", + 11 => "missingWasOffline", + 12 => "hardError", + }, + }; + + # INDEX { cpqScsiPhyDrvCntlrIndex, cpqScsiPhyDrvBusIndex, cpqScsiPhyDrvIndex } + foreach ($self->get_entries($oids, 'cpqScsiPhyDrvEntry')) { + push(@{$self->{physical_drives}}, + HP::Proliant::Component::DiskSubsystem::Scsi::PhysicalDrive->new(%{$_})); + } + +} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Scsi.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,226 @@ +package HP::Proliant::Component::DiskSubsystem::Scsi; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + controllers => [], + physical_drives => [], + logical_drives => [], + spare_drives => [], + condition => undef, + blacklisted => 0, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Scsi::SNMP'; + } else { + bless $self, 'HP::Proliant::Component::DiskSubsystem::Scsi::CLI'; + } + $self->init(); + $self->assemble(); + return $self; +} + +sub check { + my $self = shift; + foreach (@{$self->{controllers}}) { + $_->check(); + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{controllers}}) { + $_->dump(); + } +} + +package HP::Proliant::Component::DiskSubsystem::Scsi::Controller; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqScsiCntlr/, keys %params; + $self->{name} = $params{name} || $params{cpqScsiCntlrIndex}.':'.$params{cpqScsiCntlrBusIndex}; + $self->{controllerindex} = $self->{cpqScsiCntlrIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('scco', $self->{name}); + my $info = sprintf 'scsi controller %s in slot %s is %s', + $self->{name}, $self->{cpqScsiCntlrSlot}, $self->{cpqScsiCntlrCondition}; + if ($self->{cpqScsiCntlrCondition} eq 'other') { + if (scalar(@{$self->{physical_drives}})) { + $info .= ' and needs attention'; + $self->add_message(CRITICAL, $info); + $self->add_info($info); + } else { + $info .= ' and unused'; + $self->add_info($info); + $self->{blacklisted} = 1; + } + } elsif ($self->{cpqScsiCntlrCondition} ne 'ok') { + $info .= ' and needs attention'; + $self->add_message(CRITICAL, $info); + $self->add_info($info); + } else { + $self->add_info($info); + } + foreach (@{$self->{logical_drives}}) { + $_->check(); + } + foreach (@{$self->{physical_drives}}) { + $_->check(); + } + foreach (@{$self->{spare_drives}}) { + $_->check(); + } +} + +sub dump { + my $self = shift; + printf "[SCSI_CONTROLLER_%s]\n", $self->{name}; + foreach (qw(cpqScsiCntlrIndex cpqScsiCntlrBusIndex cpqScsiCntlrSlot + cpqScsiCntlrStatus cpqScsiCntlrCondition cpqScsiCntlrHwLocation)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; + foreach (@{$self->{logical_drives}}) { + $_->dump(); + } + foreach (@{$self->{physical_drives}}) { + $_->dump(); + } + foreach (@{$self->{spare_drives}}) { + $_->dump(); + } +} + + +package HP::Proliant::Component::DiskSubsystem::Scsi::LogicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqScsiLogDrv/, keys %params; + $self->{name} = $params{name} || $params{cpqScsiLogDrvCntlrIndex}.':'.$params{cpqScsiLogDrvBusIndex}.':'.$params{cpqScsiLogDrvIndex}; + bless $self, $class; + $self->{controllerindex} = $self->{cpqScsiLogDrvCntlrIndex}; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('scld', $self->{name}); + my $info = sprintf 'logical drive %s is %s', $self->{name}, $self->{cpqScsiLogDrvStatus}; + if ($self->{cpqScsiLogDrvCondition} ne "ok") { + if ($self->{cpqScsiLogDrvStatus} =~ + /rebuild|recovering/) { + $self->add_message(WARNING, $info); + } else { + $self->add_message(CRITICAL, $info); + } + } + $self->add_info($info); +} + +sub dump { + my $self = shift; + printf "[LOGICAL_DRIVE_%s]\n", $self->{name}; + foreach (qw(cpqScsiLogDrvCntlrIndex cpqScsiLogDrvBusIndex cpqScsiLogDrvIndex + cpqScsiLogDrvFaultTol cpqScsiLogDrvStatus cpqScsiLogDrvSize + cpqScsiLogDrvPhyDrvIDs cpqScsiLogDrvCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Scsi::PhysicalDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + map { $self->{$_} = $params{$_} } grep /cpqScsiPhyDrv/, keys %params; + $self->{name} = $params{name} || + $self->{cpqScsiPhyDrvCntlrIndex}.':'.$self->{cpqScsiPhyDrvBusIndex}.':'.$self->{cpqScsiPhyDrvIndex}; + $self->{controllerindex} = $self->{cpqScsiPhyDrvCntlrIndex}; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('scpd', $self->{name}); + my $info = sprintf 'physical drive %s is %s', $self->{name}, $self->{cpqScsiPhyDrvCondition}; + if ($self->{cpqScsiPhyDrvCondition} ne 'ok') { + $self->add_message(CRITICAL, $info); + } + $self->add_info($info); +} + +sub dump { + my $self = shift; + printf "[PHYSICAL_DRIVE_%s]\n", $self->{name}; + foreach (qw(cpqScsiPhyDrvCntlrIndex cpqScsiPhyDrvBusIndex cpqScsiPhyDrvIndex + cpqScsiPhyDrvStatus cpqScsiPhyDrvSize cpqScsiPhyDrvCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "\n"; +} + + +package HP::Proliant::Component::DiskSubsystem::Scsi::SpareDrive; +our @ISA = qw(HP::Proliant::Component::DiskSubsystem::Scsi); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub dump { + my $self = shift; + printf "[SPARE_DRIVE]\n"; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/DiskSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,150 @@ +package HP::Proliant::Component::DiskSubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + da_subsystem => undef, + sas_da_subsystem => undef, + ide_da_subsystem => undef, + fca_da_subsystem => undef, + scsi_da_subsystem => undef, + condition => $params{condition}, + blacklisted => 0, + }; + bless $self, $class; + $self->init(); + return $self; +} + +sub init { + my $self = shift; + $self->{da_subsystem} = HP::Proliant::Component::DiskSubsystem::Da->new( + runtime => $self->{runtime}, + rawdata => $self->{rawdata}, + method => $self->{method}, + ); + $self->{sas_subsystem} = HP::Proliant::Component::DiskSubsystem::Sas->new( + runtime => $self->{runtime}, + rawdata => $self->{rawdata}, + method => $self->{method}, + ); + $self->{scsi_subsystem} = HP::Proliant::Component::DiskSubsystem::Scsi->new( + runtime => $self->{runtime}, + rawdata => $self->{rawdata}, + method => $self->{method}, + ); + $self->{ide_subsystem} = HP::Proliant::Component::DiskSubsystem::Ide->new( + runtime => $self->{runtime}, + rawdata => $self->{rawdata}, + method => $self->{method}, + ); + $self->{fca_subsystem} = HP::Proliant::Component::DiskSubsystem::Fca->new( + runtime => $self->{runtime}, + rawdata => $self->{rawdata}, + method => $self->{method}, + ); +} + +sub check { + my $self = shift; + $self->add_info('checking disk subsystem'); + $self->{da_subsystem}->check(); + $self->{sas_subsystem}->check(); + $self->{scsi_subsystem}->check(); + $self->{ide_subsystem}->check(); + $self->{fca_subsystem}->check(); + $self->disk_summary(); +} + +sub dump { + my $self = shift; + $self->{da_subsystem}->dump(); + $self->{sas_subsystem}->dump(); + $self->{scsi_subsystem}->dump(); + $self->{ide_subsystem}->dump(); + $self->{fca_subsystem}->dump(); +} + +sub disk_summary { + my $self = shift; + foreach my $subsys (qw(da sas scsi ide fca)) { + if (my $pd = $self->{$subsys.'_subsystem'}->has_physical_drives()) { + my $ld = $self->{$subsys.'_subsystem'}->has_logical_drives(); + $self->add_summary(sprintf '%s: %d logical drives, %d physical drives', + $subsys, $ld, $pd); + } + } +} + +sub assemble { + my $self = shift; + $self->trace(3, sprintf "%s controllers und platten zusammenfuehren", + ref($self)); + $self->trace(3, sprintf "has %d controllers", + scalar(@{$self->{controllers}})); + $self->trace(3, sprintf "has %d accelerators", + scalar(@{$self->{accelerators}})) if exists $self->{accelerators}; + $self->trace(3, sprintf "has %d physical_drives", + scalar(@{$self->{physical_drives}})); + $self->trace(3, sprintf "has %d logical_drives", + scalar(@{$self->{logical_drives}})); + $self->trace(3, sprintf "has %d spare_drives", + scalar(@{$self->{spare_drives}})); + my $found = { + accelerators => {}, + logical_drives => {}, + physical_drives => {}, + spare_drives => {}, + }; + # found->{komponente}->{controllerindex} ist ein array + # von teilen, die zu einem controller gehoeren + foreach my $item (qw(accelerators logical_drives physical_drives spare_drives)) { + foreach (@{$self->{$item}}) { + $found->{item}->{$_->{controllerindex}} = [] + unless exists $found->{$item}->{$_->{controllerindex}}; + push(@{$found->{$item}->{$_->{controllerindex}}}, $_); + } + } + foreach my $item (qw(accelerators logical_drives physical_drives spare_drives)) { + foreach (@{$self->{controllers}}) { + if (exists $found->{$item}->{$_->{controllerindex}}) { + $_->{$item} = $found->{$item}->{$_->{controllerindex}}; + delete $found->{$item}->{$_->{controllerindex}}; + } else { + $_->{$item} = []; # z.b. ein leerer controller: physical_drives = [] + } + } + } + # was jetzt noch in $found uebrig ist, gehoert zu keinem controller + # d.h. komponenten mit ungueltigen cnrtlindex wurden gefunden +} + +sub has_controllers { + my $self = shift; + return scalar(@{$self->{controllers}}); +} + +sub has_accelerators { + my $self = shift; + return exists $self->{accelerators} ? scalar(@{$self->{accelerators}}) : 0; +} + +sub has_physical_drives { + my $self = shift; + return scalar(@{$self->{physical_drives}}); +} + +sub has_logical_drives { + my $self = shift; + return scalar(@{$self->{logical_drives}}); +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,78 @@ +package HP::Proliant::Component::EventSubsystem::CLI; +our @ISA = qw(HP::Proliant::Component::EventSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; +use Time::Local; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + events => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + + +sub init { + my $self = shift; + my %params = @_; + my %tmpevent = ( + runtime => $params{runtime}, + ); + my $inblock = 0; + foreach (grep(/^iml/, split(/\n/, $self->{rawdata}))) { + s/^iml\s*//g; + if (/^Event:\s+(\d+)\s+[\w]+:\s+(\d+)\/(\d+)\/(\d+)\s+(\d+):(\d+)/) { + # Event: 31 Added: 09/22/2011 05:11 + # 1 2 3 4 5 6 + $tmpevent{cpqHeEventLogEntryNumber} = $1; + if ($4 == 0) { + # Event: 29 Added: 00/00/0000 00:00 + $tmpevent{cpqHeEventLogUpdateTime} = 0; + } else { + eval { + $tmpevent{cpqHeEventLogUpdateTime} = timelocal(0, $6, $5, $3, $2 - 1, $4); + }; + if ($@) { + # Event: 10 Added: 27/27/2027 27:27 + $tmpevent{cpqHeEventLogUpdateTime} = 0; + } + } + $inblock = 1; + } elsif (/^(\w+):\s+(.*?)\s+\-\s+(.*)/) { + $tmpevent{cpqHeEventLogEntrySeverity} = $1; + $tmpevent{cpqHeEventLogEntryClass} = $2; + $tmpevent{cpqHeEventLogErrorDesc} = $3; + if ($tmpevent{cpqHeEventLogErrorDesc} =~ /.*?:\s+(\d+)/) { + $tmpevent{cpqHeEventLogEntryCode} = $1; + } else { + $tmpevent{cpqHeEventLogEntryCode} = 0; + } + } elsif (/^\s*$/) { + if ($inblock) { + $inblock = 0; + push(@{$self->{events}}, + HP::Proliant::Component::EventSubsystem::Event->new(%tmpevent)); + %tmpevent = ( + runtime => $params{runtime}, + ); + } + } + } + if ($inblock) { + push(@{$self->{events}}, + HP::Proliant::Component::EventSubsystem::Event->new(%tmpevent)); + } +} + +1; + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,221 @@ +package HP::Proliant::Component::EventSubsystem::SNMP; +our @ISA = qw(HP::Proliant::Component::EventSubsystem + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; +use Time::Local; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + events => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->overall_init(%params); + $self->init(%params); + return $self; +} + +sub overall_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $params{rawdata}; + # overall + my $cpqHeEventLogSupported = '1.3.6.1.4.1.232.6.2.11.1.0'; + my $cpqHeEventLogSupportedValue = { + 1 => 'other', + 2 => 'notSupported', + 3 => 'supported', + 4 => 'clear', + }; + my $cpqHeEventLogCondition = '1.3.6.1.4.1.232.6.2.11.2.0'; + my $cpqHeEventLogConditionValue = { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }; + $self->{eventsupp} = SNMP::Utils::get_object_value( + $snmpwalk, $cpqHeEventLogSupported, + $cpqHeEventLogSupportedValue); + $self->{eventstatus} = SNMP::Utils::get_object_value( + $snmpwalk, $cpqHeEventLogCondition, + $cpqHeEventLogConditionValue); + $self->{eventsupp} |= lc $self->{eventsupp}; + $self->{eventstatus} |= lc $self->{eventstatus}; +} + +sub init { + my $self = shift; + my %params = @_; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqHeEventLogEntry => "1.3.6.1.4.1.232.6.2.11.3.1", + cpqHeEventLogEntryNumber => "1.3.6.1.4.1.232.6.2.11.3.1.1", + cpqHeEventLogEntrySeverity => "1.3.6.1.4.1.232.6.2.11.3.1.2", + cpqHeEventLogEntryClass => "1.3.6.1.4.1.232.6.2.11.3.1.3", + cpqHeEventLogEntryCode => "1.3.6.1.4.1.232.6.2.11.3.1.4", + cpqHeEventLogEntryCount => "1.3.6.1.4.1.232.6.2.11.3.1.5", + cpqHeEventLogInitialTime => "1.3.6.1.4.1.232.6.2.11.3.1.6", + cpqHeEventLogUpdateTime => "1.3.6.1.4.1.232.6.2.11.3.1.7", + cpqHeEventLogErrorDesc => "1.3.6.1.4.1.232.6.2.11.3.1.8", + + cpqHeEventLogEntryClassValue => { + # 2 Fan Failure (Fan 1, Location I/O Board) + # Internal Storage System Overheating (Slot 0, Zone 1, Location Storage, Temperature Unknown) + # System Fans Not Redundant (Location I/O Board) + # MY MUSTARD: only critical events should lead to an alert, if at all. The caution events mean "loss of redundancy". + # We monitor temperatures and fan status anyway. + #2 => "", + # 3 Corrected Memory Error threshold exceeded (System Memory, Memory Module 1) + # Uncorrectable Memory Error detected by ROM-based memory validation (Board 1, Memory Module 4) + # MY MUSTARD: threshold exceeded is caution. Uncorrectable errors are critical. Both should be detected anyway. + 3 => "Main Memory", + # 4 Accelerator Cache Memory Parity Error (Socket 1) + #4 => "", + # 5 Processor Correctable error threshold exceeded (Board 0, Processor 2) + #5 => "", + # 6 Unrecoverable Intermodule Bus error (Error code 0x00000000) + #6 => "", + # 8 PCI Bus Error (Slot 0, Bus 0, Device 0, Function 0) + 8 => "PCI Bus", + # 10 1720-S.M.A.R.T. Hard Drive Detects Imminent Failure + # POST Error: 201-Memory Error Multi-bit error occurred during memory initialization, Board 1, Bank B. Bank containing DIMM(s) has been disabled.. + # POST Error: 201-Memory Error Single-bit error occured during memory initialization, Board 1, DIMM 1. Bank containing DIMM(s) has been disabled.. + # POST Error: 207-Memory Configuration Warning - memory boards should be installed sequentially. + # POST Error: 210-Memory Board Failure on board 4. + # POST Error: 210-Memory Board Power Fault on board 3. + # POST Error: 207-Memory initialization error on Memory Board 5 DIMM 7. The operating system may not have access to all of the memory installed in the system.. + # POST Error: 207-Invalid Memory Configuration-Mismatched DIMMs within DIMM Bank Memory in Bank A Not Utilized.. + 10 => "POST Messages", + 11 => "Power Subsystem", + 13 => "ASR", + # 14 Automatic Operating System Shutdown Initiated Due to Overheat Condition + # Automatic Operating System Shutdown Initiated Due to Fan Failure + # Blue Screen Trap (BugCheck, STOP: 0x00000050 (0x9CB2C5B4, 0x00000001, 0x00000004, 0x00000000)) + # Operating System failure (BugCheck, STOP: 0x000000AB (0x00000005, 0x00000488, 0x00000000, 0x00000002)) + 14 => "OS Class", + # 15 Unknown Event (Class 15, Code 255) + #15 => "", + # 17 Network Adapter Link Down (Slot 0, Port 4) + # Network Adapters Redundancy Reduced (Slot 0, Port 1) + 17 => "Network Adapter", + # 19 Drive Array Device Failure (Slot 0, Bus 2, Bay 4) + # Internal SAS Enclosure Device Failure (Bay 1, Box 1, Port 2I, Slot 1) + #19 => "", + # 20 An Unrecoverable System Error (NMI) has occurred + # Unrecoverable System Error has occurred (Error code 0x01AE0E2F, 0x00000000) + 20 => "Unrecoverable System Error", + # 32 ROM flashed (New version: 01/09/2008) + 32 => "System Revision", + # 33 IML Cleared (Administrator) + # IML cleared through HP ProLiant Health Agent (cmahealthd) + # Insight Diagnostics Note: Physisches Festplattenlaufwerk 5, Controller Steckplatz 0-Diagnosis: Fehlgeschlagen + 33 => "Maintenance Note", + # 34 New Chassis Connected (Enclosure Address 27AC) + # Loss Of Chassis Connectivity (Enclosure Serial Number 8004******) + # Server Blade Enclosure Server Blade Inserted (Slot 16, Enclosure Address 0000) + #34 => "", + }, + cpqHeEventLogEntrySeverityValue => { + 2 => "informational", + 3 => "infoWithAlert", + 6 => "repaired", + 9 => "caution", + 15 => "critical", + }, + # Time + # 07 D8 09 02 11 11 + }; + # INDEX { cpqHeEventLogEntryNumber } + foreach ($self->get_entries($oids, 'cpqHeEventLogEntry')) { + if ($_->{cpqHeEventLogInitialTime} =~ /^(([0-9a-fA-F]{2})( [0-9a-fA-F]{2})*)\s*$/) { + $_->{cpqHeEventLogInitialTime} =~ s/ //; + my ($year, $month, $day, $hour, $min) = map { hex($_) } split(/\s+/, $_->{cpqHeEventLogInitialTime}); + if ($year == 0) { + $_->{cpqHeEventLogInitialTime} = 0; + } else { + eval { + $_->{cpqHeEventLogInitialTime} = timelocal(0, $min, $hour, $day, $month - 1, $year); + }; + if ($@) { + $_->{cpqHeEventLogInitialTime} = 0; + } + } + } elsif ($_->{cpqHeEventLogInitialTime} =~ /^0x([0-9a-fA-F]{4})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/) { + my ($year, $month, $day, $hour, $min) = map { hex($_) } ($1, $2, $3, $4, $5); + if ($year == 0) { + $_->{cpqHeEventLogInitialTime} = 0; + } else { + eval { + $_->{cpqHeEventLogInitialTime} = timelocal(0, $min, $hour, $day, $month - 1, $year); + }; + if ($@) { + $_->{cpqHeEventLogInitialTime} = 0; + } + } + } elsif ($_->{cpqHeEventLogInitialTime} =~ /^\0\0\0\0\0\0/) { + $_->{cpqHeEventLogInitialTime} = 0; + } + if ($_->{cpqHeEventLogUpdateTime} =~ /^(([0-9a-fA-F]{2})( [0-9a-fA-F]{2})*)\s*$/) { + $_->{cpqHeEventLogUpdateTime} =~ s/ //; + my ($year, $month, $day, $hour, $min) = map { hex($_) } split(/\s+/, $_->{cpqHeEventLogUpdateTime}); + if ($year == 0) { + $_->{cpqHeEventLogUpdateTime} = 0; + } else { + eval { + $_->{cpqHeEventLogUpdateTime} = timelocal(0, $min, $hour, $day, $month - 1, $year); + }; + if ($@) { + $_->{cpqHeEventLogUpdateTime} = 0; + } + } + } elsif ($_->{cpqHeEventLogUpdateTime} =~ /^0x([0-9a-fA-F]{4})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/) { + my ($year, $month, $day, $hour, $min) = map { hex($_) } ($1, $2, $3, $4, $5); + if ($year == 0) { + $_->{cpqHeEventLogUpdateTime} = 0; + } else { + eval { + $_->{cpqHeEventLogUpdateTime} = timelocal(0, $min, $hour, $day, $month - 1, $year); + }; + if ($@) { + $_->{cpqHeEventLogUpdateTime} = 0; + } + } + } elsif ($_->{cpqHeEventLogUpdateTime} =~ /^\0\0\0\0\0\0/) { + $_->{cpqHeEventLogUpdateTime} = 0; + } + if ($_->{cpqHeEventLogErrorDesc} =~ /^(([0-9a-fA-F]{2})(\s+[0-9a-fA-F]{2})*)\s*$/) { + $_->{cpqHeEventLogErrorDesc} = join "", map { chr($_) } map { if (hex($_) > 127) { 20; } else { hex($_) } } split(/\s+/, $_->{cpqHeEventLogErrorDesc}); + } + push(@{$self->{events}}, + HP::Proliant::Component::EventSubsystem::Event->new(%{$_})); + } +} + +sub overall_check { + my $self = shift; + my $result = 0; + $self->blacklist('oe', ''); + if ($self->{eventsupp} && $self->{eventsupp} eq "supported") { + if ($self->{eventstatus} eq "ok") { + $result = 0; + $self->add_info('eventlog system is ok'); + } else { + $result = 0; + $self->add_info(sprintf "eventlog system is %s", $self->{eventstatus}); + } + } else { + $result = 0; + $self->add_info('no event status found'); + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,236 @@ +package HP::Proliant::Component::EventSubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + events => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + boottime => 0, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + $self = HP::Proliant::Component::EventSubsystem::SNMP->new(%params); + my $sysUpTime = SNMP::Utils::get_object( + $self->{rawdata}, '1.3.6.1.2.1.1.3.0') || 3600*24*100; + $self->{boottime} = int(time - $sysUpTime / 100); + } elsif ($self->{method} eq 'cli') { + $self = HP::Proliant::Component::EventSubsystem::CLI->new(%params); + my $uptime = do { local (@ARGV, $/) = "/proc/uptime"; my $x = <>; close ARGV; $x }; + # also watch 10 minutes of booting before the operating system starts ticking + $self->{boottime} = time - int((split(/\s+/, $uptime))[0]) - 600; + } else { + die "unknown method"; + } + # repair dates + my $lasttime = 0; + for my $event (reverse @{$self->{events}}) { + if ($event->{cpqHeEventLogUpdateTime} != 0) { + $lasttime = $event->{cpqHeEventLogUpdateTime}; + } else { + $event->{cpqHeEventLogUpdateTime} = $lasttime; + } + } + # maybe the most recent events had zero timestamps. + # fill them up with timestamps from the past. + for my $event (@{$self->{events}}) { + if ($event->{cpqHeEventLogUpdateTime} != 0) { + $lasttime = $event->{cpqHeEventLogUpdateTime}; + } else { + $event->{cpqHeEventLogUpdateTime} = $lasttime; + } + } + # we need the boottime in the event's check method + for my $event (@{$self->{events}}) { + $event->{boottime} = $self->{boottime}; + } + return $self; +} + +sub check { + my $self = shift; + my $errorfound = 0; + $self->add_info('checking events'); + if (scalar (@{$self->{events}}) == 0) { + #$self->overall_check(); + $self->add_info('no events found'); + } else { + foreach (sort { $a->{cpqHeEventLogEntryNumber} <=> $b->{cpqHeEventLogEntryNumber}} + @{$self->{events}}) { + $_->check($self->{warningtime}, $self->{criticaltime}); + } + } +} + +sub dump { + my $self = shift; + foreach (sort { $a->{cpqHeEventLogEntryNumber} <=> $b->{cpqHeEventLogEntryNumber} } @{$self->{events}}) { + $_->dump(); + } +} + + +package HP::Proliant::Component::EventSubsystem::Event; +our @ISA = qw(HP::Proliant::Component::EventSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +{ + our $interesting_events = { + # POST Error: 201-Memory Error Multi-bit error occurred during memory initialization, Board 1, Bank B. Bank containing DIMM(s) has been disabled.. + # POST Error: 201-Memory Error Single-bit error occured during memory initialization, Board 1, DIMM 1. Bank containing DIMM(s) has been disabled.. + # POST Error: 207-Memory initialization error on Memory Board 5 DIMM 7. The operating system may not have access to all of the memory installed in the system.. + # POST Error: 207-Invalid Memory Configuration-Mismatched DIMMs within DIMM Bank Memory in Bank A Not Utilized.. + # POST Error: 210 - Quick Path Interconnect (QPI) Link Degradation. A QPI link is operating in a degraded performace state.. + 'POST Messages' => [ + '201-Memory', '207-Memory', + '210\s*-\s*Quick Path Interconnect.*degraded.*' + ], + 'Main Memory' => [ + 'Corrected Memory Error threshold exceeded', + 'Uncorrectable Memory Error', + ], + }; +} + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqHeEventLogEntryNumber => $params{cpqHeEventLogEntryNumber}, + cpqHeEventLogEntrySeverity => lc $params{cpqHeEventLogEntrySeverity}, + cpqHeEventLogEntryClass => $params{cpqHeEventLogEntryClass}, + cpqHeEventLogEntryCount => $params{cpqHeEventLogEntryCount} || 1, + cpqHeEventLogInitialTime => $params{cpqHeEventLogInitialTime}, + cpqHeEventLogUpdateTime => $params{cpqHeEventLogUpdateTime}, + cpqHeEventLogErrorDesc => $params{cpqHeEventLogErrorDesc}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + if (! $self->{cpqHeEventLogInitialTime}) { + $self->{cpqHeEventLogInitialTime} = $self->{cpqHeEventLogUpdateTime}; + } + # + # + #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + # |warn |crit |now + # + #<----- ignore -------><----- warning ------><---------- critical ---------> + # + # If we have --eventrange / + # Very young events are shown as critical + # If the event gets older, it is shown as warning + # At some time, the event is no longer shown + # Without --eventrange the event is shown as critical until you manually repair it + if ($params{runtime}->{options}->{eventrange}) { + my ($warningrange, $criticalrange) = split(/\//, $params{runtime}->{options}->{eventrange}); + if (! $criticalrange) { + $criticalrange = $warningrange; + } + if ($criticalrange =~ /^(\d+)[s]*$/) { + $criticalrange = $1; + } elsif ($criticalrange =~ /^(\d+)m$/) { + $criticalrange = $1 * 60; + } elsif ($criticalrange =~ /^(\d+)h$/) { + $criticalrange = $1 * 3600; + } elsif ($criticalrange =~ /^(\d+)d$/) { + $criticalrange = $1 * 3600 * 24; + } else { + die "range has to be [smhd]"; + } + if ($warningrange =~ /^(\d+)[s]*$/) { + $warningrange = $1; + } elsif ($warningrange =~ /^(\d+)m$/) { + $warningrange = $1 * 60; + } elsif ($warningrange =~ /^(\d+)h$/) { + $warningrange = $1 * 3600; + } elsif ($warningrange =~ /^(\d+)d$/) { + $warningrange = $1 * 3600 * 24; + } else { + die "range has to be [smhd]"; + } + $self->{warningtime} = time - $warningrange; + $self->{criticaltime} = time - $criticalrange; + } else { + $self->{warningtime} = 0; + $self->{criticaltime} = 0; + } + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('evt', $self->{cpqHeEventLogEntryNumber}); + # only check severity "critical" and "caution" + # optional: only check interesting events + # POST events only if they date maximum from reboot-5min + # younger than critical? -> critical + # + $self->add_info(sprintf "Event: %d Added: %s Class: (%s) %s %s", + $self->{cpqHeEventLogEntryNumber}, + $self->{cpqHeEventLogUpdateTime}, + $self->{cpqHeEventLogEntryClass}, + $self->{cpqHeEventLogEntrySeverity}, + $self->{cpqHeEventLogErrorDesc}); + if ($self->{cpqHeEventLogEntrySeverity} eq "caution" || + $self->{cpqHeEventLogEntrySeverity} eq "critical") { + # also watch 10 minutes of booting before the operating system starts ticking + if ($self->{cpqHeEventLogUpdateTime} >= $self->{boottime}) { + foreach my $class (keys %{$HP::Proliant::Component::EventSubsystem::Event::interesting_events}) { + foreach my $pattern (@{$HP::Proliant::Component::EventSubsystem::Event::interesting_events->{$class}}) { + if ($self->{cpqHeEventLogErrorDesc} =~ /$pattern/) { + if ($self->{cpqHeEventLogUpdateTime} < $self->{warningtime}) { + # you didn't care for this problem too long. + # don't say i didn't warn you. + if (0) { + # auto-ack? + } + last; + } elsif ($self->{cpqHeEventLogUpdateTime} < $self->{criticaltime}) { + $self->add_message(WARNING, $self->{info}); + last; + } else { + $self->add_message(CRITICAL, $self->{info}); + last; + } + } + } + } + } + } else { + # info, repair... + } +} + +sub dump { + my $self = shift; + printf "[EVENT_%s]\n", $self->{cpqHeEventLogEntryNumber}; + foreach (qw(cpqHeEventLogEntryNumber cpqHeEventLogEntrySeverity + cpqHeEventLogEntryCount cpqHeEventLogInitialTime + cpqHeEventLogUpdateTime cpqHeEventLogErrorDesc)) { + if ($_ =~ /.*Time$/) { + printf "%s: %s\n", $_, scalar localtime $self->{$_}; + } else { + printf "%s: %s\n", $_, $self->{$_}; + } + } + printf "info: %s\n\n", $self->{info}; +} + +1; + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,101 @@ +package HP::Proliant::Component::FanSubsystem::CLI; +our @ISA = qw(HP::Proliant::Component::FanSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + fans => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +# partner not available = cpqHeFltTolFanRedundantPartner=0 +# cpqHeFltTolFanTypeValue = other +sub init { + my $self = shift; + my %params = @_; + my %tmpfan = (); + foreach (grep(/^fans/, split(/\n/, $self->{rawdata}))) { + s/^fans //g; + if (/^#(\d+)\s+([\w#_\/\-]+)\s+(\w+)\s+(\w+)\s+(FAILED|[N\/A\d]+)%*\s+([\w\/]+)\s+(FAILED|[N\/A\d]+)\s+(\w+)/) { + %tmpfan = ( + cpqHeFltTolFanIndex => $1, + cpqHeFltTolFanLocale => lc $2, + cpqHeFltTolFanPresent => lc $3, + cpqHeFltTolFanSpeed => lc $4, + cpqHeFltTolFanPctMax => lc $5, # (FAILED|[N\/A\d]+) + cpqHeFltTolFanRedundant => lc $6, + cpqHeFltTolFanRedundantPartner => lc $7, # (FAILED|[N\/A\d]+) + cpqHeFltTolFanHotPlug => lc $8, + ); + } elsif (/^#(\d+)\s+([\w#_\/\-]+?)(Yes|No|N\/A)\s+(\w+)\s+(FAILED|[N\/A\d]+)%*\s+([\w\/]+)\s+(FAILED|[N\/A\d]+)\s+(\w+)/) { + # #5 SCSI_BACKPLANE_ZONEYes NORMAL N/A .... + %tmpfan = ( + cpqHeFltTolFanIndex => $1, + cpqHeFltTolFanLocale => lc $2, + cpqHeFltTolFanPresent => lc $3, + cpqHeFltTolFanSpeed => lc $4, + cpqHeFltTolFanPctMax => lc $5, + cpqHeFltTolFanRedundant => lc $6, + cpqHeFltTolFanRedundantPartner => lc $7, + cpqHeFltTolFanHotPlug => lc $8, + ); + } elsif (/^#(\d+)\s+([\w#_\/\-]+)\s+[NOno]+\s/) { + # Fan is not installed. #2 CPU#2 No - - No N/A - + } elsif (/^#(\d+)/) { + main::contact_author("FAN", $_); + } + if (%tmpfan) { + $tmpfan{runtime} = $params{runtime}; + $tmpfan{cpqHeFltTolFanChassis} = 1; # geht aus hpasmcli nicht hervor + $tmpfan{cpqHeFltTolFanType} = 'other'; + if ($tmpfan{cpqHeFltTolFanPctMax} !~ /^\d+$/) { + if ($tmpfan{cpqHeFltTolFanSpeed} eq 'normal') { + $tmpfan{cpqHeFltTolFanPctMax} = 50; + } elsif ($tmpfan{cpqHeFltTolFanSpeed} eq 'high') { + $tmpfan{cpqHeFltTolFanPctMax} = 100; + } else { + $tmpfan{cpqHeFltTolFanPctMax} = 0; + } + } + if($tmpfan{cpqHeFltTolFanSpeed} eq 'failed') { + $tmpfan{cpqHeFltTolFanCondition} = 'failed'; + } elsif($tmpfan{cpqHeFltTolFanSpeed} eq 'n/a') { + $tmpfan{cpqHeFltTolFanCondition} = 'other'; + } else { + $tmpfan{cpqHeFltTolFanCondition} = 'ok'; + } + $tmpfan{cpqHeFltTolFanRedundant} = + $tmpfan{cpqHeFltTolFanRedundant} eq 'yes' ? 'redundant' : + $tmpfan{cpqHeFltTolFanRedundant} eq 'no' ? 'notRedundant' : 'other'; + $tmpfan{cpqHeFltTolFanPresent} = + $tmpfan{cpqHeFltTolFanPresent} eq 'yes' ? 'present' : + $tmpfan{cpqHeFltTolFanPresent} eq 'failed' ? 'present' : + $tmpfan{cpqHeFltTolFanPresent} eq 'no' ? 'absent' : 'other'; + $tmpfan{cpqHeFltTolFanHotPlug} = + $tmpfan{cpqHeFltTolFanHotPlug} eq 'yes' ? 'hotPluggable' : + $tmpfan{cpqHeFltTolFanHotPlug} eq 'no' ? 'nonHotPluggable' : 'other'; + push(@{$self->{fans}}, + HP::Proliant::Component::FanSubsystem::Fan->new(%tmpfan)); + %tmpfan = (); + } + } +} + +sub overall_check { + my $self = shift; + # nix. nur wegen der gleichheit mit snmp + return 0; +} +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,231 @@ +package HP::Proliant::Component::FanSubsystem::SNMP; +our @ISA = qw(HP::Proliant::Component::FanSubsystem + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + fans => [], + he_fans => [], + th_fans => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->overall_init(%params); + $self->he_init(%params); + $self->te_init(%params); + $self->unite(); + return $self; +} + +sub overall_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $params{rawdata}; + # overall + my $cpqHeThermalSystemFanStatus = '1.3.6.1.4.1.232.6.2.6.4.0'; + my $cpqHeThermalSystemFanStatusValue = { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }; + my $cpqHeThermalCpuFanStatus = '1.3.6.1.4.1.232.6.2.6.5.0'; + my $cpqHeThermalCpuFanStatusValue = { + 1 => 'other', + 2 => 'ok', + 4 => 'failed', # shutdown + }; + $self->{sysstatus} = SNMP::Utils::get_object_value( + $snmpwalk, $cpqHeThermalSystemFanStatus, + $cpqHeThermalSystemFanStatusValue); + $self->{cpustatus} = SNMP::Utils::get_object_value( + $snmpwalk, $cpqHeThermalCpuFanStatus, + $cpqHeThermalCpuFanStatusValue); + $self->{sysstatus} |= lc $self->{sysstatus}; + $self->{cpustatus} |= lc $self->{cpustatus}; +} + +sub te_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $params{rawdata}; + my $ignore_redundancy = $params{ignore_redundancy}; + # cpqHeThermalFanTable + my $oids = { + cpqHeThermalFanEntry => '1.3.6.1.4.1.232.6.2.6.6.1', + cpqHeThermalFanIndex => '1.3.6.1.4.1.232.6.2.6.6.1.1', + cpqHeThermalFanRequired => '1.3.6.1.4.1.232.6.2.6.6.1.2', + cpqHeThermalFanPresent => '1.3.6.1.4.1.232.6.2.6.6.1.3', + cpqHeThermalFanCpuFan => '1.3.6.1.4.1.232.6.2.6.6.1.4', + cpqHeThermalFanStatus => '1.3.6.1.4.1.232.6.2.6.6.1.5', + cpqHeThermalFanHwLocation => '1.3.6.1.4.1.232.6.2.6.6.1.6', + cpqHeThermalFanRequiredValue => { + 1 => 'other', + 2 => 'nonRequired', + 3 => 'required', + }, + cpqHeThermalFanPresentValue => { + 1 => 'other', + 2 => 'absent', + 3 => 'present', + }, + cpqHeThermalFanCpuFanValue => { + 1 => 'other', + 2 => 'systemFan', + 3 => 'cpuFan', + }, + cpqHeThermalFanStatusValue => { + 1 => 'other', + 2 => 'ok', + 4 => 'failed', + }, + }; + # INDEX { cpqHeThermalFanIndex } + foreach ($self->get_entries($oids, 'cpqHeThermalFanEntry')) { + next if ! $_->{cpqHeThermalFanPresent}; + push(@{$self->{th_fans}}, + HP::Proliant::Component::FanSubsystem::Fan->new(%{$_})); + } +} + +sub he_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $params{rawdata}; + my $ignore_redundancy = $params{ignore_redundancy}; + # cpqHeFltTolFanTable + my $oids = { + cpqHeFltTolFanEntry => '1.3.6.1.4.1.232.6.2.6.7.1', + cpqHeFltTolFanChassis => '1.3.6.1.4.1.232.6.2.6.7.1.1', + cpqHeFltTolFanIndex => '1.3.6.1.4.1.232.6.2.6.7.1.2', + cpqHeFltTolFanLocale => '1.3.6.1.4.1.232.6.2.6.7.1.3', + cpqHeFltTolFanPresent => '1.3.6.1.4.1.232.6.2.6.7.1.4', + cpqHeFltTolFanType => '1.3.6.1.4.1.232.6.2.6.7.1.5', + cpqHeFltTolFanSpeed => '1.3.6.1.4.1.232.6.2.6.7.1.6', + cpqHeFltTolFanRedundant => '1.3.6.1.4.1.232.6.2.6.7.1.7', + cpqHeFltTolFanRedundantPartner => '1.3.6.1.4.1.232.6.2.6.7.1.8', + cpqHeFltTolFanCondition => '1.3.6.1.4.1.232.6.2.6.7.1.9', + cpqHeFltTolFanHotPlug => '1.3.6.1.4.1.232.6.2.6.7.1.10', + cpqHeFltTolFanHwLocation => '1.3.6.1.4.1.232.6.2.6.7.1.11', + cpqHeFltTolFanCurrentSpeed => '1.3.6.1.4.1.232.6.2.6.7.1.12', + cpqHeFltTolFanLocaleValue => { + 1 => "other", + 2 => "unknown", + 3 => "system", + 4 => "systemBoard", + 5 => "ioBoard", + 6 => "cpu", + 7 => "memory", + 8 => "storage", + 9 => "removableMedia", + 10 => "powerSupply", + 11 => "ambient", + 12 => "chassis", + 13 => "bridgeCard", + }, + cpqHeFltTolFanPresentValue => { + 1 => "other", + 2 => "absent", + 3 => "present", + }, + cpqHeFltTolFanSpeedValue => { + 1 => "other", + 2 => "normal", + 3 => "high", + }, + cpqHeFltTolFanRedundantValue => { + 1 => "other", + 2 => "notRedundant", + 3 => "redundant", + }, + cpqHeFltTolFanTypeValue => { + 1 => "other", + 2 => "tachInput", + 3 => "spinDetect", + }, + cpqHeFltTolFanConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqHeFltTolFanHotPlugValue => { + 1 => "other", + 2 => "nonHotPluggable", + 3 => "hotPluggable", + }, + }; + # INDEX { cpqHeFltTolFanChassis, cpqHeFltTolFanIndex } + foreach ($self->get_entries($oids, 'cpqHeFltTolFanEntry')) { + next if ! defined $_->{cpqHeFltTolFanIndex}; + # z.b. USM65201WS hat nur solche fragmente. die werden erst gar nicht + # als fans akzeptiert. dafuer gibts dann die overall condition + # SNMPv2-SMI::enterprises.232.6.2.6.7.1.1.0.1 = INTEGER: 0 + # SNMPv2-SMI::enterprises.232.6.2.6.7.1.1.0.2 = INTEGER: 0 + $_->{cpqHeFltTolFanPctMax} = ($_->{cpqHeFltTolFanPresent} eq 'present') ? + 50 : 0; + push(@{$self->{he_fans}}, + HP::Proliant::Component::FanSubsystem::Fan->new(%{$_})); + } + +} + +sub unite { + my $self = shift; + my $tmpfans = {}; + foreach (@{$self->{he_fans}}) { + $tmpfans->{$_->{cpqHeFltTolFanIndex}} = $_; + } + foreach (@{$self->{he_fans}}) { + if (exists $tmpfans->{$_->{cpqHeFltTolFanRedundantPartner}}) { + $_->{partner} = $tmpfans->{$_->{cpqHeFltTolFanRedundantPartner}}; + } else { + $_->{partner} = undef; + } + } + @{$self->{fans}} = @{$self->{he_fans}}; +} + +sub overall_check { + my $self = shift; + my $result = 0; + $self->blacklist('ofs', ''); + if ($self->{sysstatus} && $self->{cpustatus}) { + if ($self->{sysstatus} eq 'degraded') { + $result = 1; + $self->add_message(WARNING, + sprintf 'system fan overall status is %s', $self->{sysstatus}); + } elsif ($self->{sysstatus} eq 'failed') { + $result = 2; + $self->add_message(CRITICAL, + sprintf 'system fan overall status is %s', $self->{sysstatus}); + } + if ($self->{cpustatus} eq 'degraded') { + $result = 1; + $self->add_message(WARNING, + sprintf 'cpu fan overall status is %s', $self->{cpustatus}); + } elsif ($self->{cpustatus} eq 'failed') { + $result = 2; + $self->add_message(CRITICAL, + sprintf 'cpu fan overall status is %s', $self->{cpustatus}); + } + $self->add_info(sprintf 'overall fan status: system=%s, cpu=%s', + $self->{sysstatus}, $self->{cpustatus}); + } else { + $result = 0; + $self->add_info('this system seems to be water-cooled. no fans found'); + } + return $result; +} + +1; + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/FanSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,262 @@ +package HP::Proliant::Component::FanSubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; +################################## fan_redundancy ########## + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + fans => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + return HP::Proliant::Component::FanSubsystem::SNMP->new(%params); + } elsif ($self->{method} eq 'cli') { + return HP::Proliant::Component::FanSubsystem::CLI->new(%params); + } else { + die 'unknown method'; + } + return $self; +} + +sub check { + my $self = shift; + my $errorfound = 0; + $self->add_info('checking fans'); + $self->blacklist('ff', ''); + if (scalar (@{$self->{fans}}) == 0) { + $self->overall_check(); # sowas ist mir nur einmal untergekommen + # die maschine hatte alles in allem nur 2 oids (cpqHeFltTolFanChassis) + # SNMPv2-SMI::enterprises.232.6.2.6.7.1.1.0.1 = INTEGER: 0 + # SNMPv2-SMI::enterprises.232.6.2.6.7.1.1.0.2 = INTEGER: 0 + } else { + my $overallhealth = $self->overall_check(); + foreach (@{$self->{fans}}) { + $_->{overallhealth} = $overallhealth; + $_->check(); + } + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{fans}}) { + $_->dump(); + } +} + +sub get_fan_by_index { + my $self = shift; + my $index; + foreach (@{$self->{fans}}) { + return $_ if exists $_->{cpqHeFltTolFanIndex} && + $_->{cpqHeFltTolFanIndex} == $index; + } + return undef; +} + + +package HP::Proliant::Component::FanSubsystem::Fan; +our @ISA = qw(HP::Proliant::Component::FanSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + if (exists $params{cpqHeFltTolFanRedundant}) { + return HP::Proliant::Component::FanSubsystem::Fan::FTol->new(%params); + } else { + return HP::Proliant::Component::FanSubsystem::Fan::Thermal->new(%params); + } +} + + +package HP::Proliant::Component::FanSubsystem::Fan::FTol; +our @ISA = qw(HP::Proliant::Component::FanSubsystem::Fan); + + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqHeFltTolFanChassis => $params{cpqHeFltTolFanChassis}, + cpqHeFltTolFanIndex => $params{cpqHeFltTolFanIndex}, + cpqHeFltTolFanLocale => $params{cpqHeFltTolFanLocale}, + cpqHeFltTolFanPresent => $params{cpqHeFltTolFanPresent}, + cpqHeFltTolFanType => $params{cpqHeFltTolFanType}, + cpqHeFltTolFanSpeed => $params{cpqHeFltTolFanSpeed}, + cpqHeFltTolFanRedundant => $params{cpqHeFltTolFanRedundant}, + cpqHeFltTolFanRedundantPartner => $params{cpqHeFltTolFanRedundantPartner}, + cpqHeFltTolFanCondition => $params{cpqHeFltTolFanCondition}, + cpqHeFltTolFanPctMax => $params{cpqHeFltTolFanPctMax}, #!!! + cpqHeFltTolFanHotPlug => $params{cpqHeFltTolFanHotPlug}, #!!! + partner => $params{partner}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if (($self->{cpqHeFltTolFanRedundant} eq 'redundant') && + ((! defined $self->{cpqHeFltTolFanRedundantPartner}) || + (! $self->{cpqHeFltTolFanRedundantPartner}))) { + $self->{cpqHeFltTolFanRedundant} = 'notRedundant'; + # cpqHeFltTolFanRedundantPartner=0: partner not avail + } + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('f', $self->{cpqHeFltTolFanIndex}); + $self->add_info(sprintf 'fan %d is %s, speed is %s, pctmax is %s%%, '. + 'location is %s, redundance is %s, partner is %s', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanPresent}, + $self->{cpqHeFltTolFanSpeed}, $self->{cpqHeFltTolFanPctMax}, + $self->{cpqHeFltTolFanLocale}, $self->{cpqHeFltTolFanRedundant}, + $self->{cpqHeFltTolFanRedundantPartner}); + $self->add_extendedinfo(sprintf 'fan_%s=%d%%', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanPctMax}); + if ($self->{cpqHeFltTolFanPresent} eq 'present') { + if ($self->{cpqHeFltTolFanSpeed} eq 'high') { + $self->add_info(sprintf 'fan %d (%s) runs at high speed', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); + $self->add_message(CRITICAL, $self->{info}); + } elsif ($self->{cpqHeFltTolFanSpeed} ne 'normal') { + $self->add_info(sprintf 'fan %d (%s) needs attention', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); + $self->add_message(CRITICAL, $self->{info}); + } + if ($self->{cpqHeFltTolFanCondition} eq 'failed') { + $self->add_info(sprintf 'fan %d (%s) failed', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); + $self->add_message(CRITICAL, $self->{info}); + } elsif ($self->{cpqHeFltTolFanCondition} eq 'degraded') { + $self->add_info(sprintf 'fan %d (%s) degraded', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); + $self->add_message(WARNING, $self->{info}); + } elsif ($self->{cpqHeFltTolFanCondition} ne 'ok') { + $self->add_info(sprintf 'fan %d (%s) is not ok', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); + $self->add_message(WARNING, $self->{info}); + } + if ($self->{cpqHeFltTolFanRedundant} eq 'notRedundant') { + # sieht so aus, als waere notRedundant und partner=0 normal z.b. dl360 + # das duerfte der fall sein, wenn nur eine cpu verbaut wurde und + # statt einem redundanten paar nur dummies drinstecken. + # "This specifies if the fan is in a redundant configuration" + # notRedundant heisst also sowohl nicht redundant wegen ausfall + # des partners als auch von haus aus nicht redundant ausgelegt + if ($self->{cpqHeFltTolFanRedundantPartner}) { + # nicht redundant, hat aber einen partner. da muss man genauer + # hinschauen + #if (my $partner = $self->{partner}) { + #} + if ($self->{overallhealth}) { + # da ist sogar das system der meinung, dass etwas faul ist + if (! $self->{runtime}->{options}->{ignore_fan_redundancy}) { + $self->add_info(sprintf 'fan %d (%s) is not redundant', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); + $self->add_message(WARNING, $self->{info}); + } + } else { + # das ist wohl so gewollt, dass einzelne fans eingebaut werden, + # obwohl redundante paerchen vorgesehen sind. + # scheint davon abzuhaengen, wieviele cpus geordert wurden. + } + } + } elsif ($self->{cpqHeFltTolFanRedundant} eq 'other') { + #seen on a dl320 g5p with bios from 2008. + # maybe redundancy is not supported at all + } + } elsif ($self->{cpqHeFltTolFanPresent} eq 'failed') { # from cli + $self->add_info(sprintf 'fan %d (%s) failed', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); + $self->add_message(CRITICAL, $self->{info}); + } elsif ($self->{cpqHeFltTolFanPresent} eq 'absent') { + $self->add_info(sprintf 'fan %d (%s) needs attention (is absent)', + $self->{cpqHeFltTolFanIndex}, $self->{cpqHeFltTolFanLocale}); + # weiss nicht, ob absent auch kaputt bedeuten kann + # wenn nicht, dann wuerde man sich hier dumm und daemlich blacklisten + #$self->add_message(CRITICAL, $self->{info}); + $self->add_message(WARNING, $self->{info}) if $self->{overallhealth}; + } + if ($self->{runtime}->{options}->{perfdata}) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('fan_%s', $self->{cpqHeFltTolFanIndex}), + value => $self->{cpqHeFltTolFanPctMax}, + uom => '%', + ); + } +} + +sub dump { + my $self = shift; + printf "[FAN_%s]\n", $self->{cpqHeFltTolFanIndex}; + foreach (qw(cpqHeFltTolFanChassis cpqHeFltTolFanIndex cpqHeFltTolFanLocale + cpqHeFltTolFanPresent cpqHeFltTolFanType cpqHeFltTolFanSpeed + cpqHeFltTolFanRedundant cpqHeFltTolFanRedundantPartner + cpqHeFltTolFanCondition cpqHeFltTolFanHotPlug)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n", $self->{info}; + printf "\n"; +} + + +package HP::Proliant::Component::FanSubsystem::Fan::Thermal; +our @ISA = qw(HP::Proliant::Component::FanSubsystem::Fan); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqHeThermalFanIndex => $params{cpqHeThermalFanIndex}, + cpqHeThermalFanRequired => $params{cpqHeThermalFanRequired}, + cpqHeThermalFanPresent => $params{cpqHeThermalFanPresent}, + cpqHeThermalFanCpuFan => $params{cpqHeThermalFanCpuFan}, + cpqHeThermalFanStatus => $params{cpqHeThermalFanStatus}, + cpqHeThermalFanHwLocation => $params{cpqHeThermalFanHwLocation}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; +} + +sub dump { + my $self = shift; + printf "[FAN_%s]\n", $self->{cpqHeThermalFanIndex}; + foreach (qw(cpqHeThermalFanIndex cpqHeThermalFanRequired + cpqHeThermalFanPresent cpqHeThermalFanCpuFan cpqHeThermalFanStatus + cpqHeThermalFanHwLocation)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n", $self->{info}; + printf "\n"; +} diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,87 @@ +package HP::Proliant::Component::MemorySubsystem::CLI; +our @ISA = qw(HP::Proliant::Component::MemorySubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + dimms => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + $self->{dimms} = []; + my %tmpdimm = ( + runtime => $params{runtime}, + ); + my $inblock = 0; + foreach (grep(/^dimm/, split(/\n/, $self->{rawdata}))) { + s/^dimm\s*$//g; + if (/Cartridge #:\s+(\d+)/ || /Processor #:\s+(\d+)/) { + # neuerdings (g6) tauchen hier prozessor- statt cartridge-angaben auf + $tmpdimm{cartridge} = $1; + $tmpdimm{board} = $1; + $inblock = 1; + } elsif (/Module #:\s+(\d+)/) { + $tmpdimm{module} = $1; + } elsif (/Present:\s+(\w+)/) { + $tmpdimm{status} = lc $1 eq 'yes' ? 'present' : + lc $1 eq 'no' ? 'notPresent' : 'other'; + } elsif (/Status:\s+(.+?)\s*$/) { + $tmpdimm{condition} = lc $1 =~ /degraded/ ? 'degraded' : + lc $1 eq 'ok' ? 'ok' : lc $1 =~ /n\/a/ ? 'n/a' : 'other'; + } elsif (/Size:\s+(\d+)\s*(.+?)\s*$/) { + $tmpdimm{size} = $1 * (lc $2 eq 'mb' ? 1024*1024 : + lc $2 eq 'gb' ? 1024*1024*1024 : 1); + } elsif (/^\s*$/) { + if ($inblock) { + $inblock = 0; + push(@{$self->{dimms}}, + HP::Proliant::Component::MemorySubsystem::Dimm->new(%tmpdimm)); + %tmpdimm = ( + runtime => $params{runtime}, + ); + } + } elsif (/(\d+)\s+(\d+)\s+(\w+)\s+(0x\w+)\s+(0x\w+)\s+(\d+[MGT]B)\s+(\d+MHz)\s+(\w+)/) { + $tmpdimm{cartridge} = $1; + $tmpdimm{module} = $2; + $tmpdimm{status} = lc $3 eq 'yes' ? 'present' : + lc $3 eq 'no' ? 'notPresent' : 'other'; + my $formfactor = $4; + my $memorytype = $5; + my $memorysize = $6; + my $memoryspeed = $7; + $tmpdimm{condition} = lc $8 =~ /degraded/ ? 'degraded' : + lc $8 eq 'ok' ? 'ok' : lc $8 =~ /n\/a/ ? 'n/a' : 'other'; + $memorysize =~ /(\d+)([MGT]B)/; + $tmpdimm{size} = $1 * (lc $2 eq 'mb' ? 1024*1024 : + lc $2 eq 'gb' ? 1024*1024*1024 : 1); + push(@{$self->{dimms}}, + HP::Proliant::Component::MemorySubsystem::Dimm->new(%tmpdimm)); + } + } + if ($inblock) { + push(@{$self->{dimms}}, + HP::Proliant::Component::MemorySubsystem::Dimm->new(%tmpdimm)); + } +} + +sub is_faulty { + my $self = shift; + return 0; # cli hat so einen globalen status nicht +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,746 @@ +package HP::Proliant::Component::MemorySubsystem::SNMP; +our @ISA = qw(HP::Proliant::Component::MemorySubsystem + HP::Proliant::Component::SNMP); + +use strict; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + dimms => [], + si_dimms => [], + he_dimms => [], + h2_dimms => [], + he_cartridges => [], + h2_cartridges => [], + si_overall_condition => undef, + he_overall_condition => undef, + h2_overall_condition => undef, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->si_init(); + $self->he_init(); + $self->he_cartridge_init(); + $self->h2_init(); + #$self->h2_cartridge_init(); + $self->condense(); + return $self; +} + +sub si_init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqSiMemModuleEntry => '1.3.6.1.4.1.232.2.2.4.5.1', + cpqSiMemBoardIndex => '1.3.6.1.4.1.232.2.2.4.5.1.1', + cpqSiMemModuleIndex => '1.3.6.1.4.1.232.2.2.4.5.1.2', + cpqSiMemModuleSize => '1.3.6.1.4.1.232.2.2.4.5.1.3', + cpqSiMemModuleType => '1.3.6.1.4.1.232.2.2.4.5.1.4', + cpqSiMemECCStatus => '1.3.6.1.4.1.232.2.2.4.5.1.11', + cpqSiMemModuleHwLocation => '1.3.6.1.4.1.232.2.2.4.5.1.12', + cpqSiMemModuleTypeValue => { + 1 => 'other', + 2 => 'board', + 3 => 'cpqSingleWidthModule', + 4 => 'cpqDoubleWidthModule', + 5 => 'simm', + 6 => 'pcmcia', + 7 => 'compaq-specific', + 8 => 'dimm', + 9 => 'smallOutlineDimm', + 10 => 'rimm', + 11 => 'srimm', + }, + cpqSiMemECCStatusValue => { + 0 => "n/a", + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "degradedModuleIndexUnknown", + 34 => 'n/a', # es ist zum kotzen... + 104 => 'n/a', + }, + }; + # INDEX { cpqSiMemBoardIndex, cpqSiMemModuleIndex } + foreach ($self->get_entries($oids, 'cpqSiMemModuleEntry')) { + $_->{cartridge} = $_->{cpqSiMemBoardIndex}; + $_->{module} = $_->{cpqSiMemModuleIndex}; + next if (! defined $_->{cartridge} || ! defined $_->{module}); + $_->{size} = $_->{cpqSiMemModuleSize}; + $_->{type} = $_->{cpqSiMemModuleType}; + $_->{condition} = $_->{cpqSiMemECCStatus}; + $_->{status} = ($_->{cpqSiMemModuleSize} > 0) ? 'present' : 'notPresent'; + push(@{$self->{si_dimms}}, + HP::Proliant::Component::MemorySubsystem::Dimm->new(%{$_}) + ); + } + my $cpqSiMemECCCondition = '1.3.6.1.4.1.232.2.2.4.15.0'; + my $cpqSiMemECCConditionValue = { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + }; + $self->{si_overall_condition} = SNMP::Utils::get_object_value( + $self->{rawdata}, $cpqSiMemECCCondition, + $cpqSiMemECCConditionValue); + $self->trace(2, sprintf 'overall si condition is %s', + $self->{si_overall_condition} || 'undefined'); +} + +sub he_init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqHeResMemModuleEntry => '1.3.6.1.4.1.232.6.2.14.11.1', + cpqHeResMemBoardIndex => '1.3.6.1.4.1.232.6.2.14.11.1.1', + cpqHeResMemModuleIndex => '1.3.6.1.4.1.232.6.2.14.11.1.2', + cpqHeResMemModuleStatus => '1.3.6.1.4.1.232.6.2.14.11.1.4', + cpqHeResMemModuleCondition => '1.3.6.1.4.1.232.6.2.14.11.1.5', + cpqHeResMemModuleStatusValue => { + 1 => "other", # unknown or could not be determined + 2 => "notPresent", # not present or un-initialized + 3 => "present", # present but not in use + 4 => "good", # present and in use. ecc threshold not exceeded + 5 => "add", # added but not yet in use + 6 => "upgrade", # upgraded but not yet in use + 7 => "missing", # expected but missing + 8 => "doesNotMatch", # does not match the other modules in the bank + 9 => "notSupported", # module not supported + 10 => "badConfig", # violates add/upgrade configuration + 11 => "degraded", # ecc exceeds threshold + }, + # condition = status of the correctable memory errors + cpqHeResMemModuleConditionValue => { + 0 => "n/a", # this appears only with buggy firmwares. + # (only 1 module shows up) + 1 => "other", + 2 => "ok", + 3 => "degraded", + }, + }; + my $tablesize = SNMP::Utils::get_size($snmpwalk, + $oids->{cpqHeResMemModuleEntry}); + # INDEX { cpqHeResMemBoardIndex, cpqHeResMemModuleIndex } + foreach ($self->get_entries($oids, 'cpqHeResMemModuleEntry')) { + $_->{cartridge} = $_->{cpqHeResMemBoardIndex}; + $_->{module} = $_->{cpqHeResMemModuleIndex}; + $_->{present} = $_->{cpqHeResMemModuleStatus}; + $_->{status} = $_->{cpqHeResMemModuleStatus}; + $_->{condition} = $_->{cpqHeResMemModuleCondition}; + if ((! defined $_->{module}) && ($_->{cartridge} == 0)) { + $_->{module} = $_->{index2}; # auf dem systemboard verbaut + } + + push(@{$self->{he_dimms}}, + HP::Proliant::Component::MemorySubsystem::Dimm->new(%{$_}) + ) unless (! defined $_->{cartridge} || ! defined $_->{module} || + $tablesize == 1); + } + my $cpqHeResilientMemCondition = '1.3.6.1.4.1.232.6.2.14.4.0'; + my $cpqHeResilientMemConditionValue = { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + }; + $self->{he_overall_condition} = SNMP::Utils::get_object_value( + $self->{rawdata}, $cpqHeResilientMemCondition, + $cpqHeResilientMemConditionValue); + $self->trace(2, sprintf 'overall he condition is %s', + $self->{hei_overall_condition} || 'undefined'); +} + +sub he_cartridge_init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqHeResMemBoardEntry => '1.3.6.1.4.1.232.6.2.14.10.1', + cpqHeResMemBoardSlotIndex => '1.3.6.1.4.1.232.6.2.14.10.1.1', + cpqHeResMemBoardOnlineStatus => '1.3.6.1.4.1.232.6.2.14.10.1.2', + cpqHeResMemBoardErrorStatus => '1.3.6.1.4.1.232.6.2.14.10.1.3', + cpqHeResMemBoardNumSockets => '1.3.6.1.4.1.232.6.2.14.10.1.5', + cpqHeResMemBoardOsMemSize => '1.3.6.1.4.1.232.6.2.14.10.1.6', + cpqHeResMemBoardTotalMemSize => '1.3.6.1.4.1.232.6.2.14.10.1.7', + cpqHeResMemBoardCondition => '1.3.6.1.4.1.232.6.2.14.10.1.8', + # onlinestatus + cpqHeResMemBoardOnlineStatusValue => { + 0 => "n/a", # this appears only with buggy firmwares. + # (only 1 module shows up) + 1 => "other", + 2 => "present", + 3 => "absent", + }, + cpqHeResMemBoardErrorStatusValue => { + 1 => "other", # + 2 => "noError", # + 3 => "dimmEccError", # + 4 => "unlockError", # + 5 => "configError", # + 6 => "busError", # + 7 => "powerError", # + }, + # condition = status of the correctable memory errors + cpqHeResMemBoardConditionValue => { + 0 => "n/a", # this appears only with buggy firmwares. + # (only 1 module shows up) + 1 => "other", + 2 => "ok", + 3 => "degraded", + }, + }; + my $tablesize = SNMP::Utils::get_size($snmpwalk, + $oids->{cpqHeResMemBoardEntry}); + # INDEX { cpqHeResMemBoardIndex, cpqHeResMemBoardIndex } + foreach ($self->get_entries($oids, 'cpqHeResMemBoardEntry')) { + push(@{$self->{he_cartridges}}, + HP::Proliant::Component::MemorySubsystem::Cartridge->new(%{$_}) + ) unless (! defined $_->{cpqHeResMemBoardSlotIndex} || $tablesize == 1); + } +} + +sub h2_init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqHeResMem2ModuleEntry => '1.3.6.1.4.1.232.6.2.14.13.1', + cpqHeResMem2BoardNum => '1.3.6.1.4.1.232.6.2.14.13.1.2', + cpqHeResMem2ModuleNum => '1.3.6.1.4.1.232.6.2.14.13.1.5', + cpqHeResMem2ModuleStatus => '1.3.6.1.4.1.232.6.2.14.13.1.19', + cpqHeResMem2ModuleCondition => '1.3.6.1.4.1.232.6.2.14.13.1.20', + cpqHeResMem2ModuleSize => '1.3.6.1.4.1.232.6.2.14.13.1.6', + + cpqHeResMem2ModuleStatusValue => { + 1 => "other", # unknown or could not be determined + 2 => "notPresent", # not present or un-initialized + 3 => "present", # present but not in use + 4 => "good", # present and in use. ecc threshold not exceeded + 5 => "add", # added but not yet in use + 6 => "upgrade", # upgraded but not yet in use + 7 => "missing", # expected but missing + 8 => "doesNotMatch", # does not match the other modules in the bank + 9 => "notSupported", # module not supported + 10 => "badConfig", # violates add/upgrade configuration + 11 => "degraded", # ecc exceeds threshold + }, + # condition = status of the correctable memory errors + cpqHeResMem2ModuleConditionValue => { + 0 => "n/a", # this appears only with buggy firmwares. + # (only 1 module shows up) + 1 => "other", + 2 => "ok", + 3 => "degraded", + }, + }; + # INDEX { cpqHeResMem2ModuleNum } + my $lastboard = 0; + my $lastmodule = 0; + my $myboard= 0; + my $hpboard = 0; + foreach (sort { $a->{index1} <=> $b->{index1} } + $self->get_entries($oids, 'cpqHeResMem2ModuleEntry')) { + $hpboard = $_->{cpqHeResMem2BoardNum}; + # dass hier faelschlicherweise 0 zurueckkommt, wundert mich schon + # gar nicht mehr + $_->{module} = $_->{cpqHeResMem2ModuleNum}; + if ($_->{module} < $lastmodule) { + # sieht so aus, als haette man es mit einem neuen board zu tun + # da hp zu bloed ist, selber hochzuzaehlen, muss ich das tun + $myboard++; + } + $lastmodule = $_->{cpqHeResMem2ModuleNum}; + $_->{cartridge} = ($myboard != $hpboard) ? $myboard : $hpboard; + $_->{present} = $_->{cpqHeResMem2ModuleStatus}; + $_->{status} = $_->{cpqHeResMem2ModuleStatus}; + $_->{condition} = $_->{cpqHeResMem2ModuleCondition}; + $_->{size} = $_->{cpqHeResMem2ModuleSize}; + push(@{$self->{h2_dimms}}, + HP::Proliant::Component::MemorySubsystem::Dimm->new(%{$_}) + ) unless (! defined $_->{cpqHeResMem2BoardNum} || + ! defined $_->{cpqHeResMem2ModuleNum}); + } +} + +sub h2_cartridge_init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqHeResMem2BoardEntry => '1.3.6.1.4.1.232.6.2.14.12.1', + cpqHeResMem2BoardIndex => '1.3.6.1.4.1.232.6.2.14.12.1.1', + cpqHeResMem2BoardOnlineStatus => '1.3.6.1.4.1.232.6.2.14.12.1.5', + cpqHeResMem2BoardErrorStatus => '1.3.6.1.4.1.232.6.2.14.12.1.6', + cpqHeResMem2BoardNumSockets => '1.3.6.1.4.1.232.6.2.14.12.1.8', + cpqHeResMem2BoardOsMemSize => '1.3.6.1.4.1.232.6.2.14.12.1.9', + cpqHeResMem2BoardTotalMemSize => '1.3.6.1.4.1.232.6.2.14.12.1.10', + cpqHeResMem2BoardCondition => '1.3.6.1.4.1.232.6.2.14.12.1.11', + # onlinestatus + cpqHeResMem2BoardOnlineStatusValue => { + 0 => "n/a", # this appears only with buggy firmwares. + # (only 1 module shows up) + 1 => "other", + 2 => "present", + 3 => "absent", + }, + cpqHeResMem2BoardErrorStatusValue => { + 1 => "other", # + 2 => "noError", # + 3 => "dimmEccError", # + 4 => "unlockError", # + 5 => "configError", # + 6 => "busError", # + 7 => "powerError", # + }, + # condition = status of the correctable memory errors + cpqHeResMem2BoardConditionValue => { + 0 => "n/a", # this appears only with buggy firmwares. + # (only 1 module shows up) + 1 => "other", + 2 => "ok", + 3 => "degraded", + }, + }; + my $tablesize = SNMP::Utils::get_size($snmpwalk, + $oids->{cpqHeResMemBoardEntry}); + # INDEX { cpqHeResMem2BoardIndex, cpqHeResMem2BoardIndex } + foreach ($self->get_entries($oids, 'cpqHeResMem2BoardEntry')) { + push(@{$self->{h2_cartridges}}, + HP::Proliant::Component::MemorySubsystem::Cartridge->new(%{$_}) + ) unless (! defined $_->{cpqHeRes2MemBoardIndex} || $tablesize == 1); + } +} + +sub condense { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + # wenn saemtliche dimms n/a sind + # wenn ignore dimms: ignoring %d dimms with status 'n/a' + # wenn buggyfirmware: ignoring %d dimms with status 'n/a' because of buggy firmware + # if buggy firmware : condition n/a ist normal + # ignore-dimms : + # es gibt si_dimms und he_dimms + my $si_dimms = scalar(@{$self->{si_dimms}}); + my $he_dimms = scalar(@{$self->{he_dimms}}); + my $h2_dimms = scalar(@{$self->{h2_dimms}}); + $self->trace(2, sprintf "SI: %02d HE: %02d H2: %02d", + $si_dimms, $he_dimms, $h2_dimms) + if ($self->{runtime}->{options}->{verbose} >= 2); + foreach ($self->get_si_boards()) { + printf "SI%02d-> ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); + foreach ($self->get_si_modules($_)) { + printf "%02d ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); + } + printf "\n" if ($self->{runtime}->{options}->{verbose} >= 2); + } + foreach ($self->get_he_boards()) { + printf "HE%02d-> ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); + foreach ($self->get_he_modules($_)) { + printf "%02d ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); + } + printf "\n" if ($self->{runtime}->{options}->{verbose} >= 2); + } + foreach ($self->get_h2_boards()) { + printf "H2%02d-> ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); + foreach ($self->get_h2_modules($_)) { + printf "%02d ", $_ if ($self->{runtime}->{options}->{verbose} >= 2); + } + printf "\n" if ($self->{runtime}->{options}->{verbose} >= 2); + } + if (($h2_dimms == 0) && ($he_dimms == 0) && ($si_dimms > 0)) { + printf "TYP1 %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + @{$self->{dimms}} = $self->update_si_with_si(); + } elsif (($h2_dimms == 0) && ($he_dimms > 0) && ($si_dimms > 0)) { + printf "TYP2 %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + @{$self->{dimms}} = $self->update_si_with_he(); + } elsif (($h2_dimms == 0) && ($he_dimms > 0) && ($si_dimms == 0)) { + printf "TYP3 %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + @{$self->{dimms}} = $self->update_he_with_he(); + } elsif (($h2_dimms > 0) && ($he_dimms == 0) && ($si_dimms == 0)) { + printf "TYP4 %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + @{$self->{dimms}} = $self->update_h2_with_h2(); + } elsif (($h2_dimms > 0) && ($he_dimms > 0) && ($si_dimms == 0)) { + printf "TYP5 %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + @{$self->{dimms}} = $self->update_he_with_h2(); + } elsif (($h2_dimms > 0) && ($he_dimms == 0) && ($si_dimms > 0)) { + printf "TYP6 %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + @{$self->{dimms}} = $self->update_si_with_h2(); + } elsif (($h2_dimms > 0) && ($he_dimms > 0) && ($si_dimms > 0)) { + if ($h2_dimms > $si_dimms) { + printf "TYP7 %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + @{$self->{dimms}} = $self->update_he_with_h2(); + } else { + printf "TYP8 %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + @{$self->{dimms}} = $self->update_si_with_he(); + } + } else { + printf "TYPX %s\n", $self->{runtime}->{product} + if ($self->{runtime}->{options}->{verbose} >= 2); + } + my $all_dimms = scalar(@{$self->{dimms}}); + $self->trace(2, sprintf "ALL: %02d", $all_dimms); +} + +sub dump { + my $self = shift; + if ($self->{runtime}->{options}->{verbose} > 2) { + printf "[SI]\n"; + foreach (@{$self->{si_dimms}}) { + $_->dump(); + } + printf "[HE]\n"; + foreach (@{$self->{he_dimms}}) { + $_->dump(); + } + printf "[H2]\n"; + foreach (@{$self->{h2_dimms}}) { + $_->dump(); + } + } + $self->SUPER::dump(); +} + +sub update_si_with_si { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my @dimms = (); + my $repaircondition = undef; + # wenn si keine statusinformationen liefert, dann besteht die chance + # dass ein undokumentiertes he-fragment vorliegt + # 1.3.6.1.4.1.232.6.2.14.11.1.1.0. + my $cpqHeResMemModuleEntry = "1.3.6.1.4.1.232.6.2.14.11.1"; + if (SNMP::Utils::get_size($snmpwalk, $cpqHeResMemModuleEntry) == 1) { + $repaircondition = lc SNMP::Utils::get_object( + $snmpwalk, $cpqHeResMemModuleEntry.'.1.0.'.scalar(@{$self->{si_dimms}})); + # repaircondition 0 (ok) biegt alles wieder gerade + } else { + # anderer versuch + if ($self->{si_overall_condition} && + $self->{si_overall_condition} eq 'ok') { + $repaircondition = 0; + } + } + foreach my $si_dimm (@{$self->{si_dimms}}) { + if (($si_dimm->{condition} eq 'n/a') || + ($si_dimm->{condition} eq 'other')) { + $si_dimm->{condition} = 'ok' if + (defined $repaircondition && $repaircondition == 0); + } + push(@dimms, + HP::Proliant::Component::MemorySubsystem::Dimm->new( + runtime => $si_dimm->{runtime}, + cartridge => $si_dimm->{cartridge}, + module => $si_dimm->{module}, + size => $si_dimm->{size}, + status => $si_dimm->{status}, + condition => $si_dimm->{condition}, + )); + } + return @dimms; +} + +sub update_si_with_he { + my $self = shift; + my @dimms = (); + my $first_si_cartridge = ($self->get_si_boards())[0]; + my $first_he_cartridge = ($self->get_he_boards())[0]; + my $offset = 0; + if (scalar(@{$self->{si_dimms}}) == scalar(@{$self->{he_dimms}})) { + # aufpassen! sowas kann vorkommen: si cartridge 0...6, he cartridge 1...7 + if ($first_si_cartridge != $first_he_cartridge) { + # README case 5 + $offset = $first_si_cartridge - $first_he_cartridge; + } + } elsif ((scalar(@{$self->{si_dimms}}) > 1) && + (scalar(@{$self->{he_dimms}}) == 1)) { + # siehe update_si_with_si. he-fragment + return $self->update_si_with_si(); + } else { + # z.b. 4 si notpresent, 4 si present, 4 he + } + foreach my $si_dimm (@{$self->{si_dimms}}) { + if (($si_dimm->{condition} eq 'n/a') || + ($si_dimm->{condition} eq 'other')) { + if (my $he_dimm = $self->get_he_module( + $si_dimm->{cartridge} - $offset, $si_dimm->{module})) { + # vielleicht hat he mehr ahnung + $si_dimm->{condition} = $he_dimm->{condition}; + if (($si_dimm->{condition} eq 'n/a') || + ($si_dimm->{condition} eq 'other')) { + # wenns immer noch kein brauchbares ergebnis gibt.... + if ($self->{he_overall_condition} && + $self->{he_overall_condition} eq 'ok') { + # wird schon stimmen... + $si_dimm->{condition} = 'ok'; + } else { + # ansonsten stellen wir uns dumm + $si_dimm->{status} = 'notPresent'; + } + } + } else { + # in dem fall zeigt si unbestueckte cartridges an + } + } + push(@dimms, + HP::Proliant::Component::MemorySubsystem::Dimm->new( + runtime => $si_dimm->{runtime}, + cartridge => $si_dimm->{cartridge}, + module => $si_dimm->{module}, + size => $si_dimm->{size}, + status => $si_dimm->{status}, + condition => $si_dimm->{condition}, + )); + } + return @dimms; +} + +sub update_he_with_he { + my $self = shift; + my @dimms = (); + foreach my $he_dimm (@{$self->{he_dimms}}) { + push(@dimms, + HP::Proliant::Component::MemorySubsystem::Dimm->new( + runtime => $he_dimm->{runtime}, + cartridge => $he_dimm->{cartridge}, + module => $he_dimm->{module}, + size => $he_dimm->{size}, + status => $he_dimm->{status}, + condition => $he_dimm->{condition}, + )); + } + return @dimms; +} + +sub update_si_with_h2 { + my $self = shift; + my @dimms = (); + my $first_si_cartridge = ($self->get_si_boards())[0]; + my $first_h2_cartridge = ($self->get_h2_boards())[0]; + my $offset = 0; + if (scalar(@{$self->{si_dimms}}) == scalar(@{$self->{h2_dimms}})) { + # aufpassen! sowas kann vorkommen: si cartridge 0...6, he cartridge 1...7 + if ($first_si_cartridge != $first_h2_cartridge) { + # README case 5 + $offset = $first_si_cartridge - $first_h2_cartridge; + } + } else { + # z.b. 4 si notpresent, 4 si present, 4 he + } + foreach my $si_dimm (@{$self->{si_dimms}}) { + if (($si_dimm->{condition} eq 'n/a') || + ($si_dimm->{condition} eq 'other')) { + if (my $h2_dimm = $self->get_h2_module( + $si_dimm->{cartridge} - $offset, $si_dimm->{module})) { + # vielleicht hat h2 mehr ahnung + $si_dimm->{condition} = $h2_dimm->{condition}; + if (1) { + # ist zwar da, aber irgendwie auskonfiguriert + $si_dimm->{status} = 'notPresent' if $h2_dimm->{status} eq 'other'; + } + } else { + # in dem fall zeigt si unbestueckte cartridges an + } + } + push(@dimms, + HP::Proliant::Component::MemorySubsystem::Dimm->new( + runtime => $si_dimm->{runtime}, + cartridge => $si_dimm->{cartridge}, + module => $si_dimm->{module}, + size => $si_dimm->{size}, + status => $si_dimm->{status}, + condition => $si_dimm->{condition}, + )); + } + return @dimms; +} + +sub update_he_with_h2 { + my $self = shift; + my @dimms = (); + my $first_he_cartridge = ($self->get_he_boards())[0]; + my $first_h2_cartridge = ($self->get_h2_boards())[0]; + my $offset = 0; + # auch hier koennte sowas u.u.vorkommen: he cartridge 0..6, h2 cartridge 1..7 + # ich habs zwar nie gesehen, aber wer weiss... + if ($first_h2_cartridge != $first_he_cartridge) { + $offset = $first_h2_cartridge - $first_he_cartridge; + } + foreach my $he_dimm (@{$self->{he_dimms}}) { + if (($he_dimm->{condition} eq 'n/a') || + ($he_dimm->{condition} eq 'other')) { + if (my $h2_dimm = $self->get_h2_module( + $he_dimm->{cartridge} + $offset, $he_dimm->{module})) { + # vielleicht hat h2 mehr ahnung + $he_dimm->{condition} = $h2_dimm->{condition}; + if (1) { + # ist zwar da, aber irgendwie auskonfiguriert + $he_dimm->{status} = 'notPresent' if $h2_dimm->{status} eq 'other'; + } + } else { + # in dem fall weiss he mehr als h2 + } + } + if ($he_dimm->{size} == 0) { + if (my $h2_dimm = $self->get_h2_module( + $he_dimm->{cartridge} + $offset, $he_dimm->{module})) { + $he_dimm->{size} = $h2_dimm->{size}; + # h2 beinhaltet eine size-oid + } + } + push(@dimms, + HP::Proliant::Component::MemorySubsystem::Dimm->new( + runtime => $he_dimm->{runtime}, + cartridge => $he_dimm->{cartridge}, + module => $he_dimm->{module}, + size => $he_dimm->{size}, + status => $he_dimm->{status}, + condition => $he_dimm->{condition}, + )); + } + return @dimms; +} + +sub update_h2_with_h2 { + my $self = shift; + my @dimms = (); + foreach my $h2_dimm (@{$self->{h2_dimms}}) { + push(@dimms, + HP::Proliant::Component::MemorySubsystem::Dimm->new( + runtime => $h2_dimm->{runtime}, + cartridge => $h2_dimm->{cartridge}, + module => $h2_dimm->{module}, + size => $h2_dimm->{size}, + status => $h2_dimm->{status}, + condition => $h2_dimm->{condition}, + )); + } + return @dimms; +} + +sub is_faulty { + my $self = shift; + if (scalar(@{$self->{si_dimms}}) > 0 && + scalar(@{$self->{he_dimms}}) > 0) { + return $self->si_is_faulty() || $self->he_is_faulty(); + } elsif (scalar(@{$self->{si_dimms}}) > 0 && + scalar(@{$self->{he_dimms}}) == 0) { + return $self->si_is_faulty(); + } elsif (scalar(@{$self->{si_dimms}}) == 0 && + scalar(@{$self->{he_dimms}}) > 0) { + return $self->he_is_faulty(); + } else { + return 0; + } +} + +sub si_is_faulty { + my $self = shift; + return ! defined $self->{si_overall_condition} ? 0 : + $self->{si_overall_condition} eq 'degraded' ? 1 : 0; +} + +sub si_is_ok { + my $self = shift; + return ! defined $self->{si_overall_condition} ? 1 : + $self->{si_overall_condition} eq 'ok' ? 1 : 0; +} + +sub he_is_faulty { + my $self = shift; + return ! defined $self->{he_overall_condition} ? 0 : + $self->{he_overall_condition} eq 'degraded' ? 1 : 0; +} + +sub he_is_ok { + my $self = shift; + return ! defined $self->{he_overall_condition} ? 1 : + $self->{he_overall_condition} eq 'ok' ? 1 : 0; +} + +sub get_si_boards { + my $self = shift; + my %found = (); + foreach (@{$self->{si_dimms}}) { + $found{$_->{cartridge}} = 1; + } + return sort { $a <=> $b } keys %found; +} + +sub get_si_modules { + my $self = shift; + my $board = shift; + my %found = (); + foreach (grep { $_->{cartridge} == $board } @{$self->{si_dimms}}) { + $found{$_->{module}} = 1; + } + return sort { $a <=> $b } keys %found; +} + +sub get_he_boards { + my $self = shift; + my %found = (); + foreach (@{$self->{he_dimms}}) { + $found{$_->{cartridge}} = 1; + } + return sort { $a <=> $b } keys %found; +} + +sub get_he_modules { + my $self = shift; + my $board = shift; + my %found = (); + foreach (grep { $_->{cartridge} == $board } @{$self->{he_dimms}}) { + $found{$_->{module}} = 1; + } + return sort { $a <=> $b } keys %found; +} + +sub get_he_module { + my $self = shift; + my $board = shift; + my $module = shift; + my $found = (grep { $_->{cartridge} == $board && $_->{module} == $module } + @{$self->{he_dimms}})[0]; + return $found; +} + +sub get_h2_boards { + my $self = shift; + my %found = (); + # + foreach (@{$self->{h2_dimms}}) { + $found{$_->{cartridge}} = 1; + } + return sort { $a <=> $b } keys %found; +} + +sub get_h2_modules { + my $self = shift; + my $board = shift; + my %found = (); + foreach (grep { $_->{cartridge} == $board } @{$self->{h2_dimms}}) { + $found{$_->{module}} = 1; + } + return sort { $a <=> $b } keys %found; +} + +sub get_h2_module { + my $self = shift; + my $board = shift; + my $module = shift; + my $found = (grep { $_->{cartridge} == $board && $_->{module} == $module } + @{$self->{h2_dimms}})[0]; + return $found; +} + + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,197 @@ +package HP::Proliant::Component::MemorySubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + dimms => [], + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + return HP::Proliant::Component::MemorySubsystem::SNMP->new(%params); + } elsif ($self->{method} eq 'cli') { + return HP::Proliant::Component::MemorySubsystem::CLI->new(%params); + } else { + die "unknown method"; + } +} + +sub check { + my $self = shift; + my $errorfound = 0; + $self->add_info('checking memory'); + foreach (@{$self->{dimms}}) { + $_->check(); # info ausfuellen + } + if ((scalar(grep { + $_->is_present() && + ($_->{condition} ne 'n/a' && $_->{condition} ne 'other' ) + } @{$self->{dimms}})) != 0) { + foreach (@{$self->{dimms}}) { + if (($_->is_present()) && ($_->{condition} ne 'ok')) { + $_->add_message(CRITICAL, $_->{info}); + $errorfound++; + } + } + } else { + if ($self->{runtime}->{options}->{ignore_dimms}) { + $self->add_message(OK, + sprintf "ignoring %d dimms with status 'n/a' ", + scalar(grep { ($_->is_present()) } @{$self->{dimms}})); + } elsif ($self->{runtime}->{options}->{buggy_firmware}) { + $self->add_message(OK, + sprintf "ignoring %d dimms with status 'n/a' because of buggy firmware", + scalar(grep { ($_->is_present()) } @{$self->{dimms}})); + } else { + $self->add_message(WARNING, + sprintf "status of all %d dimms is n/a (please upgrade firmware)", + scalar(grep { $_->is_present() } @{$self->{dimms}})); + $errorfound++; + } + } + foreach (@{$self->{dimms}}) { + printf "%s\n", $_->{info} if $self->{runtime}->{options}->{verbose} >= 2; + } + if (! $errorfound && $self->is_faulty()) { + #if ($self->is_faulty()) { + $self->add_message(WARNING, + sprintf 'overall memory error found'); + } +} + +sub dump { + my $self = shift; + printf "i dump the memory\n"; + foreach (@{$self->{dimms}}) { + $_->dump(); + } +} + +package HP::Proliant::Component::MemorySubsystem::Dimm; +our @ISA = qw(HP::Proliant::Component::MemorySubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cartridge => $params{cartridge}, + module => $params{module}, + size => $params{size} || 0, + status => $params{status}, + condition => $params{condition}, + type => $params{type}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->{name} = sprintf '%s:%s', + $self->{cartridge}, $self->{module}; + $self->{location} = sprintf 'module %s @ cartridge %s', + $self->{module}, $self->{cartridge}; + return $self; +} + +sub check { + my $self = shift; + # check dient nur dazu, info und extended_info zu fuellen + # die eigentliche bewertung findet eins hoeher statt + $self->blacklist('d', $self->{name}); + if (($self->{status} eq 'present') || ($self->{status} eq 'good')) { + if ($self->{condition} eq 'other') { + $self->add_info(sprintf 'dimm %s (%s) is n/a', + $self->{name}, $self->{location}); + } elsif ($self->{condition} ne 'ok') { + $self->add_info( + sprintf "dimm module %s (%s) needs attention (%s)", + $self->{name}, $self->{location}, $self->{condition}); + } else { + $self->add_info(sprintf 'dimm module %s (%s) is %s', + $self->{name}, $self->{location}, $self->{condition}); + } + } elsif ($self->{status} eq 'notPresent') { + $self->add_info(sprintf 'dimm module %s (%s) is not present', + $self->{name}, $self->{location}); + } else { + $self->add_info( + sprintf "dimm module %s (%s) needs attention (%s)", + $self->{name}, $self->{location}, $self->{condition}); + } +} + +sub is_present { + my $self = shift; + my @signs_of_presence = (qw(present good add upgraded doesnotmatch + notsupported badconfig degraded)); + return scalar(grep { $self->{status} eq $_ } @signs_of_presence); +} + + +sub dump { + my $self = shift; + #printf "[DIMM_%s_%s]\n", $self->{cartridge}, $self->{module}; + #foreach (qw(cartridge module size status condition info)) { + # printf "%s: %s\n", $_, $self->{$_}; + #} + #printf "status: %s\n", $self->{status} if exists $self->{status}; + #printf "\n"; + printf "car %02d mod %02d siz %.0f sta %-12s con %-10s typ %s\n", + $self->{cartridge}, $self->{module}, $self->{size}, + $self->{status}, $self->{condition}, defined $self->{type} ? $self->{type} : ""; +} + + +package HP::Proliant::Component::MemorySubsystem::Cartridge; +our @ISA = qw(HP::Proliant::Component::MemorySubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + cpqHeResMemBoardSlotIndex => $params{cpqHeResMemBoardSlotIndex}, + cpqHeResMemBoardOnlineStatus => $params{cpqHeResMemBoardOnlineStatus}, + cpqHeResMemBoardErrorStatus => $params{cpqHeResMemBoardErrorStatus}, + cpqHeResMemBoardNumSockets => $params{cpqHeResMemBoardNumSockets}, + cpqHeResMemBoardOsMemSize => $params{cpqHeResMemBoardOsMemSize}, + cpqHeResMemBoardTotalMemSize => $params{cpqHeResMemBoardTotalMemSize}, + cpqHeResMemBoardCondition => $params{cpqHeResMemBoardCondition}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + return $self; +} + +sub dump { + my $self = shift; + #printf "[CARTRIDGE_%s_%s]\n", $self->{cpqHeResMemBoardSlotIndex}; + #foreach (qw(cpqHeResMemBoardSlotIndex cpqHeResMemBoardOnlineStatus + # cpqHeResMemBoardErrorStatus cpqHeResMemBoardNumSockets + # cpqHeResMemBoardOsMemSize cpqHeResMemBoardTotalMemSize + # cpqHeResMemBoardCondition)) { + # printf "%s: %s\n", $_, $self->{$_}; + #} + #printf "\n"; +} + + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,189 @@ +package HP::Proliant::Component::NicSubsystem::SNMP; +our @ISA = qw(HP::Proliant::Component::NicSubsystem + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + logical_nics => [], + physical_nics => [], + }; + bless $self, $class; + $self->overall_init(%params); + $self->init(); + return $self; +} + +sub overall_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $self->{rawdata}; + # overall + my $cpqNicIfLogMapOverallCondition = '1.3.6.1.4.1.232.18.2.2.2.0'; + my $cpqNicIfLogMapOverallConditionValue = { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }; + $self->{lognicstatus} = SNMP::Utils::get_object_value( + $snmpwalk, $cpqNicIfLogMapOverallCondition, + $cpqNicIfLogMapOverallConditionValue); +} + +sub init { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my $ifconnect = {}; + # CPQNIC-MIB + my $oids = { + cpqNicIfLogMapEntry => '1.3.6.1.4.1.232.18.2.2.1.1', + cpqNicIfLogMapIndex => '1.3.6.1.4.1.232.18.2.2.1.1.1', + cpqNicIfLogMapIfNumber => '1.3.6.1.4.1.232.18.2.2.1.1.2', + cpqNicIfLogMapDescription => '1.3.6.1.4.1.232.18.2.2.1.1.3', + cpqNicIfLogMapGroupType => '1.3.6.1.4.1.232.18.2.2.1.1.4', + cpqNicIfLogMapAdapterCount => '1.3.6.1.4.1.232.18.2.2.1.1.5', + cpqNicIfLogMapAdapterOKCount => '1.3.6.1.4.1.232.18.2.2.1.1.6', + cpqNicIfLogMapPhysicalAdapters => '1.3.6.1.4.1.232.18.2.2.1.1.7', + cpqNicIfLogMapMACAddress => '1.3.6.1.4.1.232.18.2.2.1.1.8', + cpqNicIfLogMapSwitchoverMode => '1.3.6.1.4.1.232.18.2.2.1.1.9', + cpqNicIfLogMapCondition => '1.3.6.1.4.1.232.18.2.2.1.1.10', + cpqNicIfLogMapStatus => '1.3.6.1.4.1.232.18.2.2.1.1.11', + cpqNicIfLogMapNumSwitchovers => '1.3.6.1.4.1.232.18.2.2.1.1.12', + cpqNicIfLogMapHwLocation => '1.3.6.1.4.1.232.18.2.2.1.1.13', + cpqNicIfLogMapSpeed => '1.3.6.1.4.1.232.18.2.2.1.1.14', + cpqNicIfLogMapVlanCount => '1.3.6.1.4.1.232.18.2.2.1.1.15', + cpqNicIfLogMapVlans => '1.3.6.1.4.1.232.18.2.2.1.1.16', + + cpqNicIfLogMapGroupTypeValue => { + 1 => "unknown", + 2 => "none", + 3 => "redundantPair", + 4 => "nft", + 5 => "alb", + 6 => "fec", + 7 => "gec", + 8 => "ad", + 9 => "slb", + 10 => "tlb", + 11 => "redundancySet", + }, + cpqNicIfLogMapConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqNicIfLogMapStatusValue => { + 1 => "unknown", + 2 => "ok", + 3 => "primaryFailed", + 4 => "standbyFailed", + 5 => "groupFailed", + 6 => "redundancyReduced", + 7 => "redundancyLost", + }, + cpqNicIfLogMapSwitchoverModeValue => { + 1 => "unknown", + 2 => "none", + 3 => "manual", + 4 => "switchOnFail", + 5 => "preferredPrimary", + }, + }; + + # INDEX { cpqNicIfLogMapIndex } + foreach ($self->get_entries($oids, 'cpqNicIfLogMapEntry')) { + push(@{$self->{logical_nics}}, + HP::Proliant::Component::NicSubsystem::LogicalNic->new(%{$_}) + ); + } + + $oids = { + cpqNicIfPhysAdapterEntry => '1.3.6.1.4.1.232.18.2.3.1.1', + cpqNicIfPhysAdapterIndex => '1.3.6.1.4.1.232.18.2.3.1.1.1', + cpqNicIfPhysAdapterIfNumber => '1.3.6.1.4.1.232.18.2.3.1.1.2', + cpqNicIfPhysAdapterRole => '1.3.6.1.4.1.232.18.2.3.1.1.3', + cpqNicIfPhysAdapterMACAddress => '1.3.6.1.4.1.232.18.2.3.1.1.4', + cpqNicIfPhysAdapterSlot => '1.3.6.1.4.1.232.18.2.3.1.1.5', + cpqNicIfPhysAdapterIoAddr => '1.3.6.1.4.1.232.18.2.3.1.1.6', + cpqNicIfPhysAdapterIrq => '1.3.6.1.4.1.232.18.2.3.1.1.7', + cpqNicIfPhysAdapterDma => '1.3.6.1.4.1.232.18.2.3.1.1.8', + cpqNicIfPhysAdapterMemAddr => '1.3.6.1.4.1.232.18.2.3.1.1.9', + cpqNicIfPhysAdapterPort => '1.3.6.1.4.1.232.18.2.3.1.1.10', + cpqNicIfPhysAdapterDuplexState => '1.3.6.1.4.1.232.18.2.3.1.1.11', + cpqNicIfPhysAdapterCondition => '1.3.6.1.4.1.232.18.2.3.1.1.12', + cpqNicIfPhysAdapterState => '1.3.6.1.4.1.232.18.2.3.1.1.13', + cpqNicIfPhysAdapterStatus => '1.3.6.1.4.1.232.18.2.3.1.1.14', + cpqNicIfPhysAdapterStatsValid => '1.3.6.1.4.1.232.18.2.3.1.1.15', + cpqNicIfPhysAdapterGoodTransmits => '1.3.6.1.4.1.232.18.2.3.1.1.16', + cpqNicIfPhysAdapterGoodReceives => '1.3.6.1.4.1.232.18.2.3.1.1.17', + cpqNicIfPhysAdapterBadTransmits => '1.3.6.1.4.1.232.18.2.3.1.1.18', + cpqNicIfPhysAdapterBadReceives => '1.3.6.1.4.1.232.18.2.3.1.1.19', + cpqNicIfPhysAdapterAlignmentErrors => '1.3.6.1.4.1.232.18.2.3.1.1.20', + cpqNicIfPhysAdapterFCSErrors => '1.3.6.1.4.1.232.18.2.3.1.1.21', + cpqNicIfPhysAdapterSingleCollisionFrames => '1.3.6.1.4.1.232.18.2.3.1.1.22', + cpqNicIfPhysAdapterMultipleCollisionFrames => '1.3.6.1.4.1.232.18.2.3.1.1.23', + cpqNicIfPhysAdapterDeferredTransmissions => '1.3.6.1.4.1.232.18.2.3.1.1.24', + cpqNicIfPhysAdapterLateCollisions => '1.3.6.1.4.1.232.18.2.3.1.1.25', + cpqNicIfPhysAdapterExcessiveCollisions => '1.3.6.1.4.1.232.18.2.3.1.1.26', + cpqNicIfPhysAdapterInternalMacTransmitErrors => '1.3.6.1.4.1.232.18.2.3.1.1.27', + cpqNicIfPhysAdapterCarrierSenseErrors => '1.3.6.1.4.1.232.18.2.3.1.1.28', + cpqNicIfPhysAdapterFrameTooLongs => '1.3.6.1.4.1.232.18.2.3.1.1.29', + cpqNicIfPhysAdapterInternalMacReceiveErrors => '1.3.6.1.4.1.232.18.2.3.1.1.30', + cpqNicIfPhysAdapterHwLocation => '1.3.6.1.4.1.232.18.2.3.1.1.31', + cpqNicIfPhysAdapterPartNumber => '1.3.6.1.4.1.232.18.2.3.1.1.32', + cpqNicIfPhysAdapterRoleValue => { + 1 => "unknown", + 2 => "primary", + 3 => "secondary", + 4 => "member", + 5 => "txRx", + 6 => "tx", + 7 => "standby", + 8 => "none", + 255 => "notApplicable", + }, + cpqNicIfPhysAdapterDuplexStateValue => { + 1 => "unknown", + 2 => "half", + 3 => "full", + }, + cpqNicIfPhysAdapterConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqNicIfPhysAdapterStateValue => { + 1 => "unknown", + 2 => "ok", + 3 => "standby", + 4 => "failed", + }, + cpqNicIfPhysAdapterStatusValue => { + 1 => "unknown", + 2 => "ok", + 3 => "generalFailure", + 4 => "linkFailure", + }, + + }; + # INDEX { cpqNicIfPhysAdapterIndex } + foreach ($self->get_entries($oids, 'cpqNicIfPhysAdapterEntry')) { + push(@{$self->{physical_nics}}, + HP::Proliant::Component::NicSubsystem::PhysicalNic->new(%{$_})); + } + +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/NicSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/NicSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/NicSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/NicSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,202 @@ +package HP::Proliant::Component::NicSubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + logical_nics => [], + physical_nics => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + return HP::Proliant::Component::NicSubsystem::SNMP->new(%params); + } elsif ($self->{method} eq 'cli') { + return HP::Proliant::Component::NicSubsystem::CLI->new(%params); + } else { + die "unknown method"; + } + return $self; +} + +sub check { + my $self = shift; + my $errorfound = 0; + $self->add_info('checking nic teams'); + if (scalar (@{$self->{logical_nics}}) == 0) { + $self->add_info('no logical nics found'); + $self->overall_check(); + } else { + foreach (@{$self->{logical_nics}}) { + $_->check(); + } + } + if (scalar (@{$self->{physical_nics}}) == 0) { + $self->add_info('no physical nics found. do you connect with slip?'); + } else { + foreach (@{$self->{physical_nics}}) { + $_->check(); + } + } +} + +sub num_logical_nics { + my $self = shift; + return scalar @{$self->{logical_nics}}; +} + +sub num_physical_nics { + my $self = shift; + return scalar @{$self->{physical_nics}}; +} + +sub dump { + my $self = shift; + foreach (@{$self->{logical_nics}}) { + $_->dump(); + } + foreach (@{$self->{physical_nics}}) { + $_->dump(); + } +} + +sub overall_check { + my $self = shift; + if ($self->{lognicstatus} ne "ok") { + $self->add_info(sprintf 'overall logical nic status is %s', + $self->{lognicstatus}); + } +} + + +package HP::Proliant::Component::NicSubsystem::LogicalNic; +our @ISA = qw(HP::Proliant::Component::NicSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + foreach (qw(cpqNicIfLogMapIndex cpqNicIfLogMapIfNumber cpqNicIfLogMapDescription cpqNicIfLogMapGroupType cpqNicIfLogMapAdapterCount cpqNicIfLogMapAdapterOKCount cpqNicIfLogMapPhysicalAdapters cpqNicIfLogMapSwitchoverMode cpqNicIfLogMapCondition cpqNicIfLogMapStatus cpqNicIfLogMapNumSwitchovers cpqNicIfLogMapHwLocation cpqNicIfLogMapSpeed cpqNicIfLogMapVlanCount cpqNicIfLogMapVlans)) { + $self->{$_} = $params{$_}; + } + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('lni', $self->{cpqNicIfLogMapIndex}); + if ($self->{cpqNicIfLogMapAdapterCount} > 0) { + if ($self->{cpqNicIfLogMapCondition} eq "other") { + # simply ignore this. if there is a physical nic + # it is usually unknown/other/scheissegal + $self->add_info(sprintf "logical nic %d (%s) is %s", + $self->{cpqNicIfLogMapIndex}, $self->{cpqNicIfLogMapDescription}, + $self->{cpqNicIfLogMapCondition}); + } elsif ($self->{cpqNicIfLogMapCondition} ne "ok") { + $self->add_info(sprintf "logical nic %d (%s) is %s (%s)", + $self->{cpqNicIfLogMapIndex}, $self->{cpqNicIfLogMapDescription}, + $self->{cpqNicIfLogMapCondition}, $self->{cpqNicIfLogMapStatus}); + $self->add_message(CRITICAL, $self->{info}); + } else { + $self->add_info(sprintf "logical nic %d (%s) is %s", + $self->{cpqNicIfLogMapIndex}, $self->{cpqNicIfLogMapDescription}, + $self->{cpqNicIfLogMapCondition}); + } + } else { + $self->add_info(sprintf "logical nic %d (%s) has 0 physical nics", + $self->{cpqNicIfLogMapIndex}, $self->{cpqNicIfLogMapDescription}); + } +} + +sub dump { + my $self = shift; + printf "[LNIC_%s]\n", $self->{cpqNicIfLogMapIndex}; + foreach (qw(cpqNicIfLogMapIndex cpqNicIfLogMapIfNumber cpqNicIfLogMapDescription cpqNicIfLogMapAdapterCount cpqNicIfLogMapGroupType cpqNicIfLogMapSwitchoverMode cpqNicIfLogMapCondition cpqNicIfLogMapStatus cpqNicIfLogMapNumSwitchovers cpqNicIfLogMapHwLocation cpqNicIfLogMapSpeed)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n", $self->{info}; + printf "\n"; +} + + +package HP::Proliant::Component::NicSubsystem::PhysicalNic; +our @ISA = qw(HP::Proliant::Component::NicSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + foreach (qw(cpqNicIfPhysAdapterIndex cpqNicIfPhysAdapterIfNumber cpqNicIfPhysAdapterRole cpqNicIfPhysAdapterDuplexState cpqNicIfPhysAdapterCondition cpqNicIfPhysAdapterState cpqNicIfPhysAdapterStatus cpqNicIfPhysAdapterBadTransmits cpqNicIfPhysAdapterBadReceives)) { + $self->{$_} = $params{$_}; + } + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('pni', $self->{cpqNicIfPhysAdapterIndex}); + if ($self->{cpqNicIfPhysAdapterCondition} eq "other") { + # hp doesnt output a clear status. i am optimistic, unknown/other + # means "dont care" + $self->add_info(sprintf "physical nic %d (%s) is %s", + $self->{cpqNicIfPhysAdapterIndex}, $self->{cpqNicIfPhysAdapterRole}, + $self->{cpqNicIfPhysAdapterCondition}); + } elsif ($self->{cpqNicIfPhysAdapterCondition} ne "ok") { + $self->add_info(sprintf "physical nic %d (%s) is %s (%s,%s)", + $self->{cpqNicIfPhysAdapterIndex}, $self->{cpqNicIfPhysAdapterRole}, + $self->{cpqNicIfPhysAdapterCondition}, + $self->{cpqNicIfPhysAdapterState}, $self->{cpqNicIfPhysAdapterStatus}); + $self->add_message(CRITICAL, $self->{info}); + } else { + if ($self->{cpqNicIfPhysAdapterDuplexState} ne "full") { + $self->add_info(sprintf "physical nic %d (%s) is %s duplex", + $self->{cpqNicIfPhysAdapterIndex}, $self->{cpqNicIfPhysAdapterRole}, + $self->{cpqNicIfPhysAdapterDuplexState}); + } else { + $self->add_info(sprintf "physical nic %d (%s) is %s", + $self->{cpqNicIfPhysAdapterIndex}, $self->{cpqNicIfPhysAdapterRole}, + $self->{cpqNicIfPhysAdapterCondition}); + } + } +} + +sub dump { + my $self = shift; + printf "[PNIC_%s]\n", $self->{cpqNicIfPhysAdapterIndex}; + foreach (qw(cpqNicIfPhysAdapterIndex cpqNicIfPhysAdapterIfNumber cpqNicIfPhysAdapterRole cpqNicIfPhysAdapterDuplexState cpqNicIfPhysAdapterCondition cpqNicIfPhysAdapterState cpqNicIfPhysAdapterStatus cpqNicIfPhysAdapterBadTransmits cpqNicIfPhysAdapterBadReceives)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n", $self->{info}; + printf "\n"; +} + + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,81 @@ +package HP::Proliant::Component::PowersupplySubsystem::CLI; +our @ISA = qw(HP::Proliant::Component::PowersupplySubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + powersupplies => [], + powerconverters => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + my %tmpps = ( + runtime => $self->{runtime}, + cpqHeFltTolPowerSupplyChassis => 1, + ); + my $inblock = 0; + foreach (grep(/^powersupply/, split(/\n/, $self->{rawdata}))) { + s/^powersupply\s*//g; + if (/^Power supply #(\d+)/) { + if ($inblock) { + $inblock = 0; + push(@{$self->{powersupplies}}, + HP::Proliant::Component::PowersupplySubsystem::Powersupply->new(%tmpps)); + %tmpps = ( + runtime => $self->{runtime}, + cpqHeFltTolPowerSupplyChassis => 1, + ); + } + $tmpps{cpqHeFltTolPowerSupplyBay} = $1; + $inblock = 1; + } elsif (/\s*Present\s+:\s+(\w+)/) { + $tmpps{cpqHeFltTolPowerSupplyPresent} = lc $1 eq 'yes' ? 'present' : + lc $1 eq 'no' ? 'absent': 'other'; + } elsif (/\s*Redundant\s*:\s+(\w+)/) { + $tmpps{cpqHeFltTolPowerSupplyRedundant} = lc $1 eq 'yes' ? 'redundant' : + lc $1 eq 'no' ? 'notRedundant' : 'other'; + } elsif (/\s*Condition\s*:\s+(\w+)/) { + $tmpps{cpqHeFltTolPowerSupplyCondition} = lc $1; + } elsif (/\s*Power\s*:\s+(\d+)/) { + $tmpps{cpqHeFltTolPowerSupplyCapacityUsed} = $1; + } elsif (/\s*Power Supply not present/) { + $tmpps{cpqHeFltTolPowerSupplyPresent} = "absent"; + $tmpps{cpqHeFltTolPowerSupplyCondition} = "other"; + $tmpps{cpqHeFltTolPowerSupplyRedundant} = "notRedundant"; + } elsif (/^\s*$/) { + if ($inblock) { + $inblock = 0; + push(@{$self->{powersupplies}}, + HP::Proliant::Component::PowersupplySubsystem::Powersupply->new(%tmpps)); + %tmpps = ( + runtime => $self->{runtime}, + cpqHeFltTolPowerSupplyChassis => 1, + ); + } + } + } + if ($inblock) { + push(@{$self->{powersupplies}}, + HP::Proliant::Component::PowersupplySubsystem::Powersupply->new(%tmpps)); + %tmpps = ( + runtime => $params{runtime}, + ); + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,96 @@ +package HP::Proliant::Component::PowersupplySubsystem::SNMP; +our @ISA = qw(HP::Proliant::Component::PowersupplySubsystem + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + powersupplies => [], + powerconverters => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqHeFltTolPowerSupplyEntry => "1.3.6.1.4.1.232.6.2.9.3.1", + cpqHeFltTolPowerSupplyChassis => "1.3.6.1.4.1.232.6.2.9.3.1.1", + cpqHeFltTolPowerSupplyBay => "1.3.6.1.4.1.232.6.2.9.3.1.2", + cpqHeFltTolPowerSupplyPresent => "1.3.6.1.4.1.232.6.2.9.3.1.3", + cpqHeFltTolPowerSupplyCondition => "1.3.6.1.4.1.232.6.2.9.3.1.4", + cpqHeFltTolPowerSupplyRedundant => "1.3.6.1.4.1.232.6.2.9.3.1.9", + cpqHeFltTolPowerSupplyPresentValue => { + 1 => "other", + 2 => "absent", + 3 => "present", + }, + cpqHeFltTolPowerSupplyConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqHeFltTolPowerSupplyCapacityUsed => '1.3.6.1.4.1.232.6.2.9.3.1.7', + cpqHeFltTolPowerSupplyCapacityMaximum => '1.3.6.1.4.1.232.6.2.9.3.1.8', + cpqHeFltTolPowerSupplyRedundantValue => { + 1 => "other", + 2 => "notRedundant", + 3 => "redundant", + }, + }; + + # INDEX { cpqHeFltTolPowerSupplyChassis, cpqHeFltTolPowerSupplyBay } + foreach ($self->get_entries($oids, 'cpqHeFltTolPowerSupplyEntry')) { + push(@{$self->{powersupplies}}, + HP::Proliant::Component::PowersupplySubsystem::Powersupply->new(%{$_})); + } + + $oids = { + cpqHePowerConvEntry => "1.3.6.1.4.1.232.6.2.13.3.1", + cpqHePowerConvChassis => "1.3.6.1.4.1.232.6.2.13.3.1.1", + cpqHePowerConvIndex => "1.3.6.1.4.1.232.6.2.13.3.1.2", + cpqHePowerConvPresent => "1.3.6.1.4.1.232.6.2.13.3.1.3", + cpqHePowerConvRedundant => "1.3.6.1.4.1.232.6.2.13.3.1.6", + cpqHePowerConvCondition => "1.3.6.1.4.1.232.6.2.13.3.1.8", + cpqHePowerConvPresentValue => { + 1 => "other", + 2 => "absent", + 3 => "present", + }, + cpqHePowerConvRedundantValue => { + 1 => "other", + 2 => "notRedundant", + 3 => "redundant", + }, + cpqHePowerConvConditionValue => { + 1 => "other", + 2 => "ok", + 3 => "degraded", + 4 => "failed", + }, + cpqHePowerConvHwLocation => "1.3.6.1.4.1.232.6.2.13.3.1.9", + }; + + # INDEX { cpqHePowerConvChassis cpqHePowerConvIndex } + foreach ($self->get_entries($oids, 'cpqHePowerConvEntry')) { + push(@{$self->{powerconverters}}, + HP::Proliant::Component::PowersupplySubsystem::Powerconverter->new(%{$_})); + } + # keine ahnung, was man damit machen kann + +} + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/PowersupplySubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,214 @@ +package HP::Proliant::Component::PowersupplySubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + powersupplies => [], + powerconverters => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if ($self->{method} eq 'snmp') { + return HP::Proliant::Component::PowersupplySubsystem::SNMP->new(%params); + } elsif ($self->{method} eq 'cli') { + return HP::Proliant::Component::PowersupplySubsystem::CLI->new(%params); + } else { + die "unknown method"; + } + return $self; +} + +sub check { + my $self = shift; + my $errorfound = 0; + $self->add_info('checking power supplies'); + if (scalar (@{$self->{powersupplies}}) == 0) { + #$self->overall_check(); + } else { + foreach (@{$self->{powersupplies}}) { + $_->check(); + } + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{powersupplies}}) { + $_->dump(); + } +} + + +package HP::Proliant::Component::PowersupplySubsystem::Powersupply; +our @ISA = qw(HP::Proliant::Component::PowersupplySubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqHeFltTolPowerSupplyChassis => $params{cpqHeFltTolPowerSupplyChassis}, + cpqHeFltTolPowerSupplyBay => $params{cpqHeFltTolPowerSupplyBay}, + cpqHeFltTolPowerSupplyPresent => $params{cpqHeFltTolPowerSupplyPresent}, + cpqHeFltTolPowerSupplyCondition => $params{cpqHeFltTolPowerSupplyCondition}, + cpqHeFltTolPowerSupplyRedundant => $params{cpqHeFltTolPowerSupplyRedundant}, + cpqHeFltTolPowerSupplyCapacityUsed => $params{cpqHeFltTolPowerSupplyCapacityUsed} || 0, + cpqHeFltTolPowerSupplyCapacityMaximum => $params{cpqHeFltTolPowerSupplyCapacityMaximum} || 0, + blacklisted => 0, + info => undef, + extendexinfo => undef, + }; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('p', $self->{cpqHeFltTolPowerSupplyBay}); + if ($self->{cpqHeFltTolPowerSupplyPresent} eq "present") { + if ($self->{cpqHeFltTolPowerSupplyCondition} ne "ok") { + if ($self->{cpqHeFltTolPowerSupplyCondition} eq "other") { + $self->add_info(sprintf "powersupply %d is missing", + $self->{cpqHeFltTolPowerSupplyBay}); + } else { + $self->add_info(sprintf "powersupply %d needs attention (%s)", + $self->{cpqHeFltTolPowerSupplyBay}, + $self->{cpqHeFltTolPowerSupplyCondition}); + } + $self->add_message(CRITICAL, $self->{info}); + } else { + $self->add_info(sprintf "powersupply %d is %s", + $self->{cpqHeFltTolPowerSupplyBay}, + $self->{cpqHeFltTolPowerSupplyCondition}); + } + $self->add_extendedinfo(sprintf "ps_%s=%s", + $self->{cpqHeFltTolPowerSupplyBay}, + $self->{cpqHeFltTolPowerSupplyCondition}); + if ($self->{cpqHeFltTolPowerSupplyCapacityUsed} && + $self->{cpqHeFltTolPowerSupplyCapacityMaximum}) { + if ($self->{runtime}->{options}->{perfdata}) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf("pc_%s", $self->{cpqHeFltTolPowerSupplyBay}), + value => $self->{cpqHeFltTolPowerSupplyCapacityUsed}, + warning => $self->{cpqHeFltTolPowerSupplyCapacityMaximum}, + critical => $self->{cpqHeFltTolPowerSupplyCapacityMaximum} + ); + } + } elsif ($self->{cpqHeFltTolPowerSupplyCapacityUsed}) { + if ($self->{runtime}->{options}->{perfdata}) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf("pc_%s", $self->{cpqHeFltTolPowerSupplyBay}), + value => $self->{cpqHeFltTolPowerSupplyCapacityUsed} + ); + } + } + } else { + $self->add_info(sprintf "powersupply %d is %s", + $self->{cpqHeFltTolPowerSupplyBay}, + $self->{cpqHeFltTolPowerSupplyPresent}); + $self->add_extendedinfo(sprintf "ps_%s=%s", + $self->{cpqHeFltTolPowerSupplyBay}, + $self->{cpqHeFltTolPowerSupplyPresent}); + } +} + + +sub dump { + my $self = shift; + printf "[PS_%s]\n", $self->{cpqHeFltTolPowerSupplyBay}; + foreach (qw(cpqHeFltTolPowerSupplyBay cpqHeFltTolPowerSupplyChassis + cpqHeFltTolPowerSupplyPresent cpqHeFltTolPowerSupplyCondition + cpqHeFltTolPowerSupplyRedundant cpqHeFltTolPowerSupplyCapacityUsed + cpqHeFltTolPowerSupplyCapacityMaximum)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n\n", $self->{info}; +} + + +package HP::Proliant::Component::PowersupplySubsystem::Powerconverter; +our @ISA = qw(HP::Proliant::Component::PowersupplySubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + + cpqHePowerConvEntry => $params{cpqHePowerConvEntry}, + cpqHePowerConvChassis => $params{cpqHePowerConvChassis}, + cpqHePowerConvIndex => $params{cpqHePowerConvIndex}, + cpqHePowerConvPresent => $params{cpqHePowerConvPresent}, + cpqHePowerConvRedundant => $params{cpqHePowerConvRedundant}, + cpqHePowerConvCondition => $params{cpqHePowerConvCondition}, + cpqHePowerConvHwLocation => $params{cpqHePowerConvHwLocation}, + blacklisted => 0, + info => undef, + extendexinfo => undef, + }; + bless $self, $class; + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('pc', $self->{cpqHePowerConvIndex}); + if ($self->{cpqHePowerConvPresent} eq "present") { + if ($self->{cpqHePowerConvCondition} ne "ok") { + if ($self->{cpqHePowerConvCondition} eq "other") { + $self->add_info(sprintf "powerconverter %d is missing", + $self->{cpqHePowerConvIndex}); + } else { + $self->add_info(sprintf "powerconverter %d needs attention (%s)", + $self->{cpqHePowerConvIndex}, + $self->{cpqHePowerConvCondition}); + } + $self->add_message(CRITICAL, $self->{info}); + } else { + $self->add_info(sprintf "powerconverter %d is %s", + $self->{cpqHePowerConvIndex}, + $self->{cpqHePowerConvCondition}); + } + $self->add_extendedinfo(sprintf "pc_%s=%s", + $self->{cpqHePowerConvIndex}, + $self->{cpqHePowerConvCondition}); + } else { + $self->add_info(sprintf "powerconverter %d is %s", + $self->{cpqHePowerConvIndex}, + $self->{cpqHePowerConvPresent}); + $self->add_extendedinfo(sprintf "pc_%s=%s", + $self->{cpqHePowerConvIndex}, + $self->{cpqHePowerConvPresent}); + } +} + + +sub dump { + my $self = shift; + printf "[PS_%s]\n", ($self->{cpqHePowerConvChassis} ? $self->{cpqHePowerConvChassis}.":" : "").$self->{cpqHePowerConvIndex}; + foreach (qw(cpqHePowerConvIndex cpqHePowerConvPresent cpqHePowerConvRedundant cpqHePowerConvCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n\n", $self->{info}; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,67 @@ +package HP::Proliant::Component::SNMP; + +sub get_entries { + my $self = shift; + my $oids = shift; + my $entry = shift; + my $snmpwalk = $self->{rawdata}; + my @params = (); + my @indices = SNMP::Utils::get_indices($snmpwalk, $oids->{$entry}); + foreach (@indices) { + my @idx = @{$_}; + my %params = ( + runtime => $self->{runtime}, + ); + my $maxdimension = scalar(@idx) - 1; + foreach my $idxnr (1..scalar(@idx)) { + $params{'index'.$idxnr} = $_->[$idxnr - 1]; + } + foreach my $oid (keys %{$oids}) { + next if $oid =~ /Entry$/; + next if $oid =~ /Value$/; + if (exists $oids->{$oid.'Value'}) { + $params{$oid} = SNMP::Utils::get_object_value( + $snmpwalk, $oids->{$oid}, $oids->{$oid.'Value'}, @idx); + if (! defined $params{$oid}) { + my $numerical_value = SNMP::Utils::get_object( + $snmpwalk, $oids->{$oid}, @idx); + if (! defined $numerical_value) { + # maschine liefert schrott + $params{$oid} = 'value_unknown'; + } else { + $params{$oid} = 'value_'.SNMP::Utils::get_object( + $snmpwalk, $oids->{$oid}, @idx); + } + } + } else { + $params{$oid} = SNMP::Utils::get_object( + $snmpwalk, $oids->{$oid}, @idx); + } + } + push(@params, \%params); + } + return @params; +} + +sub mib { + my $self = shift; + my $mib = shift; + my $condition = { + 0 => 'other', + 1 => 'ok', + 2 => 'degraded', + 3 => 'failed', + }; + my $MibRevMajor = $mib.'.1.0'; + my $MibRevMinor = $mib.'.2.0'; + my $MibRevCondition = $mib.'.3.0'; + return ( + $self->SNMP::Utils::get_object($self->{rawdata}, + $MibRevMajor), + $self->SNMP::Utils::get_object($self->{rawdata}, + $MibRevMinor), + $self->SNMP::Utils::get_object_value($self->{rawdata}, + $MibRevCondition, $condition)); +}; + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/CLI.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/CLI.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/CLI.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/CLI.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,56 @@ +package HP::Proliant::Component::TemperatureSubsystem::CLI; +our @ISA = qw(HP::Proliant::Component::TemperatureSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + temperatures => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + my $tempcnt = 1; + foreach (grep(/^temp/, split(/\n/, $params{rawdata}))) { + s/^temp\s*//g; + if (/^#(\d+)\s+([\w_\/\-#]+)\s+(-*\d+)C\/(\d+)F\s+(\d+)C\/(\d+)F/) { + my %params = (); + $params{runtime} = $self->{runtime}; + $params{cpqHeTemperatureChassis} = 1; + $params{cpqHeTemperatureIndex} = $1; + $params{cpqHeTemperatureLocale} = lc $2; + $params{cpqHeTemperatureCelsius} = $3; + $params{cpqHeTemperatureThresholdCelsius} = $5; + $params{cpqHeTemperatureCondition} = 'unknown'; + push(@{$self->{temperatures}}, + HP::Proliant::Component::TemperatureSubsystem::Temperature->new( + %params)); + } elsif (/^#(\d+)\s+([\w_\/\-#]+)\s+\-\s+(\d+)C\/(\d+)F/) { + # #3 CPU#2 - 0C/0F + $self->trace(2, sprintf "skipping temperature %s", $_); + } elsif (/^#(\d+)\s+([\w_\/\-#]+)\s+(\d+)C\/(\d+)F\s+\-/) { + # #3 CPU#2 0C/0F - + $self->trace(2, sprintf "skipping temperature %s", $_); + } elsif (/^#(\d+)\s+([\w_\/\-#]+)\s+\-\s+\-/) { + # #3 CPU#2 - - + $self->trace(2, sprintf "skipping temperature %s", $_); + } elsif (/^#(\d+)/) { + $self->trace(0, sprintf "send this to lausser: %s", $_); + } + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/SNMP.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,119 @@ +package HP::Proliant::Component::TemperatureSubsystem::SNMP; +our @ISA = qw(HP::Proliant::Component::TemperatureSubsystem + HP::Proliant::Component::SNMP); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + temperatures => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + $self->overall_init(%params); + $self->init(%params); + return $self; +} + +sub overall_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $params{rawdata}; + # overall + my $cpqHeThermalTempStatus = '1.3.6.1.4.1.232.6.2.6.3.0'; + my $cpqHeThermalTempStatusValue = { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }; + $self->{tempstatus} = lc SNMP::Utils::get_object_value( + $snmpwalk, $cpqHeThermalTempStatus, + $cpqHeThermalTempStatusValue); + $self->{tempstatus} |= lc $self->{tempstatus}; +} + +sub init { + my $self = shift; + my %params = @_; + my $snmpwalk = $self->{rawdata}; + my $oids = { + cpqHeTemperatureEntry => "1.3.6.1.4.1.232.6.2.6.8.1", + cpqHeTemperatureChassis => "1.3.6.1.4.1.232.6.2.6.8.1.1", + cpqHeTemperatureIndex => "1.3.6.1.4.1.232.6.2.6.8.1.2", + cpqHeTemperatureLocale => "1.3.6.1.4.1.232.6.2.6.8.1.3", + cpqHeTemperatureCelsius => "1.3.6.1.4.1.232.6.2.6.8.1.4", + cpqHeTemperatureThresholdCelsius => "1.3.6.1.4.1.232.6.2.6.8.1.5", + cpqHeTemperatureCondition => "1.3.6.1.4.1.232.6.2.6.8.1.6", + cpqHeTemperatureThresholdType => "1.3.6.1.4.1.232.6.2.6.8.1.7", + cpqHeTemperatureLocaleValue => { + 1 => "other", + 2 => "unknown", + 3 => "system", + 4 => "systemBoard", + 5 => "ioBoard", + 6 => "cpu", + 7 => "memory", + 8 => "storage", + 9 => "removableMedia", + 10 => "powerSupply", + 11 => "ambient", + 12 => "chassis", + 13 => "bridgeCard", + }, + cpqHeTemperatureConditionValue => { + 1 => 'other', + 2 => 'ok', + 3 => 'degraded', + 4 => 'failed', + }, + cpqHeTemperatureThresholdTypeValue => { + 1 => 'other', + 5 => 'blowout', + 9 => 'caution', + 15 => 'critical', + }, + }; + # INDEX { cpqHeTemperatureChassis, cpqHeTemperatureIndex } + foreach ($self->get_entries($oids, 'cpqHeTemperatureEntry')) { + # sieht aus, als wurden die gar nicht existieren. + # im ilo4 werden sie als n/a angezeigt + next if $_->{cpqHeTemperatureThresholdType} eq "caution" && $_->{cpqHeTemperatureThresholdCelsius} == 0; + push(@{$self->{temperatures}}, + HP::Proliant::Component::TemperatureSubsystem::Temperature->new(%{$_})); + } +} + +sub overall_check { + my $self = shift; + my $result = 0; + $self->blacklist('ots', ''); + if ($self->{tempstatus}) { + if ($self->{tempstatus} eq "ok") { + $result = 0; + $self->add_info('all temp sensors are within normal operating range'); + } elsif ($self->{tempstatus} eq "degraded") { + $result = 1; + $self->add_info('a temp sensor is outside of normal operating range'); + } elsif ($self->{tempstatus} eq "failed") { + $result = 2; + $self->add_info('a temp sensor detects a condition that could permanently +damage the system'); + } elsif ($self->{tempstatus} eq "other") { + $result = 0; + $self->add_info('temp sensing is not supported by this system or driver'); + } + } else { + $result = 0; + $self->add_info('no global temp status found'); + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component/TemperatureSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,205 @@ +package HP::Proliant::Component::TemperatureSubsystem; +our @ISA = qw(HP::Proliant::Component); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; +################################## custom_thresholds + my %params = @_; + my $self = { + runtime => $params{runtime}, + rawdata => $params{rawdata}, + method => $params{method}, + condition => $params{condition}, + status => $params{status}, + temperatures => [], + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if ($params{runtime}->{options}->{customthresholds}) { + if (-f $params{runtime}->{options}->{customthresholds}) { + $params{runtime}->{options}->{customthresholds} = + do { local (@ARGV, $/) = + $params{runtime}->{options}->{customthresholds}; <> }; + } + foreach my $ct_items + (split(/\//, $params{runtime}->{options}->{customthresholds})) { + if ($ct_items =~ /^(\d+):(\d+)$/) { + $params{runtime}->{options}->{thresholds}->{$1} = $2; + } else { + die sprintf "invalid threshold %s", $ct_items; + } + } + } + if ($self->{method} eq 'snmp') { + return HP::Proliant::Component::TemperatureSubsystem::SNMP->new(%params); + } elsif ($self->{method} eq 'cli') { + return HP::Proliant::Component::TemperatureSubsystem::CLI->new(%params); + } else { + die "unknown method"; + } + return $self; +} + +sub check { + my $self = shift; + my $errorfound = 0; + $self->add_info('checking temperatures'); + if (scalar (@{$self->{temperatures}}) == 0) { + #$self->overall_check(); + $self->add_info('no temperatures found'); + } else { + foreach (sort { $a->{cpqHeTemperatureIndex} <=> $b->{cpqHeTemperatureIndex}} + @{$self->{temperatures}}) { + $_->check(); + } + } +} + +sub dump { + my $self = shift; + foreach (@{$self->{temperatures}}) { + $_->dump(); + } +} + + +package HP::Proliant::Component::TemperatureSubsystem::Temperature; +our @ISA = qw(HP::Proliant::Component::TemperatureSubsystem); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + cpqHeTemperatureChassis => $params{cpqHeTemperatureChassis}, + cpqHeTemperatureIndex => $params{cpqHeTemperatureIndex}, + cpqHeTemperatureLocale => $params{cpqHeTemperatureLocale}, + cpqHeTemperatureCelsius => $params{cpqHeTemperatureCelsius}, + cpqHeTemperatureThresholdCelsius => $params{cpqHeTemperatureThresholdCelsius}, + cpqHeTemperatureCondition => $params{cpqHeTemperatureCondition}, + cpqHeTemperatureThresholdType => $params{cpqHeTemperatureThresholdType} || "unknown", + blacklisted => 0, + info => undef, + extendedinfo => undef, + }; + bless $self, $class; + if ($params{runtime}->{options}->{celsius}) { + $self->{cpqHeTemperatureUnits} = 'C'; + $self->{cpqHeTemperature} = $self->{cpqHeTemperatureCelsius}; + $self->{cpqHeTemperatureThreshold} = + $self->{cpqHeTemperatureThresholdCelsius}; + } else { + $self->{cpqHeTemperatureUnits} = 'F'; + $self->{cpqHeTemperature} = + (($self->{cpqHeTemperatureCelsius} * 9) / 5) + 32; + $self->{cpqHeTemperatureThreshold} = + (($self->{cpqHeTemperatureThresholdCelsius} * 9) / 5) + 32; + } + my $index = $self->{cpqHeTemperatureIndex}; + if (exists $params{runtime}->{options}->{thresholds}->{$index}) { + $self->{cpqHeTemperatureThreshold} = + $params{runtime}->{options}->{thresholds}->{$index}; + + } + if ($self->{cpqHeTemperatureThresholdCelsius} == -99) { + bless $self, 'HP::Proliant::Component::TemperatureSubsystem::SoSTemperature'; + } elsif ($self->{cpqHeTemperatureThresholdCelsius} == 0) { + # taucht auf, seit man gen8 ueber das ilo abfragen kann + bless $self, 'HP::Proliant::Component::TemperatureSubsystem::SoSTemperature'; + } + return $self; +} + +sub check { + my $self = shift; + $self->blacklist('t', $self->{cpqHeTemperatureIndex}); + if ($self->{cpqHeTemperature} > $self->{cpqHeTemperatureThreshold}) { + $self->add_info(sprintf "%d %s temperature too high (%d%s, %d max)", + $self->{cpqHeTemperatureIndex}, $self->{cpqHeTemperatureLocale}, + $self->{cpqHeTemperature}, $self->{cpqHeTemperatureUnits}, + $self->{cpqHeTemperatureThreshold}); + $self->add_message(CRITICAL, $self->{info}); + } elsif ($self->{cpqHeTemperature} < 0) { + # #21 SCSI_BACKPLANE_ZONE -1C/31F 60C/140F OK - can't be true + $self->add_info(sprintf "%d %s temperature too low (%d%s)", + $self->{cpqHeTemperatureIndex}, $self->{cpqHeTemperatureLocale}, + $self->{cpqHeTemperature}, $self->{cpqHeTemperatureUnits}); + $self->add_message(CRITICAL, $self->{info}); + } else { + $self->add_info(sprintf "%d %s temperature is %d%s (%d max)", + $self->{cpqHeTemperatureIndex}, $self->{cpqHeTemperatureLocale}, + $self->{cpqHeTemperature}, $self->{cpqHeTemperatureUnits}, + $self->{cpqHeTemperatureThreshold}); + } + if ($self->{runtime}->{options}->{perfdata} == 2) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('temp_%s', $self->{cpqHeTemperatureIndex}), + value => $self->{cpqHeTemperature}, + warning => $self->{cpqHeTemperatureThreshold}, + critical => $self->{cpqHeTemperatureThreshold} + ); + } elsif ($self->{runtime}->{options}->{perfdata} == 1) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('temp_%s_%s', $self->{cpqHeTemperatureIndex}, + $self->{cpqHeTemperatureLocale}), + value => $self->{cpqHeTemperature}, + warning => $self->{cpqHeTemperatureThreshold}, + critical => $self->{cpqHeTemperatureThreshold} + ); + } + $self->add_extendedinfo(sprintf "temp_%s=%d", + $self->{cpqHeTemperatureIndex}, + $self->{cpqHeTemperature}); +} + +sub dump { + my $self = shift; + printf "[TEMP_%s]\n", $self->{cpqHeTemperatureIndex}; + foreach (qw(cpqHeTemperatureChassis cpqHeTemperatureIndex + cpqHeTemperatureLocale cpqHeTemperatureCelsius cpqHeTemperatureThreshold + cpqHeTemperatureThresholdType cpqHeTemperatureCondition)) { + printf "%s: %s\n", $_, $self->{$_}; + } + printf "info: %s\n\n", $self->{info}; +} + + +package HP::Proliant::Component::TemperatureSubsystem::SoSTemperature; +our @ISA = qw(HP::Proliant::Component::TemperatureSubsystem::Temperature); + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub check { + my $self = shift; + $self->blacklist('t', $self->{cpqHeTemperatureIndex}); + $self->add_info(sprintf "%d %s temperature is %d%s (no thresh.)", + $self->{cpqHeTemperatureIndex}, $self->{cpqHeTemperatureLocale}, + $self->{cpqHeTemperature}, $self->{cpqHeTemperatureUnits}); + if ($self->{runtime}->{options}->{perfdata} == 2) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('temp_%s', $self->{cpqHeTemperatureIndex}), + value => $self->{cpqHeTemperature}, + ); + } elsif ($self->{runtime}->{options}->{perfdata} == 1) { + $self->{runtime}->{plugin}->add_perfdata( + label => sprintf('temp_%s_%s', $self->{cpqHeTemperatureIndex}, + $self->{cpqHeTemperatureLocale}), + value => $self->{cpqHeTemperature}, + ); + } + $self->add_extendedinfo(sprintf "temp_%s=%d", + $self->{cpqHeTemperatureIndex}, + $self->{cpqHeTemperature}); +} + +1; + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant/Component.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,5 @@ +package HP::Proliant::Component; +our @ISA = qw(HP::Proliant); + +1; + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Proliant.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,734 @@ +package HP::Proliant; + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; +use Data::Dumper; + +our @ISA = qw(HP::Server); + +sub init { + my $self = shift; + $self->{components} = { + powersupply_subsystem => undef, + fan_subsystem => undef, + temperature_subsystem => undef, + cpu_subsystem => undef, + memory_subsystem => undef, + nic_subsystem => undef, + disk_subsystem => undef, + asr_subsystem => undef, + event_subsystem => undef, + }; + $self->{serial} = 'unknown'; + $self->{product} = 'unknown'; + $self->{romversion} = 'unknown'; + $self->collect(); + if (! $self->{runtime}->{plugin}->check_messages() && + ! exists $self->{noinst_hint}) { + $self->set_serial(); + $self->check_for_buggy_firmware(); + $self->analyze_cpus(); + $self->analyze_powersupplies(); + $self->analyze_fan_subsystem(); + $self->analyze_temperatures(); + $self->analyze_memory_subsystem(); + $self->analyze_nic_subsystem(); + $self->analyze_disk_subsystem(); + $self->analyze_asr_subsystem(); + $self->analyze_event_subsystem(); + $self->auto_blacklist(); + $self->check_cpus(); + $self->check_powersupplies(); + $self->check_fan_subsystem(); + $self->check_temperatures(); + $self->check_memory_subsystem(); + $self->check_nic_subsystem(); + $self->check_disk_subsystem(); + $self->check_asr_subsystem(); + $self->check_event_subsystem(); + } +} + +sub identify { + my $self = shift; + foreach (qw(product serial romversion)) { + $self->{$_} =~ s/^\s+//; + $self->{$_} =~ s/\s+$//; + } + return sprintf "System: '%s', S/N: '%s', ROM: '%s'", + $self->{product}, $self->{serial}, $self->{romversion}; +} + +sub check_for_buggy_firmware { + my $self = shift; + my @buggyfirmwares = ( + "P24 12/11/2001", + "P24 11/15/2002", + "D13 06/03/2003", + "D13 09/15/2004", + "P20 12/17/2002" + ); + if ($self->{romversion} =~ /^\w+ \d+\/\d+\/\d+$/) { + $self->{runtime}->{options}->{buggy_firmware} = + grep /^$self->{romversion}/, @buggyfirmwares; + } else { + # nicht parsbarer schrott in cpqSeSysRomVer, gesehen bei Gen9 + $self->{runtime}->{options}->{buggy_firmware} = undef; + } +} + +sub dump { + my $self = shift; + printf STDERR "serial %s\n", $self->{serial}; + printf STDERR "product %s\n", $self->{product}; + printf STDERR "romversion %s\n", $self->{romversion}; + printf STDERR "%s\n", Data::Dumper::Dumper($self->{components}); +} + +sub analyze_powersupplies { + my $self = shift; + $self->{components}->{powersupply_subsystem} = + HP::Proliant::Component::PowersupplySubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_fan_subsystem { + my $self = shift; + $self->{components}->{fan_subsystem} = + HP::Proliant::Component::FanSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_temperatures { + my $self = shift; + $self->{components}->{temperature_subsystem} = + HP::Proliant::Component::TemperatureSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_cpus { + my $self = shift; + $self->{components}->{cpu_subsystem} = + HP::Proliant::Component::CpuSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_memory_subsystem { + my $self = shift; + $self->{components}->{memory_subsystem} = + HP::Proliant::Component::MemorySubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_nic_subsystem { + my $self = shift; + return if $self->{method} ne "snmp"; + $self->{components}->{nic_subsystem} = + HP::Proliant::Component::NicSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_disk_subsystem { + my $self = shift; + $self->{components}->{disk_subsystem} = + HP::Proliant::Component::DiskSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_asr_subsystem { + my $self = shift; + $self->{components}->{asr_subsystem} = + HP::Proliant::Component::AsrSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_event_subsystem { + my $self = shift; + $self->{components}->{event_subsystem} = + HP::Proliant::Component::EventSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub check_cpus { + my $self = shift; + $self->{components}->{cpu_subsystem}->check(); + $self->{components}->{cpu_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_powersupplies { + my $self = shift; + $self->{components}->{powersupply_subsystem}->check(); + $self->{components}->{powersupply_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_fan_subsystem { + my $self = shift; + $self->{components}->{fan_subsystem}->check(); + $self->{components}->{fan_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_temperatures { + my $self = shift; + $self->{components}->{temperature_subsystem}->check(); + $self->{components}->{temperature_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_memory_subsystem { + my $self = shift; + $self->{components}->{memory_subsystem}->check(); + $self->{components}->{memory_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_nic_subsystem { + my $self = shift; + return if $self->{method} ne "snmp"; + if ($self->{runtime}->{plugin}->{opts}->get('eval-nics')) { + $self->{components}->{nic_subsystem}->check(); + $self->{components}->{nic_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; + } +} +sub check_disk_subsystem { + my $self = shift; + $self->{components}->{disk_subsystem}->check(); + $self->{components}->{disk_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; + # zum anhaengen an die normale ausgabe... da: 2 logical drives, 5 physical... + $self->{runtime}->{plugin}->add_message(OK, + $self->{components}->{disk_subsystem}->{summary}) + if $self->{components}->{disk_subsystem}->{summary}; +} + +sub check_asr_subsystem { + my $self = shift; + $self->{components}->{asr_subsystem}->check(); + $self->{components}->{asr_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_event_subsystem { + my $self = shift; + $self->{components}->{event_subsystem}->check(); + $self->{components}->{event_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub auto_blacklist() { + my $self = shift; + if ($self->{product} =~ /380 g6/) { + # http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c01723408/c01723408.pdf seite 19 + if ($self->{components}->{cpu_subsystem}->num_cpus() == 1) { + $self->add_blacklist('ff/f:5,6'); + } + } elsif ($self->{product} =~ /380 g6/) { + # http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c01704762/c01704762.pdf Fan 2 is only required when processor 2 is installed in the server. + } +} + + +package HP::Proliant::CLI; + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +our @ISA = qw(HP::Proliant); + +sub collect { + my $self = shift; + my $hpasmcli = undef; + if (($self->{runtime}->{plugin}->opts->hpasmcli) && + (-f $self->{runtime}->{plugin}->opts->hpasmcli) && + (! -x $self->{runtime}->{plugin}->opts->hpasmcli)) { + no strict 'refs'; + open(BIRK, $self->{runtime}->{plugin}->opts->hpasmcli); + # all output in one file prefixed with server|powersupply|fans|temp|dimm + while() { + chomp; + $self->{rawdata} .= $_."\n"; + } + close BIRK; + # If you run this script and redirect it's output to a file + # you can use it for testing purposes with + # --hpasmcli + # It must not be executable. (chmod 644) + my $diag = <<'EOEO'; + hpasmcli=$(which hpasmcli) + hpacucli=$(which hpacucli) + for i in server powersupply fans temp dimm + do + $hpasmcli -s "show $i" | while read line + do + printf "%s %s\n" $i "$line" + done + done + if [ -x "$hpacucli" ]; then + for i in config status + do + $hpacucli ctrl all show $i | while read line + do + printf "%s %s\n" $i "$line" + done + done + fi +EOEO + } else { + #die "exec hpasmcli"; + # alles einsammeln und in rawdata stecken + my $hpasmcli = undef; + $hpasmcli = $self->{runtime}->{plugin}->opts->hpasmcli ? + $self->{runtime}->{plugin}->opts->hpasmcli : '/sbin/hpasmcli'; +# check if this exists at all +# descend the directory + if ($self->{runtime}->{plugin}->opts->hpasmcli && + -e $self->{runtime}->{plugin}->opts->hpasmcli) { + $hpasmcli = $self->{runtime}->{plugin}->opts->hpasmcli; + } elsif (-e '/sbin/hpasmcli') { + $hpasmcli = '/sbin/hpasmcli'; + } else { + $hpasmcli = undef; + } + if ($hpasmcli) { + if ($< != 0) { + close STDIN; + $hpasmcli = "sudo -S ".$hpasmcli; + } + $self->trace(2, sprintf "calling %s\n", $hpasmcli); + $self->check_daemon(); + if (! $self->{runtime}->{plugin}->check_messages()) { + $self->check_hpasm_client($hpasmcli); + if (! $self->{runtime}->{plugin}->check_messages()) { + foreach my $component (qw(server fans temp dimm powersupply iml)) { + if (open HPASMCLI, "$hpasmcli -s \"show $component\" ; + close HPASMCLI; + $self->{rawdata} .= join("\n", map { + $component.' '.$_; + } @output); + } + } + if ($self->{runtime}->{options}->{hpacucli}) { + #1 oder 0. pfad selber finden + my $hpacucli = undef; + if (-e '/usr/sbin/hpacucli') { + $hpacucli = '/usr/sbin/hpacucli'; + } elsif (-e '/usr/local/sbin/hpacucli') { + $hpacucli = '/usr/local/sbin/hpacucli'; + } else { + $hpacucli = $hpasmcli; + $hpacucli =~ s/^sudo\s*//; + $hpacucli =~ s/hpasmcli/hpacucli/; + $hpacucli = -e $hpacucli ? $hpacucli : undef; + } + if ($hpacucli) { + if ($< != 0) { + close STDIN; + $hpacucli = "sudo -S ".$hpacucli; + } + $self->trace(2, sprintf "calling %s\n", $hpacucli); + $self->check_hpacu_client($hpacucli); + if (! $self->{runtime}->{plugin}->check_messages()) { + if (open HPACUCLI, "$hpacucli ctrl all show status 2>&1|") { + my @output = ; + close HPACUCLI; + $self->{rawdata} .= join("\n", map { + 'status '.$_; + } @output); + } + if (open HPACUCLI, "$hpacucli ctrl all show config 2>&1|") { + my @output = ; + close HPACUCLI; + $self->{rawdata} .= join("\n", map { + 'config '.$_; + } @output); + if (grep /Syntax error at "config"/, @output) { + # older version of hpacucli CLI 7.50.18.0 + foreach my $slot (0..10) { + if (open HPACUCLI, "$hpacucli ctrl slot=$slot logicaldrive all show 2>&1|") { + my @output = ; + close HPACUCLI; + $self->{rawdata} .= join("\n", map { + 'config '.$_; + } @output); + } + if (open HPACUCLI, "$hpacucli ctrl slot=$slot physicaldrive all show 2>&1|") { + my @output = ; + close HPACUCLI; + $self->{rawdata} .= join("\n", map { + 'config '.$_; + } @output); + } + } + } + } + } elsif ($self->{runtime}->{options}->{hpacucli} == 2) { + # we probably don't have sudo-privileges, but we were compiled with + # --enable-hpacucli=maybe + # so we cover it up in silence + $self->remove_message(UNKNOWN); + $self->trace(2, sprintf "calling %s seems to have failed, but nobody cares\n", $hpacucli); + } + } else { + if ($self->{runtime}->{options}->{noinstlevel} eq 'ok') { + $self->add_message(OK, + 'hpacucli is not installed. let\'s hope the best...'); + } else { + $self->add_message( + uc $self->{runtime}->{options}->{noinstlevel}, + 'hpacucli is not installed.'); + } + } + } + } + } + } else { + if ($self->{runtime}->{options}->{noinstlevel} eq 'ok') { + $self->add_message(OK, + 'hpasm is not installed, i can only guess'); + $self->{noinst_hint} = 1; + } else { + $self->add_message( + uc $self->{runtime}->{options}->{noinstlevel}, + 'hpasmcli is not installed.'); + } + } + } +} + + +sub check_daemon { + my $self = shift; + my $multiproc_os_signatures_files = { + '/etc/SuSE-release' => 'VERSION\s*=\s*8', + '/etc/trustix-release' => '.*', + '/etc/redhat-release' => '.*Pensacola.*', + '/etc/debian_version' => '3\.1', + '/etc/issue' => '.*Kernel 2\.4\.9-vmnix2.*', # VMware ESX Server 2.5.4 + }; + if (open PS, "/bin/ps -e -ocmd|") { + my $numprocs = 0; + my $numcliprocs = 0; + my @procs = ; + close PS; + $numprocs = grep /hpasm.*d$/, map { (split /\s+/, $_)[0] } @procs; + $numcliprocs = grep /hpasmcli/, grep !/check_hpasm/, @procs; + if (! $numprocs ) { + $self->add_message(CRITICAL, 'hpasmd needs to be restarted'); + } elsif ($numprocs > 1) { + my $known = 0; + foreach my $osfile (keys %{$multiproc_os_signatures_files}) { + if (-f $osfile) { + open OSSIG, $osfile; + if (grep /$multiproc_os_signatures_files->{$osfile}/, ) { + $known = 1; + } + close OSSIG; + } + } + if (! $known) { + $self->add_message(UNKNOWN, 'multiple hpasmd procs'); + } + } + if ($numcliprocs == 1) { + $self->add_message(UNKNOWN, 'another hpasmcli is running'); + } elsif ($numcliprocs > 1) { + $self->add_message(UNKNOWN, 'hanging hpasmcli processes'); + } + } +} + +sub check_hpasm_client { + my $self = shift; + my $hpasmcli = shift; + if (open HPASMCLI, "$hpasmcli -s help 2>&1 |") { + my @output = ; + close HPASMCLI; + if (grep /Could not communicate with hpasmd/, @output) { + $self->add_message(CRITICAL, 'hpasmd needs to be restarted'); + } elsif (grep /(asswor[dt]:)|(You must be root)/, @output) { + $self->add_message(UNKNOWN, + sprintf "insufficient rights to call %s", $hpasmcli); + } elsif (grep /must have a tty/, @output) { + $self->add_message(CRITICAL, + 'sudo must be configured with requiretty=no (man sudo)'); + } elsif (! grep /CLEAR/, @output) { + $self->add_message(UNKNOWN, + sprintf "insufficient rights to call %s", $hpasmcli); + } + } else { + $self->add_message(UNKNOWN, + sprintf "insufficient rights to call %s", $hpasmcli); + } +} + +sub check_hpacu_client { + my $self = shift; + my $hpacucli = shift; + if (open HPACUCLI, "$hpacucli help 2>&1 |") { + my @output = ; + close HPACUCLI; + if (grep /Another instance of hpacucli is running/, @output) { + $self->add_message(UNKNOWN, 'another hpacucli is running'); + } elsif (grep /You need to have administrator rights/, @output) { + $self->add_message(UNKNOWN, + sprintf "insufficient rights to call %s", $hpacucli); + } elsif (grep /(asswor[dt]:)|(You must be root)/, @output) { + $self->add_message(UNKNOWN, + sprintf "insufficient rights to call %s", $hpacucli); + } elsif (! grep /(CLI Syntax)|(ACU CLI)/, @output) { + $self->add_message(UNKNOWN, + sprintf "insufficient rights to call %s", $hpacucli); + } + } else { + $self->add_message(UNKNOWN, + sprintf "insufficient rights to call %s", $hpacucli); + } +} + +sub set_serial { + my $self = shift; + foreach (grep(/^server/, split(/\n/, $self->{rawdata}))) { + if (/System\s+:\s+(.*[^\s])/) { + $self->{product} = lc $1; + } elsif (/Serial No\.\s+:\s+(\w+)/) { + $self->{serial} = $1; + } elsif (/ROM version\s+:\s+(.*[^\s])/) { + $self->{romversion} = $1; + } + } + $self->{serial} = $self->{serial}; + $self->{product} = lc $self->{product}; + $self->{romversion} = $self->{romversion}; + foreach (qw(serial product romversion)) { + $self->{$_} =~ s/\s+$//g; + } +} + + +package HP::Proliant::SNMP; + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +our @ISA = qw(HP::Proliant); + +sub collect { + my $self = shift; + my %oidtables = ( + system => "1.3.6.1.2.1.1", + cpqSeProcessor => "1.3.6.1.4.1.232.1.2.2", + cpqHePWSComponent => "1.3.6.1.4.1.232.6.2.9", + cpqHeThermal => "1.3.6.1.4.1.232.6.2.6", + cpqHeMComponent => "1.3.6.1.4.1.232.6.2.14", + cpqDaComponent => "1.3.6.1.4.1.232.3.2", + cpqSiComponent => "1.3.6.1.4.1.232.2.2", + cpqSeRom => "1.3.6.1.4.1.232.1.2.6", + cpqSasComponent => "1.3.6.1.4.1.232.5", + cpqIdeComponent => "1.3.6.1.4.1.232.14", + cpqFcaComponent => "1.3.6.1.4.1.232.16.2", + cpqHeAsr => "1.3.6.1.4.1.232.6.2.5", + cpqNic => "1.3.6.1.4.1.232.18.2", + cpqHeEventLog => "1.3.6.1.4.1.232.6.2.11", + + # cpqHeComponent => "1.3.6.1.4.1.232.6.2", + # cpqHeFComponent => "1.3.6.1.4.1.232.6.2.6.7", + # cpqHeTComponent => "1.3.6.1.4.1.232.6.2.6.8", + ); + my %oidvalues = ( + cpqHeEventLogSupported => "1.3.6.1.4.1.232.6.2.11.1.0", + cpqHeEventLogCondition => "1.3.6.1.4.1.232.6.2.11.2.0", + cpqNicIfLogMapOverallCondition => "1.3.6.1.4.1.232.18.2.2.2.0", + cpqHeThermalTempStatus => "1.3.6.1.4.1.232.6.2.6.3.0", + cpqHeThermalSystemFanStatus => "1.3.6.1.4.1.232.6.2.6.4.0", + cpqHeThermalCpuFanStatus => "1.3.6.1.4.1.232.6.2.6.5.0", + cpqHeAsrStatus => "1.3.6.1.4.1.232.6.2.5.1.0", + cpqHeAsrCondition => "1.3.6.1.4.1.232.6.2.5.17.0", + ); + if ($self->{runtime}->{plugin}->opts->snmpwalk) { + my $cpqSeMibCondition = '1.3.6.1.4.1.232.1.1.3.0'; # 2=ok + my $cpqHeMibCondition = '1.3.6.1.4.1.232.6.1.3.0'; # hat nicht jeder + if ($self->{productname} =~ /4LEE/) { + # rindsarsch! + $self->{rawdata}->{$cpqHeMibCondition} = 0; + } + if (! exists $self->{rawdata}->{$cpqHeMibCondition} && + ! exists $self->{rawdata}->{$cpqSeMibCondition}) { # vlt. geht doch was + $self->add_message(CRITICAL, + 'snmpwalk returns no health data (cpqhlth-mib)'); + } + $self->{fullrawdata} = {}; + %{$self->{fullrawdata}} = %{$self->{rawdata}}; + $self->{rawdata} = {}; + if (! $self->{runtime}->{plugin}->check_messages()) { + # for a better simulation, only put those oids into + # rawdata which would also be put by a real snmp agent. + foreach my $table (keys %oidtables) { + my $oid = $oidtables{$table}; + $oid =~ s/\./\\./g; + my $tmpoids = {}; + my $tic = time; + map { $tmpoids->{$_} = $self->{fullrawdata}->{$_} } + grep /^$oid/, %{$self->{fullrawdata}}; + my $tac = time; + $self->trace(2, sprintf "%03d seconds for walk %s (%d oids)", + $tac - $tic, $table, scalar(keys %{$tmpoids})); + map { $self->{rawdata}->{$_} = $tmpoids->{$_} } keys %{$tmpoids}; + } + my @oids = values %oidvalues; + map { $self->{rawdata}->{$_} = $self->{fullrawdata}->{$_} } @oids; + } + } else { + my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 + #$params{'-translate'} = [ + # -all => 0x0 + #]; + my ($session, $error) = + Net::SNMP->session(%{$self->{runtime}->{snmpparams}}); + if (! defined $session) { + $self->{plugin}->add_message(CRITICAL, 'cannot create session object'); + $self->trace(1, Data::Dumper::Dumper($self->{runtime}->{snmpparams})); + } else { + $session->translate(['-timeticks' => 0]); + # revMajor is often used for discovery of hp devices + my $cpqHeMibRev = '1.3.6.1.4.1.232.6.1'; + my $cpqHeMibRevMajor = '1.3.6.1.4.1.232.6.1.1.0'; + my $cpqHeMibCondition = '1.3.6.1.4.1.232.6.1.3.0'; + my $result = $session->get_request( + -varbindlist => [$cpqHeMibCondition] + ); + if ($self->{productname} =~ /4LEE/) { + # rindsarsch! + $result->{$cpqHeMibCondition} = 0; + } + if (!defined($result) || + $result->{$cpqHeMibCondition} eq 'noSuchInstance' || + $result->{$cpqHeMibCondition} eq 'noSuchObject' || + $result->{$cpqHeMibCondition} eq 'endOfMibView') { + $self->add_message(CRITICAL, + 'snmpwalk returns no health data (cpqhlth-mib)'); + $session->close; + } else { + # this is not reliable. many agents return 4=failed + #if ($result->{$cpqHeMibCondition} != 2) { + # $obstacle = "cmapeerstart"; + #} + } + } + if (! $self->{runtime}->{plugin}->check_messages()) { + # snmp peer is alive + $self->trace(2, sprintf "Protocol is %s", + $self->{runtime}->{snmpparams}->{'-version'}); + $session->translate; + my $response = {}; #break the walk up in smaller pieces + foreach my $table (keys %oidtables) { + my $oid = $oidtables{$table}; + my $tic = time; + my $tmpresponse = $session->get_table( + -baseoid => $oid); + if (scalar (keys %{$tmpresponse}) == 0) { + $self->trace(2, sprintf "maxrepetitions failed. fallback"); + $tmpresponse = $session->get_table( + -maxrepetitions => 1, + -baseoid => $oid); + } + my $tac = time; + $self->trace(2, sprintf "%03d seconds for walk %s (%d oids)", + $tac - $tic, $table, scalar(keys %{$tmpresponse})); + map { $response->{$_} = $tmpresponse->{$_} } keys %{$tmpresponse}; + } + my @oids = values %oidvalues; + my $tic = time; + my $tmpresponse = $session->get_request( + -varbindlist => \@oids, + ); + my $tac = time; + $self->trace(2, sprintf "%03d seconds for get various (%d oids)", + $tac - $tic, scalar(keys %{$tmpresponse})); + map { $response->{$_} = $tmpresponse->{$_} } keys %{$tmpresponse}; + $session->close(); + $self->{rawdata} = $response; + } + } + return $self->{runtime}->{plugin}->check_messages(); +} + +sub set_serial { + my $self = shift; + + my $cpqSiSysSerialNum = "1.3.6.1.4.1.232.2.2.2.1.0"; + my $cpqSiProductName = "1.3.6.1.4.1.232.2.2.4.2.0"; + my $cpqSeSysRomVer = "1.3.6.1.4.1.232.1.2.6.1.0"; + my $cpqSeRedundantSysRomVer = "1.3.6.1.4.1.232.1.2.6.4.0"; + + $self->{serial} = + SNMP::Utils::get_object($self->{rawdata}, $cpqSiSysSerialNum); + $self->{product} = + SNMP::Utils::get_object($self->{rawdata}, $cpqSiProductName); + $self->{romversion} = + SNMP::Utils::get_object($self->{rawdata}, $cpqSeSysRomVer); + $self->{redundantromversion} = + SNMP::Utils::get_object($self->{rawdata}, $cpqSeRedundantSysRomVer); + if ($self->{romversion} && $self->{romversion} =~ + #/(\d{2}\/\d{2}\/\d{4}).*?([ADP]{1}\d{2}).*/) { + /(\d{2}\/\d{2}\/\d{4}).*?Family.*?([A-Z]{1})(\d+).*/) { + $self->{romversion} = sprintf("%s%02d %s", $2, $3, $1); + } elsif ($self->{romversion} && $self->{romversion} =~ + /([ADP]{1}\d{2})\-(\d{2}\/\d{2}\/\d{4})/) { + $self->{romversion} = sprintf("%s %s", $1, $2); + } else { + # fallback if romversion is broken, redundantromversion not + #.1.3.6.1.4.1.232.1.2.6.1.0 = STRING: "4), Family " + #.1.3.6.1.4.1.232.1.2.6.3.0 = "" + #.1.3.6.1.4.1.232.1.2.6.4.0 = STRING: "v1.20 (08/26/2014), Family " + if ($self->{redundantromversion} && $self->{redundantromversion} =~ + /(\d{2}\/\d{2}\/\d{4}).*?Family.*?([A-Z]{1})(\d+).*/) { + $self->{romversion} = sprintf("%s%02d %s", $2, $3, $1); + } elsif ($self->{redundantromversion} && $self->{redundantromversion} =~ + /([ADP]{1}\d{2})\-(\d{2}\/\d{2}\/\d{4})/) { + $self->{romversion} = sprintf("%s %s", $1, $2); + } + } + if (!$self->{serial} && $self->{romversion}) { + # this probably is a very, very old server. + $self->{serial} = "METHUSALEM"; + $self->{runtime}->{scrapiron} = 1; + } + $self->{serial} = $self->{serial}; + $self->{product} = lc $self->{product}; + $self->{romversion} = $self->{romversion}; + $self->{runtime}->{product} = $self->{product}; +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Server.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Server.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Server.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Server.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,424 @@ +package HP::Server; + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + runtime => $params{runtime}, + productname => 'unknown', + }; + bless $self, $class; + if (! ($self->{runtime}->{plugin}->opts->hostname || + $self->{runtime}->{plugin}->opts->snmpwalk)) { + bless $self, 'HP::Proliant::CLI'; + $self->{method} = 'cli'; + } else { + $self->check_snmp_and_model(); + if ($self->{runtime}->{options}->{servertype}) { + $self->{productname} = 'ProLiant' if + $self->{runtime}->{options}->{servertype} eq 'proliant'; + $self->{productname} = 'BladeSystem' if + $self->{runtime}->{options}->{servertype} eq 'bladesystem'; + $self->{productname} = 'Storage' if + $self->{runtime}->{options}->{servertype} eq 'storage'; + } + if (! $self->{runtime}->{plugin}->check_messages()) { + if ($self->{productname} =~ /ProLiant/) { + bless $self, 'HP::Proliant::SNMP'; + $self->trace(3, 'using HP::Proliant::SNMP'); + } elsif ($self->{productname} =~ /^DL\d+\s*G\d+/) { + bless $self, 'HP::Proliant::SNMP'; + $self->trace(3, 'using HP::Proliant::SNMP'); + } elsif ($self->{productname} =~ /OpenView .* appliance/) { + bless $self, 'HP::Proliant::SNMP'; + $self->trace(3, 'using HP::Proliant::SNMP'); + } elsif ($self->{productname} =~ /BladeSystem/) { + bless $self, 'HP::BladeSystem'; + $self->trace(3, 'using HP::BladeSystem'); + } elsif ($self->{productname} =~ /PROLIANT 4LEE/) { + bless $self, 'HP::Storage'; + $self->trace(3, 'using HP::Storage'); + } elsif ($self->{productname} =~ /X\d+[\s\w]* Network Storage/) { + # HP X1600 Network Storage System + # HP X1600 G2 Network Storage System + bless $self, 'HP::Proliant::SNMP'; + $self->trace(3, 'using HP::Proliant::SNMP'); + } elsif ($self->{productname} =~ /StorageWorks/i) { + bless $self, 'HP::StorageWorks'; + $self->trace(3, 'using HP::StorageWorks'); + } elsif ($self->{productname} =~ /StoreEasy/i) { + bless $self, 'HP::Proliant::SNMP'; + $self->trace(3, 'using HP::Proliant::SNMP'); + } elsif ($self->{productname} =~ /Storage/) { # fake + bless $self, 'HP::Storage'; + $self->trace(3, 'using HP::Storage'); + } else { + $self->add_message(CRITICAL, + sprintf('unknown device%s', $self->{productname} eq 'unknown' ? + '' : '('.$self->{productname}.')')); + } + $self->{method} = 'snmp'; + } + } + if ($self->{runtime}->{options}->{blacklist} && + -f $self->{runtime}->{options}->{blacklist}) { + $self->{runtime}->{options}->{blacklist} = do { + local (@ARGV, $/) = $self->{runtime}->{options}->{blacklist}; <> }; + } + return $self; +} + +sub check_snmp_and_model { +# uptime pruefen +# dann whoami + my $self = shift; + if ($self->{runtime}->{plugin}->opts->snmpwalk) { + my $response = {}; + if (! -f $self->{runtime}->{plugin}->opts->snmpwalk) { + $self->{runtime}->{plugin}->add_message(CRITICAL, + sprintf 'file %s not found', + $self->{runtime}->{plugin}->opts->snmpwalk); + } elsif (-x $self->{runtime}->{plugin}->opts->snmpwalk) { + my $cmd = sprintf "%s -On -v%s -c%s %s 1.3.6.1.4.1.232 2>&1", + $self->{runtime}->{plugin}->opts->snmpwalk, + $self->{runtime}->{plugin}->opts->protocol, + $self->{runtime}->{plugin}->opts->community, + $self->{runtime}->{plugin}->opts->hostname; + open(WALK, "$cmd |"); + while () { + if (/^.*?\.(232\.[\d\.]+) = .*?: (\-*\d+)/) { + $response->{'1.3.6.1.4.1.'.$1} = $2; + } elsif (/^.*?\.(232\.[\d\.]+) = .*?: "(.*?)"/) { + $response->{'1.3.6.1.4.1.'.$1} = $2; + $response->{'1.3.6.1.4.1.'.$1} =~ s/\s+$//; + } + } + close WALK; + } else { + open(MESS, $self->{runtime}->{plugin}->opts->snmpwalk); + my $in_string = 0; + my $in_hex_string = 0; + my $hex_oid = 0; + while() { + chomp; + if ($in_hex_string && /^(([0-9a-fA-F]{2})( [0-9a-fA-F]{2})*)\s*$/) { + $response->{$hex_oid} .= " ".$1; + } elsif ($in_string) { + if (/(.*)"$/) { + $response->{$hex_oid} .= $1; + $in_string = 0; + } else { + $response->{$hex_oid} .= $_; + } + } elsif (/^.*?\.(232\.[\d\.]+) = .*?: (\-*\d+)\s*$/) { + # SNMPv2-SMI::enterprises.232.6.2.6.7.1.3.1.4 = INTEGER: 6 + $response->{'1.3.6.1.4.1.'.$1} = $2; + $in_hex_string = 0; + } elsif (/^.*?\.(232\.[\d\.]+) = .*?: "(.*?)"/) { + $response->{'1.3.6.1.4.1.'.$1} = $2; + $response->{'1.3.6.1.4.1.'.$1} =~ s/\s+$//; + $in_hex_string = 0; + } elsif (/^.*?\.(232\.[\d\.]+) = (\-*\d+)/) { + $response->{'1.3.6.1.4.1.'.$1} = $2; + $in_hex_string = 0; + } elsif (/^.*?\.(232\.[\d\.]+) = "(.*?)"/) { + $response->{'1.3.6.1.4.1.'.$1} = $2; + $response->{'1.3.6.1.4.1.'.$1} =~ s/\s+$//; + $in_hex_string = 0; + } elsif (/^.*?\.(232\.[\d\.]+) = STRING: "(.*?[^"])$/) { + $response->{'1.3.6.1.4.1.'.$1} = $2; + $response->{'1.3.6.1.4.1.'.$1} =~ s/\s+$//; + $in_string = 0; + $in_hex_string = 0; + } elsif (/^.*?\.(232\.[\d\.]+) = Hex-STRING: (.*)/) { + $response->{'1.3.6.1.4.1.'.$1} = $2; + $in_hex_string = 1; + $hex_oid = '1.3.6.1.4.1.'.$1; + } elsif (/^.*?\.(232\.[\d\.]+) =[ ]{1,2}Hex: (.*)/) { + $response->{'1.3.6.1.4.1.'.$1} = $2; + $in_hex_string = 1; + $hex_oid = '1.3.6.1.4.1.'.$1; + } + } + close MESS; + } + map { $response->{$_} =~ s/^\s+//; $response->{$_} =~ s/\s+$//; } + keys %$response; + $self->{rawdata} = $response; + $self->whoami(); + } else { + if (eval "require Net::SNMP") { + my %params = (); + my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 + $params{'-translate'} = [ + -timeticks => 0x0 + ]; + $params{'-hostname'} = $self->{runtime}->{plugin}->opts->hostname; + $params{'-version'} = $self->{runtime}->{plugin}->opts->protocol; + if ($self->{runtime}->{plugin}->opts->port) { + $params{'-port'} = $self->{runtime}->{plugin}->opts->port; + } + if ($self->{runtime}->{plugin}->opts->protocol eq '3') { + $params{'-username'} = $self->{runtime}->{plugin}->opts->username; + if ($self->{runtime}->{plugin}->opts->authpassword) { + $params{'-authpassword'} = $self->decode_password($self->{runtime}->{plugin}->opts->authpassword); + } + if ($self->{runtime}->{plugin}->opts->authprotocol) { + $params{'-authprotocol'} = $self->{runtime}->{plugin}->opts->authprotocol; + } + if ($self->{runtime}->{plugin}->opts->privpassword) { + $params{'-privpassword'} = $self->decode_password($self->{runtime}->{plugin}->opts->privpassword); + } + if ($self->{runtime}->{plugin}->opts->privprotocol) { + $params{'-privprotocol'} = $self->{runtime}->{plugin}->opts->privprotocol; + } + } else { + $params{'-community'} = $self->decode_password($self->{runtime}->{plugin}->opts->community); + } + $self->{runtime}->{snmpparams} = \%params; + my ($session, $error) = Net::SNMP->session(%params); + $self->{session} = $session; + if (! defined $session) { + $self->add_message(CRITICAL, 'cannot create session object (maybe wrong hostname)'); + $self->trace(1, Data::Dumper::Dumper(\%params)); + } else { + my $sysUpTime = '1.3.6.1.2.1.1.3.0'; + my $result = $session->get_request( + -varbindlist => [$sysUpTime] + ); + if (!defined($result)) { + $self->add_message(CRITICAL, + 'could not contact snmp agent'); + $session->close; + } else { + $self->trace(3, 'snmp agent answered'); + $self->whoami(); + } + } + } else { + $self->add_message(CRITICAL, + 'could not find Net::SNMP module'); + } + } +} + +sub whoami { + my $self = shift; + my $productname = undef; + if ($self->{runtime}->{plugin}->opts->snmpwalk) { + my $cpqSiProductName = '1.3.6.1.4.1.232.2.2.4.2.0'; + my $cpqSsMibRevMajor = '1.3.6.1.4.1.232.8.1.1.0'; + my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'.'.1.1'; + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; + if ($productname = $self->{rawdata}->{$cpqSiProductName}) { + if (! $productname) { + $self->{productname} = 'ProLiant'; + } else { + $self->{productname} = $self->{rawdata}->{$cpqSiProductName}; + } + } elsif (exists $self->{rawdata}->{$cpqSsBackplaneModel}) { + $self->{productname} = $self->{rawdata}->{$cpqSsBackplaneModel}; + } elsif (exists $self->{rawdata}->{$cpqSsMibRevMajor}) { + # at least there is a CPQSTSYS-MIB + $self->{productname} = 'Storage' + } else { + $self->add_message(CRITICAL, + 'snmpwalk returns no product name (cpqsinfo-mib)'); + } + } else { + my $cpqSiProductName = '1.3.6.1.4.1.232.2.2.4.2.0'; + my $cpqSsMibRevMajor = '1.3.6.1.4.1.232.8.1.1.0'; + my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'.'.1.1'; + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; + my $dummy = '1.3.6.1.2.1.1.5.0'; + if ($productname = $self->valid_response($cpqSiProductName)) { + if ($productname eq '') { + $self->{productname} = 'ProLiant'; + } else { + $self->{productname} = $productname; + } + } elsif ($productname = $self->valid_response($cpqSsBackplaneModel)) { + $self->{productname} = $productname; + } elsif ($self->valid_response($cpqSsMibRevMajor)) { + # at least there is a CPQSTSYS-MIB + $self->{productname} = 'Storage' + } elsif ($self->valid_response($cpqHoMibStatusArray)) { + $self->{productname} = 'StorageWorks' + } else { + $self->add_message(CRITICAL, + 'snmpwalk returns no product name (cpqsinfo-mib)'); + $self->{session}->close; + } + $self->trace(3, 'whoami: '.$self->{productname}); + } +} + +sub valid_response { + my $self = shift; + my $oid = shift; + my $result = $self->{session}->get_request( + -varbindlist => [$oid] + ); + if (!defined($result) || + ! defined $result->{$oid} || + $result->{$oid} eq 'noSuchInstance' || + $result->{$oid} eq 'noSuchObject' || + $result->{$oid} eq 'endOfMibView') { + return undef; + } else { + return $result->{$oid}; + } +} + +sub trace { + my $self = shift; + my $level = shift; + my $message = shift; + if ($self->{runtime}->{options}->{verbose} >= $level) { + printf "%s\n", $message; + } +} + +sub blacklist { + my $self = shift; + my $type = shift; + my $name = shift; + $self->{blacklisted} = $self->is_blacklisted($type, $name); +} + +sub add_blacklist { + my $self = shift; + my $list = shift; + $self->{runtime}->{options}->{blacklist} = join('/', + (split('/', $self->{runtime}->{options}->{blacklist}), $list)); +} + +sub is_blacklisted { + my $self = shift; + my $type = shift; + my $name = shift; + my $blacklisted = 0; +# $name =~ s/\:/-/g; + foreach my $bl_items (split(/\//, $self->{runtime}->{options}->{blacklist})) { + if ($bl_items =~ /^(\w+):([\:\w\-,]+)$/) { + my $bl_type = $1; + my $bl_names = $2; + foreach my $bl_name (split(/,/, $bl_names)) { + if ($bl_type eq $type && $bl_name eq $name) { + $blacklisted = 1; + } + } + } elsif ($bl_items =~ /^(\w+)$/) { + my $bl_type = $1; + if ($bl_type eq $type) { + $blacklisted = 1; + } + } + } + return $blacklisted; +} + +sub add_message { + my $self = shift; + my $level = shift; + my $message = shift; + $self->{runtime}->{plugin}->add_message($level, $message) + unless $self->{blacklisted}; + if (exists $self->{failed}) { + if ($level == UNKNOWN && $self->{failed} == OK) { + $self->{failed} = $level; + } elsif ($level > $self->{failed}) { + $self->{failed} = $level; + } + } +} + +sub remove_message { + my $self = shift; + my $level = shift; + my $message = shift; + $self->{runtime}->{plugin}->remove_message($level) ; +} + +sub has_failed { + my $self = shift; + return $self->{failed}; +} + +sub add_info { + my $self = shift; + my $info = shift; + $info = $self->{blacklisted} ? $info.' (blacklisted)' : $info; + $self->{info} = $info; + if (! exists $self->{runtime}->{plugin}->{info}) { + $self->{runtime}->{plugin}->{info} = []; + } + push(@{$self->{runtime}->{plugin}->{info}}, $info); +} + +sub annotate_info { + my $self = shift; + my $annotation = shift; + my $lastinfo = pop(@{$self->{runtime}->{plugin}->{info}}); + $lastinfo .= sprintf ' (%s)', $annotation; + push(@{$self->{runtime}->{plugin}->{info}}, $lastinfo); +} + +sub add_extendedinfo { + my $self = shift; + my $info = shift; + $self->{extendedinfo} = $info; + return if ! $self->{runtime}->{options}->{extendedinfo}; + if (! exists $self->{runtime}->{plugin}->{extendedinfo}) { + $self->{runtime}->{plugin}->{extendedinfo} = []; + } + push(@{$self->{runtime}->{plugin}->{extendedinfo}}, $info); +} + +sub get_extendedinfo { + my $self = shift; + if (! exists $self->{runtime}->{plugin}->{extendedinfo}) { + $self->{runtime}->{plugin}->{extendedinfo} = []; + } + return join(' ', @{$self->{runtime}->{plugin}->{extendedinfo}}); +} + +sub add_summary { + my $self = shift; + my $summary = shift; + if (! exists $self->{runtime}->{plugin}->{summary}) { + $self->{runtime}->{plugin}->{summary} = []; + } + push(@{$self->{runtime}->{plugin}->{summary}}, $summary); +} + +sub get_summary { + my $self = shift; + if (! exists $self->{runtime}->{plugin}->{summary}) { + $self->{runtime}->{plugin}->{summary} = []; + } + return join(', ', @{$self->{runtime}->{plugin}->{summary}}); +} + +sub dumper { + my $self = shift; + my $object = shift; + my $run = $object->{runtime}; + delete $object->{runtime}; + printf STDERR "%s\n", Data::Dumper::Dumper($object); + $object->{runtime} = $run; +} + +sub decode_password { + my $self = shift; + my $password = shift; + if ($password && $password =~ /^rfc3986:\/\/(.*)/) { + $password = $1; + $password =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg; + } + return $password; +} + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/SNMP/Utils.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/SNMP/Utils.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/SNMP/Utils.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/SNMP/Utils.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,103 @@ +package SNMP::Utils; + +use strict; + +{ + sub get_indices { + my $oids = shift; + my $entry = shift; + my $numindices = shift; + # find all oids beginning with $entry + # then skip one field for the sequence + # then read the next numindices fields + my $entrypat = $entry; + $entrypat =~ s/\./\\\./g; + my @indices = map { + /^$entrypat\.\d+\.(.*)/ && $1; + } grep { + /^$entrypat/ + } keys %{$oids}; + my %seen = (); + my @o = map {[split /\./]} sort grep !$seen{$_}++, @indices; + return @o; + } + + sub get_size { + my $oids = shift; + my $entry = shift; + my $entrypat = $entry; + $entrypat =~ s/\./\\\./g; + my @entries = grep { + /^$entrypat/ + } keys %{$oids}; + return scalar(@entries); + } + + sub get_object { + my $oids = shift; + my $object = shift; + my @indices = @_; + #my $oid = $object.'.'.join('.', @indices); + my $oid = $object; + $oid .= '.'.join('.', @indices) if (@indices); + return $oids->{$oid}; + } + + sub get_object_value { + my $oids = shift; + my $object = shift; + my $values = shift; + my @indices = @_; + my $key = get_object($oids, $object, @indices); + if (defined $key) { + return $values->{$key}; + } else { + return undef; + } + } + + #SNMP::Utils::counter([$idxs1, $idxs2], $idx1, $idx2), + # this flattens a n-dimensional array and returns the absolute position + # of the element at position idx1,idx2,...,idxn + # element 1,2 in table 0,0 0,1 0,2 1,0 1,1 1,2 2,0 2,1 2,2 is at pos 6 + sub get_number { + my $indexlists = shift; #, zeiger auf array aus [1, 2] + my @element = @_; + my $dimensions = scalar(@{$indexlists->[0]}); + my @sorted = (); + my $number = 0; + if ($dimensions == 1) { + @sorted = + sort { $a->[0] <=> $b->[0] } @{$indexlists}; + } elsif ($dimensions == 2) { + @sorted = + sort { $a->[0] <=> $b->[0] || $a->[1] <=> $b->[1] } @{$indexlists}; + } elsif ($dimensions == 3) { + @sorted = + sort { $a->[0] <=> $b->[0] || + $a->[1] <=> $b->[1] || + $a->[2] <=> $b->[2] } @{$indexlists}; + } + foreach (@sorted) { + if ($dimensions == 1) { + if ($_->[0] == $element[0]) { + last; + } + } elsif ($dimensions == 2) { + if ($_->[0] == $element[0] && $_->[1] == $element[1]) { + last; + } + } elsif ($dimensions == 3) { + if ($_->[0] == $element[0] && + $_->[1] == $element[1] && + $_->[2] == $element[2]) { + last; + } + } + $number++; + } + return ++$number; + } + +} + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Storage.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Storage.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Storage.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/Storage.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,308 @@ +package HP::Storage; + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; +use Data::Dumper; + +our @ISA = qw(HP::Server); + +sub init { + my $self = shift; + $self->{components} = { + powersupply_subsystem => undef, + fan_subsystem => undef, + temperature_subsystem => undef, + cpu_subsystem => undef, + memory_subsystem => undef, + disk_subsystem => undef, + sensor_subsystem => undef, + }; + $self->{serial} = 'unknown'; + $self->{product} = 'unknown'; + $self->{romversion} = 'unknown'; + $self->collect(); + if (! $self->{runtime}->{plugin}->check_messages()) { + $self->set_serial(); +# $self->check_for_buggy_firmware(); +# $self->analyze_cpus(); +# $self->analyze_powersupplies(); +# $self->analyze_fan_subsystem(); +# $self->analyze_temperatures(); +# $self->analyze_memory_subsystem(); + $self->analyze_disk_subsystem(); +## $self->analyze_sensor_subsystem(); +# $self->check_cpus(); +# $self->check_powersupplies(); +# $self->check_fan_subsystem(); +# $self->check_temperatures(); +# $self->check_memory_subsystem(); + $self->check_disk_subsystem(); +## $self->check_sensor_subsystem(); + } +} + +sub identify { + my $self = shift; + return sprintf "System: '%s', S/N: '%s', ROM: '%s'", + $self->{product}, $self->{serial}, $self->{romversion}; +} + +sub check_for_buggy_firmware { + my $self = shift; + my @buggyfirmwares = ( + "P24 12/11/2001", + "P24 11/15/2002", + "D13 06/03/2003", + "D13 09/15/2004", + "P20 12/17/2002" + ); + $self->{runtime}->{options}->{buggy_firmware} = + grep /^$self->{romversion}/, @buggyfirmwares; +} + +sub dump { + my $self = shift; + printf STDERR "serial %s\n", $self->{serial}; + printf STDERR "product %s\n", $self->{product}; + printf STDERR "romversion %s\n", $self->{romversion}; + printf STDERR "%s\n", Data::Dumper::Dumper($self->{components}); +} + +sub analyze_powersupplies { + my $self = shift; + $self->{components}->{powersupply_subsystem} = + HP::Storage::Component::PowersupplySubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_fan_subsystem { + my $self = shift; + $self->{components}->{fan_subsystem} = + HP::Storage::Component::FanSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_temperatures { + my $self = shift; + $self->{components}->{temperature_subsystem} = + HP::Storage::Component::TemperatureSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_cpus { + my $self = shift; + $self->{components}->{cpu_subsystem} = + HP::Storage::Component::CpuSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_memory_subsystem { + my $self = shift; + $self->{components}->{memory_subsystem} = + HP::Storage::Component::MemorySubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_disk_subsystem { + my $self = shift; + $self->{components}->{disk_subsystem} = + HP::Proliant::Component::DiskSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub analyze_sensor_subsystem { + my $self = shift; + $self->{components}->{sensor_subsystem} = + HP::FCMGMT::Component::SensorSubsystem->new( + rawdata => $self->{rawdata}, + method => $self->{method}, + runtime => $self->{runtime}, + ); +} + +sub check_cpus { + my $self = shift; + $self->{components}->{cpu_subsystem}->check(); + $self->{components}->{cpu_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_powersupplies { + my $self = shift; + $self->{components}->{powersupply_subsystem}->check(); + $self->{components}->{powersupply_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_fan_subsystem { + my $self = shift; + $self->{components}->{fan_subsystem}->check(); + $self->{components}->{fan_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_temperatures { + my $self = shift; + $self->{components}->{temperature_subsystem}->check(); + $self->{components}->{temperature_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_memory_subsystem { + my $self = shift; + $self->{components}->{memory_subsystem}->check(); + $self->{components}->{memory_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 2; +} + +sub check_disk_subsystem { + my $self = shift; + $self->{components}->{disk_subsystem}->check(); + $self->{components}->{disk_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 1; +} + +sub check_sensor_subsystem { + my $self = shift; + $self->{components}->{isensor_subsystem}->check(); + $self->{components}->{sensor_subsystem}->dump() + if $self->{runtime}->{options}->{verbose} >= 1; +} + + +sub collect { + my $self = shift; + if ($self->{runtime}->{plugin}->opts->snmpwalk) { + my $cpqSeMibCondition = '1.3.6.1.4.1.232.6.1.3.0'; + # rindsarsch! + $self->{rawdata}->{$cpqSeMibCondition} = 0; + if (! exists $self->{rawdata}->{$cpqSeMibCondition}) { + $self->add_message(CRITICAL, + 'snmpwalk returns no health data (cpqhlth-mib)'); + } + } else { + my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 + #$params{'-translate'} = [ + # -all => 0x0 + #]; + my ($session, $error) = + Net::SNMP->session(%{$self->{runtime}->{snmpparams}}); + if (! defined $session) { + $self->{plugin}->add_message(CRITICAL, 'cannot create session object'); + $self->trace(1, Data::Dumper::Dumper($self->{runtime}->{snmpparams})); + } else { + # revMajor is often used for discovery of hp devices + my $cpqSeMibRev = '1.3.6.1.4.1.232.6.1'; + my $cpqSeMibRevMajor = '1.3.6.1.4.1.232.6.1.1.0'; + my $cpqSeMibCondition = '1.3.6.1.4.1.232.6.1.3.0'; + my $result = $session->get_request( + -varbindlist => [$cpqSeMibCondition] + ); + # rindsarsch! + $result->{$cpqSeMibCondition} = 0; + if (!defined($result) || + $result->{$cpqSeMibCondition} eq 'noSuchInstance' || + $result->{$cpqSeMibCondition} eq 'noSuchObject' || + $result->{$cpqSeMibCondition} eq 'endOfMibView') { + $self->add_message(CRITICAL, + 'snmpwalk returns no health data (cpqhlth-mib)'); + $session->close; + } else { + # this is not reliable. many agents return 4=failed + #if ($result->{$cpqSeMibCondition} != 2) { + # $obstacle = "cmapeerstart"; + #} + } + } + if (! $self->{runtime}->{plugin}->check_messages()) { + # snmp peer is alive + $self->trace(2, sprintf "Protocol is %s", + $self->{runtime}->{snmpparams}->{'-version'}); + my $cpqSsSys = "1.3.6.1.4.1.232.8"; + $session->translate; + my $response = {}; #break the walk up in smaller pieces + my $tic = time; my $tac = $tic; + my $response1 = $session->get_table( + -baseoid => $cpqSsSys); + $tac = time; + $self->trace(2, sprintf "%03d seconds for walk cpqSsSys (%d oids)", + $tac - $tic, scalar(keys %{$response1})); + $session->close; + map { $response->{$_} = $response1->{$_} } keys %{$response1}; + map { $response->{$_} =~ s/^\s+//; $response->{$_} =~ s/\s+$//; } + keys %$response; + $self->{rawdata} = $response; + } + } + return $self->{runtime}->{plugin}->check_messages(); +} + +sub set_serial { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my @serials = (); + my @models = (); + my @fws = (); + my $cpqSsBackplaneEntry = '1.3.6.1.4.1.232.8.2.2.6.1'; + my $cpqSsBackplaneFWRev = '1.3.6.1.4.1.232.8.2.2.6.1.3'; + my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'; + my $cpqSsBackplaneSerialNumber = '1.3.6.1.4.1.232.8.2.2.6.1.13'; + # INDEX { cpqSsBackplaneChassisIndex, cpqSsBackplaneIndex } + my @indexes = SNMP::Utils::get_indices($snmpwalk, + $cpqSsBackplaneEntry); + foreach (@indexes) { + my($idx1, $idx2) = ($_->[0], $_->[1]); + my $fw = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneFWRev, $idx1, $idx2); + my $model = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneModel, $idx1, $idx2); + my $serial = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneSerialNumber, $idx1, $idx2); + push(@serials, $serial); + push(@models, $model); + push(@fws, $fw); + } + + $self->{serial} = join('/', @serials); + $self->{product} = join('/', @models); + $self->{romversion} = join('/', @fws); + $self->{runtime}->{product} = $self->{product}; +} + + + + + + + + + + + + + + + + + + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/StorageWorks.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/StorageWorks.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/StorageWorks.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/HP/StorageWorks.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,157 @@ +package HP::StorageWorks; + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; +use Data::Dumper; + +our @ISA = qw(HP::Server); + +sub init { + my $self = shift; + $self->{serial} = 'unknown'; + $self->{product} = 'unknown'; + $self->{romversion} = 'unknown'; + $self->collect(); + if (! $self->{runtime}->{plugin}->check_messages()) { + $self->set_serial(); + $self->overall_init(); + $self->overall_check(); + } +} + +sub overall_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $self->{rawdata}; + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; + $self->{cpqHoMibStatusArray} = SNMP::Utils::get_object( + $snmpwalk, $cpqHoMibStatusArray); + if ($self->{cpqHoMibStatusArray} =~ /^(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/) { + $self->{cpqHoMibStatusArray} = 1 * $2; + } elsif ($self->{cpqHoMibStatusArray} =~ /^0x.*(\d\d)(\d\d)(\d\d)(\d\d)$/) { + $self->{cpqHoMibStatusArray} = 1 * $2; + } +} + +sub overall_check { + my $self = shift; + if ($self->{cpqHoMibStatusArray} & 1) { + $self->add_info('overall status is other'); + $self->add_message(UNKNOWN, 'overall status is other'); + } elsif ($self->{cpqHoMibStatusArray} & 2) { + $self->add_info('overall status is ok'); + $self->add_message(OK, 'overall status is ok'); + } elsif ($self->{cpqHoMibStatusArray} & 3) { + $self->add_info('overall status is degraded'); + $self->add_message(WARNING, 'overall status is degraded'); + } elsif ($self->{cpqHoMibStatusArray} & 4) { + $self->add_info('overall status is failed'); + $self->add_message(CRITICAL, 'overall status is failed'); + } +} + +sub identify { + my $self = shift; + return $self->{productname}; +} + +sub dump { + my $self = shift; + printf STDERR "serial %s\n", $self->{serial}; + printf STDERR "product %s\n", $self->{product}; + printf STDERR "romversion %s\n", $self->{romversion}; + printf STDERR "%s\n", Data::Dumper::Dumper($self->{components}); +} + +sub collect { + my $self = shift; + if ($self->{runtime}->{plugin}->opts->snmpwalk) { + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; + if (! exists $self->{rawdata}->{$cpqHoMibStatusArray}) { + $self->add_message(CRITICAL, + 'snmpwalk returns no health data (cpqhost-mib)'); + } + } else { + my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 + #$params{'-translate'} = [ + # -all => 0x0 + #]; + my ($session, $error) = + Net::SNMP->session(%{$self->{runtime}->{snmpparams}}); + if (! defined $session) { + $self->{plugin}->add_message(CRITICAL, 'cannot create session object'); + $self->trace(1, Data::Dumper::Dumper($self->{runtime}->{snmpparams})); + } + if (! $self->{runtime}->{plugin}->check_messages()) { + # snmp peer is alive + $self->trace(2, sprintf "Protocol is %s", + $self->{runtime}->{snmpparams}->{'-version'}); + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; + $session->translate; + my $tic = time; + my $response = $session->get_request( + -varbindlist => [$cpqHoMibStatusArray] + ); + my $tac = time; + $self->trace(2, sprintf "%03d seconds for walk cpqHoMibStatusArray (%d oids)", + $tac - $tic, scalar(keys %{$response})); + $session->close; + map { $response->{$_} =~ s/^\s+//; $response->{$_} =~ s/\s+$//; } + keys %$response; + $self->{rawdata} = $response; + } + } + return $self->{runtime}->{plugin}->check_messages(); +} + +sub set_serial { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my @serials = (); + my @models = (); + my @fws = (); + my $cpqSsBackplaneEntry = '1.3.6.1.4.1.232.8.2.2.6.1'; + my $cpqSsBackplaneFWRev = '1.3.6.1.4.1.232.8.2.2.6.1.3'; + my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'; + my $cpqSsBackplaneSerialNumber = '1.3.6.1.4.1.232.8.2.2.6.1.13'; + # INDEX { cpqSsBackplaneChassisIndex, cpqSsBackplaneIndex } + my @indexes = SNMP::Utils::get_indices($snmpwalk, + $cpqSsBackplaneEntry); + foreach (@indexes) { + my($idx1, $idx2) = ($_->[0], $_->[1]); + my $fw = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneFWRev, $idx1, $idx2); + my $model = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneModel, $idx1, $idx2); + my $serial = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneSerialNumber, $idx1, $idx2); + push(@serials, $serial); + push(@models, $model); + push(@fws, $fw); + } + + $self->{serial} = join('/', @serials); + $self->{product} = join('/', @models); + $self->{romversion} = join('/', @fws); + $self->{runtime}->{product} = $self->{product}; +} + + + + + + + + + + + + + + + + + + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Makefile.am nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Makefile.am --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Makefile.am 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Makefile.am 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,101 @@ +## Process this file with automake to produce Makefile.in + +SED=/bin/sed +GREP=/bin/grep +CAT=/bin/cat +ECHO=/bin/echo + +SUFFIXES = .pl .pm .sh + +VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t + +libexec_SCRIPTS=check_hpasm +MY_MODULES= +EXTRA_MODULES=\ + Nagios/MiniPlugin.pm \ + HP/SNMP/Utils.pm \ + HP/Proliant/Component/EventSubsystem.pm \ + HP/Proliant/Component/EventSubsystem/CLI.pm \ + HP/Proliant/Component/EventSubsystem/SNMP.pm \ + HP/Proliant/Component/PowersupplySubsystem.pm \ + HP/Proliant/Component/PowersupplySubsystem/CLI.pm \ + HP/Proliant/Component/PowersupplySubsystem/SNMP.pm \ + HP/Proliant/Component/TemperatureSubsystem.pm \ + HP/Proliant/Component/TemperatureSubsystem/CLI.pm \ + HP/Proliant/Component/TemperatureSubsystem/SNMP.pm \ + HP/Proliant/Component/CpuSubsystem.pm \ + HP/Proliant/Component/CpuSubsystem/CLI.pm \ + HP/Proliant/Component/CpuSubsystem/SNMP.pm \ + HP/Proliant/Component/FanSubsystem.pm \ + HP/Proliant/Component/FanSubsystem/CLI.pm \ + HP/Proliant/Component/FanSubsystem/SNMP.pm \ + HP/Proliant/Component/MemorySubsystem/CLI.pm \ + HP/Proliant/Component/MemorySubsystem/SNMP.pm \ + HP/Proliant/Component/MemorySubsystem.pm \ + HP/Proliant/Component/NicSubsystem/SNMP.pm \ + HP/Proliant/Component/NicSubsystem.pm \ + HP/Proliant/Component/AsrSubsystem/CLI.pm \ + HP/Proliant/Component/AsrSubsystem/SNMP.pm \ + HP/Proliant/Component/AsrSubsystem.pm \ + HP/Proliant/Component/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Da/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Da.pm \ + HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Sas.pm \ + HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Scsi.pm \ + HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Ide.pm \ + HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Fca.pm \ + HP/Proliant/Component/DiskSubsystem.pm \ + HP/Proliant/Component.pm \ + HP/Proliant.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm \ + HP/BladeSystem/Component/PowerEnclosureSubsystem.pm \ + HP/BladeSystem/Component/PowerSupplySubsystem.pm \ + HP/BladeSystem/Component/NetConnectorSubsystem.pm \ + HP/BladeSystem/Component/ServerBladeSubsystem.pm \ + HP/BladeSystem/Component.pm \ + HP/BladeSystem.pm \ + HP/Storage.pm \ + HP/StorageWorks.pm \ + HP/Server.pm +EXTRA_DIST=check_hpasm.pl $(EXTRA_MODULES) + +CLEANFILES=$(libexec_SCRIPTS) + +AM_INSTALL_PROGRAM_FLAGS=@INSTALL_OPTS@ + +.pm : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +.pl : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +.sh : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +$(libexec_SCRIPTS) : $(EXTRA_DIST) + $(ECHO) "#! #PERL# -w" | $(AWK) -f ./subst > $@ + $(ECHO) >> $@ + for m in ${EXTRA_MODULES}; do \ + $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "use Nagios::Plugin" >> $@; \ + done + $(ECHO) "package main;" >> $@ + $(CAT) check_hpasm.pl | $(AWK) -f ./subst >> $@ + chmod +x $@ +#| $(GREP) -v "use Nagios" >> $@; + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Makefile.in nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Makefile.in --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Makefile.in 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,412 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +LIBOBJDIR = +subdir = plugins-scripts +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/subst.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = subst +am__installdirs = "$(DESTDIR)$(libexecdir)" +libexecSCRIPT_INSTALL = $(INSTALL_SCRIPT) +SCRIPTS = $(libexec_SCRIPTS) +SOURCES = +DIST_SOURCES = +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +VPATH = $(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t +INSTALL = @INSTALL@ +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CELSIUS = @CELSIUS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EXTENDEDINFO = @EXTENDEDINFO@ +HPACUCLI = @HPACUCLI@ +HWINFO = @HWINFO@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_OPTS = @INSTALL_OPTS@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +NOINSTLEVEL = @NOINSTLEVEL@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERFDATA = @PERFDATA@ +PERL = @PERL@ +RELEASE = @RELEASE@ +SET_MAKE = @SET_MAKE@ +SH = @SH@ +SHELL = @SHELL@ +STRIP = @STRIP@ +SUPPORT = @SUPPORT@ +VERSION = @VERSION@ +WARRANTY = @WARRANTY@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +with_nagios_group = @with_nagios_group@ +with_nagios_user = @with_nagios_user@ +SED = /bin/sed +GREP = /bin/grep +CAT = /bin/cat +ECHO = /bin/echo +SUFFIXES = .pl .pm .sh +libexec_SCRIPTS = check_hpasm +MY_MODULES = +EXTRA_MODULES = \ + Nagios/MiniPlugin.pm \ + HP/SNMP/Utils.pm \ + HP/Proliant/Component/EventSubsystem.pm \ + HP/Proliant/Component/EventSubsystem/CLI.pm \ + HP/Proliant/Component/EventSubsystem/SNMP.pm \ + HP/Proliant/Component/PowersupplySubsystem.pm \ + HP/Proliant/Component/PowersupplySubsystem/CLI.pm \ + HP/Proliant/Component/PowersupplySubsystem/SNMP.pm \ + HP/Proliant/Component/TemperatureSubsystem.pm \ + HP/Proliant/Component/TemperatureSubsystem/CLI.pm \ + HP/Proliant/Component/TemperatureSubsystem/SNMP.pm \ + HP/Proliant/Component/CpuSubsystem.pm \ + HP/Proliant/Component/CpuSubsystem/CLI.pm \ + HP/Proliant/Component/CpuSubsystem/SNMP.pm \ + HP/Proliant/Component/FanSubsystem.pm \ + HP/Proliant/Component/FanSubsystem/CLI.pm \ + HP/Proliant/Component/FanSubsystem/SNMP.pm \ + HP/Proliant/Component/MemorySubsystem/CLI.pm \ + HP/Proliant/Component/MemorySubsystem/SNMP.pm \ + HP/Proliant/Component/MemorySubsystem.pm \ + HP/Proliant/Component/NicSubsystem/SNMP.pm \ + HP/Proliant/Component/NicSubsystem.pm \ + HP/Proliant/Component/AsrSubsystem/CLI.pm \ + HP/Proliant/Component/AsrSubsystem/SNMP.pm \ + HP/Proliant/Component/AsrSubsystem.pm \ + HP/Proliant/Component/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Da/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Da.pm \ + HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Sas.pm \ + HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Scsi.pm \ + HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Ide.pm \ + HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm \ + HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm \ + HP/Proliant/Component/DiskSubsystem/Fca.pm \ + HP/Proliant/Component/DiskSubsystem.pm \ + HP/Proliant/Component.pm \ + HP/Proliant.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem/TempSubsystem.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm \ + HP/BladeSystem/Component/CommonEnclosureSubsystem/ManagerSubsystem.pm \ + HP/BladeSystem/Component/PowerEnclosureSubsystem.pm \ + HP/BladeSystem/Component/PowerSupplySubsystem.pm \ + HP/BladeSystem/Component/NetConnectorSubsystem.pm \ + HP/BladeSystem/Component/ServerBladeSubsystem.pm \ + HP/BladeSystem/Component.pm \ + HP/BladeSystem.pm \ + HP/Storage.pm \ + HP/StorageWorks.pm \ + HP/Server.pm + +EXTRA_DIST = check_hpasm.pl $(EXTRA_MODULES) +CLEANFILES = $(libexec_SCRIPTS) +AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .pl .pm .sh +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins-scripts/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins-scripts/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +subst: $(top_builddir)/config.status $(srcdir)/subst.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +install-libexecSCRIPTS: $(libexec_SCRIPTS) + @$(NORMAL_INSTALL) + test -z "$(libexecdir)" || $(mkdir_p) "$(DESTDIR)$(libexecdir)" + @list='$(libexec_SCRIPTS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f $$d$$p; then \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " $(libexecSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(libexecdir)/$$f'"; \ + $(libexecSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(libexecdir)/$$f"; \ + else :; fi; \ + done + +uninstall-libexecSCRIPTS: + @$(NORMAL_UNINSTALL) + @list='$(libexec_SCRIPTS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " rm -f '$(DESTDIR)$(libexecdir)/$$f'"; \ + rm -f "$(DESTDIR)$(libexecdir)/$$f"; \ + done +uninstall-info-am: +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + $(mkdir_p) $(distdir)/HP $(distdir)/HP/BladeSystem $(distdir)/HP/BladeSystem/Component $(distdir)/HP/BladeSystem/Component/CommonEnclosureSubsystem $(distdir)/HP/Proliant $(distdir)/HP/Proliant/Component $(distdir)/HP/Proliant/Component/AsrSubsystem $(distdir)/HP/Proliant/Component/CpuSubsystem $(distdir)/HP/Proliant/Component/DiskSubsystem $(distdir)/HP/Proliant/Component/DiskSubsystem/Da $(distdir)/HP/Proliant/Component/DiskSubsystem/Fca $(distdir)/HP/Proliant/Component/DiskSubsystem/Ide $(distdir)/HP/Proliant/Component/DiskSubsystem/Sas $(distdir)/HP/Proliant/Component/DiskSubsystem/Scsi $(distdir)/HP/Proliant/Component/EventSubsystem $(distdir)/HP/Proliant/Component/FanSubsystem $(distdir)/HP/Proliant/Component/MemorySubsystem $(distdir)/HP/Proliant/Component/NicSubsystem $(distdir)/HP/Proliant/Component/PowersupplySubsystem $(distdir)/HP/Proliant/Component/TemperatureSubsystem $(distdir)/HP/SNMP $(distdir)/Nagios + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(SCRIPTS) +installdirs: + for dir in "$(DESTDIR)$(libexecdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-libexecSCRIPTS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-libexecSCRIPTS + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am \ + install-libexecSCRIPTS install-man install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ + uninstall-libexecSCRIPTS + + +.pm : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +.pl : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +.sh : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +$(libexec_SCRIPTS) : $(EXTRA_DIST) + $(ECHO) "#! #PERL# -w" | $(AWK) -f ./subst > $@ + $(ECHO) >> $@ + for m in ${EXTRA_MODULES}; do \ + $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "use Nagios::Plugin" >> $@; \ + done + $(ECHO) "package main;" >> $@ + $(CAT) check_hpasm.pl | $(AWK) -f ./subst >> $@ + chmod +x $@ +#| $(GREP) -v "use Nagios" >> $@; +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Nagios/MiniPlugin.pm nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Nagios/MiniPlugin.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Nagios/MiniPlugin.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/Nagios/MiniPlugin.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,333 @@ +package Nagios::MiniPlugin; + +use strict; +use Getopt::Long qw(:config no_ignore_case bundling); + +our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); + +require Exporter; +our @ISA = qw(Exporter); +our @EXPORT = (@STATUS_CODES, qw(nagios_exit nagios_die check_messages)); +our @EXPORT_OK = qw(%ERRORS); + +use constant OK => 0; +use constant WARNING => 1; +use constant CRITICAL => 2; +use constant UNKNOWN => 3; +use constant DEPENDENT => 4; + +our %ERRORS = ( + 'OK' => OK, + 'WARNING' => WARNING, + 'CRITICAL' => CRITICAL, + 'UNKNOWN' => UNKNOWN, + 'DEPENDENT' => DEPENDENT, +); + +our %STATUS_TEXT = reverse %ERRORS; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + perfdata => [], + messages => { + ok => [], + warning => [], + critical => [], + unknown => [], + }, + args => [], + opts => Nagios::MiniPlugin::Getopt->new(%params), + }; + foreach (qw(shortname usage version url plugin blurb extra + license timeout)) { + $self->{$_} = $params{$_}; + } + bless $self, $class; +} + +sub add_arg { + my $self = shift; + $self->{opts}->add_arg(@_); +} + +sub getopts { + my $self = shift; + $self->{opts}->getopts(); +} + +sub opts { + my $self = shift; + return $self->{opts}; +} + +sub add_message { + my $self = shift; + my ($code, @messages) = @_; + $code = (qw(ok warning critical unknown))[$code] if $code =~ /^\d+$/; + $code = lc $code; + push @{$self->{messages}->{$code}}, @messages; +} + +sub remove_message { + my $self = shift; + my ($code, @messages) = @_; + $code = (qw(ok warning critical unknown))[$code] if $code =~ /^\d+$/; + $code = lc $code; + pop @{$self->{messages}->{$code}}; +} + +sub add_perfdata { + my ($self, %args) = @_; + my $str = $args{label}.'='.$args{value}; + if ($args{uom}) { + $str .= $args{uom}; + } + if ($args{warning}) { + $str .= ';'.$args{warning}; + } + if ($args{critical}) { + $str .= ';'.$args{critical}; + } + push @{$self->{perfdata}}, $str; +} + + +sub check_messages { + my $self = shift; + my %args = @_; + + # Add object messages to any passed in as args + for my $code (qw(critical warning unknown ok)) { + my $messages = $self->{messages}->{$code} || []; + if ($args{$code}) { + unless (ref $args{$code} eq 'ARRAY') { + if ($code eq 'ok') { + $args{$code} = [ $args{$code} ]; + } + } + push @{$args{$code}}, @$messages; + } else { + $args{$code} = $messages; + } + } + my %arg = %args; + $arg{join} = ' ' unless defined $arg{join}; + + # Decide $code + my $code = OK; + $code ||= CRITICAL if @{$arg{critical}}; + $code ||= WARNING if @{$arg{warning}}; + $code ||= UNKNOWN if @{$arg{unknown}}; + return $code unless wantarray; + + # Compose message + my $message = ''; + if ($arg{join_all}) { + $message = join( $arg{join_all}, + map { @$_ ? join( $arg{'join'}, @$_) : () } + $arg{critical}, + $arg{warning}, + $arg{unknown}, + $arg{ok} ? (ref $arg{ok} ? $arg{ok} : [ $arg{ok} ]) : [] + ); + } + + else { + $message ||= join( $arg{'join'}, @{$arg{critical}} ) + if $code == CRITICAL; + $message ||= join( $arg{'join'}, @{$arg{warning}} ) + if $code == WARNING; + $message ||= join( $arg{'join'}, @{$arg{unknown}} ) + if $code == UNKNOWN; + $message ||= ref $arg{ok} ? join( $arg{'join'}, @{$arg{ok}} ) : $arg{ok} + if $arg{ok}; + } + + return ($code, $message); +} + +sub nagios_exit { + my $self = shift; + my ($code, $message, $arg) = @_; + $code = $ERRORS{$code} if defined $code && exists $ERRORS{$code}; + $code = UNKNOWN unless defined $code && exists $STATUS_TEXT{$code}; + $message = '' unless defined $message; + if (ref $message && ref $message eq 'ARRAY') { + $message = join(' ', map { chomp; $_ } @$message); + } else { + chomp $message; + } + my $output = "$STATUS_TEXT{$code}"; + $output .= " - $message" if defined $message && $message ne ''; + if (scalar (@{$self->{perfdata}})) { + $output .= " | ".join(" ", @{$self->{perfdata}}); + } + $output .= "\n"; + print $output; + exit $code; +} + +package Nagios::MiniPlugin::Getopt; + +use strict; +use File::Basename; +use Data::Dumper; +use Getopt::Long qw(:config no_ignore_case bundling); + +# Standard defaults +my %DEFAULT = ( + timeout => 60, + verbose => 0, + license => +"This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY. +It may be used, redistributed and/or modified under the terms of the GNU +General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).", +); +# Standard arguments +my @ARGS = ({ + spec => 'usage|?', + help => "-?, --usage\n Print usage information", + }, { + spec => 'help|h', + help => "-h, --help\n Print detailed help screen", + }, { + spec => 'version|V', + help => "-V, --version\n Print version information", + }, { + #spec => 'extra-opts:s@', + #help => "--extra-opts=[
[@]]\n Section and/or config_file from which to load extra options (may repeat)", + }, { + spec => 'timeout|t=i', + help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)", + default => $DEFAULT{timeout}, + }, { + spec => 'verbose|v+', + help => "-v, --verbose\n Show details for command-line debugging (can repeat up to 3 times)", + default => $DEFAULT{verbose}, + }, +); +# Standard arguments we traditionally display last in the help output +my %DEFER_ARGS = map { $_ => 1 } qw(timeout verbose); + +sub _init +{ + my $self = shift; + my %params = @_; + # Check params + my $plugin = basename($ENV{NAGIOS_PLUGIN} || $0); + #my %attr = validate( @_, { + my %attr = ( + usage => 1, + version => 0, + url => 0, + plugin => { default => $plugin }, + blurb => 0, + extra => 0, + 'extra-opts' => 0, + license => { default => $DEFAULT{license} }, + timeout => { default => $DEFAULT{timeout} }, + ); + + # Add attr to private _attr hash (except timeout) + $self->{timeout} = delete $attr{timeout}; + $self->{_attr} = { %attr }; + foreach (keys %{$self->{_attr}}) { + if (exists $params{$_}) { + $self->{_attr}->{$_} = $params{$_}; + } else { + $self->{_attr}->{$_} = $self->{_attr}->{$_}->{default} + if ref ($self->{_attr}->{$_}) eq 'HASH' && + exists $self->{_attr}->{$_}->{default}; + } + } + # Chomp _attr values + chomp foreach values %{$self->{_attr}}; + + # Setup initial args list + $self->{_args} = [ grep { exists $_->{spec} } @ARGS ]; + + $self +} + +sub new +{ + my $class = shift; + my $self = bless {}, $class; + $self->_init(@_); +} + +sub add_arg { + my $self = shift; + my %arg = @_; + push (@{$self->{_args}}, \%arg); +} + +sub getopts { + my $self = shift; + my %commandline = (); + my @params = map { $_->{spec} } @{$self->{_args}}; + if (! GetOptions(\%commandline, @params)) { + $self->print_help(); + exit 0; + } else { + no strict 'refs'; + do { $self->print_help(); exit 0; } if $commandline{help}; + do { $self->print_version(); exit 0 } if $commandline{version}; + do { $self->print_usage(); exit 0 } if $commandline{usage}; + foreach (map { $_->{spec} =~ /^([\w\-]+)/; $1; } @{$self->{_args}}) { + my $field = $_; + *{"$field"} = sub { + return $self->{opts}->{$field}; + }; + } + foreach (grep { exists $_->{default} } @{$self->{_args}}) { + $_->{spec} =~ /^([\w\-]+)/; + my $spec = $1; + $self->{opts}->{$spec} = $_->{default}; + } + foreach (keys %commandline) { + $self->{opts}->{$_} = $commandline{$_}; + } + } +} + +sub get { + my $self = shift; + my $opt = shift; + return $self->{opts}->{$opt}; +} + +sub print_help { + my $self = shift; + $self->print_version(); + printf "\n%s\n", $self->{_attr}->{license}; + printf "\n%s\n\n", $self->{_attr}->{blurb}; + $self->print_usage(); + foreach (@{$self->{_args}}) { + printf " %s\n", $_->{help}; + } + exit 0; +} + +sub print_usage { + my $self = shift; + printf $self->{_attr}->{usage}, $self->{_attr}->{plugin}; + print "\n"; +} + +sub print_version { + my $self = shift; + printf "%s %s", $self->{_attr}->{plugin}, $self->{_attr}->{version}; + printf " [%s]", $self->{_attr}->{url} if $self->{_attr}->{url}; + print "\n"; +} + +sub print_license { + my $self = shift; + printf "%s\n", $self->{_attr}->{license}; + print "\n"; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/subst.in nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/subst.in --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/subst.in 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/plugins-scripts/subst.in 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,64 @@ +#!/usr/bin/awk + +function which(c,path) { + cmd = "test -x " c; + + if (system(cmd)==0) { + return c; + } + + sub(/\/.*\//,"",c); + for (dir in path) { + cmd = "test -x " path[dir] "/" c; + if (system(cmd)==0) { + return path[dir] "/" c; + } + } + + + return c; +} + +# used to replace "use lib utils.pm" with "use lib @libexecdir" +# +function led() { + led1 = "@libexecdir@"; + led2 = "@exec_prefix@"; + led3 = "@prefix@"; + if ( match(led1, /^\$\{exec_prefix\}/ ) != 0 ) { + return "\"" led3 "/libexec\" " ; + + } + return "\"" led1 "\"" ; +} + +BEGIN { + split(ENVIRON["PATH"] ":/sbin:/usr/sbin",path,/:/); + +} + +# scripting language (first line) + +/^#! ?\/.*\/python/ {sub(/^#! ?\/.*\/python/,"#! @PYTHON@");} +/^#! ?\/.*\/perl/ {sub(/^#! ?\/.*\/perl/,"#! @PERL@");} +/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");} +/^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");} + +# add to libexecdir to INC for perl utils.pm +/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } } + + +# Replace the placeholders with the values from configure +/#PERL#/ {sub(/#PERL#/,"@PERL@");} +/my \$NOINSTLEVEL = 'unknown'/ {sub(/unknown/,"@NOINSTLEVEL@");} +/my \$CELSIUS = 1;/ {sub(/1/,"@CELSIUS@");} +/my \$PERFDATA = 1;/ {sub(/1/,"@PERFDATA@");} +/my \$EXTENDEDINFO = 1;/ {sub(/1/,"@EXTENDEDINFO@");} +/my \$HWINFO = 1;/ {sub(/1/,"@HWINFO@");} +/my \$HPACUCLI = 1;/ {sub(/1/,"@HPACUCLI@");} +/version => '.*',/ {sub(/'.*'/,"'@PACKAGE_VERSION@'");} + +{ + print; +} + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/README nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/README --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/README 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/README 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,346 @@ +check_hpasm Nagios Plugin README +--------------------- + +This plugin checks the hardware health of HP Proliant servers with the +hpasm software installed. It uses the hpasmcli command to acquire the +condition of the system's critical components like cpus, power supplies, +temperatures, fans and memory modules. Newer versions also use SNMP. + +* For instructions on installing this plugin for use with Nagios, + see below. In addition, generic instructions for the GNU toolchain + can be found in the INSTALL file. + +* For major changes between releases, read the CHANGES file. + +* For information on detailed changes that have been made, + read the Changelog file. + +* This plugins is self documenting. All plugins that comply with + the basic guidelines for development will provide detailed help when + invoked with the '-h' or '--help' options. + +You can check for the latest plugin at: + http://www.consol.de/opensource/nagios/check-hpasm + +Send mail to gerhard.lausser@consol.de for assistance. +Please include the OS type and version that you are using. +Also, run the plugin with the '-v' option and provide the resulting +version information. Of course, there may be additional diagnostic information +required as well. Use good judgment. + + +How to "compile" the check_hpasm script. +-------------------------------------------------------- + +1) Run the configure script to initialize variables and create a Makefile, etc. + + ./configure --prefix=BASEDIRECTORY --with-nagios-user=SOMEUSER --with-nagios-group=SOMEGROUP --with-perl=PATH_TO_PERL --with-noinst-level=LEVEL --with-degrees=UNIT --with-perfdata --with-hpacucli + + a) Replace BASEDIRECTORY with the path of the directory under which Nagios + is installed (default is '/usr/local/nagios') + b) Replace SOMEUSER with the name of a user on your system that will be + assigned permissions to the installed plugins (default is 'nagios') + c) Replace SOMEGRP with the name of a group on your system that will be + assigned permissions to the installed plugins (default is 'nagios') + d) Replace PATH_TO_PERL with the path where a perl binary can be found. + Besides the system wide perl you might have installed a private perl + just for the nagios plugins (default is the perl in your path). + e) Replace LEVEL with one of ok, warning, critical or unknown. + If the required hpasm-rpm is not installed, the check_hpasm plugin + will exit with the level specified. If you chose ok, the message + will say "ok - .... hpasm is not installed". This is different from + the "ok - hardware working fine" if hpasm was found. + The default is to treat a missing hpasm package as ok. + f) Replace UNIT with one of celsius or fahrenheit. The hpasmcli "show temp" + prints temperatures both in units of celsius and fahrenheit. With the + --with-degrees option you can decide which units will be shown in an + alarm message. + The default is "celsius". + g) You can tell check_hpasm to output performance data by default if + you call configure with the --enable-perfdata option. + h) You can tell check_hpasm to check the raid status with the hpacucli command + if you call configure with the --enable-hpacucli option. + You need the hpacucli rpm. + +2) "Compile" the plugin with the following command: + + make + + This will produce a "check_hpasm" script. You will also find + a "check_hpasm.pl" which you better ignore. It is the base for + the compilation filled with placeholders. These will be replaced during + the make process. + + +3) Install the compiled plugin script with the following command: + + make install + + The installation procedure will attempt to place the plugin in a + 'libexec/' subdirectory in the base directory you specified with + the --prefix argument to the configure script. + + +4) Verify that your configuration files for Nagios contains + the correct paths to the new plugin. + + +5) Add this line to /etc/sudoers: + nagios ALL=NOPASSWD: /sbin/hpasmcli + or ths, if you also installed the hpacu package + nagios ALL=NOPASSWD: /sbin/hpasmcli, /usr/sbin/hpacucli + + + +Command line parameters +----------------------- + +-v, --verbose + Increased verbosity will print how check_hpasm communicates with the + hpasm daemon and which values were acquired. + +-t, --timeout + The number of seconds after which the plugin will abort. + +-b, --blacklist + If some components of your system are missing (mostly the secondary + power supply bay is empty) and you tolerate this, then blacklist the + missing/failed component to avoid false alarms. + The value for this option is a slash-separated list of components to + ignore. + Example: -b p:1,2/f:2/t:3,4/c:1/d:0-1,0-2 + means: ignore power supplies #1 and #2, fan #2, temperature #3 and #4, + cpu #1 and dimms #1 and #2 in cartridge #0. + +-c, --customthresh + Override the machine-default temperature thresholds. + Example: -c 1:60/4:80/5:50 + Sets limit for temperature 1 to 60 degrees, temperature 4 to 80 degrees + and temperature 5 to 50 degrees. You get the consecutive numbers by + calling check_hpasm -v + ... + checking temperatures + 1 processor_zone temperature is 46 (62 max) + 2 cpu#1 temperature is 43 (73 max) + 3 i/o_zone temperature is 54 (68 max) + 4 cpu#2 temperature is 46 (73 max) + 5 power_supply_bay temperature is 38 (55 max) + +-p, --perfdata + Add performance data to the output even if you did not compile check_hpasm + with --with-perfdata in step 1. + + + +SNMP and Memory Modules +----------------------- +Older hardware does not always show valuable information when queried for +the health of memory modules. Maybe it's because older modules do not support +error checking at all. + + +1. no cpqHeResMemModule +--------------------------------------------------------------------------- + +2. collapsed cpqHeResMemModule +--------------------------------------------------------------------------- + +Some (older) systems do not support the cpqHeResMemModuleEntry table. +Either there is no oid with 1.3.6.1.4.1.232.6.2.14.11.1 at all +or there is a single oid like + +Example: +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.1 = INTEGER: 524288 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.2 = INTEGER: 262144 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.3 = INTEGER: 0 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.4 = INTEGER: 524288 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.5 = INTEGER: 262144 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.6 = INTEGER: 0 + + ^-- module number + ^-- cartridge number (0 = system board) + ^-- size + +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.6 = INTEGER: 0 + +I compared 300 systems and found out that with +1.3.6.1.4.1.232.6.2.14.11.1... = +no1 is always 1 +no2 is always 0 +no3 is the number of memory slots (including the empty ones). +no4 is always 0. It is probably the health status of the +overall memory subsystem. I don't know. +I will implement 0 = ok, not 0 = ask compaq + +cpqSiMemECCStatus provides no usable information. All my test systems +showed 0 which is an undocumented value. + +function get_size(cpqHeResMemModuleEntry) will return 1. + +3. cpqHeResMemModule containing crap +--------------------------------------------------------------------------- + +grepping for cpqSiMemBoardSize shows 4 modules +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.1 = INTEGER: 262144 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.2 = INTEGER: 262144 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.3 = INTEGER: 0 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.4 = INTEGER: 262144 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.5 = INTEGER: 262144 +iso.3.6.1.4.1.232.2.2.4.5.1.3.0.6 = INTEGER: 0 + +grepping for cpqHeResMemEntry shows one module with zero values +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.0 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.2.0.0 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.3.0.0 = "" +iso.3.6.1.4.1.232.6.2.14.11.1.4.0.0 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.5.0.0 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.6.0.0 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + +4. cpqHeResMemModuleEntry and cpqSiMemModuleEntry use different table indexes +--------------------------------------------------------------------------- + +cpqSiMemBoardIndex 1.3.6.1.4.1.232.2.2.4.5.1.1 +cpqSiMemModuleIndex 1.3.6.1.4.1.232.2.2.4.5.1.2 + +cpqHeResMemBoardIndex 1.3.6.1.4.1.232.6.2.14.11.1.1 +cpqHeResMemModuleIndex 1.3.6.1.4.1.232.6.2.14.11.1.2 + + +cpqSiMemBoardIndex +SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.1 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.2 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.3 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.4 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.5 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.2.2.4.5.1.1.0.6 = INTEGER: 0 + +cpqHeResMemBoardIndex +SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.1 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.2 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.3 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.4 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.5 = INTEGER: 0 +SNMPv2-SMI::enterprises.232.6.2.14.11.1.1.1.6 = INTEGER: 0 + +It is not possible to use the SNMP-table-indices to identify the +corresponding he-entry. Matching is done with nested loops. + +5. even worse: cpqHeResMemBoardIndex and cpqSiMemBoardIndex don't match +--------------------------------------------------------------------------- + +cpqSiMemBoardIndex +iso.3.6.1.4.1.232.2.2.4.5.1.1.1.1 = INTEGER: 1 +iso.3.6.1.4.1.232.2.2.4.5.1.1.1.2 = INTEGER: 1 +iso.3.6.1.4.1.232.2.2.4.5.1.1.1.3 = INTEGER: 1 +iso.3.6.1.4.1.232.2.2.4.5.1.1.1.4 = INTEGER: 1 +iso.3.6.1.4.1.232.2.2.4.5.1.1.1.5 = INTEGER: 1 +iso.3.6.1.4.1.232.2.2.4.5.1.1.1.6 = INTEGER: 1 +iso.3.6.1.4.1.232.2.2.4.5.1.1.1.7 = INTEGER: 1 +iso.3.6.1.4.1.232.2.2.4.5.1.1.1.8 = INTEGER: 1 +iso.3.6.1.4.1.232.2.2.4.5.1.1.2.1 = INTEGER: 2 +iso.3.6.1.4.1.232.2.2.4.5.1.1.2.2 = INTEGER: 2 +iso.3.6.1.4.1.232.2.2.4.5.1.1.2.3 = INTEGER: 2 +iso.3.6.1.4.1.232.2.2.4.5.1.1.2.4 = INTEGER: 2 +iso.3.6.1.4.1.232.2.2.4.5.1.1.2.5 = INTEGER: 2 +iso.3.6.1.4.1.232.2.2.4.5.1.1.2.6 = INTEGER: 2 +iso.3.6.1.4.1.232.2.2.4.5.1.1.2.7 = INTEGER: 2 +iso.3.6.1.4.1.232.2.2.4.5.1.1.2.8 = INTEGER: 2 +iso.3.6.1.4.1.232.2.2.4.5.1.1.3.1 = INTEGER: 3 + +cpqHeResMemBoardIndex +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.1 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.2 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.3 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.4 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.5 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.6 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.7 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.1.0.8 = INTEGER: 0 +iso.3.6.1.4.1.232.6.2.14.11.1.1.1.1 = INTEGER: 1 +iso.3.6.1.4.1.232.6.2.14.11.1.1.1.2 = INTEGER: 1 +iso.3.6.1.4.1.232.6.2.14.11.1.1.1.3 = INTEGER: 1 +iso.3.6.1.4.1.232.6.2.14.11.1.1.1.4 = INTEGER: 1 +iso.3.6.1.4.1.232.6.2.14.11.1.1.1.5 = INTEGER: 1 +iso.3.6.1.4.1.232.6.2.14.11.1.1.1.6 = INTEGER: 1 +iso.3.6.1.4.1.232.6.2.14.11.1.1.1.7 = INTEGER: 1 +iso.3.6.1.4.1.232.6.2.14.11.1.1.1.8 = INTEGER: 1 +iso.3.6.1.4.1.232.6.2.14.11.1.1.2.1 = INTEGER: 2 + + +Redundant fans +----------------------- +I saw one old server which had only half of the possible fans installed. + +Fan# 1 2 3 4 5 6 + +cpqHeFltTolFanPresent yes no yes no yes no +cpqHeFltTolFanRedundant no no no no no no +cpqHeFltTolFanRedundantPartner 2 1 4 3 6 5 +cpqHeFltTolFanCondition ok other ok other ok other +cpqHeFltTolFanLocation cpu cpu cpu cpu io io + +Normally this would result in +... +fan #1 (cpu) is not redundant +fan #2 (cpu) is not redundant +fan #3 (cpu) is not redundant +fan #4 (cpu) is not redundant +fan #5 (ioboard) is not redundant +fan #6 (ioboard) is not redundant +WARNING - fan #1 (cpu) is not redundant, fan #2 (cpu) is not redundant, fan #3 (cpu) is not redundant, fan #4 (cpu) is not redundant, fan #5 (ioboard) is not redundant, fan #6 (ioboard) is not redundant + +However it was the server's owner decision not to install fan pairs but only one fan per location, so for him this is a false alert. + +By using --ignore-fan-redundancy check_hpasm only looks at the cpqHeFltTolFanCondition and ignores dependencies between two fans, so the result is: + +fan 1 speed is normal, pctmax is 50%, location is cpu, redundance is no, partner is 2 +fan 3 speed is normal, pctmax is 50%, location is cpu, redundance is no, partner is 4 +fan 5 speed is normal, pctmax is 50%, location is ioboard, redundance is no, partner is 6 +OK - System: 'proliant ml370 g3', ... + + +A snmp forwarding trick +----------------------- +local - where check_hpasm runs +remote - where a proliant can be reached +proliant - where the snmp agent runs + +remote: +ssh -R6667:localhost:6667 local +socat tcp4-listen:6667,reuseaddr,fork UDP:proliant:161 + +local: +socat udp4-listen:161,reuseaddr,fork tcp:localhost:6667 +check_hpasm --hostname 127.0.0.1 + + +Sample data from real machines +------------------------------ + +hpasmcli=$(which hpasmcli) +hpacucli=$(which hpacucli) +for i in server powersupply fans temp dimm +do + $hpasmcli -s "show $i" | while read line + do + printf "%s %s\n" $i "$line" + done +done +if [ -x "$hpacucli" ]; then + for i in config status + do + $hpacucli ctrl all show $i | while read line + do + printf "%s %s\n" $i "$line" + done + done +fi + +If you think check_hpasm is not working correctly, please run the above script +and send me the output. It's also helpful to see the output of snmpwalk +snmpwalk .... 1.3.6.1.4.1.232 + + +-- +Gerhard Lausser diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/TODO nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/TODO --- nagios-plugins-contrib-14.20141104/check_hpasm/check_hpasm-4.7.1.1/TODO 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/check_hpasm-4.7.1.1/TODO 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,71 @@ +"1.3.6.1.4.1.232.6.2.9.3.1.4.0"; /* PSU Table */ +warning = 3, critical = 4 + +"1.3.6.1.4.1.232.6.2.6.4.0"; /* Fan status */ +oder auch .... 7 +warning = 3, critical = 4 +3=non-required fan im arsch +4=required fan im arsch + + +"1.3.6.1.4.1.232.3.2.5.1.1.5"; /* Location Table */ +"1.3.6.1.4.1.232.3.2.5.1.1.6"; /* Drive Table */ +"1.3.6.1.4.1.232.3.2.5.1.1.50"; /* Drive Bus */ + + +"1.3.6.1.4.1.232.6.2.6.8.1.4.1"; /* Temperature table */ + +ml370g4 + "Processor zone", + "CPU 1", + "I/O zone", + "CPU 2" + 57.0, 80.0, 53.0, 80.0 + +dl385g1 + "CPU 1", + "I/O zone", + "CPU 2", + "Processor zone", + "PSU bay" + 100.0, 62.0, 100.0, 60.0, 51.0 + +dl380g4 + "Processor zone", + "CPU 1", + "I/O zone", + "CPU 2", + "PSU bay" + 62.0, 80.0, 60.0, 80.0, 50.0 + +dl380g3 + "Processor zone", + "CPU 1", + "I/O zone", + "CPU 2", + "PSU bay" + 62.0, 73.0, 68.0, 73.0, 53.0 + +dl360g4 + "I/O zone", + "CPU 1", + "CPU 2", + "PSU bay", + "System board" + 63.0, 85.0, 85.0, 48.0, 41.0 + +dl360g3 + "Processor zone", + "CPU 1", + "I/O zone", + "CPU 2" + 56.0, 67.0, 57.0, 67.0 + +dl329g3 + "Processor zone", + "CPU 1", + "I/O zone" + 41.0, 85.0, 52.0 + + + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/control nagios-plugins-contrib-16.20151226/check_hpasm/control --- nagios-plugins-contrib-14.20141104/check_hpasm/control 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/control 2015-12-26 17:20:34.000000000 +0000 @@ -15,4 +15,4 @@ outside its normal parameters. Build-Depends: autotools-dev Recommends: snmp -Version: 4.6.3.2 +Version: 4.7.1.1 diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/ChangeLog nagios-plugins-contrib-16.20151226/check_hpasm/src/ChangeLog --- nagios-plugins-contrib-14.20141104/check_hpasm/src/ChangeLog 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/ChangeLog 2015-12-26 17:20:34.000000000 +0000 @@ -2,6 +2,29 @@ # Changelog of the check_hpasm plugin # ####################################### +4.7.1.1 2015-06-08 +- bugfix for gen9 with broken SysRomVer string + +4.7.1 2015-03-23 +- interpret other status for fcal as ok + +4.7.0.2 2014-03-18 +- add another storageworks detection +- add StoreEasy detection (thanks Alexander Laimer) + +4.7.0.1 2014-03-04 +- bugfix in blacklisting (Thanks Ingvar Hagelund) + +4.7 2014-02-21 +- add StorageWorks + +4.6.3.4 2013-05-15 +- fix a bug in fan perfdata (absent fans were shown with 0%) + +4.6.3.3 2013-04-10 +- fix a bug in snmp overall nic condition +- sort events by id numerically + 4.6.3.2 2013-03-19 - fix a bug in proliant/gen8/ilo temperature thresholds (Thanks Kai Benninghoff and Stephane Loeuillet) diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/config.guess nagios-plugins-contrib-16.20151226/check_hpasm/src/config.guess --- nagios-plugins-contrib-14.20141104/check_hpasm/src/config.guess 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/config.guess 2015-12-26 17:20:34.000000000 +0000 @@ -1,13 +1,12 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2003-10-20' +timestamp='2013-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -16,24 +15,22 @@ # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Per Bothner . -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner. # -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. +# Please send patches with a ChangeLog entry to config-patches@gnu.org. + me=`echo "$0" | sed -e 's,.*/,,'` @@ -53,8 +50,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -66,11 +62,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -104,7 +100,7 @@ trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; @@ -123,7 +119,7 @@ ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ;' +esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) @@ -136,12 +132,33 @@ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac + # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward @@ -158,6 +175,7 @@ arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched @@ -166,7 +184,7 @@ arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null + | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? @@ -176,7 +194,7 @@ fi ;; *) - os=netbsd + os=netbsd ;; esac # The OS release @@ -196,53 +214,36 @@ # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - macppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvmeppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pegasos:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mipseb-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then + case $UNAME_RELEASE in + *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU @@ -280,45 +281,52 @@ "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac + # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; - Alpha*:OpenVMS:*:*) - echo alpha-hp-vms - exit 0 ;; + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix - exit 0 ;; + exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 - exit 0 ;; + exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 - exit 0;; + exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; + exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos - exit 0 ;; + exit ;; *:OS/390:*:*) echo i370-ibm-openedition - exit 0 ;; + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; *:OS400:*:*) - echo powerpc-ibm-os400 - exit 0 ;; + echo powerpc-ibm-os400 + exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; + exit ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp - exit 0;; + exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then @@ -326,32 +334,51 @@ else echo pyramid-pyramid-bsd fi - exit 0 ;; + exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 - exit 0 ;; + exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 - exit 0 ;; - DRS?6000:UNIX_SV:4.2*:7*) + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7 && exit 0 ;; + sparc) echo sparc-icl-nx7; exit ;; esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) @@ -360,10 +387,10 @@ esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; + exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 @@ -375,10 +402,10 @@ echo sparc-sun-sunos${UNAME_RELEASE} ;; esac - exit 0 ;; + exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor @@ -388,38 +415,41 @@ # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; + exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 - exit 0 ;; + exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; + exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -443,35 +473,36 @@ exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c \ - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; + exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax - exit 0 ;; + exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix - exit 0 ;; + exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 - exit 0 ;; + exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 - exit 0 ;; + exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ @@ -484,29 +515,29 @@ else echo i586-dg-dgux${UNAME_RELEASE} fi - exit 0 ;; + exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 - exit 0 ;; + exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 - exit 0 ;; + exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd - exit 0 ;; + exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; + exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix - exit 0 ;; + exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` @@ -514,7 +545,7 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build @@ -529,15 +560,19 @@ exit(0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo rs6000-ibm-aix3.2.5 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi - exit 0 ;; - *:AIX:*:[45]) + exit ;; + *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 @@ -550,28 +585,28 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:*:*) echo rs6000-ibm-aix - exit 0 ;; + exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 - exit 0 ;; + exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 + exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx - exit 0 ;; + exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 - exit 0 ;; + exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd - exit 0 ;; + exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 - exit 0 ;; + exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in @@ -580,52 +615,52 @@ 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac + esac ;; + esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa @@ -633,9 +668,19 @@ esac if [ ${HP_ARCH} = "hppa2.0w" ] then - # avoid double evaluation of $set_cc_for_build - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ then HP_ARCH="hppa2.0w" else @@ -643,11 +688,11 @@ fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -675,337 +720,345 @@ exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 - exit 0 ;; + exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd - exit 0 ;; + exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd - exit 0 ;; + exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix - exit 0 ;; + exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf - exit 0 ;; + exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf - exit 0 ;; + exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi - exit 0 ;; + exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites - exit 0 ;; + exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd - exit 0 ;; + exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd - exit 0 ;; + exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd - exit 0 ;; + exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd - exit 0 ;; + exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; *:UNICOS/mp:*:*) - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:FreeBSD:*:*) - # Determine whether the default compiler uses glibc. - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #if __GLIBC__ >= 2 - LIBC=gnu - #else - LIBC= - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - # GNU/KFreeBSD systems have a "k" prefix to indicate we are using - # FreeBSD's kernel, but not the complete OS. - case ${LIBC} in gnu) kernel_only='k' ;; esac - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} - exit 0 ;; + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) + exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; + *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; + exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 - exit 0 ;; - x86:Interix*:[34]*) - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' - exit 0 ;; + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks - exit 0 ;; + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix - exit 0 ;; + exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin - exit 0 ;; + exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; *:GNU:*:*) # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix - exit 0 ;; + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; arm*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; cris:Linux:*:*) - echo cris-axis-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - mips:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips - #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 - ;; - mips64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU - #undef mips64 - #undef mips64el + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mips64el + CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips64 + CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit 0 ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit 0 ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit 0 ;; + or1k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + or32:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; esac - exit 0 ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit 0 ;; + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu - exit 0 ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - a.out-i386-linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 ;; - coff-i386) - echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 ;; - "") - # Either a pre-BFD a.out linker (linux-gnuoldld) or - # one that does not give us useful --help. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit 0 ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #ifdef __INTEL_COMPILER - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 - ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 - exit 0 ;; + exit ;; i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. + # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx - exit 0 ;; + exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop - exit 0 ;; + exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos - exit 0 ;; - i*86:syllable:*:*) + exit ;; + i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable - exit 0 ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; + exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then @@ -1013,15 +1066,16 @@ else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi - exit 0 ;; - i*86:*:5:[78]*) + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi - exit 0 ;; + exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv - exit 0 ;; + exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv - exit 0 ;; + exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 - exit 0 ;; + exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; + exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` @@ -1113,68 +1180,99 @@ else echo ns32k-sni-sysv fi - exit 0 ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit 0 ;; + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 - exit 0 ;; + exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 - exit 0 ;; + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos - exit 0 ;; + exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; + exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 - exit 0 ;; + exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv${UNAME_RELEASE} else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv${UNAME_RELEASE} fi - exit 0 ;; + exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos - exit 0 ;; + exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos - exit 0 ;; + exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos - exit 0 ;; + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Darwin:*:*) - case `uname -p` in - *86) UNAME_PROCESSOR=i686 ;; - powerpc) UNAME_PROCESSOR=powerpc ;; - esac + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit 0 ;; + exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then @@ -1182,22 +1280,28 @@ UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit 0 ;; + exit ;; *:QNX:*:4*) echo i386-pc-qnx - exit 0 ;; - NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) + exit ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} - exit 0 ;; + exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux - exit 0 ;; + exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv - exit 0 ;; + exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 @@ -1208,36 +1312,55 @@ UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 - exit 0 ;; + exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 - exit 0 ;; + exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex - exit 0 ;; + exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 - exit 0 ;; + exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 - exit 0 ;; + exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 - exit 0 ;; + exit ;; *:ITS:*:*) echo pdp10-unknown-its - exit 0 ;; + exit ;; SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit 0 ;; - *:DRAGONFLY:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE} - exit 0 ;; + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; esac -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - eval $set_cc_for_build cat >$dummy.c < printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 - "4" + "4" #else - "" + "" #endif - ); exit (0); + ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); + printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) @@ -1353,11 +1476,12 @@ } EOF -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) @@ -1366,22 +1490,22 @@ case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd - exit 0 ;; + exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; c34*) echo c34-convex-bsd - exit 0 ;; + exit ;; c38*) echo c38-convex-bsd - exit 0 ;; + exit ;; c4*) echo c4-convex-bsd - exit 0 ;; + exit ;; esac fi @@ -1392,7 +1516,9 @@ the operating system you are using. It is advised that you download the most up to date version of the config scripts from - ftp://ftp.gnu.org/pub/gnu/config/ + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD +and + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run ($0) is already up to date, please send the following data and any information you think might be diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/config.sub nagios-plugins-contrib-16.20151226/check_hpasm/src/config.sub --- nagios-plugins-contrib-14.20141104/check_hpasm/src/config.sub 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/config.sub 2015-12-26 17:20:34.000000000 +0000 @@ -1,42 +1,40 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2003-11-20' +timestamp='2013-04-24' -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - +# along with this program; if not, see . +# # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. + +# Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. @@ -70,8 +68,7 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -83,11 +80,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -99,7 +96,7 @@ *local*) # First pass through any local machine types. echo $1 - exit 0;; + exit ;; * ) break ;; @@ -118,11 +115,18 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] @@ -145,10 +149,13 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) + -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; + -bluegene*) + os=-cnk + ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 @@ -163,13 +170,17 @@ os=-chorusos basic_machine=$1 ;; - -chorusrdb) - os=-chorusrdb + -chorusrdb) + os=-chorusrdb basic_machine=$1 - ;; + ;; -hiux*) os=-hiuxwe2 ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -186,6 +197,10 @@ # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -203,6 +218,12 @@ -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; -lynx*) os=-lynxos ;; @@ -227,57 +248,106 @@ # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ + | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | be32 | be64 \ + | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ + | epiphany \ + | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | m32r | m68000 | m68k | m88k | mcore \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ - | mips64vr | mips64vrel \ + | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ + | moxie \ + | mt \ | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ - | openrisc | or32 \ + | open8 \ + | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ - | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ - | v850 | v850e \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ - | x86 | xscale | xstormy16 | xtensa \ - | z8k) + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) basic_machine=$basic_machine-unknown ;; - m6811 | m68hc11 | m6812 | m68hc12) - # Motorola 68HC11/12. + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and @@ -293,59 +363,82 @@ # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ + | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* \ - | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | cydra-* \ + | avr-* | avr32-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ - | m32r-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | mcore-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ - | mips64vr-* | mips64vrel-* \ + | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ - | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ + | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ | tron-* \ - | v850-* | v850e-* | vax-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ - | xtensa-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ | ymp-* \ - | z8k-*) + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. @@ -363,6 +456,9 @@ basic_machine=a29k-amd os=-udi ;; + abacus) + basic_machine=abacus-unknown + ;; adobe68k) basic_machine=m68010-adobe os=-scout @@ -380,6 +476,9 @@ amd64) basic_machine=x86_64-pc ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; amdahl) basic_machine=580-amdahl os=-sysv @@ -403,6 +502,10 @@ basic_machine=m68k-apollo os=-bsd ;; + aros) + basic_machine=i386-pc + os=-aros + ;; aux) basic_machine=m68k-apple os=-aux @@ -411,10 +514,35 @@ basic_machine=ns32k-sequent os=-dynix ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; c90) basic_machine=c90-cray os=-unicos ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; convex-c1) basic_machine=c1-convex os=-bsd @@ -439,12 +567,27 @@ basic_machine=j90-cray os=-unicos ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; crds | unos) basic_machine=m68k-crds ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; da30 | da30-*) basic_machine=m68k-da30 ;; @@ -467,6 +610,14 @@ basic_machine=m88k-motorola os=-sysv3 ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx @@ -578,7 +729,6 @@ i370-ibm* | ibm*) basic_machine=i370-ibm ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 @@ -617,6 +767,14 @@ basic_machine=m68k-isi os=-sysv ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; m88k-omron*) basic_machine=m88k-omron ;; @@ -628,10 +786,21 @@ basic_machine=ns32k-utek os=-sysv ;; + microblaze*) + basic_machine=microblaze-xilinx + ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; miniframe) basic_machine=m68000-convergent ;; @@ -645,10 +814,6 @@ mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; monitor) basic_machine=m68k-rom68k os=-coff @@ -661,10 +826,21 @@ basic_machine=i386-pc os=-msdos ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i386-pc + os=-msys + ;; mvs) basic_machine=i370-ibm os=-mvs ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; ncr3000) basic_machine=i486-ncr os=-sysv4 @@ -729,9 +905,11 @@ np1) basic_machine=np1-gould ;; - nv1) - basic_machine=nv1-cray - os=-unicosmp + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem @@ -740,9 +918,8 @@ basic_machine=hppa1.1-oki os=-proelf ;; - or32 | or32-*) + openrisc | openrisc-*) basic_machine=or32-unknown - os=-coff ;; os400) basic_machine=powerpc-ibm @@ -764,6 +941,14 @@ basic_machine=i860-intel os=-osf ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; pbd) basic_machine=sparc-tti ;; @@ -773,6 +958,12 @@ pc532 | pc532-*) basic_machine=ns32k-pc532 ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; @@ -802,9 +993,10 @@ ;; power) basic_machine=power-ibm ;; - ppc) basic_machine=powerpc-unknown + ppc | ppcbe) basic_machine=powerpc-unknown ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown @@ -829,6 +1021,14 @@ basic_machine=i586-unknown os=-pw32 ;; + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) + basic_machine=i386-pc + os=-rdos + ;; rom68k) basic_machine=m68k-rom68k os=-coff @@ -855,6 +1055,10 @@ sb1el) basic_machine=mipsisa64sb1el-unknown ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; sei) basic_machine=mips-sei os=-seiux @@ -866,6 +1070,9 @@ basic_machine=sh-hitachi os=-hms ;; + sh5el) + basic_machine=sh5le-unknown + ;; sh64) basic_machine=sh64-unknown ;; @@ -887,6 +1094,9 @@ basic_machine=i860-stratus os=-sysv4 ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; sun2) basic_machine=m68000-sun ;; @@ -943,17 +1153,9 @@ basic_machine=t90-cray os=-unicos ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown @@ -1015,9 +1217,16 @@ basic_machine=hppa1.1-winbond os=-proelf ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; xps | xps100) basic_machine=xps100-honeywell ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; ymp) basic_machine=ymp-cray os=-unicos @@ -1026,6 +1235,10 @@ basic_machine=z8k-unknown os=-sim ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; none) basic_machine=none-none os=-none @@ -1045,6 +1258,9 @@ romp) basic_machine=romp-ibm ;; + mmix) + basic_machine=mmix-knuth + ;; rs6000) basic_machine=rs6000-ibm ;; @@ -1061,13 +1277,10 @@ we32k) basic_machine=we32k-att ;; - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sh64) - basic_machine=sh64-unknown - ;; - sparc | sparcv9 | sparcv9b) + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) @@ -1111,9 +1324,12 @@ if [ x"$os" != x"" ] then case $os in - # First match some system type aliases - # that might get confused with valid system types. + # First match some system type aliases + # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; @@ -1134,25 +1350,31 @@ # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ + | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1170,7 +1392,7 @@ os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) @@ -1191,7 +1413,7 @@ -opened*) os=-openedition ;; - -os400*) + -os400*) os=-os400 ;; -wince*) @@ -1240,7 +1462,7 @@ -sinix*) os=-sysv4 ;; - -tpf*) + -tpf*) os=-tpf ;; -triton*) @@ -1276,8 +1498,13 @@ -aros*) os=-aros ;; - -kaos*) - os=-kaos + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) ;; -none) ;; @@ -1301,6 +1528,12 @@ # system, and we'll never get to this point. case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; *-acorn) os=-riscix1.2 ;; @@ -1310,9 +1543,21 @@ arm*-semi) os=-aout ;; - c4x-* | tic4x-*) - os=-coff - ;; + c4x-* | tic4x-*) + os=-coff + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 @@ -1331,19 +1576,22 @@ ;; m68000-sun) os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 ;; m68*-cisco) os=-aout ;; + mep-*) + os=-elf + ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; + or1k-*) + os=-elf + ;; or32-*) os=-coff ;; @@ -1356,9 +1604,15 @@ *-be) os=-beos ;; + *-haiku) + os=-haiku + ;; *-ibm) os=-aix ;; + *-knuth) + os=-mmixware + ;; *-wec) os=-proelf ;; @@ -1461,7 +1715,7 @@ -sunos*) vendor=sun ;; - -aix*) + -cnk*|-aix*) vendor=ibm ;; -beos*) @@ -1524,7 +1778,7 @@ esac echo $basic_machine$os -exit 0 +exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/configure nagios-plugins-contrib-16.20151226/check_hpasm/src/configure --- nagios-plugins-contrib-14.20141104/check_hpasm/src/configure 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/configure 2015-12-26 17:20:34.000000000 +0000 @@ -1,82 +1,459 @@ #! /bin/sh # From configure.in . # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for check_hpasm 4.6.3.2. +# Generated by GNU Autoconf 2.69 for check_hpasm 4.7.1.1. +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# # -# Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac fi -DUALCASE=1; export DUALCASE # for MKS sh -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." else - $as_unset $as_var + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." fi -done + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. -as_me=`$as_basename "$0" || +as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` - -# PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' @@ -84,146 +461,91 @@ as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop - s,-$,, - s,^['$as_cr_digits']*\n,, + s/-\n.*// ' >$as_me.lineno && - chmod +x $as_me.lineno || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" # Exit status is that of the last command. exit } - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file else - as_expr=false + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi -rm -f conf$$ conf$$.exe conf$$.file +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi -as_executable_p="test -f" +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -232,53 +554,142 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` -exec 6>&1 - # # Initializations. # ac_default_prefix=/usr/local +ac_clean_files= ac_config_libobj_dir=. +LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME='check_hpasm' PACKAGE_TARNAME='check_hpasm' -PACKAGE_VERSION='4.6.3.2' -PACKAGE_STRING='check_hpasm 4.6.3.2' +PACKAGE_VERSION='4.7.1.1' +PACKAGE_STRING='check_hpasm 4.7.1.1' PACKAGE_BUGREPORT='' +PACKAGE_URL='' ac_default_prefix=/usr/local/nagios -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os RELEASE INSTALL WARRANTY SUPPORT with_nagios_user with_nagios_group INSTALL_OPTS NOINSTLEVEL CELSIUS PERFDATA EXTENDEDINFO HWINFO HPACUCLI SH PERL LIBOBJS LTLIBOBJS' +ac_subst_vars='LTLIBOBJS +LIBOBJS +PERL +SH +HPACUCLI +HWINFO +EXTENDEDINFO +PERFDATA +CELSIUS +NOINSTLEVEL +INSTALL_OPTS +with_nagios_group +with_nagios_user +SUPPORT +WARRANTY +INSTALL +RELEASE +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' ac_subst_files='' +ac_user_opts=' +enable_option_checking +with_nagios_user +with_nagios_group +with_noinst_level +with_degrees +enable_perfdata +enable_extendedinfo +enable_hwinfo +enable_hpacucli +with_perl +' + ac_precious_vars='build_alias +host_alias +target_alias' + # Initialize some variables set by options. ac_init_help= ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null @@ -301,34 +712,49 @@ # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' +datarootdir='${prefix}/share' +datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' ac_prev= +ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" + eval $ac_prev=\$ac_option ac_prev= continue fi - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_option in + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; @@ -350,33 +776,59 @@ --config-cache | -C) cache_file=config.cache ;; - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) + -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; esac - eval "enable_$ac_feature='$ac_optarg'" ;; + eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -403,6 +855,12 @@ -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; @@ -427,13 +885,16 @@ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) + | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) @@ -498,6 +959,16 @@ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; @@ -548,26 +1019,36 @@ ac_init_version=: ;; -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; esac - eval "with_$ac_package='$ac_optarg'" ;; + eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. @@ -587,27 +1068,26 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac @@ -615,31 +1095,36 @@ if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "missing argument to $ac_option" fi -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac -done +fi -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir do - eval ac_val=$`echo $ac_var` + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' @@ -653,8 +1138,6 @@ if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi @@ -666,54 +1149,72 @@ test "$silent" = yes && exec 6>/dev/null +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_confdir=`(dirname "$0") 2>/dev/null || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then + if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 - { (exit 1); exit 1; }; } -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done # # Report the --help message. @@ -722,7 +1223,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures check_hpasm 4.6.3.2 to adapt to many kinds of systems. +\`configure' configures check_hpasm 4.7.1.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -736,20 +1237,17 @@ --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages + -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] -_ACEOF - - cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] + [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] + [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify @@ -759,18 +1257,25 @@ For better control, use the options below. Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data [PREFIX/share] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --infodir=DIR info documentation [PREFIX/info] - --mandir=DIR man documentation [PREFIX/man] + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/check_hpasm] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF @@ -788,11 +1293,12 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of check_hpasm 4.6.3.2:";; + short | recursive ) echo "Configuration of check_hpasm 4.7.1.1:";; esac cat <<\_ACEOF Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-perfdata wether to output perfdata (default=no) @@ -809,121 +1315,93 @@ --with-degrees=UNIT which temperature unit to use. (celsius or fahrenheit) --with-perl=PATH sets path to perl executable +Report bugs to the package provider. _ACEOF +ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. - ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d $ac_dir || continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue ac_builddir=. -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix case $srcdir in - .) # No --srcdir option. We are building in place. + .) # We are building in place. ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - cd $ac_dir - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_srcdir/configure.gnu; then - echo - $SHELL $ac_srcdir/configure.gnu --help=recursive - elif test -f $ac_srcdir/configure; then - echo - $SHELL $ac_srcdir/configure --help=recursive - elif test -f $ac_srcdir/configure.ac || - test -f $ac_srcdir/configure.in; then - echo - $ac_configure --help + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi - cd $ac_popdir + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } done fi -test -n "$ac_init_help" && exit 0 +test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -check_hpasm configure 4.6.3.2 -generated by GNU Autoconf 2.59 +check_hpasm configure 4.7.1.1 +generated by GNU Autoconf 2.69 -Copyright (C) 2003 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF - exit 0 + exit fi -exec 5>config.log -cat >&5 <<_ACEOF + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## +cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by check_hpasm $as_me 4.6.3.2, which was -generated by GNU Autoconf 2.59. Invocation command line was +It was created by check_hpasm $as_me 4.7.1.1, which was +generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF +exec 5>>config.log { cat <<_ASUNAME ## --------- ## @@ -942,7 +1420,7 @@ /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` @@ -954,8 +1432,9 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS } >&5 @@ -977,7 +1456,6 @@ ac_configure_args= ac_configure_args0= ac_configure_args1= -ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do @@ -988,13 +1466,13 @@ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" + as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else @@ -1010,104 +1488,115 @@ -* ) ac_must_keep_next=true ;; esac fi - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - # Get rid of the leading space. - ac_sep=" " + as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. -# WARNING: Be sure not to use single quotes in there, as some shells, -# such as our DU 5.0 friend, will then `close' the trap. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo - cat <<\_ASBOX -## ---------------- ## + $as_echo "## ---------------- ## ## Cache variables. ## -## ---------------- ## -_ASBOX +## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, -{ +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; - esac; -} + esac | + sort +) echo - cat <<\_ASBOX -## ----------------- ## + $as_echo "## ----------------- ## ## Output variables. ## -## ----------------- ## -_ASBOX +## ----------------- ##" echo for ac_var in $ac_subst_vars do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------- ## -## Output files. ## -## ------------- ## -_ASBOX + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" echo for ac_var in $ac_subst_files do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## + $as_echo "## ----------- ## ## confdefs.h. ## -## ----------- ## -_ASBOX +## ----------- ##" echo - sed "/^$/d" confdefs.h | sort + cat confdefs.h echo fi test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" } >&5 - rm -f core *.core && - rm -rf conftest* confdefs* conf$$* $ac_clean_files && + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status - ' 0 +' 0 for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. @@ -1115,112 +1604,137 @@ #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + # Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; esac fi else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do +for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -1229,56 +1743,35 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - - - - - - - - - - - - - - - - - - - - - - am__api_version="1.9" ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break - elif test -f $ac_dir/install.sh; then + elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break - elif test -f $ac_dir/shtool; then + elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} - { (exit 1); exit 1; }; } -fi -ac_config_guess="$SHELL $ac_aux_dir/config.guess" -ac_config_sub="$SHELL $ac_aux_dir/config.sub" -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -1293,22 +1786,23 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. @@ -1316,7 +1810,7 @@ # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. @@ -1326,30 +1820,43 @@ # program-specific install script used by HP pwplus--don't use. : else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi fi fi done done ;; esac -done + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is - # removed, or if the path is relative. + # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -1359,8 +1866,8 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file @@ -1383,11 +1890,8 @@ # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file @@ -1396,26 +1900,20 @@ # Ok. : else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } test "$program_prefix" != NONE && - program_transform_name="s,^,$program_prefix,;$program_transform_name" + program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && - program_transform_name="s,\$,$program_suffix,;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. # By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm conftest.sed +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` @@ -1426,8 +1924,8 @@ am_missing_run="$MISSING --run " else am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then @@ -1467,10 +1965,10 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. @@ -1480,55 +1978,59 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi + test -n "$AWK" && break done -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF +SHELL = /bin/sh all: - @echo 'ac_maketemp="$(MAKE)"' + @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac rm -f conftest.make fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } SET_MAKE= else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -1544,9 +2046,7 @@ # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi # test whether we have cygpath @@ -1561,7 +2061,7 @@ # Define the identity of the package. PACKAGE='check_hpasm' - VERSION='4.6.3.2' + VERSION='4.7.1.1' cat >>confdefs.h <<_ACEOF @@ -1599,10 +2099,10 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. @@ -1612,35 +2112,37 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi + fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. @@ -1650,28 +2152,38 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - STRIP=$ac_ct_STRIP + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi else STRIP="$ac_cv_prog_STRIP" fi @@ -1686,8 +2198,8 @@ AMTAR=${AMTAR-"${am_missing_run}tar"} -echo "$as_me:$LINENO: checking how to create a pax tar archive" >&5 -echo $ECHO_N "checking how to create a pax tar archive... $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 +$as_echo_n "checking how to create a pax tar archive... " >&6; } # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' _am_tools=${am_cv_prog_tar_pax-$_am_tools} @@ -1759,71 +2271,88 @@ done rm -rf conftest.dir -if test "${am_cv_prog_tar_pax+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if ${am_cv_prog_tar_pax+:} false; then : + $as_echo_n "(cached) " >&6 else am_cv_prog_tar_pax=$_am_tool fi -echo "$as_me:$LINENO: result: $am_cv_prog_tar_pax" >&5 -echo "${ECHO_T}$am_cv_prog_tar_pax" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 +$as_echo "$am_cv_prog_tar_pax" >&6; } # Make sure we can run config.sub. -$ac_config_sub sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 -echo "$as_me: error: cannot run $ac_config_sub" >&2;} - { (exit 1); exit 1; }; } - -echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6 -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_build_alias=$build_alias -test -z "$ac_cv_build_alias" && - ac_cv_build_alias=`$ac_config_guess` -test -z "$ac_cv_build_alias" && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} - { (exit 1); exit 1; }; } +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 -fi -echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac build=$ac_cv_build -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - -echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6 -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_host_alias=$host_alias -test -z "$ac_cv_host_alias" && - ac_cv_host_alias=$ac_cv_build_alias -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} - { (exit 1); exit 1; }; } +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi fi -echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac host=$ac_cv_host -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac @@ -1832,113 +2361,37 @@ -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF +SHELL = /bin/sh all: - @echo 'ac_maketemp="$(MAKE)"' + @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac rm -f conftest.make fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } SET_MAKE= else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -1946,10 +2399,10 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. @@ -1959,26 +2412,28 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi + test -n "$AWK" && break done @@ -1990,43 +2445,43 @@ -# Check whether --with-nagios_user or --without-nagios_user was given. -if test "${with_nagios_user+set}" = set; then - withval="$with_nagios_user" - with_nagios_user=$withval +# Check whether --with-nagios_user was given. +if test "${with_nagios_user+set}" = set; then : + withval=$with_nagios_user; with_nagios_user=$withval else with_nagios_user=nagios -fi; +fi + -# Check whether --with-nagios_group or --without-nagios_group was given. -if test "${with_nagios_group+set}" = set; then - withval="$with_nagios_group" - with_nagios_group=$withval +# Check whether --with-nagios_group was given. +if test "${with_nagios_group+set}" = set; then : + withval=$with_nagios_group; with_nagios_group=$withval else with_nagios_group=nagios -fi; +fi + INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" -# Check whether --with-noinst_level or --without-noinst_level was given. -if test "${with_noinst_level+set}" = set; then - withval="$with_noinst_level" - with_noinst_level=$withval +# Check whether --with-noinst_level was given. +if test "${with_noinst_level+set}" = set; then : + withval=$with_noinst_level; with_noinst_level=$withval else with_noinst_level=unknown -fi; +fi + NOINSTLEVEL=$with_noinst_level -# Check whether --with-degrees or --without-degrees was given. -if test "${with_degrees+set}" = set; then - withval="$with_degrees" - with_degrees=$withval +# Check whether --with-degrees was given. +if test "${with_degrees+set}" = set; then : + withval=$with_degrees; with_degrees=$withval else with_degrees=unknown -fi; +fi + case "$with_degrees" in fahrenheit) CELSIUS=0 @@ -2037,13 +2492,13 @@ ;; esac -# Check whether --enable-perfdata or --disable-perfdata was given. -if test "${enable_perfdata+set}" = set; then - enableval="$enable_perfdata" - +# Check whether --enable-perfdata was given. +if test "${enable_perfdata+set}" = set; then : + enableval=$enable_perfdata; else enable_perfdata=no -fi; +fi + if test x"$enable_perfdata" = xyes ; then PERFDATA=1 @@ -2051,13 +2506,13 @@ PERFDATA=0 fi -# Check whether --enable-extendedinfo or --disable-extendedinfo was given. -if test "${enable_extendedinfo+set}" = set; then - enableval="$enable_extendedinfo" - +# Check whether --enable-extendedinfo was given. +if test "${enable_extendedinfo+set}" = set; then : + enableval=$enable_extendedinfo; else enable_extendedinfo=no -fi; +fi + if test x"$enable_extendedinfo" = xyes ; then EXTENDEDINFO=1 @@ -2065,13 +2520,13 @@ EXTENDEDINFO=0 fi -# Check whether --enable-hwinfo or --disable-hwinfo was given. -if test "${enable_hwinfo+set}" = set; then - enableval="$enable_hwinfo" - +# Check whether --enable-hwinfo was given. +if test "${enable_hwinfo+set}" = set; then : + enableval=$enable_hwinfo; else enable_hwinfo=yes -fi; +fi + if test x"$enable_hwinfo" = xyes ; then HWINFO=1 @@ -2080,13 +2535,13 @@ HWINFO=0 fi -# Check whether --enable-hpacucli or --disable-hpacucli was given. -if test "${enable_hpacucli+set}" = set; then - enableval="$enable_hpacucli" - +# Check whether --enable-hpacucli was given. +if test "${enable_hpacucli+set}" = set; then : + enableval=$enable_hpacucli; else enable_hpacucli=no -fi; +fi + if test x"$enable_hpacucli" = xyes ; then HPACUCLI=1 @@ -2116,10 +2571,10 @@ # Extract the first word of "sh", so it can be a program name with args. set dummy sh; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_SH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SH+:} false; then : + $as_echo_n "(cached) " >&6 else case $SH in [\\/]* | ?:[\\/]*) @@ -2131,34 +2586,35 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi SH=$ac_cv_path_SH - if test -n "$SH"; then - echo "$as_me:$LINENO: result: $SH" >&5 -echo "${ECHO_T}$SH" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 +$as_echo "$SH" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi + # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PERL+:} false; then : + $as_echo_n "(cached) " >&6 else case $PERL in [\\/]* | ?:[\\/]*) @@ -2170,41 +2626,43 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi PERL=$ac_cv_path_PERL - if test -n "$PERL"; then - echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -# Check whether --with-perl or --without-perl was given. -if test "${with_perl+set}" = set; then - withval="$with_perl" - with_perl=$withval + +# Check whether --with-perl was given. +if test "${with_perl+set}" = set; then : + withval=$with_perl; with_perl=$withval else with_perl=$PERL -fi; +fi + PERL=$with_perl - ac_config_files="$ac_config_files Makefile plugins-scripts/Makefile plugins-scripts/subst" +ac_config_files="$ac_config_files Makefile plugins-scripts/Makefile plugins-scripts/subst" + cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -2223,39 +2681,70 @@ # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. +# So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. -{ +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; + ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; - esac; -} | + esac | + sort +) | sed ' + /^ac_cv_env_/b end t clear - : clear + :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi else - echo "not updating unwritable cache $cache_file" + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -2264,63 +2753,55 @@ # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, +# take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\_ACEOF +ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -_ACEOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= +U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. - ac_i=`echo "$ac_i" | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Add them. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs @@ -2328,12 +2809,14 @@ -: ${CONFIG_STATUS=./config.status} +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -2343,81 +2826,253 @@ debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac fi -DUALCASE=1; export DUALCASE # for MKS sh -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. -as_me=`$as_basename "$0" || +as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` -# PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' @@ -2425,148 +3080,111 @@ as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file else - as_expr=false + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi -rm -f conf$$ conf$$.exe conf$$.file +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi -as_executable_p="test -f" + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -2575,31 +3193,20 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Open the log real soon, to keep \$[0] and so on meaningful, and to +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. Logging --version etc. is OK. -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX -} >&5 -cat >&5 <<_CSEOF - -This file was extended by check_hpasm $as_me 4.6.3.2, which was -generated by GNU Autoconf 2.59. Invocation command line was +# values after options handling. +ac_log=" +This file was extended by check_hpasm $as_me 4.7.1.1, which was +generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -2607,125 +3214,118 @@ CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ -_CSEOF -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -echo >&5 +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + _ACEOF -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" -cat >>$CONFIG_STATUS <<\_ACEOF +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -Usage: $0 [OPTIONS] [FILE]... +Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE Configuration files: $config_files -Report bugs to ." -_ACEOF +Report bugs to the package provider." -cat >>$CONFIG_STATUS <<_ACEOF +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -check_hpasm config.status 4.6.3.2 -configured by $0, generated by GNU Autoconf 2.59, - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" +check_hpasm config.status 4.7.1.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" -Copyright (C) 2003 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." -srcdir=$srcdir -INSTALL="$INSTALL" + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +AWK='$AWK' +test -n "\$AWK" || AWK=awk _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= ac_shift=: ;; - -*) + *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_option=$1 - ac_need_defaults=false;; esac case $ac_option in # Handling of the options. -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:$LINENO: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" ;; + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; esac shift @@ -2739,32 +3339,46 @@ fi _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" fi _ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - - -cat >>$CONFIG_STATUS <<\_ACEOF +# Handling of arguments. for ac_config_target in $ac_config_targets do - case "$ac_config_target" in - # Handling of arguments. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "plugins-scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;; - "plugins-scripts/subst" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "plugins-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;; + "plugins-scripts/subst") CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done + # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely @@ -2774,367 +3388,419 @@ fi # Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason to put it here, and in addition, +# simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. -# Create a temporary directory, and hook for its removal unless debugging. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. $debug || { - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 } - # Create a (secure) tmp directory for tmp files. { - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" } || { - tmp=./confstat$$-$RANDOM - (umask 077 && mkdir $tmp) -} || + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} { - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi -# -# CONFIG_FILES section. -# +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "\$CONFIG_FILES"; then - # Protect against being on the right side of a sed subst in config.status. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@DEFS@,$DEFS,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@LIBS@,$LIBS,;t t -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -s,@INSTALL_DATA@,$INSTALL_DATA,;t t -s,@CYGPATH_W@,$CYGPATH_W,;t t -s,@PACKAGE@,$PACKAGE,;t t -s,@VERSION@,$VERSION,;t t -s,@ACLOCAL@,$ACLOCAL,;t t -s,@AUTOCONF@,$AUTOCONF,;t t -s,@AUTOMAKE@,$AUTOMAKE,;t t -s,@AUTOHEADER@,$AUTOHEADER,;t t -s,@MAKEINFO@,$MAKEINFO,;t t -s,@install_sh@,$install_sh,;t t -s,@STRIP@,$STRIP,;t t -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t -s,@mkdir_p@,$mkdir_p,;t t -s,@AWK@,$AWK,;t t -s,@SET_MAKE@,$SET_MAKE,;t t -s,@am__leading_dot@,$am__leading_dot,;t t -s,@AMTAR@,$AMTAR,;t t -s,@am__tar@,$am__tar,;t t -s,@am__untar@,$am__untar,;t t -s,@build@,$build,;t t -s,@build_cpu@,$build_cpu,;t t -s,@build_vendor@,$build_vendor,;t t -s,@build_os@,$build_os,;t t -s,@host@,$host,;t t -s,@host_cpu@,$host_cpu,;t t -s,@host_vendor@,$host_vendor,;t t -s,@host_os@,$host_os,;t t -s,@RELEASE@,$RELEASE,;t t -s,@INSTALL@,$INSTALL,;t t -s,@WARRANTY@,$WARRANTY,;t t -s,@SUPPORT@,$SUPPORT,;t t -s,@with_nagios_user@,$with_nagios_user,;t t -s,@with_nagios_group@,$with_nagios_group,;t t -s,@INSTALL_OPTS@,$INSTALL_OPTS,;t t -s,@NOINSTLEVEL@,$NOINSTLEVEL,;t t -s,@CELSIUS@,$CELSIUS,;t t -s,@PERFDATA@,$PERFDATA,;t t -s,@EXTENDEDINFO@,$EXTENDEDINFO,;t t -s,@HWINFO@,$HWINFO,;t t -s,@HPACUCLI@,$HPACUCLI,;t t -s,@SH@,$SH,;t t -s,@PERL@,$PERL,;t t -s,@LIBOBJS@,$LIBOBJS,;t t -s,@LTLIBOBJS@,$LTLIBOBJS,;t t -CEOF - -_ACEOF - - cat >>$CONFIG_STATUS <<\_ACEOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` + +eval set X " :F $CONFIG_FILES " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; esac - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`(dirname "$ac_file") 2>/dev/null || + ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix case $srcdir in - .) # No --srcdir option. We are building in place. + .) # We are building in place. ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac + case $ac_mode in + :F) + # + # CONFIG_FILE + # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac +_ACEOF - if test x"$ac_file" != x-; then - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - configure_input= - else - configure_input="$ac_file. " - fi - configure_input=$configure_input"Generated from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub $extrasub _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@abs_srcdir@,$ac_abs_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -s,@builddir@,$ac_builddir,;t t -s,@abs_builddir@,$ac_abs_builddir,;t t -s,@top_builddir@,$ac_top_builddir,;t t -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -s,@INSTALL@,$ac_INSTALL,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; -done -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -{ (exit 0); exit 0; } + esac + +done # for ac_tag + + +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -3154,7 +3820,11 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/configure.in nagios-plugins-contrib-16.20151226/check_hpasm/src/configure.in --- nagios-plugins-contrib-14.20141104/check_hpasm/src/configure.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/configure.in 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_REVISION ($Revision: 1.150 $) AC_PREREQ(2.58) -AC_INIT(check_hpasm,4.6.3.2) +AC_INIT(check_hpasm,4.7.1.1) AM_INIT_AUTOMAKE([1.9 tar-pax]) AC_CANONICAL_HOST diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/install-sh nagios-plugins-contrib-16.20151226/check_hpasm/src/install-sh --- nagios-plugins-contrib-14.20141104/check_hpasm/src/install-sh 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/install-sh 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2003-09-24.23 +scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -35,261 +35,493 @@ # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it +# 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. +# from scratch. + +nl=' +' +IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi -# put in absolute paths if you don't have them in your path; or use env. vars. +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename= -transform_arg= -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd= chgrpcmd= -stripcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog rmcmd="$rmprog -f" -mvcmd="$mvprog" +stripcmd= + src= dst= dir_arg= +dst_arg= -usage="Usage: $0 [OPTION]... SRCFILE DSTFILE - or: $0 -d DIR1 DIR2... +copy_on_change=false +no_target_directory= -In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default. -In the second, create the directory path DIR. +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. Options: --b=TRANSFORMBASENAME --c copy source (using $cpprog) instead of moving (using $mvprog). --d create directories instead of installing files. --g GROUP $chgrp installed files to GROUP. --m MODE $chmod installed files to MODE. --o USER $chown installed files to USER. --s strip installed files (using $stripprog). --t=TRANSFORM ---help display this help and exit. ---version display version info and exit. + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG " -while test -n "$1"; do +while test $# -ne 0; do case $1 in - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - -c) instcmd=$cpprog - shift - continue;; - - -d) dir_arg=true - shift - continue;; + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - --help) echo "$usage"; exit 0;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -s) stripcmd=$stripprog - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - --version) echo "$0 $scriptversion"; exit 0;; - - *) if test -z "$src"; then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; esac + shift done -if test -z "$src"; then - echo "$0: no input file specified." >&2 - exit 1 +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done fi -# Protect names starting with `-'. -case $src in - -*) src=./$src ;; -esac - -if test -n "$dir_arg"; then - dst=$src - src= - - if test -d "$dst"; then - instcmd=: - chmodcmd= - else - instcmd=$mkdirprog - fi -else - # Waiting for this to be detected by the "$instcmd $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst"; then - echo "$0: no destination specified." >&2 +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 exit 1 fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi - # Protect names starting with `-'. - case $dst in - -*) dst=./$dst ;; +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; esac - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - dst=$dst/`basename "$src"` - fi fi -# This sed command emulates the dirname command. -dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac -# Make sure that the destination directory exists. + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else -# Skip lots of stat calls in the usual case. -if test ! -d "$dstdir"; then - defaultIFS=' - ' - IFS="${IFS-$defaultIFS}" - - oIFS=$IFS - # Some sh's can't handle IFS=/ for some reason. - IFS='%' - set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` - IFS=$oIFS - - pathcomp= - - while test $# -ne 0 ; do - pathcomp=$pathcomp$1 - shift - test -d "$pathcomp" || $mkdirprog "$pathcomp" - pathcomp=$pathcomp/ - done -fi + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi -if test -n "$dir_arg"; then - $doit $instcmd "$dst" \ - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg -else - # If we're going to rename the final executable, determine the name now. - if test -z "$transformarg"; then - dstfile=`basename "$dst"` - else - dstfile=`basename "$dst" $transformbasename \ - | sed $transformarg`$transformbasename + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi fi - # don't allow the sed command to completely eliminate the filename. - test -z "$dstfile" && dstfile=`basename "$dst"` + obsolete_mkdir_used=false - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 - trap '(exit $?); exit' 1 2 13 15 - - # Move or copy the file name to the temp name - $doit $instcmd "$src" "$dsttmp" && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $instcmd $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && - - # Now remove or move aside any old file at destination location. We - # try this two ways since rm can't unlink itself on some systems and - # the destination file might be busy for other reasons. In this case, - # the final cleanup might fail but the new file should still install - # successfully. - { - if test -f "$dstdir/$dstfile"; then - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ - || { - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 - (exit 1); exit - } + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : else - : + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi fi - } && + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" -fi && - -# The final little trick to "correctly" pass the exit status to the exit trap. -{ - (exit 0); exit -} + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/Makefile.in nagios-plugins-contrib-16.20151226/check_hpasm/src/Makefile.in --- nagios-plugins-contrib-14.20141104/check_hpasm/src/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -34,6 +34,7 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +LIBOBJDIR = DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ ChangeLog INSTALL NEWS TODO config.guess config.sub install-sh \ @@ -101,6 +102,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERFDATA = @PERFDATA@ @@ -113,7 +115,6 @@ SUPPORT = @SUPPORT@ VERSION = @VERSION@ WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ @@ -124,23 +125,30 @@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ +htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ +localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ +psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ @@ -366,7 +374,7 @@ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook - -find $(distdir) -type d ! -perm -755 -exec chmod a+rwx,go+rx {} \; -o \ + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/missing nagios-plugins-contrib-16.20151226/check_hpasm/src/missing --- nagios-plugins-contrib-14.20141104/check_hpasm/src/missing 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/missing 2015-12-26 17:20:34.000000000 +0000 @@ -1,11 +1,10 @@ #! /bin/sh -# Common stub for a few missing GNU programs while installing. +# Common wrapper for a few potentially missing GNU programs. -scriptversion=2003-09-02.23 +scriptversion=2012-06-26.16; # UTC -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 -# Free Software Foundation, Inc. -# Originally by Fran,cois Pinard , 1996. +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,9 +17,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -28,333 +25,191 @@ # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" + echo 1>&2 "Try '$0 --help' for more information" exit 1 fi -run=: +case $1 in -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -msg="missing on your system" - -case "$1" in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; -esac + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case "$1" in + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch] + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man + +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. Send bug reports to ." + exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" + exit $? ;; -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" + echo 1>&2 "$0: unknown '$1' option" + echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; - aclocal*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case "$f" in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is needed, but is $msg. - You might have modified some files without having the - proper tools for further handling them. - You can get \`$1' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison|yacc) - echo 1>&2 "\ -WARNING: \`$1' $msg. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if [ ! -f y.tab.h ]; then - echo >y.tab.h - fi - if [ ! -f y.tab.c ]; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex|flex) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if [ ! -f lex.yy.c ]; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; +esac - help2man) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` - fi - if [ -f "$file" ]; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit 1 - fi - ;; +# Run the given program, remember its exit status. +"$@"; st=$? - makeinfo) - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then - # We have makeinfo, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` - fi - touch $file - ;; +# If it succeeded, we are done. +test $st -eq 0 && exit 0 - tar) - shift - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - fi - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case "$firstarg" in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case "$firstarg" in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and is $msg. - You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequisites for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch. This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then + msg="probably too old" +elif test $st -eq 127; then + # Program was missing. + msg="missing on your system" +else + # Program was found and executed, but failed. Give up. + exit $st +fi -exit 0 +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ + case $1 in + aclocal|automake) + echo "The '$1' program is part of the GNU Automake package:" + echo "<$gnu_software_URL/automake>" + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/autoconf>" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + autoconf|autom4te|autoheader) + echo "The '$1' program is part of the GNU Autoconf package:" + echo "<$gnu_software_URL/autoconf/>" + echo "It also requires GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + esac +} + +give_advice () +{ + # Normalize program name to check for. + normalized_program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + + printf '%s\n' "'$1' is $msg." + + configure_deps="'configure.ac' or m4 files included by 'configure.ac'" + case $normalized_program in + autoconf*) + echo "You should only need it if you modified 'configure.ac'," + echo "or m4 files included by it." + program_details 'autoconf' + ;; + autoheader*) + echo "You should only need it if you modified 'acconfig.h' or" + echo "$configure_deps." + program_details 'autoheader' + ;; + automake*) + echo "You should only need it if you modified 'Makefile.am' or" + echo "$configure_deps." + program_details 'automake' + ;; + aclocal*) + echo "You should only need it if you modified 'acinclude.m4' or" + echo "$configure_deps." + program_details 'aclocal' + ;; + autom4te*) + echo "You might have modified some maintainer files that require" + echo "the 'automa4te' program to be rebuilt." + program_details 'autom4te' + ;; + bison*|yacc*) + echo "You should only need it if you modified a '.y' file." + echo "You may want to install the GNU Bison package:" + echo "<$gnu_software_URL/bison/>" + ;; + lex*|flex*) + echo "You should only need it if you modified a '.l' file." + echo "You may want to install the Fast Lexical Analyzer package:" + echo "<$flex_URL>" + ;; + help2man*) + echo "You should only need it if you modified a dependency" \ + "of a man page." + echo "You may want to install the GNU Help2man package:" + echo "<$gnu_software_URL/help2man/>" + ;; + makeinfo*) + echo "You should only need it if you modified a '.texi' file, or" + echo "any other file indirectly affecting the aspect of the manual." + echo "You might want to install the Texinfo package:" + echo "<$gnu_software_URL/texinfo/>" + echo "The spurious makeinfo call might also be the consequence of" + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "want to install GNU make:" + echo "<$gnu_software_URL/make/>" + ;; + *) + echo "You might have modified some files without having the proper" + echo "tools for further handling them. Check the 'README' file, it" + echo "often tells you about the needed prerequisites for installing" + echo "this package. You may also peek at any GNU archive site, in" + echo "case some other package contains this missing '$1' program." + ;; + esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ + -e '2,$s/^/ /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -35,6 +35,9 @@ cpqFcaHostCntlrOverallCondition => '1.3.6.1.4.1.232.16.2.7.1.1.8', cpqFcaHostCntlrModelValue => { 1 => "other", + # You may need to upgrade your driver software and\or instrument + # agent(s). You have a drive array controller in the system + # that the instrument agent does not recognize. (other according to CPQFCAL-MIB) 2 => "fchc-p", 3 => "fchc-e", 4 => "fchc64", @@ -43,6 +46,33 @@ 7 => "sw64-33", 8 => "fca-221x", 9 => "dpfcmc", + 10 => 'fca-2404', + 11 => 'fca-2214', + 12 => 'a7298a', + 13 => 'fca-2214dc', + 14 => 'a6826a', + 15 => 'fcmcG3', + 16 => 'fcmcG4', + 17 => 'ab46xa', + 18 => 'fc-generic', + 19 => 'fca-1143', + 20 => 'fca-1243', + 21 => 'fca-2143', + 22 => 'fca-2243', + 23 => 'fca-1050', + 24 => 'fca-lpe1105', + 25 => 'fca-qmh2462', + 26 => 'fca-1142sr', + 27 => 'fca-1242sr', + 28 => 'fca-2142sr', + 29 => 'fca-2242sr', + 30 => 'fcmc20pe', + 31 => 'fca-81q', + 32 => 'fca-82q', + 33 => 'fca-qmh2562', + 34 => 'fca-81e', + 35 => 'fca-82e', + 36 => 'fca-1205', }, cpqFcaHostCntlrStatusValue => { 1 => "other", @@ -51,6 +81,7 @@ 4 => "shutdown", 5 => "loopDegraded", 6 => "loopFailed", + 7 => "notConnected", }, cpqFcaHostCntlrConditionValue => { 1 => "other", @@ -88,13 +119,15 @@ 6 => "hsv110", 7 => "msa500g2", 8 => "msa20", + 8 => "msa1510i", }, cpqFcaCntlrStatusValue => { 1 => "other", 2 => "ok", 3 => "failed", 4 => "offline", - 4 => "redundantPathOffline", + 5 => "redundantPathOffline", + 6 => "notConnected", }, cpqFcaCntlrConditionValue => { 1 => "other", diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Fca.pm 2015-12-26 17:20:34.000000000 +0000 @@ -110,7 +110,10 @@ sub check { my $self = shift; - if ($self->{cpqFcaMibCondition} ne 'ok') { + if ($self->{cpqFcaMibCondition} eq 'other') { + $self->add_message(OK, + sprintf 'fcal overall condition is other, update your drivers, please'); + } elsif ($self->{cpqFcaMibCondition} ne 'ok') { $self->add_message(CRITICAL, sprintf 'fcal overall condition is %s', $self->{cpqFcaMibCondition}); } @@ -156,8 +159,9 @@ my $info = sprintf 'fcal host controller %s in slot %s is %s', $self->{name}, $self->{cpqFcaHostCntlrSlot}, $self->{cpqFcaHostCntlrCondition}; if ($self->{cpqFcaHostCntlrCondition} eq 'other') { - $info .= sprintf ' and needs attention (%s)', $self->{cpqFcaHostCntlrStatus}; - $self->add_message(CRITICAL, $info); + #$info .= sprintf ' and needs attention (%s)', $self->{cpqFcaHostCntlrStatus}; + # let's assume other=ok + $self->add_message(OK, $info); $self->add_info($info); } elsif ($self->{cpqFcaHostCntlrCondition} ne 'ok') { $self->add_message(CRITICAL, $info); @@ -168,7 +172,9 @@ $self->blacklist('fcahco', $self->{name}); $info = sprintf 'fcal host controller %s overall condition is %s', $self->{name}, $self->{cpqFcaHostCntlrOverallCondition}; - if ($self->{cpqFcaHostCntlrOverallCondition} ne 'ok') { + if ($self->{cpqFcaHostCntlrOverallCondition} eq 'other') { + $self->add_message(OK, $info); + } elsif ($self->{cpqFcaHostCntlrOverallCondition} ne 'ok') { $self->add_message(WARNING, $info); } $self->add_info($info); diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/EventSubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -75,7 +75,7 @@ sub dump { my $self = shift; - foreach (@{$self->{events}}) { + foreach (sort { $a->{cpqHeEventLogEntryNumber} <=> $b->{cpqHeEventLogEntryNumber} } @{$self->{events}}) { $_->dump(); } } diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/MemorySubsystem.pm 2015-12-26 17:20:34.000000000 +0000 @@ -110,8 +110,8 @@ sub check { my $self = shift; - # check dient nur dazu, info und extended_info zu füllen - # die eigentliche bewertung findet eins höher statt + # check dient nur dazu, info und extended_info zu fuellen + # die eigentliche bewertung findet eins hoeher statt $self->blacklist('d', $self->{name}); if (($self->{status} eq 'present') || ($self->{status} eq 'good')) { if ($self->{condition} eq 'other') { diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant/Component/NicSubsystem/SNMP.pm 2015-12-26 17:20:34.000000000 +0000 @@ -26,7 +26,7 @@ sub overall_init { my $self = shift; my %params = @_; - my $snmpwalk = $params{rawdata}; + my $snmpwalk = $self->{rawdata}; # overall my $cpqNicIfLogMapOverallCondition = '1.3.6.1.4.1.232.18.2.2.2.0'; my $cpqNicIfLogMapOverallConditionValue = { @@ -35,7 +35,7 @@ 3 => 'degraded', 4 => 'failed', }; - $self->{lognicstatus} = lc SNMP::Utils::get_object_value( + $self->{lognicstatus} = SNMP::Utils::get_object_value( $snmpwalk, $cpqNicIfLogMapOverallCondition, $cpqNicIfLogMapOverallConditionValue); } diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant.pm nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Proliant.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Proliant.pm 2015-12-26 17:20:34.000000000 +0000 @@ -68,8 +68,13 @@ "D13 09/15/2004", "P20 12/17/2002" ); - $self->{runtime}->{options}->{buggy_firmware} = - grep /^$self->{romversion}/, @buggyfirmwares; + if ($self->{romversion} =~ /^\w+ \d+\/\d+\/\d+$/) { + $self->{runtime}->{options}->{buggy_firmware} = + grep /^$self->{romversion}/, @buggyfirmwares; + } else { + # nicht parsbarer schrott in cpqSeSysRomVer, gesehen bei Gen9 + $self->{runtime}->{options}->{buggy_firmware} = undef; + } } sub dump { @@ -684,6 +689,7 @@ my $cpqSiSysSerialNum = "1.3.6.1.4.1.232.2.2.2.1.0"; my $cpqSiProductName = "1.3.6.1.4.1.232.2.2.4.2.0"; my $cpqSeSysRomVer = "1.3.6.1.4.1.232.1.2.6.1.0"; + my $cpqSeRedundantSysRomVer = "1.3.6.1.4.1.232.1.2.6.4.0"; $self->{serial} = SNMP::Utils::get_object($self->{rawdata}, $cpqSiSysSerialNum); @@ -691,6 +697,8 @@ SNMP::Utils::get_object($self->{rawdata}, $cpqSiProductName); $self->{romversion} = SNMP::Utils::get_object($self->{rawdata}, $cpqSeSysRomVer); + $self->{redundantromversion} = + SNMP::Utils::get_object($self->{rawdata}, $cpqSeRedundantSysRomVer); if ($self->{romversion} && $self->{romversion} =~ #/(\d{2}\/\d{2}\/\d{4}).*?([ADP]{1}\d{2}).*/) { /(\d{2}\/\d{2}\/\d{4}).*?Family.*?([A-Z]{1})(\d+).*/) { @@ -698,6 +706,18 @@ } elsif ($self->{romversion} && $self->{romversion} =~ /([ADP]{1}\d{2})\-(\d{2}\/\d{2}\/\d{4})/) { $self->{romversion} = sprintf("%s %s", $1, $2); + } else { + # fallback if romversion is broken, redundantromversion not + #.1.3.6.1.4.1.232.1.2.6.1.0 = STRING: "4), Family " + #.1.3.6.1.4.1.232.1.2.6.3.0 = "" + #.1.3.6.1.4.1.232.1.2.6.4.0 = STRING: "v1.20 (08/26/2014), Family " + if ($self->{redundantromversion} && $self->{redundantromversion} =~ + /(\d{2}\/\d{2}\/\d{4}).*?Family.*?([A-Z]{1})(\d+).*/) { + $self->{romversion} = sprintf("%s%02d %s", $2, $3, $1); + } elsif ($self->{redundantromversion} && $self->{redundantromversion} =~ + /([ADP]{1}\d{2})\-(\d{2}\/\d{2}\/\d{4})/) { + $self->{romversion} = sprintf("%s %s", $1, $2); + } } if (!$self->{serial} && $self->{romversion}) { # this probably is a very, very old server. diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Server.pm nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Server.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/Server.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/Server.pm 2015-12-26 17:20:34.000000000 +0000 @@ -46,6 +46,12 @@ # HP X1600 G2 Network Storage System bless $self, 'HP::Proliant::SNMP'; $self->trace(3, 'using HP::Proliant::SNMP'); + } elsif ($self->{productname} =~ /StorageWorks/i) { + bless $self, 'HP::StorageWorks'; + $self->trace(3, 'using HP::StorageWorks'); + } elsif ($self->{productname} =~ /StoreEasy/i) { + bless $self, 'HP::Proliant::SNMP'; + $self->trace(3, 'using HP::Proliant::SNMP'); } elsif ($self->{productname} =~ /Storage/) { # fake bless $self, 'HP::Storage'; $self->trace(3, 'using HP::Storage'); @@ -158,19 +164,19 @@ if ($self->{runtime}->{plugin}->opts->protocol eq '3') { $params{'-username'} = $self->{runtime}->{plugin}->opts->username; if ($self->{runtime}->{plugin}->opts->authpassword) { - $params{'-authpassword'} = $self->{runtime}->{plugin}->opts->authpassword; + $params{'-authpassword'} = $self->decode_password($self->{runtime}->{plugin}->opts->authpassword); } if ($self->{runtime}->{plugin}->opts->authprotocol) { $params{'-authprotocol'} = $self->{runtime}->{plugin}->opts->authprotocol; } if ($self->{runtime}->{plugin}->opts->privpassword) { - $params{'-privpassword'} = $self->{runtime}->{plugin}->opts->privpassword; + $params{'-privpassword'} = $self->decode_password($self->{runtime}->{plugin}->opts->privpassword); } if ($self->{runtime}->{plugin}->opts->privprotocol) { $params{'-privprotocol'} = $self->{runtime}->{plugin}->opts->privprotocol; } } else { - $params{'-community'} = $self->{runtime}->{plugin}->opts->community; + $params{'-community'} = $self->decode_password($self->{runtime}->{plugin}->opts->community); } $self->{runtime}->{snmpparams} = \%params; my ($session, $error) = Net::SNMP->session(%params); @@ -206,6 +212,7 @@ my $cpqSiProductName = '1.3.6.1.4.1.232.2.2.4.2.0'; my $cpqSsMibRevMajor = '1.3.6.1.4.1.232.8.1.1.0'; my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'.'.1.1'; + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; if ($productname = $self->{rawdata}->{$cpqSiProductName}) { if (! $productname) { $self->{productname} = 'ProLiant'; @@ -225,6 +232,7 @@ my $cpqSiProductName = '1.3.6.1.4.1.232.2.2.4.2.0'; my $cpqSsMibRevMajor = '1.3.6.1.4.1.232.8.1.1.0'; my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'.'.1.1'; + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; my $dummy = '1.3.6.1.2.1.1.5.0'; if ($productname = $self->valid_response($cpqSiProductName)) { if ($productname eq '') { @@ -237,6 +245,8 @@ } elsif ($self->valid_response($cpqSsMibRevMajor)) { # at least there is a CPQSTSYS-MIB $self->{productname} = 'Storage' + } elsif ($self->valid_response($cpqHoMibStatusArray)) { + $self->{productname} = 'StorageWorks' } else { $self->add_message(CRITICAL, 'snmpwalk returns no product name (cpqsinfo-mib)'); @@ -293,7 +303,7 @@ my $blacklisted = 0; # $name =~ s/\:/-/g; foreach my $bl_items (split(/\//, $self->{runtime}->{options}->{blacklist})) { - if ($bl_items =~ /^(\w+):([\:\d\-,]+)$/) { + if ($bl_items =~ /^(\w+):([\:\w\-,]+)$/) { my $bl_type = $1; my $bl_names = $2; foreach my $bl_name (split(/,/, $bl_names)) { @@ -401,3 +411,14 @@ printf STDERR "%s\n", Data::Dumper::Dumper($object); $object->{runtime} = $run; } + +sub decode_password { + my $self = shift; + my $password = shift; + if ($password && $password =~ /^rfc3986:\/\/(.*)/) { + $password = $1; + $password =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg; + } + return $password; +} + diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/StorageWorks.pm nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/StorageWorks.pm --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/HP/StorageWorks.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/HP/StorageWorks.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,157 @@ +package HP::StorageWorks; + +use strict; +use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 }; +use Data::Dumper; + +our @ISA = qw(HP::Server); + +sub init { + my $self = shift; + $self->{serial} = 'unknown'; + $self->{product} = 'unknown'; + $self->{romversion} = 'unknown'; + $self->collect(); + if (! $self->{runtime}->{plugin}->check_messages()) { + $self->set_serial(); + $self->overall_init(); + $self->overall_check(); + } +} + +sub overall_init { + my $self = shift; + my %params = @_; + my $snmpwalk = $self->{rawdata}; + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; + $self->{cpqHoMibStatusArray} = SNMP::Utils::get_object( + $snmpwalk, $cpqHoMibStatusArray); + if ($self->{cpqHoMibStatusArray} =~ /^(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/) { + $self->{cpqHoMibStatusArray} = 1 * $2; + } elsif ($self->{cpqHoMibStatusArray} =~ /^0x.*(\d\d)(\d\d)(\d\d)(\d\d)$/) { + $self->{cpqHoMibStatusArray} = 1 * $2; + } +} + +sub overall_check { + my $self = shift; + if ($self->{cpqHoMibStatusArray} & 1) { + $self->add_info('overall status is other'); + $self->add_message(UNKNOWN, 'overall status is other'); + } elsif ($self->{cpqHoMibStatusArray} & 2) { + $self->add_info('overall status is ok'); + $self->add_message(OK, 'overall status is ok'); + } elsif ($self->{cpqHoMibStatusArray} & 3) { + $self->add_info('overall status is degraded'); + $self->add_message(WARNING, 'overall status is degraded'); + } elsif ($self->{cpqHoMibStatusArray} & 4) { + $self->add_info('overall status is failed'); + $self->add_message(CRITICAL, 'overall status is failed'); + } +} + +sub identify { + my $self = shift; + return $self->{productname}; +} + +sub dump { + my $self = shift; + printf STDERR "serial %s\n", $self->{serial}; + printf STDERR "product %s\n", $self->{product}; + printf STDERR "romversion %s\n", $self->{romversion}; + printf STDERR "%s\n", Data::Dumper::Dumper($self->{components}); +} + +sub collect { + my $self = shift; + if ($self->{runtime}->{plugin}->opts->snmpwalk) { + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; + if (! exists $self->{rawdata}->{$cpqHoMibStatusArray}) { + $self->add_message(CRITICAL, + 'snmpwalk returns no health data (cpqhost-mib)'); + } + } else { + my $net_snmp_version = Net::SNMP->VERSION(); # 5.002000 or 6.000000 + #$params{'-translate'} = [ + # -all => 0x0 + #]; + my ($session, $error) = + Net::SNMP->session(%{$self->{runtime}->{snmpparams}}); + if (! defined $session) { + $self->{plugin}->add_message(CRITICAL, 'cannot create session object'); + $self->trace(1, Data::Dumper::Dumper($self->{runtime}->{snmpparams})); + } + if (! $self->{runtime}->{plugin}->check_messages()) { + # snmp peer is alive + $self->trace(2, sprintf "Protocol is %s", + $self->{runtime}->{snmpparams}->{'-version'}); + my $cpqHoMibStatusArray = '1.3.6.1.4.1.232.11.2.10.1.0'; + $session->translate; + my $tic = time; + my $response = $session->get_request( + -varbindlist => [$cpqHoMibStatusArray] + ); + my $tac = time; + $self->trace(2, sprintf "%03d seconds for walk cpqHoMibStatusArray (%d oids)", + $tac - $tic, scalar(keys %{$response})); + $session->close; + map { $response->{$_} =~ s/^\s+//; $response->{$_} =~ s/\s+$//; } + keys %$response; + $self->{rawdata} = $response; + } + } + return $self->{runtime}->{plugin}->check_messages(); +} + +sub set_serial { + my $self = shift; + my $snmpwalk = $self->{rawdata}; + my @serials = (); + my @models = (); + my @fws = (); + my $cpqSsBackplaneEntry = '1.3.6.1.4.1.232.8.2.2.6.1'; + my $cpqSsBackplaneFWRev = '1.3.6.1.4.1.232.8.2.2.6.1.3'; + my $cpqSsBackplaneModel = '1.3.6.1.4.1.232.8.2.2.6.1.9'; + my $cpqSsBackplaneSerialNumber = '1.3.6.1.4.1.232.8.2.2.6.1.13'; + # INDEX { cpqSsBackplaneChassisIndex, cpqSsBackplaneIndex } + my @indexes = SNMP::Utils::get_indices($snmpwalk, + $cpqSsBackplaneEntry); + foreach (@indexes) { + my($idx1, $idx2) = ($_->[0], $_->[1]); + my $fw = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneFWRev, $idx1, $idx2); + my $model = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneModel, $idx1, $idx2); + my $serial = SNMP::Utils::get_object($snmpwalk, + $cpqSsBackplaneSerialNumber, $idx1, $idx2); + push(@serials, $serial); + push(@models, $model); + push(@fws, $fw); + } + + $self->{serial} = join('/', @serials); + $self->{product} = join('/', @models); + $self->{romversion} = join('/', @fws); + $self->{runtime}->{product} = $self->{product}; +} + + + + + + + + + + + + + + + + + + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/Makefile.am nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/Makefile.am --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/Makefile.am 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/Makefile.am 2015-12-26 17:20:34.000000000 +0000 @@ -68,7 +68,8 @@ HP/BladeSystem/Component.pm \ HP/BladeSystem.pm \ HP/Storage.pm \ - HP/Server.pm + HP/StorageWorks.pm \ + HP/Server.pm EXTRA_DIST=check_hpasm.pl $(EXTRA_MODULES) CLEANFILES=$(libexec_SCRIPTS) diff -Nru nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/Makefile.in nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/Makefile.in --- nagios-plugins-contrib-14.20141104/check_hpasm/src/plugins-scripts/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_hpasm/src/plugins-scripts/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -34,6 +34,7 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +LIBOBJDIR = subdir = plugins-scripts DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/subst.in @@ -82,6 +83,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERFDATA = @PERFDATA@ @@ -94,7 +96,6 @@ SUPPORT = @SUPPORT@ VERSION = @VERSION@ WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ @@ -105,23 +106,30 @@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ +htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ +localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ +psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ @@ -192,7 +200,8 @@ HP/BladeSystem/Component.pm \ HP/BladeSystem.pm \ HP/Storage.pm \ - HP/Server.pm + HP/StorageWorks.pm \ + HP/Server.pm EXTRA_DIST = check_hpasm.pl $(EXTRA_MODULES) CLEANFILES = $(libexec_SCRIPTS) diff -Nru nagios-plugins-contrib-14.20141104/check_ipmi_sensor/changelog.txt nagios-plugins-contrib-16.20151226/check_ipmi_sensor/changelog.txt --- nagios-plugins-contrib-14.20141104/check_ipmi_sensor/changelog.txt 2014-11-04 13:50:54.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ipmi_sensor/changelog.txt 2015-12-26 17:20:34.000000000 +0000 @@ -2,6 +2,27 @@ Changelog for check_ipmi_sensor, a Nagios/Icinga plugin to check IPMI sensors ################################################################################ +Version 3.9 20150624 + * Add exclude files for sensors - use name and type in a file to exclude not + needed sensors (-xx for normal sensors, -sx for SEL entries). + +Version 3.8 20150402 + * If ipmi host is ommited, localhost is assumed without a LAN driver + * Add a 'nosudo' option to disable sudo + * Only add sudo if user is not already root + * Fix base command usage on localhost + * Only add hostname parameter if not on localhost + * Check if freeipmi version supports output-sensor-thresholds + * Print sensor thresholds fetched via output-sensor-thresholds + +Version 3.7 20150211 + * Add LAN driver LAN_2_0 to ipmi-sel and ipmi-fru + +Version 3.6 20150107 + * Fix ipmi calls on localhost with sudo + * Monitor ipmi system event log with ipmi-sel + * Enhance verbose output for sensors, fru and sel + Version 3.5 20141031 * Fix LAN Driver if called on localhost diff -Nru nagios-plugins-contrib-14.20141104/check_ipmi_sensor/check_ipmi_sensor nagios-plugins-contrib-16.20151226/check_ipmi_sensor/check_ipmi_sensor --- nagios-plugins-contrib-14.20141104/check_ipmi_sensor/check_ipmi_sensor 2014-11-04 13:49:58.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ipmi_sensor/check_ipmi_sensor 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ #!/usr/bin/perl # check_ipmi_sensor: Nagios/Icinga plugin to check IPMI sensors # -# Copyright (C) 2009-2013 Thomas-Krenn.AG, +# Copyright (C) 2009-2015 Thomas-Krenn.AG, # additional contributors see changelog.txt # # This program is free software; you can redistribute it and/or modify it under @@ -35,13 +35,13 @@ use IPC::Run qw( run ); #interact with processes ################################################################################ # set text variables -our $check_ipmi_sensor_version = "3.5"; +our $check_ipmi_sensor_version = "3.9"; sub get_version { return < [-f | -U -P -L ] - [-O ] [-b] [-T ] [-x ] [-i ] - [-o zenoss] [-D ] [-h] [-V] [-v|-vv|-vvv] + [-O ] [-b] [-T ] [-x ] + [-i ] [-o zenoss] [-D ] [-h] [-V] + [-fc ] [--fru] [--nosel] [--nothresholds] [--nosudo] + [-v|-vv|-vvv] EOT } sub get_help { return < + [-H ] hostname or IP of the IPMI interface. - For \"-H localhost\" the Nagios/Icinga user must be allowed to execute - ipmimonitoring/ipmi-sensors with root privileges via sudo - (ipmimonitoring/ipmi-sensor must be able to access the IPMI devices via - the IPMI system interface). + For \"-H localhost\" or if no host is specified (local computer) the + Nagios/Icinga user must be allowed to run + ipmimonitoring/ipmi-sensors/ipmi-sel/[ipmi-fru] with root privileges + or via sudo (ipmimonitoring/ipmi-sensors/ipmi-sel/[ipmi-fru] must be + able to access the IPMI devices via the IPMI system interface). [-f ] path to the FreeIPMI configuration file. Only neccessary for communication via network. @@ -100,11 +103,11 @@ sensors cannot be deleted from SDR and are reported in a non-OK state. Option can be specified multiple times. The is a numeric value (sensor names are not used as some servers have multiple sensors - with the same name). Use -v 3 option to query the . + with the same name). Use -vvv option to query the . [-i ] include only sensor matching . Useful for cases when only specific sensors should be monitored. Be aware that only for the - specified sensor errors/warnings are generated. Use -v 3 option to query + specified sensor errors/warnings are generated. Use -vvv option to query the . [-v|-vv|-vvv] be verbose @@ -118,8 +121,9 @@ -o zenoss .. create ZENOSS compatible formatted output (output with underscores instead of whitespaces and no single quotes) [-D] - change the protocol LAN version. Per default LAN_2_0 is used as protocol - version if not overwritten with this option. + change the protocol LAN version. Normally LAN_2_0 is used as protocol + version if not overwritten with this option. Use 'default' here if you + don't want to use LAN_2_0. [-fc ] number of fans that should be active. If the number of current active fans reported by IPMI is smaller than then a Warning state @@ -128,6 +132,27 @@ print the product serial number if it is available in the IPMI FRU data. For this purpose the tool 'ipmi-fru' is used. E.g.: IPMI Status: OK (9000096781) + [--nosel] + turn off system event log checking via ipmi-sel. If there are + unintentional entries in SEL, use 'ipmi-sel --clear'. + [-sx|--selexclude ] + use a sel exclude file to exclude entries from the system event log. + Specify name and type pipe delimitered in this file to exclude an entry, + for example: System Chassis Chassis Intru|Physical Security + To get valid names and types use the -vvv option and take a look at: + debug output for sel (-vvv is set). Don't use name and type from the + web interface as sensor descriptions are not complete there. + [-xx|--sexclude ] + use an exclude file to exclude sensors. + Specify name and type pipe delimitered in this file to exclude a sensor, + To get valid names and types use the -vvv option. + [--nosudo] + turn off sudo usage on localhost or if ipmi host is ommited. + [--nothresholds] + turn off performance data thresholds from output-sensor-thresholds. + [-s ] + simulation mode - test the plugin with an ipmi-sensor output redirected + to a file. [-h] show this help [-V] @@ -186,7 +211,7 @@ $IPMICOMMAND = "/usr/local/bin/ipmimonitoring"; } else{ - $MISSING_COMMAND_TEXT = " ipmimonitoring command not found"; + $MISSING_COMMAND_TEXT = " ipmimonitoring/ipmi-sensors command not found!\n"; } # Identify the version of the ipmi-tool @@ -214,6 +239,7 @@ sub get_fru{ my @frucmd = @{(shift)}; + my $verbosity = shift; my $fru; if(-e '/usr/sbin/ipmi-fru'){ $fru = '/usr/sbin/ipmi-fru'; @@ -221,7 +247,13 @@ else{ chomp($fru = `which ipmi-fru`); } - $frucmd[0] = $fru; + #if sudo is used the command is the second element + if($frucmd[0] eq 'sudo'){ + $frucmd[1] = $fru; + } + else{ + $frucmd[0] = $fru; + } #skip checksum validation push @frucmd,'-s'; my $fruoutput; @@ -237,9 +269,103 @@ print " ", join(' ', @frucmd), "\n"; exit(3); } + if($verbosity == 3){ + print "------------- debug output for fru (-vvv is set): ------------\n"; + print " $fru was executed with the following parameters:\n"; + print " ", join(' ', @frucmd), "\n"; + print " output of FreeIPMI:\n"; + print "$fruoutput"; + } return split('\n', $fruoutput); } +sub get_sel{ + my @selcmd = @{(shift)}; + my $verbosity = shift; + my $sel; + if(-e '/usr/sbin/ipmi-sel'){ + $sel = '/usr/sbin/ipmi-sel'; + } + else{ + chomp($sel = `which ipmi-sel`); + } + #if sudo is used the command is the second element + if($selcmd[0] eq 'sudo'){ + $selcmd[1] = $sel; + } + else{ + $selcmd[0] = $sel; + } + push @selcmd, '--output-event-state', '--interpret-oem-data', '--entity-sensor-names'; + my $seloutput; + my $returncode; + run \@selcmd, '>&', \$seloutput; + $returncode = $? >> 8; + if ( $returncode != 0 ){ + print "$seloutput\n"; + print "-> Execution of $sel failed with return code $returncode.\n"; + print "-> $sel was executed with the following parameters:\n"; + print " ", join(' ', @selcmd), "\n"; + exit(3); + } + if($verbosity == 3){ + print "------------- debug output for sel (-vvv is set): ------------\n"; + print " $sel was executed with the following parameters:\n"; + print " ", join(' ', @selcmd), "\n"; + print " output of FreeIPMI:\n"; + print "$seloutput"; + } + return split('\n', $seloutput); +} + +sub parse_sel{ + my $selcmd = shift; + my $verbosity = shift; + my $sel_xfile = shift; + my @seloutput = get_sel($selcmd, $verbosity); + @seloutput = map { [ map { s/^\s*//; s/\s*$//; $_; } split(m/\|/, $_) ] } @seloutput; + my $header = shift(@seloutput); + + my @sel_rows; + foreach my $row (@seloutput){ + my %curr_row; + for(my $i = 0; $i < scalar(@{$header}); $i++){ + my $key = lc $header->[$i]; + $curr_row{$key} = $row->[$i]; + } + if(!(exclude_with_file($sel_xfile, $curr_row{'name'}, $curr_row{'type'}))){ + push @sel_rows, \%curr_row; + } + } + return \@sel_rows; +} + +# Excludes a name and type pair if it is present in the given file, pipe +# delimitered. +# @return 1 if name should be skipped, 0 if not +sub exclude_with_file{ + my $file_name = shift; + my $name = shift; + my $type = shift; + my @xlist; + my $skip = 0; + if($file_name){ + if(!(open (FH, "< $file_name"))){ + print "-> Reading exclude file $file_name failed with: $!.\n"; + exit(3); + }; + @xlist = ; + } + foreach my $exclude (@xlist){ + my @curr_exclude = map { s/^\s*//; s/\s*$//; $_; } split(/\|/,$exclude); + if($curr_exclude[0] eq $name && + $curr_exclude[1] eq $type){ + $skip = 1; + } + } + close FH; + return $skip; +} #define entire hashes our %hdrmap = ( @@ -257,6 +383,12 @@ 'Sensor Reading' => 'reading', 'Reading' => 'reading', # FreeIPMI 0.8.x 'Event' => 'event', # FreeIPMI 0.8.x + 'Lower C' => 'lowerC', + 'Lower NC' => 'lowerNC', + 'Upper C' => 'upperC', + 'Upper NC' => 'upperNC', + 'Lower NR' => 'lowerNR', + 'Upper NR' => 'upperNR', ); our $verbosity = 0; @@ -275,28 +407,33 @@ my $abort_text = ''; my $zenoss = 0; my $simulate = ''; - my $use_fru; + my ($use_fru, $no_sel, $no_sudo, $use_thresholds, $no_thresholds, $sel_xfile, $s_xfile); #read in command line arguments and init hash variables with the given values from argv if ( !( GetOptions( - 'H|host=s' => \$ipmi_host,#the pipe states an list of possible option names - 'f|config-file=s' => \$ipmi_config_file,#the backslash inits the variable with the given argument - 'U|user=s' => \$ipmi_user, + 'H|host=s' => \$ipmi_host, + 'f|config-file=s' => \$ipmi_config_file, + 'U|user=s' => \$ipmi_user, 'P|password=s' => \$ipmi_password, 'L|privilege-level=s' => \$ipmi_privilege_level, 'O|options=s' => \@freeipmi_options, 'b|compat' => \$freeipmi_compat, 'T|sensor-types=s' => \@ipmi_sensor_types, 'fru' => \$use_fru, + 'nosel' => \$no_sel, + 'nosudo' => \$no_sudo, + 'nothresholds' => \$no_thresholds, 'v|verbosity' => \$verbosity, 'vv' => sub{$verbosity=2}, 'vvv' => sub{$verbosity=3}, 'x|exclude=s' => \@ipmi_xlist, + 'sx|selexclude=s' => \$sel_xfile, + 'xx|sexclude=s' => \$s_xfile, 'i|include=s' => \@ipmi_ilist, 'o|outformat=s' => \$ipmi_outformat, 'fc|fancount=i' => \$fan_count, - 'D=s' => \$lanVersion, - 's=s' =>\$simulate, + 'D=s' => \$lanVersion, + 's=s' => \$simulate, 'h|help' => sub{print STDOUT get_version(); print STDOUT "\n"; @@ -305,12 +442,12 @@ print STDOUT get_help(); exit(0) }, - 'V|version' => + 'V|version' => sub{ print STDOUT get_version(); exit(0); }, - 'usage|?' => + 'usage|?' => sub{print STDOUT get_usage(); exit(3); } @@ -322,7 +459,6 @@ ################################################################################ # check for ipmimonitoring or ipmi-sensors. Since version > 0.8 ipmi-sensors is used # if '--legacy-output' is given ipmi-sensors cannot be used - if( $MISSING_COMMAND_TEXT ne "" ){ print STDOUT "Error:$MISSING_COMMAND_TEXT"; exit(3); @@ -337,8 +473,16 @@ print "Error: Cannot use ipmi-sensors with option \'--legacy-output\'. Remove it to work correctly.\n"; exit(3); } + # check if output-sensor-thresholds can be used, this is supported + # since 1.2.1. Version 1.2.0 was not released, so skip the third minor + # version number + if($ipmi_version[0] > 1 || ($ipmi_version[0] == 1 && $ipmi_version[1] >= 2)){ + $use_thresholds = 1; + } + else{ + $use_thresholds = 0; + } } - ############################################################################### # verify if all mandatory parameters are set and initialize various variables #\s defines any whitespace characters @@ -354,36 +498,40 @@ $zenoss = 1; } - my @basecmd; #variable for command to call ipmi - if( !(defined $ipmi_host) ){ - $abort_text= $abort_text . " -H " + # Define basic ipmi command + my @basecmd = $IPMICOMMAND; + # If host is omitted localhost is assumed, if not turned off sudo is used + if(!(defined $ipmi_host) || ($ipmi_host eq 'localhost')){ + if(!defined($no_sudo)){ + # Only add sudo if not already root + @basecmd = ($> != 0 ? 'sudo' : (), $IPMICOMMAND); + } } + # If we are not local, we need authentication credentials else{ - if( $ipmi_host eq 'localhost' ){ - @basecmd = ('sudo', $IPMICOMMAND); + # Add the ipmi desired host + push @basecmd, '-h', $ipmi_host; + if(defined $ipmi_config_file){ + push @basecmd, '--config-file', $ipmi_config_file; + } + elsif(defined $ipmi_user && defined $ipmi_password && defined $ipmi_privilege_level ){ + push @basecmd, '-u', $ipmi_user, '-p', $ipmi_password, '-l', $ipmi_privilege_level; } else{ - if(defined $ipmi_config_file){ - @basecmd = ($IPMICOMMAND, '-h', $ipmi_host, '--config-file', $ipmi_config_file); - } - elsif ( defined $ipmi_user && defined $ipmi_password && defined $ipmi_privilege_level ){ - @basecmd = ($IPMICOMMAND, '-h', $ipmi_host, '-u', $ipmi_user, '-p', $ipmi_password, '-l', $ipmi_privilege_level) - } - else{ - $abort_text = $abort_text . " -f or -U -P -L "; - } + $abort_text = $abort_text . " -f or -U -P -L "; + } + if( $abort_text ne ""){ + print STDOUT "Error: " . $abort_text . " missing."; + print STDOUT get_usage(); + exit(3); } - } - if( $abort_text ne ""){ - print STDOUT "Error: " . $abort_text . " missing."; - print STDOUT get_usage(); - exit(3); } # copy command for fru usage my @frucmd; if($use_fru){ @frucmd = @basecmd } + my @selcmd = @basecmd; # , is the seperator in the new string if(@ipmi_sensor_types){ @@ -407,7 +555,7 @@ } #since version 0.8 it is necessary to add the legacy option if( ($ipmi_version[0] == 0 && $ipmi_version[1] > 7) && (grep(/legacy\-output/,@freeipmi_options) == 0)){ - push @getstatus, '--legacy-output'; + push @getstatus, '--legacy-output'; } #if ipmi-sensors is used show the state of sensors and ignore N/A if($ipmi_sensors){ @@ -417,8 +565,17 @@ if(!defined($lanVersion)){ $lanVersion = 'LAN_2_0'; } - if($lanVersion ne 'default' && $ipmi_host ne 'localhost'){ + if($lanVersion ne 'default' && defined $ipmi_host && $ipmi_host ne 'localhost'){ push @getstatus, "--driver-type=$lanVersion"; + if(!$no_sel){ + push @selcmd, "--driver-type=$lanVersion"; + } + if($use_fru){ + push @frucmd, "--driver-type=$lanVersion"; + } + } + if($use_thresholds && !$no_thresholds){ + push @getstatus, '--output-sensor-thresholds'; } ################################################################################ @@ -438,7 +595,11 @@ } my @fruoutput; if($use_fru){ - @fruoutput = get_fru(\@frucmd); + @fruoutput = get_fru(\@frucmd, $verbosity); + } + my $seloutput; + if(!$no_sel){ + $seloutput = parse_sel(\@selcmd, $verbosity, $sel_xfile); } ################################################################################ # print debug output when verbosity is set to 3 (-vvv) @@ -447,7 +608,7 @@ run [$IPMICOMMAND, '-V'], '2>&1', '|', ['head', '-n', 1], '&>', \$ipmicommandversion; #remove trailing newline with chomp chomp $ipmicommandversion; - print "------------- begin of debug output (-vvv is set): ------------\n"; + print "------------- debug output for sensors (-vvv is set): ------------\n"; print " script was executed with the following parameters:\n"; print " $0 ", join(' ', @ARGV_SAVE), "\n"; print " check_ipmi_sensor version:\n"; @@ -459,10 +620,6 @@ print " FreeIPMI return code: $returncode\n"; print " output of FreeIPMI:\n"; print "$ipmioutput\n"; - print " output of FRU data:\n"; - for my $line (@fruoutput){ - print $line."\n"; - } print "--------------------- end of debug output ---------------------\n"; } @@ -519,7 +676,6 @@ #checking at which position in the header is which key $header{$hdrmap{$header->[$i]}} = $i; } - my @ipmioutput2; foreach my $row ( @ipmioutput ){ my %row; @@ -528,7 +684,9 @@ while ( my ($key, $index) = each %header ){ $row{$key} = $row->[$index]; } - push @ipmioutput2, \%row; + if(!(exclude_with_file($s_xfile, $row{'name'}, $row{'type'}))){ + push @ipmioutput2, \%row; + } } #create hash with sensor name an 1 my %ipmi_xlist = map { ($_, 1) } @ipmi_xlist; @@ -567,17 +725,64 @@ } if ( $row->{'units'} ne 'N/A' ){ my $val = $row->{'reading'}; + my $perf_data; + my $perf_thresholds; if($zenoss){ - $perf .= qq|$row->{'name'}=$val |; + $perf_data = $row->{'name'}."=".$val; } else{ - $perf .= qq|'$row->{'name'}'=$val |; + $perf_data = "'".$row->{'name'}."'=".$val; + } + if($use_thresholds && !$no_thresholds){ + if(($row->{'lowerNC'} ne 'N/A') && ($row->{'upperNC'} ne 'N/A')){ + $perf_thresholds = $row->{'lowerNC'}.":".$row->{'upperNC'}.";"; + } + elsif(($row->{'lowerNC'} ne 'N/A') && ($row->{'upperNC'} eq 'N/A')){ + $perf_thresholds = $row->{'lowerNC'}.":;"; + } + elsif(($row->{'lowerNC'} eq 'N/A') && ($row->{'upperNC'} ne 'N/A')){ + $perf_thresholds = "~:".$row->{'upperNC'}.";"; + } + elsif(($row->{'lowerNC'} eq 'N/A') && ($row->{'upperNC'} eq 'N/A')){ + $perf_thresholds = ";"; + } + if(($row->{'lowerC'} ne 'N/A') && ($row->{'upperC'} ne 'N/A')){ + $perf_thresholds .= $row->{'lowerC'}.":".$row->{'upperC'}; + } + elsif(($row->{'lowerC'} ne 'N/A') && ($row->{'upperC'} eq 'N/A')){ + $perf_thresholds .= $row->{'lowerC'}.":"; + } + elsif(($row->{'lowerC'} eq 'N/A') && ($row->{'upperC'} ne 'N/A')){ + $perf_thresholds .= "~:".$row->{'upperC'}; + } + # Add thresholds to performance data + if(($row->{'lowerNC'} ne 'N/A') || ($row->{'upperNC'} ne 'N/A') || + ($row->{'lowerC'} ne 'N/A') || ($row->{'upperC'} ne 'N/A')){ + $perf_data .= ";".$perf_thresholds; + } } + $perf .= $perf_data." "; } if( $row->{'type'} eq 'Fan' && $row->{'reading'} ne 'N/A' ){ $curr_fans++; } } + foreach my $row (@{$seloutput}){ + if( $zenoss ){ + $row->{'name'} =~ s/ /_/g; + } + if ($row->{'state'} ne 'Nominal'){ + $exit = 1 if $exit < 1; + $exit = 2 if $exit < 2 && $row->{'state'} ne 'Warning'; + $w_sensors .= ", " unless $w_sensors eq ''; + $w_sensors .= "$row->{'name'} = $row->{'state'}"; + if( $verbosity ){ + if(defined($row->{'type'})){ + $w_sensors .= " ($row->{'type'})" ; + } + } + } + } #now check if num fans equals desired unit fans if( $fan_count ){ if( $curr_fans < $fan_count ){ @@ -594,8 +799,10 @@ my $serial_number; if( $use_fru ){ @server_serial = grep(/Product Serial Number/,@fruoutput); - $server_serial[0] =~ m/(\d+)/; - $serial_number = $1; + if(@server_serial){ + $server_serial[0] =~ m/(\d+)/; + $serial_number = $1; + } } $perf = substr($perf, 0, -1);#cut off the last chars if ( $exit == 0 ){ @@ -632,4 +839,4 @@ } exit $exit; } -}; \ No newline at end of file +}; diff -Nru nagios-plugins-contrib-14.20141104/check_ipmi_sensor/control nagios-plugins-contrib-16.20151226/check_ipmi_sensor/control --- nagios-plugins-contrib-14.20141104/check_ipmi_sensor/control 2014-11-04 13:55:05.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ipmi_sensor/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,5 +1,5 @@ Recommends: freeipmi-tools, libipc-run-perl -Version: 3.5 +Version: 3.9 Uploaders: Bernd Zeimetz Homepage: http://www.thomas-krenn.com/en/oss/ipmi-plugin.html Description: IPMI Sensor Monitoring Plugin diff -Nru nagios-plugins-contrib-14.20141104/check_ipmi_sensor/README nagios-plugins-contrib-16.20151226/check_ipmi_sensor/README --- nagios-plugins-contrib-14.20141104/check_ipmi_sensor/README 2014-11-04 13:50:41.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ipmi_sensor/README 2015-12-26 17:20:34.000000000 +0000 @@ -4,7 +4,7 @@ check_ipmi_sensor: Nagios/Icinga plugin to check IPMI sensors - Copyright (C) 2009-2013 Thomas-Krenn.AG, + Copyright (C) 2009-2015 Thomas-Krenn.AG, additional contributors see changelog.txt This program is free software; you can redistribute it and/or modify it under @@ -32,3 +32,14 @@ Installation hints: ------------------- On Debian/Ubuntu use 'apt-get install libipc-run-perl' to install IPC::Run. + If you are running the plugin locally and not via network, the user 'nagios' + needs root privileges for calling: + o ipmimonitoring/ipmi-sensors/ipmi-sel/[ipmi-fru] + You can achieve that by adding a sudoers config (e.g. for ipmi-sensors) + o nagios ALL=(root) NOPASSWD: /usr/sbin/ipmi-sensors, /usr/sbin/ipmi-sel + Please check with '-vvv' which commands are run by the plugin! + + Notes on ipmi-sel: + ------------------ + If you want to clear the ipmi system event log, pleas use: + o /usr/sbin/ipmi-sel -h $IP -u ADMIN -p $PW -l ADMIN --clear \ No newline at end of file diff -Nru nagios-plugins-contrib-14.20141104/check_libs/copyright nagios-plugins-contrib-16.20151226/check_libs/copyright --- nagios-plugins-contrib-14.20141104/check_libs/copyright 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_libs/copyright 2015-12-26 17:20:34.000000000 +0000 @@ -1,8 +1,38 @@ + +check_libs: + Copyright (C) 2005, 2006, 2007, 2008, 2012 Peter Palfrader 2012 Uli Martens Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +update-check_libs-status: + +Based on update-apt-status +Copyright 2009 Peter Palfrader + +Copyright 2014 conova communications GmbH + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to diff -Nru nagios-plugins-contrib-14.20141104/check_libs/Makefile nagios-plugins-contrib-16.20151226/check_libs/Makefile --- nagios-plugins-contrib-14.20141104/check_libs/Makefile 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_libs/Makefile 2015-12-26 17:20:34.000000000 +0000 @@ -3,6 +3,7 @@ INIFILES = check-libs.conf PLUGIN = check_libs CLEANFILES = $(INIFILES) $(PLUGIN) +CRONJOBS:= update-check_libs-status include ../common.mk diff -Nru nagios-plugins-contrib-14.20141104/check_libs/nagios-check-libs.conf nagios-plugins-contrib-16.20151226/check_libs/nagios-check-libs.conf --- nagios-plugins-contrib-14.20141104/check_libs/nagios-check-libs.conf 2014-06-30 05:29:41.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_libs/nagios-check-libs.conf 2015-12-26 17:20:34.000000000 +0000 @@ -17,4 +17,5 @@ - '$path =~ m#^/var/lib/ganeti/#' - '$path =~ m#^/usr/lib/locale/locale-archive#' - '$path =~ m#^/var/lib/nginx/#' + - '$path =~ m#^/\[aio\]$#' # vim:syn=yaml diff -Nru nagios-plugins-contrib-14.20141104/check_libs/update-check_libs-status nagios-plugins-contrib-16.20151226/check_libs/update-check_libs-status --- nagios-plugins-contrib-14.20141104/check_libs/update-check_libs-status 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_libs/update-check_libs-status 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,90 @@ +#!/bin/bash + +# Based on update-apt-status +# Copyright 2009 Peter Palfrader +# +# Copyright 2014 conova communications GmbH +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +UPDATE_RUNS=3 +STATUSDIR=/var/cache/nagios_status +STATUS=${STATUSDIR}/check_libs +SLEEP_MAX=$(( 15 * 60 )) +MAX_AGE=$(( 23 * 60 * 60 )) + +# we want to run if any of the following things is true +# - we have never run before +# - var/lib/dpkg/status has been touched since the last run +# - var/cache/apt/pkgcache.bin has been touched since the last run +# - our last run ended with 'apt-get update failed' +# - our last run has been more than MAX_AGE (23hrs) ago +run_required() { + local run=0 + local norun=1 + + [ -e "$STATUS" ] || return $run + [ /var/lib/dpkg/status -nt "$STATUS" ] && return $run + [ /var/cache/apt/pkgcache.bin -nt "$STATUS" ] && return $run + grep "apt-get update failed" "$STATUS" > /dev/null && return $run + + local last_mod + last_mod=`stat -c "%Y" "$STATUS"` + now=`date +%s` + age=$(( $now - $last_mod )) + [ "$age" -gt "$MAX_AGE" ] && return $run + + return $norun +} + +if [ ! -d ${STATUSDIR} ]; then + mkdir -p ${STATUSDIR} +fi + +# do stuff only when required, or when asked to +if [ "${1:-""}" != "-f" ] ; then + run_required || exit 0 +fi + +# sleep if called non-interactively +if [ -z "$TERM" -o "$TERM" = "dumb" ]; then + sleep $(( $RANDOM % $SLEEP_MAX )) +fi + +# run the apt check itself +tmp=`tempfile` +trap "rm -f '$tmp'" exit +/usr/lib/nagios/plugins/check_libs > "$tmp" +result="$?" +case "$result" in + 0) + st="OK" + ;; + 1) + st="WARNING" + ;; + 2) + st="CRITICAL" + ;; + *) + st="UNKNOWN" + ;; +esac +(echo "$st"; cat "$tmp") > "$STATUS" diff -Nru nagios-plugins-contrib-14.20141104/check_libvirt/check_libvirt nagios-plugins-contrib-16.20151226/check_libvirt/check_libvirt --- nagios-plugins-contrib-14.20141104/check_libvirt/check_libvirt 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_libvirt/check_libvirt 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,526 @@ +#!/usr/bin/perl -w +# +# Nagios plugin to monitor different virtualization solutions using libvirt, e.g. Xen, KVM, Virtual Box. +# +# License: GPL +# Copyright (c) 2011 op5 AB +# Author: Kostyantyn Hushchyn +# +# For direct contact with any of the op5 developers send a mail to +# op5-users@lists.op5.com +# Discussions are directed to the mailing list op5-users@op5.com, +# see http://lists.op5.com/mailman/listinfo/op5-users +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +use strict; +use warnings; +use vars qw($PROGNAME $VERSION $output $result); +use Nagios::Plugin; +use File::Basename; +use Sys::Virt; +use XML::Simple; + +$PROGNAME = basename($0); +$VERSION = '0.1.0'; +my $spooldir="/opt/monitor/var/check_libvirt"; + +if (!-d $spooldir) +{ + mkdir($spooldir); +} + +my $np = Nagios::Plugin->new( + usage => "Usage: %s -H [ -N ]\n" + . " [-u -p ]\n" + . " -l [ -s ]\n" + . " [ -t ] [ -w ] [ -c ]\n" + . ' [ -V ] [ -h ]', + version => $VERSION, + plugin => $PROGNAME, + shortname => uc($PROGNAME), + blurb => 'Plugin for monitoring virtualization solutions via libvirt: KVM/QEMU, VirtualBox, Xen, Microsoft Hyper-V, etc', + extra => "Supported commands :\n" + . " Host specific :\n" + . " * list - shows VM's list and their statuses\n" + . " * pool - shows pool info\n" + . " + (name) - query particular pool with name (name)\n" + . " ^ list pools and their statuses\n" + . " * volume - shows volume info\n" + . " + (name) - query particular volume in pool with full name (name)\n" + . " ^ list volumes and their statuses\n" + . " * running - queries VM state\n" + . " + (name) - query particular VM state by it's name (name)\n" + . " VM specific :\n" + . " * cpu - shows cpu usage info\n" + . " * mem - shows mem usage info\n" + . " * net - shows net info: TX bytes, TX packets, TX errors, TX drops, RX bytes, RX packets, RX errors, RX drops\n" + . " * io - shows io info: Read bytes, Read requests, Write bytes, Write requests, Errors\n" + . "\n\nCopyright (c) 2011 op5", + timeout => 30, +); + +$np->add_arg( + spec => 'host|H=s', + help => "-H, --host=\n" + . " libvirt remote urls. More information can be found here http://libvirt.org/remote.html#Remote_URI_reference\n" + . ' and here http://libvirt.org/drivers.html .', + required => 0, +); + +$np->add_arg( + spec => 'name|N=s', + help => "-N, --name=\n" + . ' Virtual machine name.', + required => 0, +); + +$np->add_arg( + spec => 'username|u=s', + help => "-u, --username=\n" + . ' Username to connect to Hypervisor with.', + required => 0, +); + +$np->add_arg( + spec => 'password|p=s', + help => "-p, --password=\n" + . ' Password to use with the username.', + required => 0, +); + +$np->add_arg( + spec => 'warning|w=s', + help => "-w, --warning=THRESHOLD\n" + . " Warning threshold. See\n" + . " http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT\n" + . ' for the threshold format.', + required => 0, +); + +$np->add_arg( + spec => 'critical|c=s', + help => "-c, --critical=THRESHOLD\n" + . " Critical threshold. See\n" + . " http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT\n" + . ' for the threshold format.', + required => 0, +); + +$np->add_arg( + spec => 'command|l=s', + help => "-l, --command=COMMAND\n" + . ' Specify command type (VM Server: LIST, POOL, VOLUME; VM Machine: CPU, MEM, NET, IO)', + required => 1, +); + +$np->add_arg( + spec => 'subcommand|s=s', + help => "-s, --subcommand=SUBCOMMAND\n" + . ' Specify subcommand', + required => 0, +); + +$np->getopts; + +my $host = $np->opts->host; +my $vmname = $np->opts->name; +my $username = $np->opts->username; +my $password = $np->opts->password; +my $warning = $np->opts->warning; +my $critical = $np->opts->critical; +my $command = $np->opts->command; +my $subcommand = $np->opts->subcommand; +my %runstates = (Sys::Virt::Domain::STATE_NOSTATE => "running", Sys::Virt::Domain::STATE_RUNNING => "running", Sys::Virt::Domain::STATE_BLOCKED => "running", Sys::Virt::Domain::STATE_PAUSED => "running", Sys::Virt::Domain::STATE_SHUTDOWN => "going down", Sys::Virt::Domain::STATE_SHUTOFF => "down", Sys::Virt::Domain::STATE_CRASHED => "crashed"); +my %poolstates = (Sys::Virt::StoragePool::STATE_INACTIVE => "inactive", Sys::Virt::StoragePool::STATE_BUILDING => "building", Sys::Virt::StoragePool::STATE_RUNNING => "running", Sys::Virt::StoragePool::STATE_DEGRADED => "degraded"); +my %voltypes = (Sys::Virt::StorageVol::TYPE_FILE => "image", Sys::Virt::StorageVol::TYPE_BLOCK => "dev"); +$output = "Unknown ERROR!"; +$result = CRITICAL; + +if (defined($critical)) +{ + $critical = undef if ($critical eq ''); +} + +if (defined($warning)) +{ + $warning = undef if ($warning eq ''); +} + +$np->set_thresholds(critical => $critical, warning => $warning); + +eval +{ + my $con = Sys::Virt->new(address => $host, readonly => 1, auth => (defined($username) && defined($password)), + credlist => [ + Sys::Virt::CRED_AUTHNAME, + Sys::Virt::CRED_PASSPHRASE, + ], + callback => + sub { + my $creds = shift; + + foreach my $cred (@{$creds}) { + if ($cred->{type} == Sys::Virt::CRED_AUTHNAME) { + $cred->{result} = $username; + } + if ($cred->{type} == Sys::Virt::CRED_PASSPHRASE) { + $cred->{result} = $password; + } + } + return 0; + } + ); + + if (!defined($vmname)) + { + if (uc($command) eq "LIST") + { + my @updoms = $con->list_domains(); + my $up = @updoms; + my $cnt = $con->num_of_defined_domains(); + my @downdoms = $con->list_defined_domain_names($cnt); + $output = ""; + + while (my $dom = shift(@downdoms)) + { + $output .= $dom . "(" . $runstates{Sys::Virt::Domain::STATE_SHUTOFF} . "), "; + } + + $cnt += $up; + while (my $dom = shift(@updoms)) + { + my $domstate = $dom->get_info()->{"state"}; + if (exists($runstates{$domstate})) + { + if ($runstates{$domstate} ne "running") + { + $up--; + $output = $dom->get_name() . "(" . $runstates{$domstate} . "), " . $output; + } + else + { + $output .= $dom->get_name() . "(running), "; + } + } + else + { + $up--; + $output = $dom->get_name() . "(unknown), " . $output; + } + } + + chop($output); + chop($output); + $output = $up . "/" . $cnt . " VMs up: " . $output; + $np->add_perfdata(label => "vmcount", value => $up, uom => 'units', threshold => $np->threshold); + $result = $np->check_threshold(check => $up); + } + elsif (uc($command) eq "POOL") + { + if (!defined($subcommand)) + { + my @pools = $con->list_storage_pools(); + push(@pools, $con->list_defined_storage_pools()); + + $output = ""; + while (my $pool = shift(@pools)) + { + my $poolinfo = $pool->get_info(); + if (exists($poolstates{$poolinfo->{"state"}})) + { + my $value1 = $poolinfo->{"allocation"}; + my $value2 = simplify_number($value1 / $poolinfo->{"capacity"} * 100); + $value1 = simplify_number($value1 / 1024 / 1024); + $output .= $pool->get_name() . "(" . $poolstates{$poolinfo->{"state"}} . ")=" . $value1 . "MB(" . $value2 . "%), "; + } + else + { + $output .= $pool->get_name() . "(unknown)=unavialable, "; + } + } + chop($output); + chop($output); + $result = OK; + } + else + { + my $pool = $con->get_storage_pool_by_name($subcommand); + my $poolinfo = $pool->get_info(); + my $value1 = $poolinfo->{"allocation"}; + my $value2 = simplify_number($value1 / $poolinfo->{"capacity"} * 100); + $value1 = simplify_number($value1 / 1024 / 1024); + $output = $pool->get_name() . "(" . $poolstates{$poolinfo->{"state"}} . ")=" . $value1 . "MB(" . $value2 . "%)"; + $np->add_perfdata(label => $pool->get_name(), value => $value1, uom => 'MB', threshold => $np->threshold); + $result = $np->check_threshold(check => $value1); + } + } + elsif (uc($command) eq "VOLUME") + { + if (!defined($subcommand)) + { + my @pools = $con->list_storage_pools(); + push(@pools, $con->list_defined_storage_pools()); + + $output = ""; + while (my $pool = shift(@pools)) + { + my @volumes = $pool->list_volumes(); + while (my $vol = shift(@volumes)) + { + my $volinfo = $vol->get_info(); + my $value1 = simplify_number($volinfo->{"allocation"} / 1024 / 1024); + my $value2 = simplify_number($volinfo->{"capacity"} / 1024 / 1024); + $output .= $vol->get_name() . "(" . $voltypes{$volinfo->{"type"}} . ")=" . $value1 . "MB/" . $value2 . "MB, "; + } + } + chop($output); + chop($output); + $result = OK; + } + else + { + my ($poolname, $volname) = split(/\//, $subcommand, 2); + die "Volume name is not defined. Please provide argument in form 'pool/volume'.\n" if (!defined($volname)); + my $pool = $con->get_storage_pool_by_name($poolname); + my $vol = $pool->get_volume_by_name($volname); + my $volinfo = $vol->get_info(); + my $value1 = simplify_number($volinfo->{"allocation"} / 1024 / 1024); + my $value2 = simplify_number($volinfo->{"capacity"} / 1024 / 1024); + $output = $vol->get_name() . "(" . $voltypes{$volinfo->{"type"}} . ")=" . $value1 . "MB/" . $value2 . "MB"; + $np->add_perfdata(label => $vol->get_name(), value => $value1, uom => 'MB', threshold => $np->threshold); + $result = $np->check_threshold(check => $value1); + } + } + elsif (uc($command) eq "RUNNING") + { + die "VM name is not defined. Please provide argument in -s command.\n" if (!defined($subcommand)); + my $dom = $con->get_domain_by_name($subcommand); + my $domstate = $dom->get_info()->{"state"}; + if (exists($runstates{$domstate})) + { + $result = ($runstates{$domstate} eq "running") ? OK : CRITICAL; + $output = $dom->get_name() . " is in " . $runstates{$domstate} . " state\n"; + } + else + { + $result = CRITICAL; + $output = $dom->get_name() . " is in unknown state\n"; + } + } + else + { + $result = CRITICAL; + $output = "unknown command '$command' for Host\n"; + } + } + else + { + my $dom = $con->get_domain_by_name($vmname); + my $dominfo = $dom->get_info(); + my $domstate = $dominfo->{"state"}; + die "VM '$vmname' is " . $runstates{$domstate} . ".\n" if (!exists($runstates{$domstate}) || $runstates{$domstate} ne "running"); + + if (uc($command) eq "CPU") + { + my $vars; + my $range = time(); + ($result, $vars) = process_domstat($np, $spooldir . "/" . $vmname . "_cpu", $range, {cpu_time => $dominfo->{"cpuTime"}}); + die {msg => ("Skipped, first time of data collection.\n"), code => OK} if (ref($vars) ne "HASH"); + # cpuTime is in nano seconds + my $cpuusage = simplify_number($vars->{"cpu_time"} / 1000000000 * 100); + $output = "CPU usage = " . $cpuusage . " %\n"; + $np->add_perfdata(label => "cpu", value => $cpuusage, threshold => $np->threshold); + $result = $np->check_threshold(check => $cpuusage); + } + elsif (uc($command) eq "MEM") + { + my $value = simplify_number($dominfo->{"memory"} / 1024); + $output = "MEM usage = " . $value . " MB\n"; + $np->add_perfdata(label => "memory", value => $value, threshold => $np->threshold); + $result = $np->check_threshold(check => $value); + } + elsif (uc($command) eq "NET") + { + my $vmdesc = XML::Simple->new()->XMLin($dom->get_xml_description()); + my $ifaces = $vmdesc->{"devices"}->{"interface"}; + $ifaces = [ $ifaces ] if (ref($ifaces) ne "ARRAY"); + my $tx_bytes = 0; + my $tx_pkts = 0; + my $tx_drop = 0; + my $tx_errs = 0; + my $rx_bytes = 0; + my $rx_pkts = 0; + my $rx_drop = 0; + my $rx_errs = 0; + + while (my $iface = shift(@{$ifaces})) + { + my $ifacedev = $iface->{"target"}->{"dev"}; + my $devname = $ifacedev; + die {msg => ("Can not access network interfaces. Unsure that VM is running as paravirt guest or PV drivers are installed.\n"), code => CRITICAL} if (!defined($devname)); + $devname =~ s/\./_/g; + + my $vars; + my $range = time(); + ($result, $vars) = process_domstat($np, $spooldir . "/" . $vmname . "_" . $devname . "_net", $range, $dom->interface_stats($ifacedev)); + next if (ref($vars) ne "HASH"); + + $output = ""; + $tx_bytes += $vars->{"tx_bytes"}; + $tx_pkts += $vars->{"tx_packets"}; + $tx_drop += $vars->{"tx_drop"}; + $tx_errs += $vars->{"tx_errs"}; + $rx_bytes += $vars->{"rx_bytes"}; + $rx_pkts += $vars->{"rx_packets"}; + $rx_drop += $vars->{"rx_drop"}; + $rx_errs += $vars->{"rx_errs"}; + } + die {msg => ("Skipped, first time of data collection.\n"), code => OK} if ($output); + + $np->add_perfdata(label => "tx_bytes", value => $tx_bytes, threshold => $np->threshold); + $np->add_perfdata(label => "tx_packets", value => $tx_pkts, threshold => $np->threshold); + $np->add_perfdata(label => "tx_drop", value => $tx_drop, threshold => $np->threshold); + $np->add_perfdata(label => "tx_errs", value => $tx_errs, threshold => $np->threshold); + $np->add_perfdata(label => "rx_bytes", value => $rx_bytes, threshold => $np->threshold); + $np->add_perfdata(label => "rx_packets", value => $rx_pkts, threshold => $np->threshold); + $np->add_perfdata(label => "rx_drop", value => $rx_drop, threshold => $np->threshold); + $np->add_perfdata(label => "rx_errs", value => $rx_errs, threshold => $np->threshold); + + $output = "NET TX bytes = " . $tx_bytes . ", TX pkts = " . $tx_pkts . ", TX drops = " . $tx_drop . ", TX errors = " . $tx_errs . ", RX bytes = " . $rx_bytes . ", RX pkts = " . $rx_pkts . ", RX drops = " . $rx_drop . ", RX errors = " . $rx_errs; + } + elsif (uc($command) eq "IO") + { + my $vmdesc = XML::Simple->new()->XMLin($dom->get_xml_description()); + my $blks = $vmdesc->{"devices"}->{"disk"}; + $blks = [ $blks ] if (ref($blks) ne "ARRAY"); + my $rd_bytes = 0; + my $rd_req = 0; + my $wr_bytes = 0; + my $wr_req = 0; + my $errs = 0; + + while (my $blk = shift(@{$blks})) + { + my $blkdev = $blk->{"target"}->{"dev"}; + my $devname = $blkdev; + die {msg => ("Can not access disk device. Unsure that VM is running as paravirt guest or PV drivers are installed.\n"), code => CRITICAL} if (!defined($devname)); + $devname =~ s/\./_/g; + + my $vars; + my $range = time(); + ($result, $vars) = process_domstat($np, $spooldir . "/" . $vmname . "_" . $devname . "_io", $range, $dom->block_stats($blkdev)); + next if (ref($vars) ne "HASH"); + + $output = ""; + $rd_bytes += $vars->{"rd_bytes"}; + $rd_req += $vars->{"rd_req"}; + $wr_bytes += $vars->{"wr_bytes"}; + $wr_req += $vars->{"wr_req"}; + $errs += $vars->{"errs"}; + } + die {msg => ("Skipped, first time of data collection.\n"), code => OK} if ($output); + + $np->add_perfdata(label => "rd_bytes", value => $rd_bytes, threshold => $np->threshold); + $np->add_perfdata(label => "rd_req", value => $rd_req, threshold => $np->threshold); + $np->add_perfdata(label => "wr_bytes", value => $wr_bytes, threshold => $np->threshold); + $np->add_perfdata(label => "wr_req", value => $wr_req, threshold => $np->threshold); + $np->add_perfdata(label => "errors", value => $errs, threshold => $np->threshold); + + $output = "IO read bytes = " . $rd_bytes . ", read req = " . $rd_req . ", write bytes = " . $wr_bytes . ", write req = " . $wr_req . ", errors = " . $errs; + } + else + { + $result = CRITICAL; + $output = "unknown command '$command' for VM '$vmname'\n"; + } + } +}; + +if ($@) +{ + if (uc(ref($@)) eq "HASH") + { + $output = $@->{msg}; + $result = $@->{code}; + } + else + { + $output = $@ . ""; + $result = CRITICAL; + } + $output =~ s/libvirt error code: [0-9]+, message: //; + $output =~ s/\r\n//; +} + +$np->nagios_exit($result, $output); + +sub simplify_number +{ + my ($number, $cnt) = @_; + $cnt = 2 if (!defined($cnt)); + return sprintf("%.${cnt}f", "$number"); +} + +sub process_domstat +{ + my ($np, $datapath, $range, $new_vars) = @_; + my $result = OK; + my $old_range = 0; + + # Read old info + my %old_vars; + if (open(OLDSPOOL, "<" . $datapath)) + { + $old_range = ; + while (my $line = ) + { + my @vals = split(/\s/, $line); + $old_vars{$vals[0]} = $vals[1]; + } + close(OLDSPOOL); + } + + # Save new info + open(SPOOL, ">" . $datapath) or die {msg => ("Can not create file " . $datapath . ". Please check permissions, disk space and mount point availability.\n"), code => CRITICAL}; + print(SPOOL $range . "\n"); + while (my ($key, $value) = each %{$new_vars}) + { + print(SPOOL $key . " " . $value . "\n") + } + close(SPOOL); + + return OK if (!scalar keys %old_vars); + + # Compute usage statistic + my %vars; + $range = $range - $old_range; + foreach my $key (keys %{$new_vars}) + { + if (exists($old_vars{$key})) + { + my $value = simplify_number(($new_vars->{$key} - $old_vars{$key}) / $range); + $vars{$key} = $value; + return OK if ($value < 0); + } + else + { + $result = CRITICAL; + } + } + + die {msg => ("Can not retreive any value.\n"), code => CRITICAL} if (!scalar keys %vars); + + return ($result, \%vars); +} diff -Nru nagios-plugins-contrib-14.20141104/check_libvirt/control nagios-plugins-contrib-16.20151226/check_libvirt/control --- nagios-plugins-contrib-14.20141104/check_libvirt/control 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_libvirt/control 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,7 @@ +Homepage: http://git.op5.org/gitweb?p=system-addons/plugins/op5/check_libvirt.git;a=summary +Watch: http://git.op5.org/gitweb?p=system-addons/plugins/op5/check_libvirt.git;a=tags ".*list subject.*a=tag;.*>v([^<]+)" +Recommends: libnagios-plugin-perl, libxml-simple-perl +Suggests: libsys-virt-perl +Version: v7.0.3 +Uploaders: Bernd Zeimetz +Description: monitor virtualization solutions using libvirt diff -Nru nagios-plugins-contrib-14.20141104/check_libvirt/copyright nagios-plugins-contrib-16.20151226/check_libvirt/copyright --- nagios-plugins-contrib-14.20141104/check_libvirt/copyright 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_libvirt/copyright 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,22 @@ +License: GPL 2 +Copyright (c) 2011 op5 AB +Author: Kostyantyn Hushchyn + +For direct contact with any of the op5 developers send a mail to +op5-users@lists.op5.com +Discussions are directed to the mailing list op5-users@op5.com, +see http://lists.op5.com/mailman/listinfo/op5-users + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + + diff -Nru nagios-plugins-contrib-14.20141104/check_libvirt/Makefile nagios-plugins-contrib-16.20151226/check_libvirt/Makefile --- nagios-plugins-contrib-14.20141104/check_libvirt/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_libvirt/Makefile 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,4 @@ +#/usr/bin/make -f + +include ../common.mk + diff -Nru nagios-plugins-contrib-14.20141104/check_memcached/control nagios-plugins-contrib-16.20151226/check_memcached/control --- nagios-plugins-contrib-14.20141104/check_memcached/control 2014-04-25 22:55:07.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_memcached/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,4 +1,4 @@ -Build-Depends: flex, libmemcached-dev [!hurd-i386 !arm64] +Build-Depends: flex, libmemcached-dev [!hurd-i386] Homepage: http://exchange.nagios.org/directory/Plugins/Websites,-Forms-and-Transactions/check_memcached-IV/details Version: 1.3 Uploaders: Bernd Zeimetz diff -Nru nagios-plugins-contrib-14.20141104/check_memcached/Makefile nagios-plugins-contrib-16.20151226/check_memcached/Makefile --- nagios-plugins-contrib-14.20141104/check_memcached/Makefile 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_memcached/Makefile 2015-12-26 17:20:34.000000000 +0000 @@ -1,6 +1,6 @@ #/usr/bin/make -f CLEANFILES = check_memcached check_memcached.c -LIBS += -lmemcached +LIBS += $(shell pkg-config --libs libmemcached) -lpthread include ../common.mk diff -Nru nagios-plugins-contrib-14.20141104/check_mongodb/check_mongodb.py nagios-plugins-contrib-16.20151226/check_mongodb/check_mongodb.py --- nagios-plugins-contrib-14.20141104/check_mongodb/check_mongodb.py 2014-10-01 06:24:45.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mongodb/check_mongodb.py 2015-12-26 17:20:34.000000000 +0000 @@ -16,6 +16,8 @@ # - @jbraeuer on github # - Dag Stockstad # - @Andor on github +# - Steven Richards - Captainkrtek on github +# - Max Vernimmen - @mvernimmen-CG / @mvernimmen on github # # USAGE # @@ -123,16 +125,16 @@ p = optparse.OptionParser(conflict_handler="resolve", description="This Nagios plugin checks the health of mongodb.") p.add_option('-H', '--host', action='store', type='string', dest='host', default='127.0.0.1', help='The hostname you want to connect to') - p.add_option('-P', '--port', action='store', type='int', dest='port', default=27017, help='The port mongodb is runnung on') + p.add_option('-P', '--port', action='store', type='int', dest='port', default=27017, help='The port mongodb is running on') p.add_option('-u', '--user', action='store', type='string', dest='user', default=None, help='The username you want to login as') p.add_option('-p', '--pass', action='store', type='string', dest='passwd', default=None, help='The password you want to use for that user') - p.add_option('-W', '--warning', action='store', dest='warning', default=None, help='The warning threshold we want to set') - p.add_option('-C', '--critical', action='store', dest='critical', default=None, help='The critical threshold we want to set') + p.add_option('-W', '--warning', action='store', dest='warning', default=None, help='The warning threshold you want to set') + p.add_option('-C', '--critical', action='store', dest='critical', default=None, help='The critical threshold you want to set') p.add_option('-A', '--action', action='store', type='choice', dest='action', default='connect', help='The action you want to take', choices=['connect', 'connections', 'replication_lag', 'replication_lag_percent', 'replset_state', 'memory', 'memory_mapped', 'lock', 'flushing', 'last_flush_time', 'index_miss_ratio', 'databases', 'collections', 'database_size', 'database_indexes', 'collection_indexes', 'collection_size', - 'queues', 'oplog', 'journal_commits_in_wl', 'write_data_files', 'journaled', 'opcounters', 'current_lock', 'replica_primary', 'page_faults', - 'asserts', 'queries_per_second', 'page_faults', 'chunks_balance', 'connect_primary', 'collection_state', 'row_count', 'replset_quorum']) + 'collection_storageSize', 'queues', 'oplog', 'journal_commits_in_wl', 'write_data_files', 'journaled', 'opcounters', 'current_lock', 'replica_primary', + 'page_faults', 'asserts', 'queries_per_second', 'page_faults', 'chunks_balance', 'connect_primary', 'collection_state', 'row_count', 'replset_quorum']) p.add_option('--max-lag', action='store_true', dest='max_lag', default=False, help='Get max replication lag (for replication_lag action only)') p.add_option('--mapped-memory', action='store_true', dest='mapped_memory', default=False, help='Get mapped memory instead of resident (if resident memory can not be read)') p.add_option('-D', '--perf-data', action='store_true', dest='perf_data', default=False, help='Enable output of Nagios performance data') @@ -143,6 +145,8 @@ p.add_option('-q', '--querytype', action='store', dest='query_type', default='query', help='The query type to check [query|insert|update|delete|getmore|command] from queries_per_second') p.add_option('-c', '--collection', action='store', dest='collection', default='admin', help='Specify the collection to check') p.add_option('-T', '--time', action='store', type='int', dest='sample_time', default=1, help='Time used to sample number of pages faults') + p.add_option('-M', '--mongoversion', action='store', type='choice', dest='mongo_version', default='2', help='The MongoDB version you are talking with, either 2 or 3', + choices=['2','3']) options, arguments = p.parse_args() host = options.host @@ -162,6 +166,7 @@ action = options.action perf_data = options.perf_data max_lag = options.max_lag + mongo_version = options.mongo_version database = options.database ssl = options.ssl replicaset = options.replicaset @@ -191,13 +196,13 @@ elif action == "replset_state": return check_replset_state(con, perf_data, warning, critical) elif action == "memory": - return check_memory(con, warning, critical, perf_data, options.mapped_memory) + return check_memory(con, warning, critical, perf_data, options.mapped_memory, host) elif action == "memory_mapped": return check_memory_mapped(con, warning, critical, perf_data) elif action == "queues": return check_queues(con, warning, critical, perf_data) elif action == "lock": - return check_lock(con, warning, critical, perf_data) + return check_lock(con, warning, critical, perf_data, mongo_version) elif action == "current_lock": return check_current_lock(con, host, warning, critical, perf_data) elif action == "flushing": @@ -225,6 +230,8 @@ return check_collection_indexes(con, database, collection, warning, critical, perf_data) elif action == "collection_size": return check_collection_size(con, database, collection, warning, critical, perf_data) + elif action == "collection_storageSize": + return check_collection_storageSize(con, database, collection, warning, critical, perf_data) elif action == "journaled": return check_journaled(con, warning, critical, perf_data) elif action == "write_data_files": @@ -234,9 +241,9 @@ elif action == "asserts": return check_asserts(con, host, warning, critical, perf_data) elif action == "replica_primary": - return check_replica_primary(con, host, warning, critical, perf_data, replicaset) + return check_replica_primary(con, host, warning, critical, perf_data, replicaset, mongo_version) elif action == "queries_per_second": - return check_queries_per_second(con, query_type, warning, critical, perf_data) + return check_queries_per_second(con, query_type, warning, critical, perf_data, mongo_version) elif action == "page_faults": check_page_faults(con, sample_time, warning, critical, perf_data) elif action == "chunks_balance": @@ -335,6 +342,10 @@ def check_rep_lag(con, host, port, warning, critical, percent, perf_data, max_lag, user, passwd): # Get mongo to tell us replica set member name when connecting locally if "127.0.0.1" == host: + if not "me" in con.admin.command("ismaster","1").keys(): + print "OK - This is not replicated MongoDB" + sys.exit(3) + host = con.admin.command("ismaster","1")["me"].split(':')[0] if percent: @@ -352,7 +363,7 @@ try: rs_status = con.admin.command("replSetGetStatus") except pymongo.errors.OperationFailure, e: - if e.code == None and str(e).find('failed: not running with --replSet"'): + if ((e.code == None and str(e).find('failed: not running with --replSet"')) or (e.code == 76 and str(e).find('not running with --replSet"'))): print "OK - Not running with replSet" return 0 @@ -375,7 +386,7 @@ for member in rs_status["members"]: if member["stateStr"] == "PRIMARY": primary_node = member - if member["name"].split(':')[0] == host and int(member["name"].split(':')[1]) == port: + if member.get('self') == True: host_node = member # Check if we're in the middle of an election and don't have a primary @@ -496,13 +507,35 @@ except Exception, e: return exit_with_general_critical(e) +# +# Check the memory usage of mongo. Alerting on this may be hard to get right +# because it'll try to get as much memory as it can. And that's probably +# a good thing. +# +def check_memory(con, warning, critical, perf_data, mapped_memory, host): + # Get the total system memory of this system (This is totally bogus if you + # are running this command remotely) and calculate based on that how much + # memory used by Mongodb is ok or not. + meminfo = open('/proc/meminfo').read() + matched = re.search(r'^MemTotal:\s+(\d+)', meminfo) + if matched: + mem_total_kB = int(matched.groups()[0]) + + if host != "127.0.0.1" and not warning: + # Running remotely and value was not set by user, use hardcoded value + warning = 12 + else: + # running locally or user provided value + warning = warning or (mem_total_kB * 0.8) / 1024.0 / 1024.0 + + if host != "127.0.0.1" and not critical: + critical = 16 + else: + critical = critical or (mem_total_kB * 0.9) / 1024.0 / 1024.0 + + # debugging + #print "mem total: {0}kb, warn: {1}GB, crit: {2}GB".format(mem_total_kB,warning, critical) -def check_memory(con, warning, critical, perf_data, mapped_memory): - # - # These thresholds are basically meaningless, and must be customized to your system's ram - # - warning = warning or 8 - critical = critical or 16 try: data = get_server_status(con) if not data['mem']['supported'] and not mapped_memory: @@ -573,7 +606,7 @@ message += " %.2fGB mappedWithJournal" % mem_mapped_journal except: mem_mapped_journal = 0 - message += performance_data(perf_data, [("%.2f" % mem_mapped, "memory_mapped"), ("%.2f" % mem_mapped_journal, "mappedWithJournal")]) + message += performance_data(perf_data, [("%.2f" % mem_mapped, "memory_mapped", warning, critical), ("%.2f" % mem_mapped_journal, "mappedWithJournal")]) if not mem_mapped == -1: return check_levels(mem_mapped, warning, critical, message) @@ -585,21 +618,33 @@ return exit_with_general_critical(e) -def check_lock(con, warning, critical, perf_data): +# +# Return the percentage of the time there was a global Lock +# +def check_lock(con, warning, critical, perf_data, mongo_version): warning = warning or 10 critical = critical or 30 - try: - data = get_server_status(con) - # - # calculate percentage - # - lock_percentage = float(data['globalLock']['lockTime']) / float(data['globalLock']['totalTime']) * 100 - message = "Lock Percentage: %.2f%%" % lock_percentage - message += performance_data(perf_data, [("%.2f" % lock_percentage, "lock_percentage", warning, critical)]) - return check_levels(lock_percentage, warning, critical, message) - - except Exception, e: - return exit_with_general_critical(e) + if mongo_version == "2": + try: + data = get_server_status(con) + lockTime = data['globalLock']['lockTime'] + totalTime = data['globalLock']['totalTime'] + # + # calculate percentage + # + if lockTime > totalTime: + lock_percentage = 0.00 + else: + lock_percentage = float(lockTime) / float(totalTime) * 100 + message = "Lock Percentage: %.2f%%" % lock_percentage + message += performance_data(perf_data, [("%.2f" % lock_percentage, "lock_percentage", warning, critical)]) + return check_levels(lock_percentage, warning, critical, message) + except Exception, e: + print "Couldn't get globalLock lockTime info from mongo, are you sure you're not using version 3? See the -M option." + return exit_with_general_critical(e) + else: + print "FAIL - Mongo3 doesn't report on global locks" + return 1 def check_flushing(con, warning, critical, avg, perf_data): @@ -702,7 +747,7 @@ data = con.admin.command(son.SON([('replSetGetStatus', 1)])) state = int(data['myState']) except pymongo.errors.OperationFailure, e: - if e.code == None and str(e).find('failed: not running with --replSet"'): + if ((e.code == None and str(e).find('failed: not running with --replSet"')) or (e.code == 76 and str(e).find('not running with --replSet"'))): state = -1 if state == 8: @@ -913,7 +958,32 @@ except Exception, e: return exit_with_general_critical(e) -def check_queries_per_second(con, query_type, warning, critical, perf_data): + +def check_collection_storageSize(con, database, collection, warning, critical, perf_data): + warning = warning or 100 + critical = critical or 1000 + perfdata = "" + try: + set_read_preference(con.admin) + data = con[database].command('collstats', collection) + storageSize = data['storageSize'] / 1024 / 1024 + if perf_data: + perfdata += " | collection_storageSize=%i;%i;%i" % (storageSize, warning, critical) + + if storageSize >= critical: + print "CRITICAL - %s.%s storageSize: %.0f MB %s" % (database, collection, storageSize, perfdata) + return 2 + elif storageSize >= warning: + print "WARNING - %s.%s storageSize: %.0f MB %s" % (database, collection, storageSize, perfdata) + return 1 + else: + print "OK - %s.%s storageSize: %.0f MB %s" % (database, collection, storageSize, perfdata) + return 0 + except Exception, e: + return exit_with_general_critical(e) + + +def check_queries_per_second(con, query_type, warning, critical, perf_data, mongo_version): warning = warning or 250 critical = critical or 500 @@ -937,7 +1007,10 @@ query_per_sec = float(diff_query) / float(diff_ts) # update the count now - db.nagios_check.update({u'_id': last_count['_id']}, {'$set': {"data.%s" % query_type: {'count': num, 'ts': int(time.time())}}}) + if mongo_version == "2": + db.nagios_check.update({u'_id': last_count['_id']}, {'$set': {"data.%s" % query_type: {'count': num, 'ts': int(time.time())}}}) + else: + db.nagios_check.update_one({u'_id': last_count['_id']}, {'$set': {"data.%s" % query_type: {'count': num, 'ts': int(time.time())}}}) message = "Queries / Sec: %f" % query_per_sec message += performance_data(perf_data, [(query_per_sec, "%s_per_sec" % query_type, warning, critical, message)]) @@ -946,13 +1019,20 @@ # since it is the first run insert it query_per_sec = 0 message = "First run of check.. no data" - db.nagios_check.update({u'_id': last_count['_id']}, {'$set': {"data.%s" % query_type: {'count': num, 'ts': int(time.time())}}}) + if mongo_version == "2": + db.nagios_check.update({u'_id': last_count['_id']}, {'$set': {"data.%s" % query_type: {'count': num, 'ts': int(time.time())}}}) + else: + db.nagios_check.update_one({u'_id': last_count['_id']}, {'$set': {"data.%s" % query_type: {'count': num, 'ts': int(time.time())}}}) + except TypeError: # # since it is the first run insert it query_per_sec = 0 message = "First run of check.. no data" - db.nagios_check.insert({'check': 'query_counts', 'data': {query_type: {'count': num, 'ts': int(time.time())}}}) + if mongo_version == "2": + db.nagios_check.insert({'check': 'query_counts', 'data': {query_type: {'count': num, 'ts': int(time.time())}}}) + else: + db.nagios_check.insert_one({'check': 'query_counts', 'data': {query_type: {'count': num, 'ts': int(time.time())}}}) return check_levels(query_per_sec, warning, critical, message) @@ -1185,7 +1265,7 @@ return stored_primary_server -def check_replica_primary(con, host, warning, critical, perf_data, replicaset): +def check_replica_primary(con, host, warning, critical, perf_data, replicaset, mongo_version): """ A function to check if the primary server of a replica set has changed """ if warning is None and critical is None: warning = 1 @@ -1208,7 +1288,10 @@ saved_primary = "None" if current_primary != saved_primary: last_primary_server_record = {"server": current_primary} - db.last_primary_server.update({"_id": "last_primary"}, {"$set": last_primary_server_record}, upsert=True, safe=True) + if mongo_version == "2": + db.last_primary_server.update({"_id": "last_primary"}, {"$set": last_primary_server_record}, upsert=True, safe=True) + else: + db.last_primary_server.update_one({"_id": "last_primary"}, {"$set": last_primary_server_record}, upsert=True, safe=True) message = "Primary server has changed from %s to %s" % (saved_primary, current_primary) primary_status = 1 return check_levels(primary_status, warning, critical, message) diff -Nru nagios-plugins-contrib-14.20141104/check_mongodb/control nagios-plugins-contrib-16.20151226/check_mongodb/control --- nagios-plugins-contrib-14.20141104/check_mongodb/control 2014-10-01 06:24:45.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mongodb/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,6 +1,6 @@ Uploaders: Jan Wagner Recommends: python-pymongo -Version: 60b639ef4c +Version: abf2daad31 Homepage: https://github.com/mzupan/nagios-plugin-mongodb Watch: https://github.com/mzupan/nagios-plugin-mongodb ([0-9a-f]+) Description: Plugin script to monitor your MongoDB server(s) diff -Nru nagios-plugins-contrib-14.20141104/check_multipath/check-multipath.pl nagios-plugins-contrib-16.20151226/check_multipath/check-multipath.pl --- nagios-plugins-contrib-14.20141104/check_multipath/check-multipath.pl 2014-10-01 06:24:45.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_multipath/check-multipath.pl 2015-12-26 17:20:34.000000000 +0000 @@ -14,15 +14,14 @@ # == IMPORTANT == # # "sudo" must be configured to allow 'multipath -l' +# and/or 'multipath -ll' if you intend to use the option -ll # (and also 'multipath -r', if you intend to use the --reload option) # for the NAGIOS-user without password # #------------------------------------------------------------- # # -# $Id: $ -# -# Copyright (C) 2011-2014 +# Copyright (C) 2011-2015 # Hinnerk Rümenapf, Trond H. Amundsen, Gunther Schlegel, Matija Nalis, # Bernd Zeimetz, Sven Anders, Ben Evans # @@ -61,7 +60,9 @@ # Warning if data for LUNs in --extraconfig is missing # Added --reload option (based on Ben Evans' idea) # 0.2.1 Improved LUN-line check, thanks to Michal Svamberg -# +# 0.2.2 Improved path error check, extended extraconfig capabilities (thanks to Nasimuddin Ansari for his comment) +# +# 0.3.0 Added Option --ll, added handling of checker messages. Thanks to Andreas Steinel use strict; @@ -72,7 +73,7 @@ # Global (package) variables used throughout the code use vars qw( $NAME $VERSION $AUTHOR $CONTACT $E_OK $E_WARNING $E_CRITICAL - $E_UNKNOWN $USAGE $HELP $LICENSE $SUDO $MULTIPATH_LIST $MULTIPATH_RELOAD + $E_UNKNOWN $USAGE $HELP $LICENSE $SUDO $MULTIPATH_LIST $MULTIPATH_LIST_LONG $MULTIPATH_RELOAD $linebreak $counter $exit_code %opt %reverse_exitcode %text2exit @multipathStateLines %nagios_level_count @perl_warnings @reports @ok_reports @debugInput @@ -85,7 +86,7 @@ # === Version and similar info === $NAME = 'check-multipath.pl'; -$VERSION = '0.2.1 31. MAR. 2014'; +$VERSION = '0.3.0 02. OCT 2015'; $AUTHOR = 'Hinnerk Rümenapf'; $CONTACT = 'hinnerk.ruemenapf@uni-hamburg.de hinnerk.ruemenapf@gmx.de'; @@ -424,12 +425,42 @@ ."| `- 9:0:2:0 sde 8:64 active ready running\n" ."`-+- policy='round-robin 0' prio=1 status=enabled\n" ." `- 9:0:5:0 sdh 8:112 active ready running", + +#29. more errors (edited) +"mpathb (36000d7700000c5780d68e963a7d30695) dm-1 FALCON,IPSTOR DISK\n" +."size=1.9T features='1 queue_if_no_path' hwhandler='0' wp=rw\n" +."`-+- policy='service-time 0' prio=1 status=active\n" +." |- 7:0:0:1 sdd 8:48 active ready running\n" +." |- 7:0:1:1 sdg 8:96 active ready running\n" +." |- 8:0:0:1 sdj 8:144 failed faulty offline\n" +." `- 8:0:1:1 sdm 8:192 active ready running\n" +."mpatha (36000d77e0000c9f549b7b04ab12f4f29) dm-0 FALCON,IPSTOR DISK\n" +."size=1.9T features='1 queue_if_no_path' hwhandler='0' wp=rw\n" +."`-+- policy='service-time 0' prio=1 status=active\n" +." |- 7:0:0:0 sdc 8:32 active shaky running\n" +." |- 7:0:1:0 sdf 8:80 active ready running\n" +." |- 8:0:0:0 sdi 8:128 failed faulty offline\n" +." `- 8:0:1:0 sdl 8:176 active ready running\n", + +#30. thanks to Andreas Steinel +"sddv: checker msg is \"tur checker reports path is down\"\n" +."mpatha (3aaaabbbbccccddddeeeeffff00001111) dm-16 DGC,VRAID\n" +."[size=300G][features=1 queue_if_no_path][hwhandler=1 alua][rw]\n" +."\_ round-robin 0 [prio=100][active]\n" +." \_ 2:0:2:10 sdao 66:128 [active][ready] \n" +." \_ 1:0:2:10 sddk 71:32 [active][ready] \n" +."\_ round-robin 0 [prio=10][enabled]\n" +." \_ 2:0:3:10 sdaz 67:48 [active][ready] \n" +."\_ round-robin 0 [prio=0][enabled]\n" +." \_ 1:0:3:10 sddv 71:208 [active][faulty]\n", + ); # Commands with full path -$SUDO = '/usr/bin/sudo'; -$MULTIPATH_LIST = '/sbin/multipath -l'; -$MULTIPATH_RELOAD = '/sbin/multipath -r'; +$SUDO = '/usr/bin/sudo'; +$MULTIPATH_LIST_LONG = '/sbin/multipath -ll'; +$MULTIPATH_LIST = '/sbin/multipath -l'; +$MULTIPATH_RELOAD = '/sbin/multipath -r'; # Exit codes $E_OK = 0; @@ -471,12 +502,6 @@ http://www.nagios.org/documentation OPTIONS: - - -s, --state Prefix alerts with alert state - -S, --short-state Prefix alerts with alert state abbreviated - -h, --help Display this help text - -V, --version Display version info - -v, --verbose -m, --min-paths Low mark, less paths per LUN are CRITICAL [2] -o, --ok-paths High mark, less paths per LUN raise WARNING [4] -n, --no-multipath Exitcode for no LUNs or no multipath driver [warning] @@ -485,18 +510,30 @@ (multipath -r) Can help to pick up LUNs coming back to life. + -L, --ll use multipath -ll instead of multipath -l + Can give more detailed information + -l, --linebreak Define end-of-line string: REG regular UNIX-Newline HTML
-other- use specified string as linebreak symbol, e.g. ', ' (all in one line, comma seperated) - -e, --extraconfig Specify different low/high thresholds for LUNs: - ",,:" for each LUN with deviant thresholds - e.g. "iscsi_lun_01,2,2:dummyLun,1,1:paranoid_lun,8,16:" - "oddLun,3,3:" + -e, --extraconfig Specify different low/high thresholds for LUNs + optional: specify return code if no data for LUN name was found + (ok, warning, critical), default is warning + ",,[,]:" for each LUN with deviant thresholds + e.g. "iscsi_lun_01,2,2:dummyLun,1,1,ok:paranoid_lun,8,16,critical:" + "oddLun,3,5,critical:" + "default,2,4,warning:DonalLunny,6,8:" Use option -v to see LUN names used by this plugin. + -s, --state Prefix alerts with alert state + -S, --short-state Prefix alerts with alert state abbreviated + -h, --help Display this help text + -V, --version Display version info + -v, --verbose More text output + -d, --di Run testcase instead of real check [0] -t, --test Do not display testcase input, just result @@ -504,8 +541,9 @@ NOTE: 'sudo' must be configured to allow the nagios-user to call - multipath -l (and also multipath -r, if you intend to use the --reload option) - without password. + multipath -l and/or multipath -ll if you use the -ll option + (and also multipath -r, if you intend to use the --reload option) + *without* password. END_HELP @@ -548,6 +586,7 @@ 'verbose' => 0, 'test' => 0, 'reload' => 0, + 'll' => 0, ); # Get options @@ -565,6 +604,7 @@ 'v|verbose' => \$opt{verbose}, 't|test' => \$opt{test}, 'r|reload' => \$opt{reload}, + 'L|ll' => \$opt{ll}, ) or do { print $USAGE; exit $E_UNKNOWN }; # If user requested help @@ -616,16 +656,23 @@ my %extraconfig = (); if ($opt{extraconfig} ne '') { - if ($opt{extraconfig} !~ m!^(:?[\w\-]+,\d+,\d+:)+$! ) { + if ( $opt{extraconfig} !~ m!^([\w\-]+,\d+,\d+(?:,(?:ok|warning|critical))?:)+$! ) { unknown_error("Wrong usage of '--extraconfig' option: '" . $opt{extraconfig} . "' syntax error. See help information."); } # if - while ( $opt{extraconfig} =~ m!(:?[\w\-]+),(\d+),(\d+):+!g ) { + while ( $opt{extraconfig} =~ m!([\w\-]+),(\d+),(\d+)(?:,(ok|warning|critical))?:+!g ) { my $name =$1; my $crit =$2; my $warn =$3; + my $ret = $4; + my $missingRet=$E_WARNING; + + if ( defined($ret) ) { + $missingRet=$text2exit{$ret}; + } + #print "EXTRA: $name, c=$crit, w=$warn, m=$missingRet, '$ret'\n"; if ($crit > $warn) { unknown_error("Error in '--extraconfig' option '" @@ -633,8 +680,7 @@ . "' for LUN '$name': critical threshold ($crit) must not be higher than warning threshold ($warn)."); } # if - #print "\n ['$name', '$crit', '$warn' ] \n"; - $extraconfig{$name} = {'warn' => $warn, 'crit' => $crit, 'found' => 0}; + $extraconfig{$name} = {'warn' => $warn, 'crit' => $crit, 'missingRet' => $missingRet, 'found' => 0 }; } # while } # if @@ -739,6 +785,8 @@ } else { if ($< != 0) { # (root) NOPASSWD: /sbin/multipath -l + # (root) NOPASSWD: /sbin/multipath -ll + # (root) NOPASSWD: /sbin/multipath -r my $sudoListCommand = "$SUDO -l 2>/dev/null"; my $sudoList = qx($sudoListCommand); if ($sudoList !~ m!\(root\) \s+ NOPASSWD\: \s+ $cmd!x ) { @@ -873,8 +921,8 @@ #print "'$textLine', "; #print "LUN '$currentLun', path '$pathName'\n"; - if ($textLine =~ m/fail|fault/) { # fail or fault? - #print "FAULT: $textLine\n"; + if ($textLine =~ m/fail|fault|offline|shaky/) { # fail or fault, offline or shaky? + #print "ERROR: $textLine\n"; report("LUN $currentLun, path $pathName: ERROR.", $E_WARNING); } elsif ($textLine !~ m/\sactive\s/) { # path is active? @@ -896,7 +944,11 @@ } # check for new LUN name elsif ( ($currentLun ne "") && checkPolicyLine ($textLine) ) { ; # SKIP NESTED POLICY - } else { # error: unknown line format + } + elsif ( $textLine =~ m/checker msg is /) { + ; # SKIP tur message stuff + } + else { # error: unknown line format unknown_error ("Line $i not recognised. Expected path info, new LUN or nested policy:\n'$textLine'") } } # case @@ -946,8 +998,12 @@ # Main program #===================================================================== +my $mpListCmd = $MULTIPATH_LIST; +if ($opt{'ll'}) { + $mpListCmd = $MULTIPATH_LIST_LONG; +} -my @multipathStateText = @{ get_multipath_text( $MULTIPATH_LIST ) }; # get input data +my @multipathStateText = @{ get_multipath_text( $mpListCmd ) }; # get input data my %lunPaths = %{checkMultipathText ( \@multipathStateText )}; # analyse it @@ -991,7 +1047,7 @@ # foreach my $lunName ( keys %extraconfig ) { if (! ${$extraconfig{$lunName}}{'found'} ) { - report("LUN '$lunName' in extraconfig, but NO DATA found.", $E_WARNING); + report("LUN '$lunName' in extraconfig, but NO DATA found.",${$extraconfig{$lunName}}{'missingRet'} ); } } # foreach diff -Nru nagios-plugins-contrib-14.20141104/check_multipath/control nagios-plugins-contrib-16.20151226/check_multipath/control --- nagios-plugins-contrib-14.20141104/check_multipath/control 2014-10-01 06:24:45.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_multipath/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,5 +1,5 @@ Watch: http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check-2Dmultipath-2Epl/details Current Version
([0-9.]+)
-Version: 0.2.1 +Version: 0.3.0 Homepage: http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check-2Dmultipath-2Epl/details Uploaders: Bernd Zeimetz Description: plugin to monitor the number of available and diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/acinclude.m4 nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/acinclude.m4 --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/acinclude.m4 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/acinclude.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,78 +0,0 @@ -dnl @synopsis ACX_WHICH_GETHOSTBYNAME_R -dnl -dnl Provides a test to determine the correct way to call gethostbyname_r -dnl -dnl defines HAVE_GETHOSTBYNAME_R to the number of arguments required -dnl -dnl e.g. 6 arguments (linux) -dnl e.g. 5 arguments (solaris) -dnl e.g. 3 arguments (osf/1) -dnl -dnl @version $Id: acinclude.m4,v 1.5 2004/02/18 14:56:34 kdebisschop Exp $ -dnl @author Brian Stafford -dnl -dnl based on version by Caolan McNamara -dnl based on David Arnold's autoconf suggestion in the threads faq -dnl -AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R], -[AC_CACHE_CHECK(number of arguments to gethostbyname_r, - acx_which_gethostbyname_r, [ - AC_TRY_COMPILE([ -# include - ], [ - - char *name; - struct hostent *he; - struct hostent_data data; - (void) gethostbyname_r(name, he, &data); - - ],acx_which_gethostbyname_r=3, - [ -dnl acx_which_gethostbyname_r=0 - AC_TRY_COMPILE([ -# include - ], [ - char *name; - struct hostent *he, *res; - char *buffer = NULL; - int buflen = 2048; - int h_errnop; - (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) - ],acx_which_gethostbyname_r=6, - - [ -dnl acx_which_gethostbyname_r=0 - AC_TRY_COMPILE([ -# include - ], [ - char *name; - struct hostent *he; - char *buffer = NULL; - int buflen = 2048; - int h_errnop; - (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) - ],acx_which_gethostbyname_r=5,acx_which_gethostbyname_r=0) - - ] - - ) - ] - ) - ]) - -if test $acx_which_gethostbyname_r -gt 0 ; then - AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME_R], $acx_which_gethostbyname_r, - [Number of parameters to gethostbyname_r or 0 if not available]) -fi - -]) - -dnl @synopsis ACX_HELP_STRING(OPTION,DESCRIPTION) -AC_DEFUN([ACX_HELP_STRING], - [ $1 builtin([substr],[ ],len($1))[$2]]) - - -dnl @synopsis ACX_FEATURE(ENABLE_OR_WITH,NAME[,VALUE]) -AC_DEFUN([ACX_FEATURE], - [echo "builtin([substr],[ ],len(--$1-$2))--$1-$2: ifelse($3,,[$]translit($1-$2,-,_),$3)"]) - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/aclocal.m4 nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/aclocal.m4 --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/aclocal.m4 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,559 +0,0 @@ -# generated automatically by aclocal 1.9.6 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION so it can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], - [AM_AUTOMAKE_VERSION([1.9.6])]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.58])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"$am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. -# -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories -# created by `make install' are always world readable, even if the -# installer happens to have an overly restrictive umask (e.g. 077). -# This was a mistake. There are at least two reasons why we must not -# use `-m 0755': -# - it causes special bits like SGID to be ignored, -# - it may be too restrictive (some setups expect 775 directories). -# -# Do not use -m 0755 and let people choose whatever they expect by -# setting umask. -# -# We cannot accept any implementation of `mkdir' that recognizes `-p'. -# Some implementations (such as Solaris 8's) are not thread-safe: if a -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' -# concurrently, both version can detect that a/ is missing, but only -# one can create it and the other will error out. Consequently we -# restrict ourselves to GNU make (using the --version option ensures -# this.) -AC_DEFUN([AM_PROG_MKDIR_P], -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi -AC_SUBST([mkdir_p])]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -m4_include([acinclude.m4]) diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/AUTHORS nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/AUTHORS --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/AUTHORS 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/AUTHORS 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -Gerhard Lausser diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/ChangeLog nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/ChangeLog --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/ChangeLog 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/ChangeLog 1970-01-01 00:00:00.000000000 +0000 @@ -1,87 +0,0 @@ -############################################### -# Changelog of the check_mysql_health plugin # -############################################### - -2.1.8.2 2012-08-08 -- bugfix in querycache-hitrate (div by 0 after db restart). (Thanks Gianluca Varisco) - -2.1.8.1 2012-01-21 -- bugfix in timeout-alarm handling under windows -- fix warnings for newest perl versions - -2.1.8 2011-09-29 -- new parameters --mycnf and --mycnfgroup -- single ticks around the --name argument under Windows CMD will be removed auto -matically - -2.1.7 2011-08-23 -- innodb modes now detect problems with the innodb engine - -2.1.6 2011-08-12 -- fix a bug with statefilesdir and capital letters -- add --labelformat so that groundwork no longer complains (max label length is 19 characters) - -2.1.5.2 2011-06-03 -- sites in an OMD (http://omdistro.org) environment have now private statefile directories - -2.1.5.1 2011-01-03 -- bugfix in --mode sql (numeric vs. regexp result) - -2.1.5 2010-12-20 -- fixed a division by zero bug in index-usage (Thanks Wiltmut Gerdes) -- fixed a severe bug when loading dynamic extensions (Thanks Ralph Schneider) -- added mode table-fragmentation -- fixed a bug in table-lock-contention (thanks mayukmok00) -- mode sql can now have a non-numerical output which is compared to a string/regexp -- new parameter --dbthresholds -- new mode report can be used to output only the bad news (short,long,html) - -2.1.4 2010-10-02 -- added modes threads-created, threads-running, threads-cached -- added connects-aborted, clients-aborted - -2.1.3 2010-09-29 -- added mode open-files -- fix a bug in the pnp template -- add extra-opts - -2.1.2 2010-06-10 -- changed statements for 4.x compatibility (show variables like) (Thanks Florian) - -2.1.1 2010-03-30 -- added more tracing (touch /tmp/check_mysql_health.trace to watch) -- fixed a bug in master-slave modes, so it outputs a more meaningful error message (Thanks Will Oberman) -- fixed a typo (Thanks Larsen) - -2.1 -- parameter --lookback uses custom intervals for _now-values - -2.0.5 2009-09-21 -- fixed another bug in master-slave modes. (Thanks Thomas Mueller) -- fixed a bug in bufferpool-wait-free. (Thanks Matthias Flacke) -- fixed a bug in the PNP template. (Thanks Matthias Flacke) -- slave-lag now handles failed io threads. (Thanks Greg) -- fixed a bug in connections with non-standard sockets (Thanks Stephan Huiser) - -2.0.4 -- fixed a bug in --mode cluster-ndbd-running where dead api nodes were overseen -- fixed a bug in master-slave modes. (Thanks Arkadiusz Miskiewicz) - -2.0.3 -- fixed a bug with 0 warning/critical -- fixed a bug in long-running-procs (affects only mysql 5.0 and below). (Thanks Bodo Schulz) - -2.0.2 -- $NAGIOS__HOSTMYSQL_HOST etc. is now possible - -2.0.1 2009-03-09 -- fixed a (harmless) bug which caused uninitialized-messages. (Thanks John Alberts & Thomas Borger) -- enabled password-less login to localhost. - -2.0 2009-03-06 -- This is the first release of the new plugin check_mysql_health - It replaces check_mysql_perf which is a nightmare to install - It is written in Perl - It can use either DBD::mysql, the mysql command or DBD::SQLrelay - It can monitor mysql clusters (the ndb stuff) - It can execute custom sql statements diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/config.guess nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/config.guess --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/config.guess 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/config.guess 1970-01-01 00:00:00.000000000 +0000 @@ -1,1432 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. - -timestamp='2003-10-20' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Per Bothner . -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; - --version | -v ) - echo "$version" ; exit 0 ;; - --help | --h* | -h ) - echo "$usage"; exit 0 ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - macppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvmeppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pegasos:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mipseb-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE="alpha" ;; - "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; - "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; - "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; - "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; - "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; - "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; - "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; - "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; - "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; - "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; - "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; - esac - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; - Alpha*:OpenVMS:*:*) - echo alpha-hp-vms - exit 0 ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit 0 ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit 0 ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit 0;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit 0 ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit 0 ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit 0 ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit 0;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit 0 ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit 0 ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit 0 ;; - DRS?6000:UNIX_SV:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7 && exit 0 ;; - esac ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit 0 ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit 0 ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c \ - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && exit 0 - echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit 0 ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit 0 ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit 0 ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit 0 ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit 0 ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit 0 ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit 0 ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit 0 ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit 0 ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit 0 ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit 0 ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit 0 ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit 0 ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit 0 ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo rs6000-ibm-aix3.2.5 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit 0 ;; - *:AIX:*:[45]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit 0 ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit 0 ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit 0 ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit 0 ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit 0 ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit 0 ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - # avoid double evaluation of $set_cc_for_build - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit 0 ;; - 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo unknown-hitachi-hiuxwe2 - exit 0 ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit 0 ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit 0 ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit 0 ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit 0 ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit 0 ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit 0 ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit 0 ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit 0 ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit 0 ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit 0 ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit 0 ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - *:UNICOS/mp:*:*) - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - *:FreeBSD:*:*) - # Determine whether the default compiler uses glibc. - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #if __GLIBC__ >= 2 - LIBC=gnu - #else - LIBC= - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - # GNU/KFreeBSD systems have a "k" prefix to indicate we are using - # FreeBSD's kernel, but not the complete OS. - case ${LIBC} in gnu) kernel_only='k' ;; esac - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} - exit 0 ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit 0 ;; - x86:Interix*:[34]*) - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' - exit 0 ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit 0 ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit 0 ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit 0 ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit 0 ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit 0 ;; - arm*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - cris:Linux:*:*) - echo cris-axis-linux-gnu - exit 0 ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - mips:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips - #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 - ;; - mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips64 - #undef mips64el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mips64el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips64 - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 - ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit 0 ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit 0 ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit 0 ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; - esac - exit 0 ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit 0 ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu - exit 0 ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - a.out-i386-linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 ;; - coff-i386) - echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 ;; - "") - # Either a pre-BFD a.out linker (linux-gnuoldld) or - # one that does not give us useful --help. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit 0 ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #ifdef __INTEL_COMPILER - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 - ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit 0 ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit 0 ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit 0 ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit 0 ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit 0 ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit 0 ;; - i*86:*:5:[78]*) - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit 0 ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit 0 ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit 0 ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit 0 ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit 0 ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit 0 ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit 0 ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit 0 ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit 0 ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit 0 ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit 0 ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit 0 ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit 0 ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit 0 ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit 0 ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit 0 ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit 0 ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit 0 ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit 0 ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit 0 ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - *:Darwin:*:*) - case `uname -p` in - *86) UNAME_PROCESSOR=i686 ;; - powerpc) UNAME_PROCESSOR=powerpc ;; - esac - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit 0 ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit 0 ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit 0 ;; - NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit 0 ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit 0 ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit 0 ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit 0 ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit 0 ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit 0 ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit 0 ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit 0 ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit 0 ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit 0 ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit 0 ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit 0 ;; - *:DRAGONFLY:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE} - exit 0 ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -eval $set_cc_for_build -cat >$dummy.c < -# include -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -# if !defined (ultrix) -# include -# if defined (BSD) -# if BSD == 43 - printf ("vax-dec-bsd4.3\n"); exit (0); -# else -# if BSD == 199006 - printf ("vax-dec-bsd4.3reno\n"); exit (0); -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# endif -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# else - printf ("vax-dec-ultrix\n"); exit (0); -# endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit 0 ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - c34*) - echo c34-convex-bsd - exit 0 ;; - c38*) - echo c38-convex-bsd - exit 0 ;; - c4*) - echo c4-convex-bsd - exit 0 ;; - esac -fi - -cat >&2 < in order to provide the needed -information to handle your system. - -config.guess timestamp = $timestamp - -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/config.sub nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/config.sub --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/config.sub 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/config.sub 1970-01-01 00:00:00.000000000 +0000 @@ -1,1534 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. - -timestamp='2003-11-20' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.sub ($timestamp) - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; - --version | -v ) - echo "$version" ; exit 0 ;; - --help | --h* | -h ) - echo "$usage"; exit 0 ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit 0;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) - os= - basic_machine=$1 - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ - | c4x | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | m32r | m68000 | m68k | m88k | mcore \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64vr | mips64vrel \ - | mips64orion | mips64orionel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | msp430 \ - | ns16k | ns32k \ - | openrisc | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ - | pyramid \ - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ - | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ - | v850 | v850e \ - | we32k \ - | x86 | xscale | xstormy16 | xtensa \ - | z8k) - basic_machine=$basic_machine-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12) - # Motorola 68HC11/12. - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* \ - | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | m32r-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | mcore-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ - | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ - | pyramid-* \ - | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tron-* \ - | v850-* | v850e-* | vax-* \ - | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ - | xtensa-* \ - | ymp-* \ - | z8k-*) - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - crds | unos) - basic_machine=m68k-crds - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - mingw32) - basic_machine=i386-pc - os=-mingw32 - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - nv1) - basic_machine=nv1-cray - os=-unicosmp - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - or32 | or32-*) - basic_machine=or32-unknown - os=-coff - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparc | sparcv9 | sparcv9b) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -wince*) - os=-wince - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -aros*) - os=-aros - ;; - -kaos*) - os=-kaos - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - m68*-cisco) - os=-aout - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-ibm) - os=-aix - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit 0 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/configure nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/configure --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/configure 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,3296 +0,0 @@ -#! /bin/sh -# From configure.in . -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for check_mysql_health 2.1.8.2. -# -# Copyright (C) 2003 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -exec 6>&1 - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_config_libobj_dir=. -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} - -# Identity of this package. -PACKAGE_NAME='check_mysql_health' -PACKAGE_TARNAME='check_mysql_health' -PACKAGE_VERSION='2.1.8.2' -PACKAGE_STRING='check_mysql_health 2.1.8.2' -PACKAGE_BUGREPORT='' - -ac_default_prefix=/usr/local/nagios -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os RELEASE INSTALL WARRANTY SUPPORT with_nagios_user with_nagios_group INSTALL_OPTS STATEFILES_DIR MYMODULES_DIR MYMODULES_DYN_DIR SH PERL GZIP GREP ECHO SED CAT LIBOBJS LTLIBOBJS' -ac_subst_files='' - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_option in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "enable_$ac_feature='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "with_$ac_package='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_confdir=`(dirname "$0") 2>/dev/null || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 - { (exit 1); exit 1; }; } -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures check_mysql_health 2.1.8.2 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -_ACEOF - - cat <<_ACEOF -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data [PREFIX/share] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --infodir=DIR info documentation [PREFIX/info] - --mandir=DIR man documentation [PREFIX/man] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of check_mysql_health 2.1.8.2:";; - esac - cat <<\_ACEOF - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-nagios-user=USER set user name to run nagios - --with-nagios-group=GROUP set group name to run nagios - --with-statefiles-dir=PATH sets directory for the state files (default=/var/tmp/check_mysql_health) - --with-mymodules-dir=PATH sets directory for own extensions which will be included during the build process (default=/usr/local/nagios/libexec) - --with-mymodules-dyn-dir=PATH sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec) - --with-perl=PATH sets path to perl executable - -_ACEOF -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - ac_popdir=`pwd` - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d $ac_dir || continue - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - cd $ac_dir - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_srcdir/configure.gnu; then - echo - $SHELL $ac_srcdir/configure.gnu --help=recursive - elif test -f $ac_srcdir/configure; then - echo - $SHELL $ac_srcdir/configure --help=recursive - elif test -f $ac_srcdir/configure.ac || - test -f $ac_srcdir/configure.in; then - echo - $ac_configure --help - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi - cd $ac_popdir - done -fi - -test -n "$ac_init_help" && exit 0 -if $ac_init_version; then - cat <<\_ACEOF -check_mysql_health configure 2.1.8.2 -generated by GNU Autoconf 2.59 - -Copyright (C) 2003 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit 0 -fi -exec 5>config.log -cat >&5 <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by check_mysql_health $as_me 2.1.8.2, which was -generated by GNU Autoconf 2.59. Invocation command line was - - $ $0 $@ - -_ACEOF -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_sep= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - # Get rid of the leading space. - ac_sep=" " - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Be sure not to use single quotes in there, as some shells, -# such as our DU 5.0 friend, will then `close' the trap. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -{ - (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) - sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; - *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------- ## -## Output files. ## -## ------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - sed "/^$/d" confdefs.h | sort - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core && - rm -rf conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status - ' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - - - - - - - - - - - - - - - - - - - - - - - - -am__api_version="1.9" -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f $ac_dir/shtool; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} - { (exit 1); exit 1; }; } -fi -ac_config_guess="$SHELL $ac_aux_dir/config.guess" -ac_config_sub="$SHELL $ac_aux_dir/config.sub" -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -test "$program_prefix" != NONE && - program_transform_name="s,^,$program_prefix,;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$,$program_suffix,;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$AWK" && break -done - -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -all: - @echo 'ac_maketemp="$(MAKE)"' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftest.make -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - SET_MAKE= -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='check_mysql_health' - VERSION='2.1.8.2' - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"$am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - STRIP=$ac_ct_STRIP -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - - -echo "$as_me:$LINENO: checking how to create a pax tar archive" >&5 -echo $ECHO_N "checking how to create a pax tar archive... $ECHO_C" >&6 -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' -_am_tools=${am_cv_prog_tar_pax-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - { echo "$as_me:$LINENO: $_am_tar --version" >&5 - ($_am_tar --version) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && break - done - am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x pax -w "$$tardir"' - am__tar_='pax -L -x pax -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H pax -L' - am__tar_='find "$tardir" -print | cpio -o -H pax -L' - am__untar='cpio -i -H pax -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_pax}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 - (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - rm -rf conftest.dir - if test -s conftest.tar; then - { echo "$as_me:$LINENO: $am__untar &5 - ($am__untar &5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -if test "${am_cv_prog_tar_pax+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - am_cv_prog_tar_pax=$_am_tool -fi - -echo "$as_me:$LINENO: result: $am_cv_prog_tar_pax" >&5 -echo "${ECHO_T}$am_cv_prog_tar_pax" >&6 - - - - - -# Make sure we can run config.sub. -$ac_config_sub sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 -echo "$as_me: error: cannot run $ac_config_sub" >&2;} - { (exit 1); exit 1; }; } - -echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6 -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_build_alias=$build_alias -test -z "$ac_cv_build_alias" && - ac_cv_build_alias=`$ac_config_guess` -test -z "$ac_cv_build_alias" && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6 -build=$ac_cv_build -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - -echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6 -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_host_alias=$host_alias -test -z "$ac_cv_host_alias" && - ac_cv_host_alias=$ac_cv_build_alias -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6 -host=$ac_cv_host -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - - -RELEASE=1 - - - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - - - -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -all: - @echo 'ac_maketemp="$(MAKE)"' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftest.make -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - SET_MAKE= -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - - -WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" - - -SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" - - - -# Check whether --with-nagios_user or --without-nagios_user was given. -if test "${with_nagios_user+set}" = set; then - withval="$with_nagios_user" - with_nagios_user=$withval -else - with_nagios_user=nagios -fi; - -# Check whether --with-nagios_group or --without-nagios_group was given. -if test "${with_nagios_group+set}" = set; then - withval="$with_nagios_group" - with_nagios_group=$withval -else - with_nagios_group=nagios -fi; - - -INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" - - - -# Check whether --with-statefiles_dir or --without-statefiles_dir was given. -if test "${with_statefiles_dir+set}" = set; then - withval="$with_statefiles_dir" - with_statefiles_dir=$withval -else - with_statefiles_dir=/var/tmp/check_mysql_health -fi; -STATEFILES_DIR=$with_statefiles_dir - -echo variable with_statefiles_dir is $with_statefiles_dir - - -# Check whether --with-mymodules_dir or --without-mymodules_dir was given. -if test "${with_mymodules_dir+set}" = set; then - withval="$with_mymodules_dir" - with_mymodules_dir=$withval -else - with_mymodules_dir=/usr/local/nagios/libexec -fi; -MYMODULES_DIR=$with_mymodules_dir - -echo variable with_mymodules_dir is $with_mymodules_dir - - -# Check whether --with-mymodules_dyn_dir or --without-mymodules_dyn_dir was given. -if test "${with_mymodules_dyn_dir+set}" = set; then - withval="$with_mymodules_dyn_dir" - with_mymodules_dyn_dir=$withval -else - with_mymodules_dyn_dir=/usr/local/nagios/libexec -fi; -MYMODULES_DYN_DIR=$with_mymodules_dyn_dir - -echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir - -EXTRAS= - -# Extract the first word of "sh", so it can be a program name with args. -set dummy sh; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_SH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $SH in - [\\/]* | ?:[\\/]*) - ac_cv_path_SH="$SH" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -SH=$ac_cv_path_SH - -if test -n "$SH"; then - echo "$as_me:$LINENO: result: $SH" >&5 -echo "${ECHO_T}$SH" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -PERL=$ac_cv_path_PERL - -if test -n "$PERL"; then - echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -# Extract the first word of "gzip", so it can be a program name with args. -set dummy gzip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_GZIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $GZIP in - [\\/]* | ?:[\\/]*) - ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -GZIP=$ac_cv_path_GZIP - -if test -n "$GZIP"; then - echo "$as_me:$LINENO: result: $GZIP" >&5 -echo "${ECHO_T}$GZIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -for ac_prog in gawk nawk /usr/xpg4/bin/awk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $AWK in - [\\/]* | ?:[\\/]*) - ac_cv_path_AWK="$AWK" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -AWK=$ac_cv_path_AWK - -if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$AWK" && break -done - -# Extract the first word of "grep", so it can be a program name with args. -set dummy grep; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $GREP in - [\\/]* | ?:[\\/]*) - ac_cv_path_GREP="$GREP" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -GREP=$ac_cv_path_GREP - -if test -n "$GREP"; then - echo "$as_me:$LINENO: result: $GREP" >&5 -echo "${ECHO_T}$GREP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -# Extract the first word of "echo", so it can be a program name with args. -set dummy echo; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_ECHO+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $ECHO in - [\\/]* | ?:[\\/]*) - ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -ECHO=$ac_cv_path_ECHO - -if test -n "$ECHO"; then - echo "$as_me:$LINENO: result: $ECHO" >&5 -echo "${ECHO_T}$ECHO" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -# Extract the first word of "sed", so it can be a program name with args. -set dummy sed; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $SED in - [\\/]* | ?:[\\/]*) - ac_cv_path_SED="$SED" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -SED=$ac_cv_path_SED - -if test -n "$SED"; then - echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -# Extract the first word of "cat", so it can be a program name with args. -set dummy cat; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_CAT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $CAT in - [\\/]* | ?:[\\/]*) - ac_cv_path_CAT="$CAT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -CAT=$ac_cv_path_CAT - -if test -n "$CAT"; then - echo "$as_me:$LINENO: result: $CAT" >&5 -echo "${ECHO_T}$CAT" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - - -# Check whether --with-perl or --without-perl was given. -if test "${with_perl+set}" = set; then - withval="$with_perl" - with_perl=$withval -else - with_perl=$PERL -fi; -PERL=$with_perl - - - ac_config_files="$ac_config_files Makefile plugins-scripts/Makefile plugins-scripts/subst t/Makefile" -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\_ACEOF -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -_ACEOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_i=`echo "$ac_i" | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Add them. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - -exec 6>&1 - -# Open the log real soon, to keep \$[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. Logging --version etc. is OK. -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX -} >&5 -cat >&5 <<_CSEOF - -This file was extended by check_mysql_health $as_me 2.1.8.2, which was -generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -_CSEOF -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -echo >&5 -_ACEOF - -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi - -cat >>$CONFIG_STATUS <<\_ACEOF - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Report bugs to ." -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -check_mysql_health config.status 2.1.8.2 -configured by $0, generated by GNU Autoconf 2.59, - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2003 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." -srcdir=$srcdir -INSTALL="$INSTALL" -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` - ac_shift=: - ;; - -*) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_option=$1 - ac_need_defaults=false;; - esac - - case $ac_option in - # Handling of the options. -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:$LINENO: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF - - - - - -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "plugins-scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;; - "plugins-scripts/subst" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;; - "t/Makefile" ) CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason to put it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./confstat$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF - -# -# CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "\$CONFIG_FILES"; then - # Protect against being on the right side of a sed subst in config.status. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@DEFS@,$DEFS,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@LIBS@,$LIBS,;t t -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -s,@INSTALL_DATA@,$INSTALL_DATA,;t t -s,@CYGPATH_W@,$CYGPATH_W,;t t -s,@PACKAGE@,$PACKAGE,;t t -s,@VERSION@,$VERSION,;t t -s,@ACLOCAL@,$ACLOCAL,;t t -s,@AUTOCONF@,$AUTOCONF,;t t -s,@AUTOMAKE@,$AUTOMAKE,;t t -s,@AUTOHEADER@,$AUTOHEADER,;t t -s,@MAKEINFO@,$MAKEINFO,;t t -s,@install_sh@,$install_sh,;t t -s,@STRIP@,$STRIP,;t t -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t -s,@mkdir_p@,$mkdir_p,;t t -s,@AWK@,$AWK,;t t -s,@SET_MAKE@,$SET_MAKE,;t t -s,@am__leading_dot@,$am__leading_dot,;t t -s,@AMTAR@,$AMTAR,;t t -s,@am__tar@,$am__tar,;t t -s,@am__untar@,$am__untar,;t t -s,@build@,$build,;t t -s,@build_cpu@,$build_cpu,;t t -s,@build_vendor@,$build_vendor,;t t -s,@build_os@,$build_os,;t t -s,@host@,$host,;t t -s,@host_cpu@,$host_cpu,;t t -s,@host_vendor@,$host_vendor,;t t -s,@host_os@,$host_os,;t t -s,@RELEASE@,$RELEASE,;t t -s,@INSTALL@,$INSTALL,;t t -s,@WARRANTY@,$WARRANTY,;t t -s,@SUPPORT@,$SUPPORT,;t t -s,@with_nagios_user@,$with_nagios_user,;t t -s,@with_nagios_group@,$with_nagios_group,;t t -s,@INSTALL_OPTS@,$INSTALL_OPTS,;t t -s,@STATEFILES_DIR@,$STATEFILES_DIR,;t t -s,@MYMODULES_DIR@,$MYMODULES_DIR,;t t -s,@MYMODULES_DYN_DIR@,$MYMODULES_DYN_DIR,;t t -s,@SH@,$SH,;t t -s,@PERL@,$PERL,;t t -s,@GZIP@,$GZIP,;t t -s,@GREP@,$GREP,;t t -s,@ECHO@,$ECHO,;t t -s,@SED@,$SED,;t t -s,@CAT@,$CAT,;t t -s,@LIBOBJS@,$LIBOBJS,;t t -s,@LTLIBOBJS@,$LTLIBOBJS,;t t -CEOF - -_ACEOF - - cat >>$CONFIG_STATUS <<\_ACEOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`(dirname "$ac_file") 2>/dev/null || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; - esac - - if test x"$ac_file" != x-; then - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - configure_input= - else - configure_input="$ac_file. " - fi - configure_input=$configure_input"Generated from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@abs_srcdir@,$ac_abs_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -s,@builddir@,$ac_builddir,;t t -s,@abs_builddir@,$ac_abs_builddir,;t t -s,@top_builddir@,$ac_top_builddir,;t t -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -s,@INSTALL@,$ac_INSTALL,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -done -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - - -echo " --with-perl: $with_perl" -echo " --with-statefiles-dir: $with_statefiles_dir" -echo " --with-nagios-user: $with_nagios_user" -echo " --with-nagios-group: $with_nagios_group" -echo " --with-mymodules-dir: $with_mymodules_dir" -echo " --with-mymodules-dyn-dir: $with_mymodules_dyn_dir" diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/configure.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/configure.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/configure.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/configure.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,101 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_REVISION ($Revision: 1.150 $) -AC_PREREQ(2.58) -AC_INIT(check_mysql_health,2.1.8.2) -AM_INIT_AUTOMAKE([1.9 tar-pax]) -AC_CANONICAL_HOST - -RELEASE=1 -AC_SUBST(RELEASE) - -AC_PREFIX_DEFAULT(/usr/local/nagios) - -dnl Figure out how to invoke "install" and what install options to use. -AC_PROG_INSTALL -AC_SUBST(INSTALL) - -dnl AC_PROG_CC -dnl AC_PROG_CPP -dnl AC_PROG_GCC_TRADITIONAL -dnl AC_PROG_RANLIB - -AC_PROG_MAKE_SET - -WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" -AC_SUBST(WARRANTY) - -SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" -AC_SUBST(SUPPORT) - -AC_ARG_WITH(nagios_user, - ACX_HELP_STRING([--with-nagios-user=USER], - [set user name to run nagios]), - with_nagios_user=$withval, - with_nagios_user=nagios) -AC_ARG_WITH(nagios_group, - ACX_HELP_STRING([--with-nagios-group=GROUP], - [set group name to run nagios]), - with_nagios_group=$withval, - with_nagios_group=nagios) -AC_SUBST(with_nagios_user) -AC_SUBST(with_nagios_group) -INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" -AC_SUBST(INSTALL_OPTS) - -AC_ARG_WITH(statefiles_dir, - ACX_HELP_STRING([--with-statefiles-dir=PATH], - [sets directory for the state files (default=/var/tmp/check_mysql_health)]), - with_statefiles_dir=$withval, - with_statefiles_dir=/var/tmp/check_mysql_health) -AC_SUBST(STATEFILES_DIR, $with_statefiles_dir) -echo variable with_statefiles_dir is $with_statefiles_dir - -AC_ARG_WITH(mymodules_dir, - ACX_HELP_STRING([--with-mymodules-dir=PATH], - [sets directory for own extensions which will be included during the build process (default=/usr/local/nagios/libexec)]), - with_mymodules_dir=$withval, - with_mymodules_dir=/usr/local/nagios/libexec) -AC_SUBST(MYMODULES_DIR, $with_mymodules_dir) -echo variable with_mymodules_dir is $with_mymodules_dir - -AC_ARG_WITH(mymodules_dyn_dir, - ACX_HELP_STRING([--with-mymodules-dyn-dir=PATH], - [sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec)]), - with_mymodules_dyn_dir=$withval, - with_mymodules_dyn_dir=/usr/local/nagios/libexec) -AC_SUBST(MYMODULES_DYN_DIR, $with_mymodules_dyn_dir) -echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir - -EXTRAS= -dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH - -dnl Checks for programs. -AC_PATH_PROG(SH,sh) -AC_PATH_PROG(PERL,perl) -AC_PATH_PROG(GZIP,gzip) -AC_PATH_PROGS(AWK,gawk nawk /usr/xpg4/bin/awk awk) -AC_PATH_PROG(GREP,grep) -AC_PATH_PROG(ECHO,echo) -AC_PATH_PROG(SED,sed) -AC_PATH_PROG(CAT,cat) - -dnl allow them to override the path of perl -AC_ARG_WITH(perl, - ACX_HELP_STRING([--with-perl=PATH], - [sets path to perl executable]), - with_perl=$withval,with_perl=$PERL) -AC_SUBST(PERL, $with_perl) - -AC_OUTPUT( - Makefile - plugins-scripts/Makefile - plugins-scripts/subst - t/Makefile -) - -ACX_FEATURE([with],[perl]) -ACX_FEATURE([with],[statefiles-dir]) -ACX_FEATURE([with],[nagios-user]) -ACX_FEATURE([with],[nagios-group]) -ACX_FEATURE([with],[mymodules-dir]) -ACX_FEATURE([with],[mymodules-dyn-dir]) diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/contrib/CheckMySQLHealthExt1.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/contrib/CheckMySQLHealthExt1.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/contrib/CheckMySQLHealthExt1.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/contrib/CheckMySQLHealthExt1.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,68 +0,0 @@ -package MyQueue; - -our @ISA = qw(DBD::MySQL::Server); - -sub init { - my $self = shift; - my %params = @_; - $self->{running} = 0; - $self->{waiting} = 0; - $self->{held} = 20; - $self->{cancelled} = 0; - $self->{length} = 100; - if ($params{mode} =~ /my::queue::status/) { - ($self->{running}, $self->{waiting}, $self->{held}, $self->{cancelled}) = - $self->{handle}->fetchrow_array(q{ - SELECT COUNT(*) FROM queues WHERE - status IN ('running', 'waiting', 'held', 'cancelled') - GROUP BY status - }); - } elsif ($params{mode} =~ /my::queue::length/) { - $self->{length} = $self->{handle}->fetchrow_array(q{ - SELECT COUNT(*) FROM queues - }); - } elsif ($params{mode} =~ /my::queue::througput/) { - $self->{processed_items} = $self->{handle}->fetchrow_array(q{ - SELECT processed FROM queue_status - }); - $self->valdiff(\%params, qw(processed_items)); - # this automatically creates - # $self->{delta_timestamp} - # the time in seconds since the last run of check_mysql_health - # $self->{delta_processed_items} - # the difference between processed_items now and - # processed_items when check_mysql_health was run last time - $self->{throughput} = $self->{delta_processed_items} / $self->{delta_timestamp}; - } else { - } -} - -sub nagios { - my $self = shift; - my %params = @_; - if ($params{mode} =~ /my::queue::status/) { - if ($self->{held} > 10 || $self->{cancelled} > 10) { - $self->add_nagios_critical("more than 10 queues are held or cancelled"); - } elsif ($self->{waiting} > 20 && $self->{running} < 3) { - $self->add_nagios_warning("more than 20 queues are waiting and less than 3 queues are running"); - } else { - $self->add_nagios_ok("queues are running normal"); - } - $self->add_perfdata(sprintf "held=%d cancelled=%d waiting=%d running=%d", - $self->{running}, $self->{waiting}, $self->{held}, $self->{cancelled}); - } elsif ($params{mode} =~ /my::queue::length/) { - $self->add_nagios( - $self->check_thresholds($self->{length}, 100, 500), - sprintf "queue length is %d", $self->{length}); - $self->add_perfdata(sprintf "queuelen=%d;%d;%d", - $self->{length}, $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /my::queue::througput/) { - $self->add_nagios( - $self->check_thresholds($self->{throughput}, "50:", "10:"), - sprintf "queue throughput is %d", $self->{throughput}); - $self->add_perfdata(sprintf "throughput=%.2f;%d;%d", - $self->{throughput}, $self->{warningrange}, $self->{criticalrange}); - } else { - $self->add_nagios_unknown("unknown mode"); - } -} diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/contrib/check_mysql_health.php nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/contrib/check_mysql_health.php --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/contrib/check_mysql_health.php 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/contrib/check_mysql_health.php 1970-01-01 00:00:00.000000000 +0000 @@ -1,349 +0,0 @@ -60s) on $hostname\" "; - $def[$defcnt] = ""; - $def[$defcnt] .= "DEF:longrun=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:longrun#111111 "; - $def[$defcnt] .= "VDEF:vlongrun=longrun,LAST " ; - $def[$defcnt] .= "GPRINT:vlongrun:\"%.0lf long running processes \" " ; - $defcnt++; - } - if(preg_match('/^keycache_hitrate_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "MyISAM key cache hitrate"; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"MyISAM key cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^keycache_hitrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE1.5:hitrate#111111:\" \" "; - $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; - $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; - } - if(preg_match('/^keycache_hitrate_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; - $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; - } - } - $defcnt++; - } - if(preg_match('/^qcache_hitrate_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "Query cache hitrate"; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Query cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^qcache_hitrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE1.5:hitrate#111111:\" \" "; - $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; - $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; - } - if(preg_match('/^qcache_hitrate_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; - $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; - } - } - $defcnt++; - $ds_name[$defcnt] = "Selects per second"; - $opt[$defcnt] = "--vertical-label \"Selects / sec\" --title \"Selects per second on $hostname\" "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^selects_per_sec$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:sps=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:sps#$now:\" \" "; - $def[$defcnt] .= "VDEF:vsps=sps,LAST " ; - $def[$defcnt] .= "GPRINT:vsps:\"%3.2lf Selects per second \\n\" "; - } - } - $defcnt++; - } - if(preg_match('/^qcache_lowmem_prunes_rate$/', $NAME[$i])) { - $ds_name[$defcnt] = "Query cache low memory prunes"; - $opt[$defcnt] = "--vertical-label \"Prunes / sec\" --title \"Query cache low mem prunes on $hostname\" "; - $def[$defcnt] = ""; - $def[$defcnt] .= "DEF:prunes=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:prunes#111111 "; - $def[$defcnt] .= "VDEF:vprunes=prunes,LAST " ; - $def[$defcnt] .= "GPRINT:vprunes:\"Rate is %3.2lf Prunes / Second \" " ; - $defcnt++; - } - if(preg_match('/^slow_queries_rate$/', $NAME[$i])) { - $ds_name[$defcnt] = "Slow query rate"; - $opt[$defcnt] = "--vertical-label \"Slow queries / sec\" --title \"Slow queries on $hostname\" "; - $def[$defcnt] = ""; - $def[$defcnt] .= "DEF:prunes=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:prunes#111111 "; - $def[$defcnt] .= "VDEF:vprunes=prunes,LAST " ; - $def[$defcnt] .= "GPRINT:vprunes:\"%3.2lf Slow queries / Second \" " ; - $defcnt++; - } - if(preg_match('/^tablelock_contention_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "Table lock contention"; - # set upper limit to 10, because 3 means an already dead database - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Table lock contention on $hostname\" --upper-limit 10 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^tablelock_contention$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:tbllckcont=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ag=tbllckcont,$WARN[$ii],LE,tbllckcont,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; - $def[$defcnt] .= "CDEF:ay=tbllckcont,$CRIT[$ii],LE,tbllckcont,$WARN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; - $def[$defcnt] .= "CDEF:ar=tbllckcont,100,LE,tbllckcont,$CRIT[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE:tbllckcont#111111:\" \" "; - $def[$defcnt] .= "VDEF:vtbllckcont=tbllckcont,LAST " ; - $def[$defcnt] .= "GPRINT:vtbllckcont:\"Lock contention (since epoch) is %3.2lf%%\\n\" " ; - } - if(preg_match('/^tablelock_contention_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:tbllckcontnow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:tbllckcontnow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vtbllckcontnow=tbllckcontnow,LAST " ; - $def[$defcnt] .= "GPRINT:vtbllckcontnow:\"Lock contention (current) is %3.2lf%%\" "; - } - } - $defcnt++; - } - if(preg_match('/^tablecache_fillrate$/', $NAME[$i])) { - $ds_name[$defcnt] = "Table cache hitrate"; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Table cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^tablecache_hitrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE:hitrate#111111:\" \" "; - $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; - $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio is %3.2lf percent \\n\" "; - } - if(preg_match('/^tablecache_fillrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; - $def[$defcnt] .= "GPRINT:vhitratenow:\"%3.2lf%% of the cache is filled \\n\" "; - } - } - $defcnt++; - } - if(preg_match('/^pct_tmp_table_on_disk_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "Temporary tables created on disk "; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Temporary tables created on disk on $hostname\" --upper-limit 10 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^pct_tmp_table_on_disk$/', $NAME[$ii])) { - - $def[$defcnt] .= "DEF:tmptbldsk=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ag=tmptbldsk,$WARN[$ii],LE,tmptbldsk,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; - $def[$defcnt] .= "CDEF:ay=tmptbldsk,$CRIT[$ii],LE,tmptbldsk,$WARN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; - $def[$defcnt] .= "CDEF:ar=tmptbldsk,100,LE,tmptbldsk,$CRIT[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE:tmptbldsk#111111:\" \" "; - $def[$defcnt] .= "VDEF:vtmptbldsk=tmptbldsk,LAST " ; - $def[$defcnt] .= "GPRINT:vtmptbldsk:\"%3.2lf percent of temp tables were created on disk (since epoch)\\n\" " ; - } - if(preg_match('/^pct_tmp_table_on_disk_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:tmptbldsknow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:tmptbldsknow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vtmptbldsknow=tmptbldsknow,LAST " ; - $def[$defcnt] .= "GPRINT:vtmptbldsknow:\"%3.2lf percent of temp tables were created on disk (recently)\\n\" " ; - } - } - $defcnt++; - } - if(preg_match('/^thread_cache_hitrate_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "Thread cache hitrate"; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Thread cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^thread_cache_hitrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE:hitrate#111111:\" \" "; - $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; - $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; - } - if(preg_match('/^thread_cache_hitrate_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; - $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; - } - } - $defcnt++; - $ds_name[$defcnt] = "Connects per second"; - $opt[$defcnt] = "--vertical-label \"Conects / sec\" --title \"Connects per second on $hostname\" "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^connections_per_sec$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:sps=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:sps#$now:\" \" "; - $def[$defcnt] .= "VDEF:vsps=sps,LAST " ; - $def[$defcnt] .= "GPRINT:vsps:\"%3.2lf Connects per second \\n\" "; - } - } - $defcnt++; - } - if(preg_match('/^threads_connected$/', $NAME[$i])) { - $ds_name[$defcnt] = "Connection threads"; - $opt[$defcnt] = "--vertical-label \"Threads\" --title \"Connection threads on $hostname\" "; - $def[$defcnt] = ""; - $def[$defcnt] .= "DEF:threads=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:threads#111111 "; - $def[$defcnt] .= "VDEF:vthreads=threads,LAST " ; - $def[$defcnt] .= "GPRINT:vthreads:\"%.0lf Connection threads \" " ; - $defcnt++; - } -} -?> - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/contrib/README.my-extensions nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/contrib/README.my-extensions --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/contrib/README.my-extensions 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/contrib/README.my-extensions 1970-01-01 00:00:00.000000000 +0000 @@ -1,139 +0,0 @@ -# you will find instructions how to write extensions here - -Self-written code is addressed by using a mode which starts with my- ---mode=my-thing-does ? - -check_mysql_health will then look for a package named MyThing. - -So you first have to write a Module which describes MyThing. Such a thing iinherits from DBD::MySQL::Server and needs two methods: init and nagios. - -Start with a file called CheckMySQLHealthExt1.pm and skeleton code: - -################################################### -package MyThing; - -our @ISA = qw(DBD::MySQL::Server); - -sub init { - my $self = shift; - my %params = @_; -} - -sub nagios { - my $self = shift; - my %params = @_; -} -################################################### - -When you call check_mysql_health with --mode=my-thing-does, it will -- create a DBD::MySQL::Server object - $obj = DBD::MySQL::Server->new() -- connect to the database - $obj->connect() -- re-bless the object - bless $obj, "MyThing" -- call $obj->init() -- if that was ok, call $obj->nagios() - - -So you need to write code which -- initializes the parameters you want to check -- calculates the nagios result from these parameters - -For your convenience there are some predefined methods and variables: - -Variable $self - $self is a hash-based object of type My::Thing - You can pass metrics from the init() method to the nagios() method by - adding attributes to the hash. - One important predefined attribute is $self->{handle} which points to - a database Connection object. You surely will use this. - -Variable %params - $params{mode} contains the string you passed to the - --mode command line parameter, only with the "-" replaced by "::". - In the above example it will be "my::thing::does". - Because you can have only one init() method for your MyThing object but - more than one related modes (my-thing-does, my-thing-length, my-thing-rate) - you use $params{mode} for branching in your code. (see the example file) - -Method add_nagios - $self->add_nagios(1, "i warn you"); - This method can be called several times. The messages will be concatenated. - The first parameter is one of 0..3 and sets the nagios level. The worst level - among several calls to add_nagios will determine the plugin's exit code. - -Method add_nagios_[ok|warning|critical|unknown] - $self->add_nagios_critical("i warned you!!! now it's too late"); - $self->add_nagios_ok("everything is ok. i am the exit message"); - These methods are wrappers for add_nagios which make your code more readable. - -Method add_perfdata - $self->add_perfdata("metric1=0 metric2=100"); - $self->add_perfdata("metric3=0); - $self->add_perfdata(sprintf "metric_xy=%d", $self->{xy}); - You can call add_perfdata as often as you like. - The strings will be concatenated. - -Method valdiff - $self->valdiff(\%params, qw(metric1 metric2)); - Use this if you want to know how a metric has changed since the last run - of check_mysql_health. - Provided you have attributes metric1 and metric2 this method will create - new attributes for your $self object. - $self->{delta_metric1} which is the difference between the value of - $self->{metric1} during the current run and $self->{metric1} during the - last run. - $self->{delta_timestamp} which is the number of seconds which passed - since the last run of check_mysql_health. - If you have ever-growing values, you can simply calculate the rate: - $self->{metric1_per_second} = $self->{delta_metric1} / $self->{delta_timestamp} - The valdiff method will automatically save the current value to a state file - and read the past value from this file. - If you used the --name parameter which appears as $params{name} in your code - then you probably need to separate the saved values from each other. Otherwise - name1 would read the same saved value as name2. They would overwrite the - saved values. Use $params{differentiator} to use different state files. - $params{differenciator} = lc $self->{name}; - $self->valdiff(\%params, qw(gets misses)); - -Method fetchrow_array - my($column1, $column2) = $self->{handle}->fetchrow_array(q{ - SELECT col1, col2 FROM table1 where col1 = 'val1' - }); - $self->{connected_users} = $self->{handle}->fetchrow_array(q{ - SELECT COUNT(*) FROM v$session WHERE type = 'USER' - }); - This method is used like the Perl DBI method fetchrow_array. - - -Method fetchall_array - my @results = $self->{handle}->fetchall_array(q{ - SELECT col1, col2, col3 FROM table1 - }); - foreach (@results) { - my($column1, $column2, $column3) = @{$_}; - ... - } - This method is used like the Perl DBI method fetchall_array. - - - - -Now you have written your first extension to check_mysql_health. Maybe you -just modified the example file contrib/CheckMySQLHealthExt1.pm -There are two methods how to import your own code into check_mysql_health: - -- the static method -with ./configure --with-mymodules-dir= parameter you build a plugin which -contains both my code and your code in a single file. When you call "make" -every file in which matches CheckMySQLHealthExt*.pm is appended -to the final plugin check_mysql_health. - -- the dynamic method -with ./configure --with-mymodules-dyn-dir= you build a plugin which will -search at runtime the for files matching CheckMySQLHealthExt*.pm and -import them. This way you can have different extensions on different hosts. -You also can modify your extension without having to rebuild the plugin. -On the other hand you have to distribute your extensions along with the plugin. - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/COPYING nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/COPYING --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/COPYING 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/COPYING 1970-01-01 00:00:00.000000000 +0000 @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) 19yy - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) 19yy name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/INSTALL nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/INSTALL --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/INSTALL 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/INSTALL 1970-01-01 00:00:00.000000000 +0000 @@ -1,233 +0,0 @@ -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2008 Free Software -Foundation, Inc. - - This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. - -Basic Installation -================== - - These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. (Caching is -disabled by default to prevent problems with accidental use of stale -cache files.) - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You only need -`configure.ac' if you want to change it or regenerate `configure' using -a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - - Some systems require unusual options for compilation or linking that -the `configure' script does not know about. Run `./configure --help' -for details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - - You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not support the `VPATH' -variable, you have to compile the package for one architecture at a -time in the source code directory. After you have installed the -package for one architecture, use `make distclean' before reconfiguring -for another architecture. - -Installation Names -================== - - By default, `make install' will install the package's files in -`/usr/local/bin', `/usr/local/man', etc. You can specify an -installation prefix other than `/usr/local' by giving `configure' the -option `--prefix=PATH'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -give `configure' the option `--exec-prefix=PATH', the package will use -PATH as the prefix for installing programs and libraries. -Documentation and other data files will still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=PATH' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - - Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - - There may be some features `configure' cannot figure out -automatically, but needs to determine by the type of machine the package -will run on. Usually, assuming the package is built to be run on the -_same_ architectures, `configure' can figure that out, but if it prints -a message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the `--target=TYPE' option to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - - If you want to set default values for `configure' scripts to share, -you can create a site shell script called `config.site' that gives -default values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - - Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -will cause the specified gcc to be used as the C compiler (unless it is -overridden in the site shell script). - -`configure' Invocation -====================== - - `configure' recognizes the following options to control how it -operates. - -`--help' -`-h' - Print a summary of the options to `configure', and exit. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. - -Joerg -===== - -Na, hast du alles brav durchgelesen? diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/install-sh nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/install-sh --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/install-sh 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/install-sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,295 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2003-09-24.23 - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename= -transform_arg= -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd= -chgrpcmd= -stripcmd= -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src= -dst= -dir_arg= - -usage="Usage: $0 [OPTION]... SRCFILE DSTFILE - or: $0 -d DIR1 DIR2... - -In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default. -In the second, create the directory path DIR. - -Options: --b=TRANSFORMBASENAME --c copy source (using $cpprog) instead of moving (using $mvprog). --d create directories instead of installing files. --g GROUP $chgrp installed files to GROUP. --m MODE $chmod installed files to MODE. --o USER $chown installed files to USER. --s strip installed files (using $stripprog). --t=TRANSFORM ---help display this help and exit. ---version display version info and exit. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG -" - -while test -n "$1"; do - case $1 in - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - -c) instcmd=$cpprog - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - --help) echo "$usage"; exit 0;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -s) stripcmd=$stripprog - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - --version) echo "$0 $scriptversion"; exit 0;; - - *) if test -z "$src"; then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac -done - -if test -z "$src"; then - echo "$0: no input file specified." >&2 - exit 1 -fi - -# Protect names starting with `-'. -case $src in - -*) src=./$src ;; -esac - -if test -n "$dir_arg"; then - dst=$src - src= - - if test -d "$dst"; then - instcmd=: - chmodcmd= - else - instcmd=$mkdirprog - fi -else - # Waiting for this to be detected by the "$instcmd $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - - # Protect names starting with `-'. - case $dst in - -*) dst=./$dst ;; - esac - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - dst=$dst/`basename "$src"` - fi -fi - -# This sed command emulates the dirname command. -dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. - -# Skip lots of stat calls in the usual case. -if test ! -d "$dstdir"; then - defaultIFS=' - ' - IFS="${IFS-$defaultIFS}" - - oIFS=$IFS - # Some sh's can't handle IFS=/ for some reason. - IFS='%' - set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` - IFS=$oIFS - - pathcomp= - - while test $# -ne 0 ; do - pathcomp=$pathcomp$1 - shift - test -d "$pathcomp" || $mkdirprog "$pathcomp" - pathcomp=$pathcomp/ - done -fi - -if test -n "$dir_arg"; then - $doit $instcmd "$dst" \ - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } - -else - # If we're going to rename the final executable, determine the name now. - if test -z "$transformarg"; then - dstfile=`basename "$dst"` - else - dstfile=`basename "$dst" $transformbasename \ - | sed $transformarg`$transformbasename - fi - - # don't allow the sed command to completely eliminate the filename. - test -z "$dstfile" && dstfile=`basename "$dst"` - - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 - trap '(exit $?); exit' 1 2 13 15 - - # Move or copy the file name to the temp name - $doit $instcmd "$src" "$dsttmp" && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $instcmd $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && - - # Now remove or move aside any old file at destination location. We - # try this two ways since rm can't unlink itself on some systems and - # the destination file might be busy for other reasons. In this case, - # the final cleanup might fail but the new file should still install - # successfully. - { - if test -f "$dstdir/$dstfile"; then - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ - || { - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 - (exit 1); exit - } - else - : - fi - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" -fi && - -# The final little trick to "correctly" pass the exit status to the exit trap. -{ - (exit 0); exit -} - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/Makefile.am nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/Makefile.am --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/Makefile.am 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -## Process this file with automake to produce Makefile.in - -# find . \( -type d -and -name .svn -and -prune \) -or -type f -exec fromdos -v {} \; - -SUBDIRS = plugins-scripts t -EXTRA_DIST = contrib - -dist-hook: - rm -f t/var/tmp/* - rm -f t/var/adm/* - find $(distdir) -depth -name .svn -exec rm -rf {} \; - find $(distdir) -type f -exec fromdos -v {} \; - make diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,575 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# find . \( -type d -and -name .svn -and -prune \) -or -type f -exec fromdos -v {} \; -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = . -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ - ChangeLog INSTALL NEWS TODO config.guess config.sub install-sh \ - missing -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno configure.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -INSTALL = @INSTALL@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAT = @CAT@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -GREP = @GREP@ -GZIP = @GZIP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_OPTS = @INSTALL_OPTS@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MYMODULES_DIR = @MYMODULES_DIR@ -MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -RELEASE = @RELEASE@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SH = @SH@ -SHELL = @SHELL@ -STATEFILES_DIR = @STATEFILES_DIR@ -STRIP = @STRIP@ -SUPPORT = @SUPPORT@ -VERSION = @VERSION@ -WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__leading_dot = @am__leading_dot@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -with_nagios_group = @with_nagios_group@ -with_nagios_user = @with_nagios_user@ -SUBDIRS = plugins-scripts t -EXTRA_DIST = contrib -all: all-recursive - -.SUFFIXES: -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - mkdir $(distdir) - $(mkdir_p) $(distdir)/plugins-scripts - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook - -find $(distdir) -type d ! -perm -755 -exec chmod a+rwx,go+rx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ - check-am clean clean-generic clean-recursive ctags \ - ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \ - dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-generic distclean-recursive distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ - pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-info-am - - -dist-hook: - rm -f t/var/tmp/* - rm -f t/var/adm/* - find $(distdir) -depth -name .svn -exec rm -rf {} \; - find $(distdir) -type f -exec fromdos -v {} \; - make -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/missing nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/missing --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/missing 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/missing 1970-01-01 00:00:00.000000000 +0000 @@ -1,360 +0,0 @@ -#! /bin/sh -# Common stub for a few missing GNU programs while installing. - -scriptversion=2003-09-02.23 - -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 -# Free Software Foundation, Inc. -# Originally by Fran,cois Pinard , 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 -fi - -run=: - -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -msg="missing on your system" - -case "$1" in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case "$1" in - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails - -Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch] - -Send bug reports to ." - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing $scriptversion (GNU Automake)" - ;; - - -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 - ;; - - aclocal*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case "$f" in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is needed, but is $msg. - You might have modified some files without having the - proper tools for further handling them. - You can get \`$1' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison|yacc) - echo 1>&2 "\ -WARNING: \`$1' $msg. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if [ ! -f y.tab.h ]; then - echo >y.tab.h - fi - if [ ! -f y.tab.c ]; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex|flex) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if [ ! -f lex.yy.c ]; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; - - help2man) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` - fi - if [ -f "$file" ]; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit 1 - fi - ;; - - makeinfo) - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then - # We have makeinfo, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` - fi - touch $file - ;; - - tar) - shift - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - fi - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case "$firstarg" in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case "$firstarg" in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and is $msg. - You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequisites for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac - -exit 0 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/NEWS nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/NEWS --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/NEWS 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/NEWS 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -buy a newspaper if you want to read news diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/check_mysql_health.pl nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/check_mysql_health.pl --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/check_mysql_health.pl 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/check_mysql_health.pl 1970-01-01 00:00:00.000000000 +0000 @@ -1,607 +0,0 @@ - -package main; - -use strict; -use Getopt::Long qw(:config no_ignore_case); -use File::Basename; -use lib dirname($0); -use Nagios::DBD::MySQL::Server; -use Nagios::DBD::MySQL::Cluster; - - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -use vars qw ($PROGNAME $REVISION $CONTACT $TIMEOUT $STATEFILESDIR $needs_restart %commandline); - -$PROGNAME = "check_mysql_health"; -$REVISION = '$Revision: #PACKAGE_VERSION# $'; -$CONTACT = 'gerhard.lausser@consol.de'; -$TIMEOUT = 60; -$STATEFILESDIR = '#STATEFILES_DIR#'; -$needs_restart = 0; - -my @modes = ( - ['server::connectiontime', - 'connection-time', undef, - 'Time to connect to the server' ], - ['server::uptime', - 'uptime', undef, - 'Time the server is running' ], - ['server::instance::connectedthreads', - 'threads-connected', undef, - 'Number of currently open connections' ], - ['server::instance::threadcachehitrate', - 'threadcache-hitrate', undef, - 'Hit rate of the thread-cache' ], - ['server::instance::createdthreads', - 'threads-created', undef, - 'Number of threads created per sec' ], - ['server::instance::runningthreads', - 'threads-running', undef, - 'Number of currently running threads' ], - ['server::instance::cachedthreads', - 'threads-cached', undef, - 'Number of currently cached threads' ], - ['server::instance::abortedconnects', - 'connects-aborted', undef, - 'Number of aborted connections per sec' ], - ['server::instance::abortedclients', - 'clients-aborted', undef, - 'Number of aborted connections (because the client died) per sec' ], - ['server::instance::replication::slavelag', - 'slave-lag', ['replication-slave-lag'], - 'Seconds behind master' ], - ['server::instance::replication::slaveiorunning', - 'slave-io-running', ['replication-slave-io-running'], - 'Slave io running: Yes' ], - ['server::instance::replication::slavesqlrunning', - 'slave-sql-running', ['replication-slave-sql-running'], - 'Slave sql running: Yes' ], - ['server::instance::querycachehitrate', - 'qcache-hitrate', ['querycache-hitrate'], - 'Query cache hitrate' ], - ['server::instance::querycachelowmemprunes', - 'qcache-lowmem-prunes', ['querycache-lowmem-prunes'], - 'Query cache entries pruned because of low memory' ], - ['server::instance::myisam::keycache::hitrate', - 'keycache-hitrate', ['myisam-keycache-hitrate'], - 'MyISAM key cache hitrate' ], - ['server::instance::innodb::bufferpool::hitrate', - 'bufferpool-hitrate', ['innodb-bufferpool-hitrate'], - 'InnoDB buffer pool hitrate' ], - ['server::instance::innodb::bufferpool::waitfree', - 'bufferpool-wait-free', ['innodb-bufferpool-wait-free'], - 'InnoDB buffer pool waits for clean page available' ], - ['server::instance::innodb::logwaits', - 'log-waits', ['innodb-log-waits'], - 'InnoDB log waits because of a too small log buffer' ], - ['server::instance::tablecachehitrate', - 'tablecache-hitrate', undef, - 'Table cache hitrate' ], - ['server::instance::tablelockcontention', - 'table-lock-contention', undef, - 'Table lock contention' ], - ['server::instance::tableindexusage', - 'index-usage', undef, - 'Usage of indices' ], - ['server::instance::tabletmpondisk', - 'tmp-disk-tables', undef, - 'Percent of temp tables created on disk' ], - ['server::instance::needoptimize', - 'table-fragmentation', undef, - 'Show tables which should be optimized' ], - ['server::instance::openfiles', - 'open-files', undef, - 'Percent of opened files' ], - ['server::instance::slowqueries', - 'slow-queries', undef, - 'Slow queries' ], - ['server::instance::longprocs', - 'long-running-procs', undef, - 'long running processes' ], - ['cluster::ndbdrunning', - 'cluster-ndbd-running', undef, - 'ndnd nodes are up and running' ], - ['server::sql', - 'sql', undef, - 'any sql command returning a single number' ], -); - -# rrd data store names are limited to 19 characters -my %labels = ( - bufferpool_hitrate => { - groundwork => 'bp_hitrate', - }, - bufferpool_hitrate_now => { - groundwork => 'bp_hitrate_now', - }, - bufferpool_free_waits_rate => { - groundwork => 'bp_freewaits', - }, - innodb_log_waits_rate => { - groundwork => 'inno_log_waits', - }, - keycache_hitrate => { - groundwork => 'kc_hitrate', - }, - keycache_hitrate_now => { - groundwork => 'kc_hitrate_now', - }, - threads_created_per_sec => { - groundwork => 'thrds_creat_per_s', - }, - connects_aborted_per_sec => { - groundwork => 'conn_abrt_per_s', - }, - clients_aborted_per_sec => { - groundwork => 'clnt_abrt_per_s', - }, - thread_cache_hitrate => { - groundwork => 'tc_hitrate', - }, - thread_cache_hitrate_now => { - groundwork => 'tc_hitrate_now', - }, - qcache_lowmem_prunes_rate => { - groundwork => 'qc_lowm_prnsrate', - }, - slow_queries_rate => { - groundwork => 'slow_q_rate', - }, - tablecache_hitrate => { - groundwork => 'tac_hitrate', - }, - tablecache_fillrate => { - groundwork => 'tac_fillrate', - }, - tablelock_contention => { - groundwork => 'tl_contention', - }, - tablelock_contention_now => { - groundwork => 'tl_contention_now', - }, - pct_tmp_table_on_disk => { - groundwork => 'tmptab_on_disk', - }, - pct_tmp_table_on_disk_now => { - groundwork => 'tmptab_on_disk_now', - }, -); - -sub print_usage () { - print <] [[--hostname ] - [--port | --socket ] - --username --password ] --mode - [--method mysql] - $PROGNAME [-h | --help] - $PROGNAME [-V | --version] - - Options: - --hostname - the database server's hostname - --port - the database's port. (default: 3306) - --socket - the database's unix socket. - --username - the mysql db user - --password - the mysql db user's password - --database - the database's name. (default: information_schema) - --warning - the warning range - --critical - the critical range - --mode - the mode of the plugin. select one of the following keywords: -EOUS - my $longest = length ((reverse sort {length $a <=> length $b} map { $_->[1] } @modes)[0]); - my $format = " %-". - (length ((reverse sort {length $a <=> length $b} map { $_->[1] } @modes)[0])). - "s\t(%s)\n"; - foreach (@modes) { - printf $format, $_->[1], $_->[3]; - } - printf "\n"; - print <new(file => $commandline{'extra-opts'}, commandline => - \%commandline); - if (! $extras->is_valid()) { - printf "extra-opts are not valid: %s\n", $extras->{errors}; - exit $ERRORS{UNKNOWN}; - } else { - $extras->overwrite(); - } -} - -if (exists $commandline{version}) { - print_revision($PROGNAME, $REVISION); - exit $ERRORS{OK}; -} - -if (exists $commandline{help}) { - print_help(); - exit $ERRORS{OK}; -} elsif (! exists $commandline{mode}) { - printf "Please select a mode\n"; - print_help(); - exit $ERRORS{OK}; -} - -if ($commandline{mode} eq "encode") { - my $input = <>; - chomp $input; - $input =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg; - printf "%s\n", $input; - exit $ERRORS{OK}; -} - -if (exists $commandline{3}) { - $ENV{NRPE_MULTILINESUPPORT} = 1; -} - -if (exists $commandline{timeout}) { - $TIMEOUT = $commandline{timeout}; -} - -if (exists $commandline{verbose}) { - $DBD::MySQL::Server::verbose = exists $commandline{verbose}; -} - -if (exists $commandline{scream}) { -# $DBD::MySQL::Server::hysterical = exists $commandline{scream}; -} - -if (exists $commandline{method}) { - # snmp or mysql cmdline -} else { - $commandline{method} = "dbi"; -} - -if (exists $commandline{report}) { - # short, long, html -} else { - $commandline{report} = "long"; -} - -if (exists $commandline{labelformat}) { - # groundwork -} else { - $commandline{labelformat} = "pnp4nagios"; -} - -if (exists $commandline{'with-mymodules-dyn-dir'}) { - $DBD::MySQL::Server::my_modules_dyn_dir = $commandline{'with-mymodules-dyn-dir'}; -} else { - $DBD::MySQL::Server::my_modules_dyn_dir = '#MYMODULES_DYN_DIR#'; -} - -if (exists $commandline{environment}) { - # if the desired environment variable values are different from - # the environment of this running script, then a restart is necessary. - # because setting $ENV does _not_ change the environment of the running script. - foreach (keys %{$commandline{environment}}) { - if ((! $ENV{$_}) || ($ENV{$_} ne $commandline{environment}->{$_})) { - $needs_restart = 1; - $ENV{$_} = $commandline{environment}->{$_}; - printf STDERR "new %s=%s forces restart\n", $_, $ENV{$_} - if $DBD::MySQL::Server::verbose; - } - } - # e.g. called with --runas dbnagio. shlib_path environment variable is stripped - # during the sudo. - # so the perl interpreter starts without a shlib_path. but --runas cares for - # a --environment shlib_path=... - # so setting the environment variable in the code above and restarting the - # perl interpreter will help it find shared libs -} - -if (exists $commandline{runas}) { - # remove the runas parameter - # exec sudo $0 ... the remaining parameters - $needs_restart = 1; - # if the calling script has a path for shared libs and there is no --environment - # parameter then the called script surely needs the variable too. - foreach my $important_env (qw(LD_LIBRARY_PATH SHLIB_PATH - ORACLE_HOME TNS_ADMIN ORA_NLS ORA_NLS33 ORA_NLS10)) { - if ($ENV{$important_env} && ! scalar(grep { /^$important_env=/ } - keys %{$commandline{environment}})) { - $commandline{environment}->{$important_env} = $ENV{$important_env}; - printf STDERR "add important --environment %s=%s\n", - $important_env, $ENV{$important_env} if $DBD::MySQL::Server::verbose; - } - } -} - -if ($needs_restart) { - my @newargv = (); - my $runas = undef; - if (exists $commandline{runas}) { - $runas = $commandline{runas}; - delete $commandline{runas}; - } - foreach my $option (keys %commandline) { - if (grep { /^$option/ && /=/ } @params) { - if (ref ($commandline{$option}) eq "HASH") { - foreach (keys %{$commandline{$option}}) { - push(@newargv, sprintf "--%s", $option); - push(@newargv, sprintf "%s=%s", $_, $commandline{$option}->{$_}); - } - } else { - push(@newargv, sprintf "--%s", $option); - push(@newargv, sprintf "%s", $commandline{$option}); - } - } else { - push(@newargv, sprintf "--%s", $option); - } - } - if ($runas) { - exec "sudo", "-S", "-u", $runas, $0, @newargv; - } else { - exec $0, @newargv; - # this makes sure that even a SHLIB or LD_LIBRARY_PATH are set correctly - # when the perl interpreter starts. Setting them during runtime does not - # help loading e.g. libclntsh.so - } - exit; -} - -if (exists $commandline{shell}) { - # forget what you see here. - system("/bin/sh"); -} - -if (! exists $commandline{statefilesdir}) { - if (exists $ENV{OMD_ROOT}) { - $commandline{statefilesdir} = $ENV{OMD_ROOT}."/var/tmp/check_mysql_health"; - } else { - $commandline{statefilesdir} = $STATEFILESDIR; - } -} - -if (exists $commandline{name}) { - if ($^O =~ /MSWin/ && $commandline{name} =~ /^'(.*)'$/) { - # putting arguments in single ticks under Windows CMD leaves the ' intact - # we remove them - $commandline{name} = $1; - } - # objects can be encoded like an url - # with s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg; - if (($commandline{mode} ne "sql") || - (($commandline{mode} eq "sql") && - ($commandline{name} =~ /select%20/i))) { # protect ... like '%cac%' ... from decoding - $commandline{name} =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg; - } - if ($commandline{name} =~ /^0$/) { - # without this, $params{selectname} would be treated like undef - $commandline{name} = "00"; - } -} - -$SIG{'ALRM'} = sub { - printf "UNKNOWN - %s timed out after %d seconds\n", $PROGNAME, $TIMEOUT; - exit $ERRORS{UNKNOWN}; -}; -alarm($TIMEOUT); - -my $nagios_level = $ERRORS{UNKNOWN}; -my $nagios_message = ""; -my $perfdata = ""; -if ($commandline{mode} =~ /^my-([^\-.]+)/) { - my $param = $commandline{mode}; - $param =~ s/\-/::/g; - push(@modes, [$param, $commandline{mode}, undef, 'my extension']); -} elsif ((! grep { $commandline{mode} eq $_ } map { $_->[1] } @modes) && - (! grep { $commandline{mode} eq $_ } map { defined $_->[2] ? @{$_->[2]} : () } @modes)) { - printf "UNKNOWN - mode %s\n", $commandline{mode}; - print_usage(); - exit 3; -} -my %params = ( - timeout => $TIMEOUT, - mode => ( - map { $_->[0] } - grep { - ($commandline{mode} eq $_->[1]) || - ( defined $_->[2] && grep { $commandline{mode} eq $_ } @{$_->[2]}) - } @modes - )[0], - cmdlinemode => $commandline{mode}, - method => $commandline{method} || - $ENV{NAGIOS__SERVICEMYSQL_METH} || - $ENV{NAGIOS__HOSTMYSQL_METH} || 'dbi', - hostname => $commandline{hostname} || - $ENV{NAGIOS__SERVICEMYSQL_HOST} || - $ENV{NAGIOS__HOSTMYSQL_HOST} || 'localhost', - database => $commandline{database} || - $ENV{NAGIOS__SERVICEMYSQL_DATABASE} || - $ENV{NAGIOS__HOSTMYSQL_DATABASE} || 'information_schema', - port => $commandline{port} || (($commandline{mode} =~ /^cluster/) ? - ($ENV{NAGIOS__SERVICENDBMGM_PORT} || $ENV{NAGIOS__HOSTNDBMGM_PORT} || 1186) : - ($ENV{NAGIOS__SERVICEMYSQL_PORT} || $ENV{NAGIOS__HOSTMYSQL_PORT} || 3306)), - socket => $commandline{socket} || - $ENV{NAGIOS__SERVICEMYSQL_SOCKET} || - $ENV{NAGIOS__HOSTMYSQL_SOCKET}, - username => $commandline{username} || - $ENV{NAGIOS__SERVICEMYSQL_USER} || - $ENV{NAGIOS__HOSTMYSQL_USER}, - password => $commandline{password} || - $ENV{NAGIOS__SERVICEMYSQL_PASS} || - $ENV{NAGIOS__HOSTMYSQL_PASS}, - mycnf => $commandline{mycnf} || - $ENV{NAGIOS__SERVICEMYSQL_MYCNF} || - $ENV{NAGIOS__HOSTMYSQL_MYCNF}, - mycnfgroup => $commandline{mycnfgroup} || - $ENV{NAGIOS__SERVICEMYSQL_MYCNFGROUP} || - $ENV{NAGIOS__HOSTMYSQL_MYCNFGROUP}, - warningrange => $commandline{warning}, - criticalrange => $commandline{critical}, - dbthresholds => $commandline{dbthresholds}, - absolute => $commandline{absolute}, - lookback => $commandline{lookback}, - selectname => $commandline{name} || $commandline{tablespace} || $commandline{datafile}, - regexp => $commandline{regexp}, - name => $commandline{name}, - name2 => $commandline{name2} || $commandline{name}, - units => $commandline{units}, - lookback => $commandline{lookback} || 0, - eyecandy => $commandline{eyecandy}, - statefilesdir => $commandline{statefilesdir}, - verbose => $commandline{verbose}, - report => $commandline{report}, - labelformat => $commandline{labelformat}, -); - -my $server = undef; -my $cluster = undef; - -if ($params{mode} =~ /^(server|my)/) { - $server = DBD::MySQL::Server->new(%params); - $server->nagios(%params); - $server->calculate_result(\%labels); - $nagios_message = $server->{nagios_message}; - $nagios_level = $server->{nagios_level}; - $perfdata = $server->{perfdata}; -} elsif ($params{mode} =~ /^cluster/) { - $cluster = DBD::MySQL::Cluster->new(%params); - $cluster->nagios(%params); - $cluster->calculate_result(\%labels); - $nagios_message = $cluster->{nagios_message}; - $nagios_level = $cluster->{nagios_level}; - $perfdata = $cluster->{perfdata}; -} - -printf "%s - %s", $ERRORCODES{$nagios_level}, $nagios_message; -printf " | %s", $perfdata if $perfdata; -printf "\n"; -exit $nagios_level; - - -__END__ - - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Makefile.am nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Makefile.am --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Makefile.am 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,53 +0,0 @@ -## Process this file with automake to produce Makefile.in - -SUFFIXES = .pl .pm .sh - -VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t - -libexec_SCRIPTS=check_mysql_health -MY_MODULES= -EXTRA_MODULES=\ - Nagios/DBD/MySQL/Server/Instance/Innodb.pm \ - Nagios/DBD/MySQL/Server/Instance/Myisam.pm \ - Nagios/DBD/MySQL/Server/Instance/Replication.pm \ - Nagios/DBD/MySQL/Server/Instance.pm \ - Nagios/DBD/MySQL/Server.pm \ - Nagios/DBD/MySQL/Cluster.pm \ - Nagios/Extraopts.pm -EXTRA_DIST=check_mysql_health.pl $(EXTRA_MODULES) - -CLEANFILES=$(libexec_SCRIPTS) - -AM_INSTALL_PROGRAM_FLAGS=@INSTALL_OPTS@ - -.pm : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -.pl : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -.sh : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -$(libexec_SCRIPTS) : $(EXTRA_DIST) - $(ECHO) "#! #PERL# -w" | $(AWK) -f ./subst > $@ - $(ECHO) "# nagios: -epn" >> $@ - $(ECHO) >> $@ - $(ECHO) "my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 );" >> $@ - $(ECHO) "my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' );" >> $@ - for m in ${EXTRA_MODULES}; do \ - $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "my %ERROR" >> $@; \ - done - if [ -d "${MYMODULES_DIR}" ]; then \ - for m in ${MYMODULES_DIR}/CheckMySQLHealthExt*.pm; do \ - if [ -f $$m ]; then \ - $(ECHO) found $$m; \ - $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "my %ERROR" >> $@; \ - fi \ - done \ - fi - $(CAT) check_mysql_health.pl | $(GREP) -v "^use Nagios" | $(GREP) -v "^my %ERROR" | $(AWK) -f ./subst >> $@ - chmod +x $@ diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,360 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = plugins-scripts -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/subst.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_CLEAN_FILES = subst -am__installdirs = "$(DESTDIR)$(libexecdir)" -libexecSCRIPT_INSTALL = $(INSTALL_SCRIPT) -SCRIPTS = $(libexec_SCRIPTS) -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -VPATH = $(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t -INSTALL = @INSTALL@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAT = @CAT@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -GREP = @GREP@ -GZIP = @GZIP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_OPTS = @INSTALL_OPTS@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MYMODULES_DIR = @MYMODULES_DIR@ -MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -RELEASE = @RELEASE@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SH = @SH@ -SHELL = @SHELL@ -STATEFILES_DIR = @STATEFILES_DIR@ -STRIP = @STRIP@ -SUPPORT = @SUPPORT@ -VERSION = @VERSION@ -WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__leading_dot = @am__leading_dot@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -with_nagios_group = @with_nagios_group@ -with_nagios_user = @with_nagios_user@ -SUFFIXES = .pl .pm .sh -libexec_SCRIPTS = check_mysql_health -MY_MODULES = -EXTRA_MODULES = \ - Nagios/DBD/MySQL/Server/Instance/Innodb.pm \ - Nagios/DBD/MySQL/Server/Instance/Myisam.pm \ - Nagios/DBD/MySQL/Server/Instance/Replication.pm \ - Nagios/DBD/MySQL/Server/Instance.pm \ - Nagios/DBD/MySQL/Server.pm \ - Nagios/DBD/MySQL/Cluster.pm \ - Nagios/Extraopts.pm - -EXTRA_DIST = check_mysql_health.pl $(EXTRA_MODULES) -CLEANFILES = $(libexec_SCRIPTS) -AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .pl .pm .sh -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins-scripts/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu plugins-scripts/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -subst: $(top_builddir)/config.status $(srcdir)/subst.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -install-libexecSCRIPTS: $(libexec_SCRIPTS) - @$(NORMAL_INSTALL) - test -z "$(libexecdir)" || $(mkdir_p) "$(DESTDIR)$(libexecdir)" - @list='$(libexec_SCRIPTS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(libexecSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(libexecdir)/$$f'"; \ - $(libexecSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(libexecdir)/$$f"; \ - else :; fi; \ - done - -uninstall-libexecSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(libexec_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(libexecdir)/$$f'"; \ - rm -f "$(DESTDIR)$(libexecdir)/$$f"; \ - done -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/Nagios $(distdir)/Nagios/DBD/MySQL $(distdir)/Nagios/DBD/MySQL/Server $(distdir)/Nagios/DBD/MySQL/Server/Instance - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(SCRIPTS) -installdirs: - for dir in "$(DESTDIR)$(libexecdir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: install-libexecSCRIPTS - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am uninstall-libexecSCRIPTS - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am \ - install-libexecSCRIPTS install-man install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ - uninstall-libexecSCRIPTS - - -.pm : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -.pl : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -.sh : - $(AWK) -f ./subst $< > $@ - chmod +x $@ - -$(libexec_SCRIPTS) : $(EXTRA_DIST) - $(ECHO) "#! #PERL# -w" | $(AWK) -f ./subst > $@ - $(ECHO) "# nagios: -epn" >> $@ - $(ECHO) >> $@ - $(ECHO) "my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 );" >> $@ - $(ECHO) "my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' );" >> $@ - for m in ${EXTRA_MODULES}; do \ - $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "my %ERROR" >> $@; \ - done - if [ -d "${MYMODULES_DIR}" ]; then \ - for m in ${MYMODULES_DIR}/CheckMySQLHealthExt*.pm; do \ - if [ -f $$m ]; then \ - $(ECHO) found $$m; \ - $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "my %ERROR" >> $@; \ - fi \ - done \ - fi - $(CAT) check_mysql_health.pl | $(GREP) -v "^use Nagios" | $(GREP) -v "^my %ERROR" | $(AWK) -f ./subst >> $@ - chmod +x $@ -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,620 +0,0 @@ -package DBD::MySQL::Cluster; - -use strict; -use Time::HiRes; -use IO::File; -use Data::Dumper; - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -{ - our $verbose = 0; - our $scream = 0; # scream if something is not implemented - our $access = "dbi"; # how do we access the database. - our $my_modules_dyn_dir = ""; # where we look for self-written extensions - - my @clusters = (); - my $initerrors = undef; - - sub add_cluster { - push(@clusters, shift); - } - - sub return_clusters { - return @clusters; - } - - sub return_first_cluster() { - return $clusters[0]; - } - -} - -sub new { - my $class = shift; - my %params = @_; - my $self = { - hostname => $params{hostname}, - port => $params{port}, - username => $params{username}, - password => $params{password}, - timeout => $params{timeout}, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - version => 'unknown', - nodes => [], - ndbd_nodes => 0, - ndb_mgmd_nodes => 0, - mysqld_nodes => 0, - }; - bless $self, $class; - $self->init_nagios(); - if ($self->connect(%params)) { - DBD::MySQL::Cluster::add_cluster($self); - $self->init(%params); - } - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - if ($self->{show}) { - my $type = undef; - foreach (split /\n/, $self->{show}) { - if (/\[(\w+)\((\w+)\)\]\s+(\d+) node/) { - $type = uc $2; - } elsif (/id=(\d+)(.*)/) { - push(@{$self->{nodes}}, DBD::MySQL::Cluster::Node->new( - type => $type, - id => $1, - status => $2, - )); - } - } - } else { - } - if ($params{mode} =~ /^cluster::ndbdrunning/) { - foreach my $node (@{$self->{nodes}}) { - $node->{type} eq "NDB" && $node->{status} eq "running" && $self->{ndbd_nodes}++; - $node->{type} eq "MGM" && $node->{status} eq "running" && $self->{ndb_mgmd_nodes}++; - $node->{type} eq "API" && $node->{status} eq "running" && $self->{mysqld_nodes}++; - } - } else { - printf "broken mode %s\n", $params{mode}; - } -} - -sub dump { - my $self = shift; - my $message = shift || ""; - printf "%s %s\n", $message, Data::Dumper::Dumper($self); -} - -sub nagios { - my $self = shift; - my %params = @_; - my $dead_ndb = 0; - my $dead_api = 0; - if (! $self->{nagios_level}) { - if ($params{mode} =~ /^cluster::ndbdrunning/) { - foreach my $node (grep { $_->{type} eq "NDB"} @{$self->{nodes}}) { - next if $params{selectname} && $params{selectname} ne $_->{id}; - if (! $node->{connected}) { - $self->add_nagios_critical( - sprintf "ndb node %d is not connected", $node->{id}); - $dead_ndb++; - } - } - foreach my $node (grep { $_->{type} eq "API"} @{$self->{nodes}}) { - next if $params{selectname} && $params{selectname} ne $_->{id}; - if (! $node->{connected}) { - $self->add_nagios_critical( - sprintf "api node %d is not connected", $node->{id}); - $dead_api++; - } - } - if (! $dead_ndb) { - $self->add_nagios_ok("all ndb nodes are connected"); - } - if (! $dead_api) { - $self->add_nagios_ok("all api nodes are connected"); - } - } - } - $self->add_perfdata(sprintf "ndbd_nodes=%d ndb_mgmd_nodes=%d mysqld_nodes=%d", - $self->{ndbd_nodes}, $self->{ndb_mgmd_nodes}, $self->{mysqld_nodes}); -} - - -sub init_nagios { - my $self = shift; - no strict 'refs'; - if (! ref($self)) { - my $nagiosvar = $self."::nagios"; - my $nagioslevelvar = $self."::nagios_level"; - $$nagiosvar = { - messages => { - 0 => [], - 1 => [], - 2 => [], - 3 => [], - }, - perfdata => [], - }; - $$nagioslevelvar = $ERRORS{OK}, - } else { - $self->{nagios} = { - messages => { - 0 => [], - 1 => [], - 2 => [], - 3 => [], - }, - perfdata => [], - }; - $self->{nagios_level} = $ERRORS{OK}, - } -} - -sub check_thresholds { - my $self = shift; - my $value = shift; - my $defaultwarningrange = shift; - my $defaultcriticalrange = shift; - my $level = $ERRORS{OK}; - $self->{warningrange} = $self->{warningrange} ? - $self->{warningrange} : $defaultwarningrange; - $self->{criticalrange} = $self->{criticalrange} ? - $self->{criticalrange} : $defaultcriticalrange; - if ($self->{warningrange} !~ /:/ && $self->{criticalrange} !~ /:/) { - # warning = 10, critical = 20, warn if > 10, crit if > 20 - $level = $ERRORS{WARNING} if $value > $self->{warningrange}; - $level = $ERRORS{CRITICAL} if $value > $self->{criticalrange}; - } elsif ($self->{warningrange} =~ /([\d\.]+):/ && - $self->{criticalrange} =~ /([\d\.]+):/) { - # warning = 98:, critical = 95:, warn if < 98, crit if < 95 - $self->{warningrange} =~ /([\d\.]+):/; - $level = $ERRORS{WARNING} if $value < $1; - $self->{criticalrange} =~ /([\d\.]+):/; - $level = $ERRORS{CRITICAL} if $value < $1; - } - return $level; - # - # syntax error must be reported with returncode -1 - # -} - -sub add_nagios { - my $self = shift; - my $level = shift; - my $message = shift; - push(@{$self->{nagios}->{messages}->{$level}}, $message); - # recalc current level - foreach my $llevel (qw(CRITICAL WARNING UNKNOWN OK)) { - if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$llevel}}})) { - $self->{nagios_level} = $ERRORS{$llevel}; - } - } -} - -sub add_nagios_ok { - my $self = shift; - my $message = shift; - $self->add_nagios($ERRORS{OK}, $message); -} - -sub add_nagios_warning { - my $self = shift; - my $message = shift; - $self->add_nagios($ERRORS{WARNING}, $message); -} - -sub add_nagios_critical { - my $self = shift; - my $message = shift; - $self->add_nagios($ERRORS{CRITICAL}, $message); -} - -sub add_nagios_unknown { - my $self = shift; - my $message = shift; - $self->add_nagios($ERRORS{UNKNOWN}, $message); -} - -sub add_perfdata { - my $self = shift; - my $data = shift; - push(@{$self->{nagios}->{perfdata}}, $data); -} - -sub merge_nagios { - my $self = shift; - my $child = shift; - foreach my $level (0..3) { - foreach (@{$child->{nagios}->{messages}->{$level}}) { - $self->add_nagios($level, $_); - } - #push(@{$self->{nagios}->{messages}->{$level}}, - # @{$child->{nagios}->{messages}->{$level}}); - } - push(@{$self->{nagios}->{perfdata}}, @{$child->{nagios}->{perfdata}}); -} - - -sub calculate_result { - my $self = shift; - if ($ENV{NRPE_MULTILINESUPPORT} && - length join(" ", @{$self->{nagios}->{perfdata}}) > 200) { - foreach my $level ("CRITICAL", "WARNING", "UNKNOWN", "OK") { - # first the bad news - if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$level}}})) { - $self->{nagios_message} .= - "\n".join("\n", @{$self->{nagios}->{messages}->{$ERRORS{$level}}}); - } - } - $self->{nagios_message} =~ s/^\n//g; - $self->{perfdata} = join("\n", @{$self->{nagios}->{perfdata}}); - } else { - foreach my $level ("CRITICAL", "WARNING", "UNKNOWN", "OK") { - # first the bad news - if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$level}}})) { - $self->{nagios_message} .= - join(", ", @{$self->{nagios}->{messages}->{$ERRORS{$level}}}).", "; - } - } - $self->{nagios_message} =~ s/, $//g; - $self->{perfdata} = join(" ", @{$self->{nagios}->{perfdata}}); - } - foreach my $level ("OK", "UNKNOWN", "WARNING", "CRITICAL") { - if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$level}}})) { - $self->{nagios_level} = $ERRORS{$level}; - } - } -} - -sub debug { - my $self = shift; - my $msg = shift; - if ($DBD::MySQL::Cluster::verbose) { - printf "%s %s\n", $msg, ref($self); - } -} - -sub connect { - my $self = shift; - my %params = @_; - my $retval = undef; - $self->{tic} = Time::HiRes::time(); - eval { - use POSIX ':signal_h'; - local $SIG{'ALRM'} = sub { - die "alarm\n"; - }; - my $mask = POSIX::SigSet->new( SIGALRM ); - my $action = POSIX::SigAction->new( - sub { die "connection timeout\n" ; }, $mask); - my $oldaction = POSIX::SigAction->new(); - sigaction(SIGALRM ,$action ,$oldaction ); - alarm($self->{timeout} - 1); # 1 second before the global unknown timeout - my $ndb_mgm = "ndb_mgm"; - $params{hostname} = "127.0.0.1" if ! $params{hostname}; - $ndb_mgm .= sprintf " --ndb-connectstring=%s", $params{hostname} - if $params{hostname}; - $ndb_mgm .= sprintf ":%d", $params{port} - if $params{port}; - $self->{show} = `$ndb_mgm -e show 2>&1`; - if ($? == -1) { - $self->add_nagios_critical("ndb_mgm failed to execute $!"); - } elsif ($? & 127) { - $self->add_nagios_critical("ndb_mgm failed to execute $!"); - } elsif ($? >> 8 != 0) { - $self->add_nagios_critical("ndb_mgm unable to connect"); - } else { - if ($self->{show} !~ /Cluster Configuration/) { - $self->add_nagios_critical("got no cluster configuration"); - } else { - $retval = 1; - } - } - }; - if ($@) { - $self->{errstr} = $@; - $self->{errstr} =~ s/at $0 .*//g; - chomp $self->{errstr}; - $self->add_nagios_critical($self->{errstr}); - $retval = undef; - } - $self->{tac} = Time::HiRes::time(); - return $retval; -} - -sub trace { - my $self = shift; - my $format = shift; - $self->{trace} = -f "/tmp/check_mysql_health.trace" ? 1 : 0; - if ($self->{verbose}) { - printf("%s: ", scalar localtime); - printf($format, @_); - } - if ($self->{trace}) { - my $logfh = new IO::File; - $logfh->autoflush(1); - if ($logfh->open("/tmp/check_mysql_health.trace", "a")) { - $logfh->printf("%s: ", scalar localtime); - $logfh->printf($format, @_); - $logfh->printf("\n"); - $logfh->close(); - } - } -} - -sub DESTROY { - my $self = shift; - my $handle1 = "null"; - my $handle2 = "null"; - if (defined $self->{handle}) { - $handle1 = ref($self->{handle}); - if (defined $self->{handle}->{handle}) { - $handle2 = ref($self->{handle}->{handle}); - } - } - $self->trace(sprintf "DESTROY %s with handle %s %s", ref($self), $handle1, $handle2); - if (ref($self) eq "DBD::MySQL::Cluster") { - } - $self->trace(sprintf "DESTROY %s exit with handle %s %s", ref($self), $handle1, $handle2); - if (ref($self) eq "DBD::MySQL::Cluster") { - #printf "humpftata\n"; - } -} - -sub save_state { - my $self = shift; - my %params = @_; - my $extension = ""; - mkdir $params{statefilesdir} unless -d $params{statefilesdir}; - my $statefile = sprintf "%s/%s_%s", - $params{statefilesdir}, $params{hostname}, $params{mode}; - $extension .= $params{differenciator} ? "_".$params{differenciator} : ""; - $extension .= $params{socket} ? "_".$params{socket} : ""; - $extension .= $params{port} ? "_".$params{port} : ""; - $extension .= $params{database} ? "_".$params{database} : ""; - $extension .= $params{tablespace} ? "_".$params{tablespace} : ""; - $extension .= $params{datafile} ? "_".$params{datafile} : ""; - $extension .= $params{name} ? "_".$params{name} : ""; - $extension =~ s/\//_/g; - $extension =~ s/\(/_/g; - $extension =~ s/\)/_/g; - $extension =~ s/\*/_/g; - $extension =~ s/\s/_/g; - $statefile .= $extension; - $statefile = lc $statefile; - open(STATE, ">$statefile"); - if ((ref($params{save}) eq "HASH") && exists $params{save}->{timestamp}) { - $params{save}->{localtime} = scalar localtime $params{save}->{timestamp}; - } - printf STATE Data::Dumper::Dumper($params{save}); - close STATE; - $self->debug(sprintf "saved %s to %s", - Data::Dumper::Dumper($params{save}), $statefile); -} - -sub load_state { - my $self = shift; - my %params = @_; - my $extension = ""; - my $statefile = sprintf "%s/%s_%s", - $params{statefilesdir}, $params{hostname}, $params{mode}; - $extension .= $params{differenciator} ? "_".$params{differenciator} : ""; - $extension .= $params{socket} ? "_".$params{socket} : ""; - $extension .= $params{port} ? "_".$params{port} : ""; - $extension .= $params{database} ? "_".$params{database} : ""; - $extension .= $params{tablespace} ? "_".$params{tablespace} : ""; - $extension .= $params{datafile} ? "_".$params{datafile} : ""; - $extension .= $params{name} ? "_".$params{name} : ""; - $extension =~ s/\//_/g; - $extension =~ s/\(/_/g; - $extension =~ s/\)/_/g; - $extension =~ s/\*/_/g; - $extension =~ s/\s/_/g; - $statefile .= $extension; - $statefile = lc $statefile; - if ( -f $statefile) { - our $VAR1; - eval { - require $statefile; - }; - if($@) { -printf "rumms\n"; - } - $self->debug(sprintf "load %s", Data::Dumper::Dumper($VAR1)); - return $VAR1; - } else { - return undef; - } -} - -sub valdiff { - my $self = shift; - my $pparams = shift; - my %params = %{$pparams}; - my @keys = @_; - my $last_values = $self->load_state(%params) || eval { - my $empty_events = {}; - foreach (@keys) { - $empty_events->{$_} = 0; - } - $empty_events->{timestamp} = 0; - $empty_events; - }; - foreach (@keys) { - $self->{'delta_'.$_} = $self->{$_} - $last_values->{$_}; - $self->debug(sprintf "delta_%s %f", $_, $self->{'delta_'.$_}); - } - $self->{'delta_timestamp'} = time - $last_values->{timestamp}; - $params{save} = eval { - my $empty_events = {}; - foreach (@keys) { - $empty_events->{$_} = $self->{$_}; - } - $empty_events->{timestamp} = time; - $empty_events; - }; - $self->save_state(%params); -} - -sub requires_version { - my $self = shift; - my $version = shift; - my @instances = DBD::MySQL::Cluster::return_clusters(); - my $instversion = $instances[0]->{version}; - if (! $self->version_is_minimum($version)) { - $self->add_nagios($ERRORS{UNKNOWN}, - sprintf "not implemented/possible for MySQL release %s", $instversion); - } -} - -sub version_is_minimum { - # the current version is newer or equal - my $self = shift; - my $version = shift; - my $newer = 1; - my @instances = DBD::MySQL::Cluster::return_clusters(); - my @v1 = map { $_ eq "x" ? 0 : $_ } split(/\./, $version); - my @v2 = split(/\./, $instances[0]->{version}); - if (scalar(@v1) > scalar(@v2)) { - push(@v2, (0) x (scalar(@v1) - scalar(@v2))); - } elsif (scalar(@v2) > scalar(@v1)) { - push(@v1, (0) x (scalar(@v2) - scalar(@v1))); - } - foreach my $pos (0..$#v1) { - if ($v2[$pos] > $v1[$pos]) { - $newer = 1; - last; - } elsif ($v2[$pos] < $v1[$pos]) { - $newer = 0; - last; - } - } - #printf STDERR "check if %s os minimum %s\n", join(".", @v2), join(".", @v1); - return $newer; -} - -sub instance_rac { - my $self = shift; - my @instances = DBD::MySQL::Cluster::return_clusters(); - return (lc $instances[0]->{parallel} eq "yes") ? 1 : 0; -} - -sub instance_thread { - my $self = shift; - my @instances = DBD::MySQL::Cluster::return_clusters(); - return $instances[0]->{thread}; -} - -sub windows_cluster { - my $self = shift; - my @instances = DBD::MySQL::Cluster::return_clusters(); - if ($instances[0]->{os} =~ /Win/i) { - return 1; - } else { - return 0; - } -} - -sub system_vartmpdir { - my $self = shift; - if ($^O =~ /MSWin/) { - return $self->system_tmpdir(); - } else { - return "/var/tmp/check_mysql_health"; - } -} - -sub system_oldvartmpdir { - my $self = shift; - return "/tmp"; -} - -sub system_tmpdir { - my $self = shift; - if ($^O =~ /MSWin/) { - return $ENV{TEMP} if defined $ENV{TEMP}; - return $ENV{TMP} if defined $ENV{TMP}; - return File::Spec->catfile($ENV{windir}, 'Temp') - if defined $ENV{windir}; - return 'C:\Temp'; - } else { - return "/tmp"; - } -} - - -package DBD::MySQL::Cluster::Node; - -use strict; - -our @ISA = qw(DBD::MySQL::Cluster); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub new { - my $class = shift; - my %params = @_; - my $self = { - mode => $params{mode}, - timeout => $params{timeout}, - type => $params{type}, - id => $params{id}, - status => $params{status}, - }; - bless $self, $class; - $self->init(%params); - if ($params{type} eq "NDB") { - bless $self, "DBD::MySQL::Cluster::Node::NDB"; - $self->init(%params); - } - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - if ($self->{status} =~ /@(\d+\.\d+\.\d+\.\d+)\s/) { - $self->{addr} = $1; - $self->{connected} = 1; - } elsif ($self->{status} =~ /accepting connect from (\d+\.\d+\.\d+\.\d+)/) { - $self->{addr} = $1; - $self->{connected} = 0; - } - if ($self->{status} =~ /starting,/) { - $self->{status} = "starting"; - } elsif ($self->{status} =~ /shutting,/) { - $self->{status} = "shutting"; - } else { - $self->{status} = $self->{connected} ? "running" : "dead"; - } -} - - -package DBD::MySQL::Cluster::Node::NDB; - -use strict; - -our @ISA = qw(DBD::MySQL::Cluster::Node); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub init { - my $self = shift; - my %params = @_; - if ($self->{status} =~ /Nodegroup:\s*(\d+)/) { - $self->{nodegroup} = $1; - } - $self->{master} = ($self->{status} =~ /Master\)/) ? 1 : 0; -} - - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,185 +0,0 @@ -package DBD::MySQL::Server::Instance::Innodb; - -use strict; - -our @ISA = qw(DBD::MySQL::Server::Instance); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub new { - my $class = shift; - my %params = @_; - my $self = { - handle => $params{handle}, - internals => undef, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - $self->init_nagios(); - if ($params{mode} =~ /server::instance::innodb/) { - $self->{internals} = - DBD::MySQL::Server::Instance::Innodb::Internals->new(%params); - } -} - -sub nagios { - my $self = shift; - my %params = @_; - if ($params{mode} =~ /server::instance::innodb/) { - $self->{internals}->nagios(%params); - $self->merge_nagios($self->{internals}); - } -} - - -package DBD::MySQL::Server::Instance::Innodb::Internals; - -use strict; - -our @ISA = qw(DBD::MySQL::Server::Instance::Innodb); - -our $internals; # singleton, nur ein einziges mal instantiierbar - -sub new { - my $class = shift; - my %params = @_; - unless ($internals) { - $internals = { - handle => $params{handle}, - bufferpool_hitrate => undef, - wait_free => undef, - log_waits => undef, - have_innodb => undef, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - }; - bless($internals, $class); - $internals->init(%params); - } - return($internals); -} - -sub init { - my $self = shift; - my %params = @_; - my $dummy; - $self->debug("enter init"); - $self->init_nagios(); - ($dummy, $self->{have_innodb}) - = $self->{handle}->fetchrow_array(q{ - SHOW VARIABLES LIKE 'have_innodb' - }); - if ($self->{have_innodb} eq "NO") { - $self->add_nagios_critical("the innodb engine has a problem (have_innodb=no)"); - } elsif ($self->{have_innodb} eq "DISABLED") { - # add_nagios_ok later - } elsif ($params{mode} =~ /server::instance::innodb::bufferpool::hitrate/) { - ($dummy, $self->{bufferpool_reads}) - = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Innodb_buffer_pool_reads' - }); - ($dummy, $self->{bufferpool_read_requests}) - = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Innodb_buffer_pool_read_requests' - }); - if (! defined $self->{bufferpool_reads}) { - $self->add_nagios_critical("no innodb buffer pool info available"); - } else { - $self->valdiff(\%params, qw(bufferpool_reads - bufferpool_read_requests)); - $self->{bufferpool_hitrate_now} = - $self->{delta_bufferpool_read_requests} > 0 ? - 100 - (100 * $self->{delta_bufferpool_reads} / - $self->{delta_bufferpool_read_requests}) : 100; - $self->{bufferpool_hitrate} = - $self->{bufferpool_read_requests} > 0 ? - 100 - (100 * $self->{bufferpool_reads} / - $self->{bufferpool_read_requests}) : 100; - } - } elsif ($params{mode} =~ /server::instance::innodb::bufferpool::waitfree/) { - ($dummy, $self->{bufferpool_wait_free}) - = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Innodb_buffer_pool_wait_free' - }); - if (! defined $self->{bufferpool_wait_free}) { - $self->add_nagios_critical("no innodb buffer pool info available"); - } else { - $self->valdiff(\%params, qw(bufferpool_wait_free)); - $self->{bufferpool_wait_free_rate} = - $self->{delta_bufferpool_wait_free} / $self->{delta_timestamp}; - } - } elsif ($params{mode} =~ /server::instance::innodb::logwaits/) { - ($dummy, $self->{log_waits}) - = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Innodb_log_waits' - }); - if (! defined $self->{log_waits}) { - $self->add_nagios_critical("no innodb log info available"); - } else { - $self->valdiff(\%params, qw(log_waits)); - $self->{log_waits_rate} = - $self->{delta_log_waits} / $self->{delta_timestamp}; - } - } elsif ($params{mode} =~ /server::instance::innodb::needoptimize/) { -#fragmentation=$(($datafree * 100 / $datalength)) - -#http://www.electrictoolbox.com/optimize-tables-mysql-php/ - my @result = $self->{handle}->fetchall_array(q{ -SHOW TABLE STATUS WHERE Data_free / Data_length > 0.1 AND Data_free > 102400 -}); -printf "%s\n", Data::Dumper::Dumper(\@result); - - } -} - -sub nagios { - my $self = shift; - my %params = @_; - my $now = $params{lookback} ? '_now' : ''; - if ($self->{have_innodb} eq "DISABLED") { - $self->add_nagios_ok("the innodb engine has been disabled"); - } elsif (! $self->{nagios_level}) { - if ($params{mode} =~ /server::instance::innodb::bufferpool::hitrate/) { - my $refkey = 'bufferpool_hitrate'.($params{lookback} ? '_now' : ''); - $self->add_nagios( - $self->check_thresholds($self->{$refkey}, "99:", "95:"), - sprintf "innodb buffer pool hitrate at %.2f%%", $self->{$refkey}); - $self->add_perfdata(sprintf "bufferpool_hitrate=%.2f%%;%s;%s;0;100", - $self->{bufferpool_hitrate}, - $self->{warningrange}, $self->{criticalrange}); - $self->add_perfdata(sprintf "bufferpool_hitrate_now=%.2f%%", - $self->{bufferpool_hitrate_now}); - } elsif ($params{mode} =~ /server::instance::innodb::bufferpool::waitfree/) { - $self->add_nagios( - $self->check_thresholds($self->{bufferpool_wait_free_rate}, "1", "10"), - sprintf "%ld innodb buffer pool waits in %ld seconds (%.4f/sec)", - $self->{delta_bufferpool_wait_free}, $self->{delta_timestamp}, - $self->{bufferpool_wait_free_rate}); - $self->add_perfdata(sprintf "bufferpool_free_waits_rate=%.4f;%s;%s;0;100", - $self->{bufferpool_wait_free_rate}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::innodb::logwaits/) { - $self->add_nagios( - $self->check_thresholds($self->{log_waits_rate}, "1", "10"), - sprintf "%ld innodb log waits in %ld seconds (%.4f/sec)", - $self->{delta_log_waits}, $self->{delta_timestamp}, - $self->{log_waits_rate}); - $self->add_perfdata(sprintf "innodb_log_waits_rate=%.4f;%s;%s;0;100", - $self->{log_waits_rate}, - $self->{warningrange}, $self->{criticalrange}); - } - } -} - - -1; - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,119 +0,0 @@ -package DBD::MySQL::Server::Instance::MyISAM; - -use strict; - -our @ISA = qw(DBD::MySQL::Server::Instance); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub new { - my $class = shift; - my %params = @_; - my $self = { - handle => $params{handle}, - internals => undef, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - $self->init_nagios(); - if ($params{mode} =~ /server::instance::myisam/) { - $self->{internals} = - DBD::MySQL::Server::Instance::MyISAM::Internals->new(%params); - } -} - -sub nagios { - my $self = shift; - my %params = @_; - if ($params{mode} =~ /server::instance::myisam/) { - $self->{internals}->nagios(%params); - $self->merge_nagios($self->{internals}); - } -} - - -package DBD::MySQL::Server::Instance::MyISAM::Internals; - -use strict; - -our @ISA = qw(DBD::MySQL::Server::Instance::MyISAM); - -our $internals; # singleton, nur ein einziges mal instantiierbar - -sub new { - my $class = shift; - my %params = @_; - unless ($internals) { - $internals = { - handle => $params{handle}, - keycache_hitrate => undef, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - }; - bless($internals, $class); - $internals->init(%params); - } - return($internals); -} - -sub init { - my $self = shift; - my %params = @_; - my $dummy; - $self->debug("enter init"); - $self->init_nagios(); - if ($params{mode} =~ /server::instance::myisam::keycache::hitrate/) { - ($dummy, $self->{key_reads}) - = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Key_reads' - }); - ($dummy, $self->{key_read_requests}) - = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Key_read_requests' - }); - if (! defined $self->{key_read_requests}) { - $self->add_nagios_critical("no myisam keycache info available"); - } else { - $self->valdiff(\%params, qw(key_reads key_read_requests)); - $self->{keycache_hitrate} = - $self->{key_read_requests} > 0 ? - 100 - (100 * $self->{key_reads} / - $self->{key_read_requests}) : 100; - $self->{keycache_hitrate_now} = - $self->{delta_key_read_requests} > 0 ? - 100 - (100 * $self->{delta_key_reads} / - $self->{delta_key_read_requests}) : 100; - } - } elsif ($params{mode} =~ /server::instance::myisam::sonstnochwas/) { - } -} - -sub nagios { - my $self = shift; - my %params = @_; - if (! $self->{nagios_level}) { - if ($params{mode} =~ /server::instance::myisam::keycache::hitrate/) { - my $refkey = 'keycache_hitrate'.($params{lookback} ? '_now' : ''); - $self->add_nagios( - $self->check_thresholds($self->{$refkey}, "99:", "95:"), - sprintf "myisam keycache hitrate at %.2f%%", $self->{$refkey}); - $self->add_perfdata(sprintf "keycache_hitrate=%.2f%%;%s;%s", - $self->{keycache_hitrate}, - $self->{warningrange}, $self->{criticalrange}); - $self->add_perfdata(sprintf "keycache_hitrate_now=%.2f%%;%s;%s", - $self->{keycache_hitrate_now}, - $self->{warningrange}, $self->{criticalrange}); - } - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,144 +0,0 @@ -package DBD::MySQL::Server::Instance::Replication; - -use strict; - -our @ISA = qw(DBD::MySQL::Server::Instance); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub new { - my $class = shift; - my %params = @_; - my $self = { - handle => $params{handle}, - internals => undef, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - $self->init_nagios(); - if ($params{mode} =~ /server::instance::replication/) { - $self->{internals} = - DBD::MySQL::Server::Instance::Replication::Internals->new(%params); - } -} - -sub nagios { - my $self = shift; - my %params = @_; - if ($params{mode} =~ /server::instance::replication/) { - $self->{internals}->nagios(%params); - $self->merge_nagios($self->{internals}); - } -} - - -package DBD::MySQL::Server::Instance::Replication::Internals; - -use strict; - -our @ISA = qw(DBD::MySQL::Server::Instance::Replication); - -our $internals; # singleton, nur ein einziges mal instantiierbar - -sub new { - my $class = shift; - my %params = @_; - unless ($internals) { - $internals = { - handle => $params{handle}, - seconds_behind_master => undef, - slave_io_running => undef, - slave_sql_running => undef, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - }; - bless($internals, $class); - $internals->init(%params); - } - return($internals); -} - -sub init { - my $self = shift; - my %params = @_; - $self->debug("enter init"); - $self->init_nagios(); - if ($params{mode} =~ /server::instance::replication::slavelag/) { - # "show slave status", "Seconds_Behind_Master" - my $slavehash = $self->{handle}->selectrow_hashref(q{ - SHOW SLAVE STATUS - }); - if ((! defined $slavehash->{Seconds_Behind_Master}) && - (lc $slavehash->{Slave_IO_Running} eq 'no')) { - $self->add_nagios_critical( - "unable to get slave lag, because io thread is not running"); - } elsif (! defined $slavehash->{Seconds_Behind_Master}) { - $self->add_nagios_critical(sprintf "unable to get replication info%s", - $self->{handle}->{errstr} ? $self->{handle}->{errstr} : ""); - } else { - $self->{seconds_behind_master} = $slavehash->{Seconds_Behind_Master}; - } - } elsif ($params{mode} =~ /server::instance::replication::slaveiorunning/) { - # "show slave status", "Slave_IO_Running" - my $slavehash = $self->{handle}->selectrow_hashref(q{ - SHOW SLAVE STATUS - }); - if (! defined $slavehash->{Slave_IO_Running}) { - $self->add_nagios_critical(sprintf "unable to get replication info%s", - $self->{handle}->{errstr} ? $self->{handle}->{errstr} : ""); - } else { - $self->{slave_io_running} = $slavehash->{Slave_IO_Running}; - } - } elsif ($params{mode} =~ /server::instance::replication::slavesqlrunning/) { - # "show slave status", "Slave_SQL_Running" - my $slavehash = $self->{handle}->selectrow_hashref(q{ - SHOW SLAVE STATUS - }); - if (! defined $slavehash->{Slave_SQL_Running}) { - $self->add_nagios_critical(sprintf "unable to get replication info%s", - $self->{handle}->{errstr} ? $self->{handle}->{errstr} : ""); - } else { - $self->{slave_sql_running} = $slavehash->{Slave_SQL_Running}; - } - } -} - -sub nagios { - my $self = shift; - my %params = @_; - if (! $self->{nagios_level}) { - if ($params{mode} =~ /server::instance::replication::slavelag/) { - $self->add_nagios( - $self->check_thresholds($self->{seconds_behind_master}, "10", "20"), - sprintf "Slave is %d seconds behind master", - $self->{seconds_behind_master}); - $self->add_perfdata(sprintf "slave_lag=%d;%s;%s", - $self->{seconds_behind_master}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::replication::slaveiorunning/) { - if (lc $self->{slave_io_running} eq "yes") { - $self->add_nagios_ok("Slave io is running"); - } else { - $self->add_nagios_critical("Slave io is not running"); - } - } elsif ($params{mode} =~ /server::instance::replication::slavesqlrunning/) { - if (lc $self->{slave_sql_running} eq "yes") { - $self->add_nagios_ok("Slave sql is running"); - } else { - $self->add_nagios_critical("Slave sql is not running"); - } - } - } -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,505 +0,0 @@ -package DBD::MySQL::Server::Instance; - -use strict; - -our @ISA = qw(DBD::MySQL::Server); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub new { - my $class = shift; - my %params = @_; - my $self = { - handle => $params{handle}, - uptime => $params{uptime}, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - threads_connected => undef, - threads_created => undef, - connections => undef, - threadcache_hitrate => undef, - querycache_hitrate => undef, - lowmem_prunes_per_sec => undef, - slow_queries_per_sec => undef, - longrunners => undef, - tablecache_hitrate => undef, - index_usage => undef, - engine_innodb => undef, - engine_myisam => undef, - replication => undef, - }; - bless $self, $class; - $self->init(%params); - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - my $dummy; - $self->init_nagios(); - if ($params{mode} =~ /server::instance::connectedthreads/) { - ($dummy, $self->{threads_connected}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Threads_connected' - }); - } elsif ($params{mode} =~ /server::instance::createdthreads/) { - ($dummy, $self->{threads_created}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Threads_created' - }); - $self->valdiff(\%params, qw(threads_created)); - $self->{threads_created_per_sec} = $self->{delta_threads_created} / - $self->{delta_timestamp}; - } elsif ($params{mode} =~ /server::instance::runningthreads/) { - ($dummy, $self->{threads_running}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Threads_running' - }); - } elsif ($params{mode} =~ /server::instance::cachedthreads/) { - ($dummy, $self->{threads_cached}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Threads_cached' - }); - } elsif ($params{mode} =~ /server::instance::abortedconnects/) { - ($dummy, $self->{connects_aborted}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Aborted_connects' - }); - $self->valdiff(\%params, qw(connects_aborted)); - $self->{connects_aborted_per_sec} = $self->{delta_connects_aborted} / - $self->{delta_timestamp}; - } elsif ($params{mode} =~ /server::instance::abortedclients/) { - ($dummy, $self->{clients_aborted}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Aborted_clients' - }); - $self->valdiff(\%params, qw(clients_aborted)); - $self->{clients_aborted_per_sec} = $self->{delta_clients_aborted} / - $self->{delta_timestamp}; - } elsif ($params{mode} =~ /server::instance::threadcachehitrate/) { - ($dummy, $self->{threads_created}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Threads_created' - }); - ($dummy, $self->{connections}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Connections' - }); - $self->valdiff(\%params, qw(threads_created connections)); - if ($self->{delta_connections} > 0) { - $self->{threadcache_hitrate_now} = - 100 - ($self->{delta_threads_created} * 100.0 / - $self->{delta_connections}); - } else { - $self->{threadcache_hitrate_now} = 100; - } - $self->{threadcache_hitrate} = 100 - - ($self->{threads_created} * 100.0 / $self->{connections}); - $self->{connections_per_sec} = $self->{delta_connections} / - $self->{delta_timestamp}; - } elsif ($params{mode} =~ /server::instance::querycachehitrate/) { - ($dummy, $self->{com_select}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Com_select' - }); - ($dummy, $self->{qcache_hits}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Qcache_hits' - }); - # SHOW VARIABLES WHERE Variable_name = 'have_query_cache' for 5.x, but LIKE is compatible - ($dummy, $self->{have_query_cache}) = $self->{handle}->fetchrow_array(q{ - SHOW VARIABLES LIKE 'have_query_cache' - }); - # SHOW VARIABLES WHERE Variable_name = 'query_cache_size' - ($dummy, $self->{query_cache_size}) = $self->{handle}->fetchrow_array(q{ - SHOW VARIABLES LIKE 'query_cache_size' - }); - $self->valdiff(\%params, qw(com_select qcache_hits)); - $self->{querycache_hitrate_now} = - ($self->{delta_com_select} + $self->{delta_qcache_hits}) > 0 ? - 100 * $self->{delta_qcache_hits} / - ($self->{delta_com_select} + $self->{delta_qcache_hits}) : - 0; - $self->{querycache_hitrate} = - ($self->{com_select} + $self->{qcache_hits}) > 0 ? - 100 * $self->{qcache_hits} / - ($self->{com_select} + $self->{qcache_hits}) : - 0; - $self->{selects_per_sec} = - $self->{delta_com_select} / $self->{delta_timestamp}; - } elsif ($params{mode} =~ /server::instance::querycachelowmemprunes/) { - ($dummy, $self->{lowmem_prunes}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Qcache_lowmem_prunes' - }); - $self->valdiff(\%params, qw(lowmem_prunes)); - $self->{lowmem_prunes_per_sec} = $self->{delta_lowmem_prunes} / - $self->{delta_timestamp}; - } elsif ($params{mode} =~ /server::instance::slowqueries/) { - ($dummy, $self->{slow_queries}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Slow_queries' - }); - $self->valdiff(\%params, qw(slow_queries)); - $self->{slow_queries_per_sec} = $self->{delta_slow_queries} / - $self->{delta_timestamp}; - } elsif ($params{mode} =~ /server::instance::longprocs/) { - if (DBD::MySQL::Server::return_first_server()->version_is_minimum("5.1")) { - ($self->{longrunners}) = $self->{handle}->fetchrow_array(q{ - SELECT - COUNT(*) - FROM - information_schema.processlist - WHERE user <> 'replication' - AND id <> CONNECTION_ID() - AND time > 60 - AND command <> 'Sleep' - }); - } else { - $self->{longrunners} = 0 if ! defined $self->{longrunners}; - foreach ($self->{handle}->fetchall_array(q{ - SHOW PROCESSLIST - })) { - my($id, $user, $host, $db, $command, $tme, $state, $info) = @{$_}; - if (($user ne 'replication') && - ($tme > 60) && - ($command ne 'Sleep')) { - $self->{longrunners}++; - } - } - } - } elsif ($params{mode} =~ /server::instance::tablecachehitrate/) { - ($dummy, $self->{open_tables}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Open_tables' - }); - ($dummy, $self->{opened_tables}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Opened_tables' - }); - if (DBD::MySQL::Server::return_first_server()->version_is_minimum("5.1.3")) { - # SHOW VARIABLES WHERE Variable_name = 'table_open_cache' - ($dummy, $self->{table_cache}) = $self->{handle}->fetchrow_array(q{ - SHOW VARIABLES LIKE 'table_open_cache' - }); - } else { - # SHOW VARIABLES WHERE Variable_name = 'table_cache' - ($dummy, $self->{table_cache}) = $self->{handle}->fetchrow_array(q{ - SHOW VARIABLES LIKE 'table_cache' - }); - } - $self->{table_cache} ||= 0; - #$self->valdiff(\%params, qw(open_tables opened_tables table_cache)); - # _now ist hier sinnlos, da opened_tables waechst, aber open_tables wieder - # schrumpfen kann weil tabellen geschlossen werden. - if ($self->{opened_tables} != 0 && $self->{table_cache} != 0) { - $self->{tablecache_hitrate} = - 100 * $self->{open_tables} / $self->{opened_tables}; - $self->{tablecache_fillrate} = - 100 * $self->{open_tables} / $self->{table_cache}; - } elsif ($self->{opened_tables} == 0 && $self->{table_cache} != 0) { - $self->{tablecache_hitrate} = 100; - $self->{tablecache_fillrate} = - 100 * $self->{open_tables} / $self->{table_cache}; - } else { - $self->{tablecache_hitrate} = 0; - $self->{tablecache_fillrate} = 0; - $self->add_nagios_critical("no table cache"); - } - } elsif ($params{mode} =~ /server::instance::tablelockcontention/) { - ($dummy, $self->{table_locks_waited}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Table_locks_waited' - }); - ($dummy, $self->{table_locks_immediate}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Table_locks_immediate' - }); - $self->valdiff(\%params, qw(table_locks_waited table_locks_immediate)); - $self->{table_lock_contention} = - ($self->{table_locks_waited} + $self->{table_locks_immediate}) > 0 ? - 100 * $self->{table_locks_waited} / - ($self->{table_locks_waited} + $self->{table_locks_immediate}) : - 100; - $self->{table_lock_contention_now} = - ($self->{delta_table_locks_waited} + $self->{delta_table_locks_immediate}) > 0 ? - 100 * $self->{delta_table_locks_waited} / - ($self->{delta_table_locks_waited} + $self->{delta_table_locks_immediate}) : - 100; - } elsif ($params{mode} =~ /server::instance::tableindexusage/) { - # http://johnjacobm.wordpress.com/2007/06/ - # formula for calculating the percentage of full table scans - ($dummy, $self->{handler_read_first}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Handler_read_first' - }); - ($dummy, $self->{handler_read_key}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Handler_read_key' - }); - ($dummy, $self->{handler_read_next}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Handler_read_next' - }); - ($dummy, $self->{handler_read_prev}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Handler_read_prev' - }); - ($dummy, $self->{handler_read_rnd}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Handler_read_rnd' - }); - ($dummy, $self->{handler_read_rnd_next}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Handler_read_rnd_next' - }); - $self->valdiff(\%params, qw(handler_read_first handler_read_key - handler_read_next handler_read_prev handler_read_rnd - handler_read_rnd_next)); - my $delta_reads = $self->{delta_handler_read_first} + - $self->{delta_handler_read_key} + - $self->{delta_handler_read_next} + - $self->{delta_handler_read_prev} + - $self->{delta_handler_read_rnd} + - $self->{delta_handler_read_rnd_next}; - my $reads = $self->{handler_read_first} + - $self->{handler_read_key} + - $self->{handler_read_next} + - $self->{handler_read_prev} + - $self->{handler_read_rnd} + - $self->{handler_read_rnd_next}; - $self->{index_usage_now} = ($delta_reads == 0) ? 0 : - 100 - (100.0 * ($self->{delta_handler_read_rnd} + - $self->{delta_handler_read_rnd_next}) / - $delta_reads); - $self->{index_usage} = ($reads == 0) ? 0 : - 100 - (100.0 * ($self->{handler_read_rnd} + - $self->{handler_read_rnd_next}) / - $reads); - } elsif ($params{mode} =~ /server::instance::tabletmpondisk/) { - ($dummy, $self->{created_tmp_tables}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Created_tmp_tables' - }); - ($dummy, $self->{created_tmp_disk_tables}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Created_tmp_disk_tables' - }); - $self->valdiff(\%params, qw(created_tmp_tables created_tmp_disk_tables)); - $self->{pct_tmp_on_disk} = $self->{created_tmp_tables} > 0 ? - 100 * $self->{created_tmp_disk_tables} / $self->{created_tmp_tables} : - 100; - $self->{pct_tmp_on_disk_now} = $self->{delta_created_tmp_tables} > 0 ? - 100 * $self->{delta_created_tmp_disk_tables} / $self->{delta_created_tmp_tables} : - 100; - } elsif ($params{mode} =~ /server::instance::openfiles/) { - ($dummy, $self->{open_files_limit}) = $self->{handle}->fetchrow_array(q{ - SHOW VARIABLES LIKE 'open_files_limit' - }); - ($dummy, $self->{open_files}) = $self->{handle}->fetchrow_array(q{ - SHOW /*!50000 global */ STATUS LIKE 'Open_files' - }); - $self->{pct_open_files} = 100 * $self->{open_files} / $self->{open_files_limit}; - } elsif ($params{mode} =~ /server::instance::needoptimize/) { - $self->{fragmented} = []; - #http://www.electrictoolbox.com/optimize-tables-mysql-php/ - my @result = $self->{handle}->fetchall_array(q{ - SHOW TABLE STATUS - }); - foreach (@result) { - my ($name, $engine, $data_length, $data_free) = - ($_->[0], $_->[1], $_->[6 ], $_->[9]); - next if ($params{name} && $params{name} ne $name); - my $fragmentation = $data_length ? $data_free * 100 / $data_length : 0; - push(@{$self->{fragmented}}, - [$name, $fragmentation, $data_length, $data_free]); - } - } elsif ($params{mode} =~ /server::instance::myisam/) { - $self->{engine_myisam} = DBD::MySQL::Server::Instance::MyISAM->new( - %params - ); - } elsif ($params{mode} =~ /server::instance::innodb/) { - $self->{engine_innodb} = DBD::MySQL::Server::Instance::Innodb->new( - %params - ); - } elsif ($params{mode} =~ /server::instance::replication/) { - $self->{replication} = DBD::MySQL::Server::Instance::Replication->new( - %params - ); - } -} - -sub nagios { - my $self = shift; - my %params = @_; - if (! $self->{nagios_level}) { - if ($params{mode} =~ /server::instance::connectedthreads/) { - $self->add_nagios( - $self->check_thresholds($self->{threads_connected}, 10, 20), - sprintf "%d client connection threads", $self->{threads_connected}); - $self->add_perfdata(sprintf "threads_connected=%d;%d;%d", - $self->{threads_connected}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::createdthreads/) { - $self->add_nagios( - $self->check_thresholds($self->{threads_created_per_sec}, 10, 20), - sprintf "%.2f threads created/sec", $self->{threads_created_per_sec}); - $self->add_perfdata(sprintf "threads_created_per_sec=%.2f;%.2f;%.2f", - $self->{threads_created_per_sec}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::runningthreads/) { - $self->add_nagios( - $self->check_thresholds($self->{threads_running}, 10, 20), - sprintf "%d running threads", $self->{threads_running}); - $self->add_perfdata(sprintf "threads_running=%d;%d;%d", - $self->{threads_running}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::cachedthreads/) { - $self->add_nagios( - $self->check_thresholds($self->{threads_cached}, 10, 20), - sprintf "%d cached threads", $self->{threads_cached}); - $self->add_perfdata(sprintf "threads_cached=%d;%d;%d", - $self->{threads_cached}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::abortedconnects/) { - $self->add_nagios( - $self->check_thresholds($self->{connects_aborted_per_sec}, 1, 5), - sprintf "%.2f aborted connections/sec", $self->{connects_aborted_per_sec}); - $self->add_perfdata(sprintf "connects_aborted_per_sec=%.2f;%.2f;%.2f", - $self->{connects_aborted_per_sec}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::abortedclients/) { - $self->add_nagios( - $self->check_thresholds($self->{clients_aborted_per_sec}, 1, 5), - sprintf "%.2f aborted (client died) connections/sec", $self->{clients_aborted_per_sec}); - $self->add_perfdata(sprintf "clients_aborted_per_sec=%.2f;%.2f;%.2f", - $self->{clients_aborted_per_sec}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::threadcachehitrate/) { - my $refkey = 'threadcache_hitrate'.($params{lookback} ? '_now' : ''); - $self->add_nagios( - $self->check_thresholds($self->{$refkey}, "90:", "80:"), - sprintf "thread cache hitrate %.2f%%", $self->{$refkey}); - $self->add_perfdata(sprintf "thread_cache_hitrate=%.2f%%;%s;%s", - $self->{threadcache_hitrate}, - $self->{warningrange}, $self->{criticalrange}); - $self->add_perfdata(sprintf "thread_cache_hitrate_now=%.2f%%", - $self->{threadcache_hitrate_now}); - $self->add_perfdata(sprintf "connections_per_sec=%.2f", - $self->{connections_per_sec}); - } elsif ($params{mode} =~ /server::instance::querycachehitrate/) { - my $refkey = 'querycache_hitrate'.($params{lookback} ? '_now' : ''); - if ((lc $self->{have_query_cache} eq 'yes') && ($self->{query_cache_size})) { - $self->add_nagios( - $self->check_thresholds($self->{$refkey}, "90:", "80:"), - sprintf "query cache hitrate %.2f%%", $self->{$refkey}); - } else { - $self->check_thresholds($self->{$refkey}, "90:", "80:"); - $self->add_nagios_ok( - sprintf "query cache hitrate %.2f%% (because it's turned off)", - $self->{querycache_hitrate}); - } - $self->add_perfdata(sprintf "qcache_hitrate=%.2f%%;%s;%s", - $self->{querycache_hitrate}, - $self->{warningrange}, $self->{criticalrange}); - $self->add_perfdata(sprintf "qcache_hitrate_now=%.2f%%", - $self->{querycache_hitrate_now}); - $self->add_perfdata(sprintf "selects_per_sec=%.2f", - $self->{selects_per_sec}); - } elsif ($params{mode} =~ /server::instance::querycachelowmemprunes/) { - $self->add_nagios( - $self->check_thresholds($self->{lowmem_prunes_per_sec}, "1", "10"), - sprintf "%d query cache lowmem prunes in %d seconds (%.2f/sec)", - $self->{delta_lowmem_prunes}, $self->{delta_timestamp}, - $self->{lowmem_prunes_per_sec}); - $self->add_perfdata(sprintf "qcache_lowmem_prunes_rate=%.2f;%s;%s", - $self->{lowmem_prunes_per_sec}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::slowqueries/) { - $self->add_nagios( - $self->check_thresholds($self->{slow_queries_per_sec}, "0.1", "1"), - sprintf "%d slow queries in %d seconds (%.2f/sec)", - $self->{delta_slow_queries}, $self->{delta_timestamp}, - $self->{slow_queries_per_sec}); - $self->add_perfdata(sprintf "slow_queries_rate=%.2f%%;%s;%s", - $self->{slow_queries_per_sec}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::longprocs/) { - $self->add_nagios( - $self->check_thresholds($self->{longrunners}, 10, 20), - sprintf "%d long running processes", $self->{longrunners}); - $self->add_perfdata(sprintf "long_running_procs=%d;%d;%d", - $self->{longrunners}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /server::instance::tablecachehitrate/) { - if ($self->{tablecache_fillrate} < 95) { - $self->add_nagios_ok( - sprintf "table cache hitrate %.2f%%, %.2f%% filled", - $self->{tablecache_hitrate}, - $self->{tablecache_fillrate}); - $self->check_thresholds($self->{tablecache_hitrate}, "99:", "95:"); - } else { - $self->add_nagios( - $self->check_thresholds($self->{tablecache_hitrate}, "99:", "95:"), - sprintf "table cache hitrate %.2f%%", $self->{tablecache_hitrate}); - } - $self->add_perfdata(sprintf "tablecache_hitrate=%.2f%%;%s;%s", - $self->{tablecache_hitrate}, - $self->{warningrange}, $self->{criticalrange}); - $self->add_perfdata(sprintf "tablecache_fillrate=%.2f%%", - $self->{tablecache_fillrate}); - } elsif ($params{mode} =~ /server::instance::tablelockcontention/) { - my $refkey = 'table_lock_contention'.($params{lookback} ? '_now' : ''); - if ($self->{uptime} > 10800) { # MySQL Bug #30599 - $self->add_nagios( - $self->check_thresholds($self->{$refkey}, "1", "2"), - sprintf "table lock contention %.2f%%", $self->{$refkey}); - } else { - $self->check_thresholds($self->{$refkey}, "1", "2"); - $self->add_nagios_ok( - sprintf "table lock contention %.2f%% (uptime < 10800)", - $self->{$refkey}); - } - $self->add_perfdata(sprintf "tablelock_contention=%.2f%%;%s;%s", - $self->{table_lock_contention}, - $self->{warningrange}, $self->{criticalrange}); - $self->add_perfdata(sprintf "tablelock_contention_now=%.2f%%", - $self->{table_lock_contention_now}); - } elsif ($params{mode} =~ /server::instance::tableindexusage/) { - my $refkey = 'index_usage'.($params{lookback} ? '_now' : ''); - $self->add_nagios( - $self->check_thresholds($self->{$refkey}, "90:", "80:"), - sprintf "index usage %.2f%%", $self->{$refkey}); - $self->add_perfdata(sprintf "index_usage=%.2f%%;%s;%s", - $self->{index_usage}, - $self->{warningrange}, $self->{criticalrange}); - $self->add_perfdata(sprintf "index_usage_now=%.2f%%", - $self->{index_usage_now}); - } elsif ($params{mode} =~ /server::instance::tabletmpondisk/) { - my $refkey = 'pct_tmp_on_disk'.($params{lookback} ? '_now' : ''); - $self->add_nagios( - $self->check_thresholds($self->{$refkey}, "25", "50"), - sprintf "%.2f%% of %d tables were created on disk", - $self->{$refkey}, $self->{delta_created_tmp_tables}); - $self->add_perfdata(sprintf "pct_tmp_table_on_disk=%.2f%%;%s;%s", - $self->{pct_tmp_on_disk}, - $self->{warningrange}, $self->{criticalrange}); - $self->add_perfdata(sprintf "pct_tmp_table_on_disk_now=%.2f%%", - $self->{pct_tmp_on_disk_now}); - } elsif ($params{mode} =~ /server::instance::openfiles/) { - $self->add_nagios( - $self->check_thresholds($self->{pct_open_files}, 80, 95), - sprintf "%.2f%% of the open files limit reached (%d of max. %d)", - $self->{pct_open_files}, - $self->{open_files}, $self->{open_files_limit}); - $self->add_perfdata(sprintf "pct_open_files=%.3f%%;%.3f;%.3f", - $self->{pct_open_files}, - $self->{warningrange}, - $self->{criticalrange}); - $self->add_perfdata(sprintf "open_files=%d;%d;%d", - $self->{open_files}, - $self->{open_files_limit} * $self->{warningrange} / 100, - $self->{open_files_limit} * $self->{criticalrange} / 100); - } elsif ($params{mode} =~ /server::instance::needoptimize/) { - foreach (@{$self->{fragmented}}) { - $self->add_nagios( - $self->check_thresholds($_->[1], 10, 25), - sprintf "table %s is %.2f%% fragmented", $_->[0], $_->[1]); - if ($params{name}) { - $self->add_perfdata(sprintf "'%s_frag'=%.2f%%;%d;%d", - $_->[0], $_->[1], $self->{warningrange}, $self->{criticalrange}); - } - } - } elsif ($params{mode} =~ /server::instance::myisam/) { - $self->{engine_myisam}->nagios(%params); - $self->merge_nagios($self->{engine_myisam}); - } elsif ($params{mode} =~ /server::instance::innodb/) { - $self->{engine_innodb}->nagios(%params); - $self->merge_nagios($self->{engine_innodb}); - } elsif ($params{mode} =~ /server::instance::replication/) { - $self->{replication}->nagios(%params); - $self->merge_nagios($self->{replication}); - } - } -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,1555 +0,0 @@ -package DBD::MySQL::Server; - -use strict; -use Time::HiRes; -use IO::File; -use File::Copy 'cp'; -use Data::Dumper; - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -{ - our $verbose = 0; - our $scream = 0; # scream if something is not implemented - our $access = "dbi"; # how do we access the database. - our $my_modules_dyn_dir = ""; # where we look for self-written extensions - - my @servers = (); - my $initerrors = undef; - - sub add_server { - push(@servers, shift); - } - - sub return_servers { - return @servers; - } - - sub return_first_server() { - return $servers[0]; - } - -} - -sub new { - my $class = shift; - my %params = @_; - my $self = { - access => $params{method} || 'dbi', - hostname => $params{hostname}, - database => $params{database} || 'information_schema', - port => $params{port}, - socket => $params{socket}, - username => $params{username}, - password => $params{password}, - mycnf => $params{mycnf}, - mycnfgroup => $params{mycnfgroup}, - timeout => $params{timeout}, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - verbose => $params{verbose}, - report => $params{report}, - labelformat => $params{labelformat}, - version => 'unknown', - instance => undef, - handle => undef, - }; - bless $self, $class; - $self->init_nagios(); - if ($self->dbconnect(%params)) { - ($self->{dummy}, $self->{version}) = $self->{handle}->fetchrow_array( - #q{ SHOW VARIABLES WHERE Variable_name = 'version' } - q{ SHOW VARIABLES LIKE 'version' } - ); - $self->{version} = (split "-", $self->{version})[0]; - ($self->{dummy}, $self->{uptime}) = $self->{handle}->fetchrow_array( - q{ SHOW STATUS LIKE 'Uptime' } - ); - DBD::MySQL::Server::add_server($self); - $self->init(%params); - } - return $self; -} - -sub init { - my $self = shift; - my %params = @_; - $params{handle} = $self->{handle}; - $params{uptime} = $self->{uptime}; - $self->set_global_db_thresholds(\%params); - if ($params{mode} =~ /^server::instance/) { - $self->{instance} = DBD::MySQL::Server::Instance->new(%params); - } elsif ($params{mode} =~ /^server::sql/) { - $self->set_local_db_thresholds(%params); - if ($params{regexp}) { - # sql output is treated as text - if ($params{name2} eq $params{name}) { - $self->add_nagios_unknown(sprintf "where's the regexp????"); - } else { - $self->{genericsql} = - $self->{handle}->fetchrow_array($params{selectname}); - if (! defined $self->{genericsql}) { - $self->add_nagios_unknown(sprintf "got no valid response for %s", - $params{selectname}); - } - } - } else { - # sql output must be a number (or array of numbers) - @{$self->{genericsql}} = - $self->{handle}->fetchrow_array($params{selectname}); - if (! (defined $self->{genericsql} && - (scalar(grep { /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/ } @{$self->{genericsql}})) == - scalar(@{$self->{genericsql}}))) { - $self->add_nagios_unknown(sprintf "got no valid response for %s", - $params{selectname}); - } else { - # name2 in array - # units in array - } - } - } elsif ($params{mode} =~ /^server::uptime/) { - # already set with the connection. but use minutes here - } elsif ($params{mode} =~ /^server::connectiontime/) { - $self->{connection_time} = $self->{tac} - $self->{tic}; - } elsif ($params{mode} =~ /^my::([^:.]+)/) { - my $class = $1; - my $loaderror = undef; - substr($class, 0, 1) = uc substr($class, 0, 1); - foreach my $libpath (split(":", $DBD::MySQL::Server::my_modules_dyn_dir)) { - foreach my $extmod (glob $libpath."/CheckMySQLHealth*.pm") { - eval { - $self->trace(sprintf "loading module %s", $extmod); - require $extmod; - }; - if ($@) { - $loaderror = $extmod; - $self->trace(sprintf "failed loading module %s: %s", $extmod, $@); - } - } - } - my $obj = { - handle => $params{handle}, - warningrange => $params{warningrange}, - criticalrange => $params{criticalrange}, - }; - bless $obj, "My$class"; - $self->{my} = $obj; - if ($self->{my}->isa("DBD::MySQL::Server")) { - my $dos_init = $self->can("init"); - my $dos_nagios = $self->can("nagios"); - my $my_init = $self->{my}->can("init"); - my $my_nagios = $self->{my}->can("nagios"); - if ($my_init == $dos_init) { - $self->add_nagios_unknown( - sprintf "Class %s needs an init() method", ref($self->{my})); - } elsif ($my_nagios == $dos_nagios) { - $self->add_nagios_unknown( - sprintf "Class %s needs a nagios() method", ref($self->{my})); - } else { - $self->{my}->init_nagios(%params); - $self->{my}->init(%params); - } - } else { - $self->add_nagios_unknown( - sprintf "Class %s is not a subclass of DBD::MySQL::Server%s", - ref($self->{my}), - $loaderror ? sprintf " (syntax error in %s?)", $loaderror : "" ); - } - } else { - printf "broken mode %s\n", $params{mode}; - } -} - -sub dump { - my $self = shift; - my $message = shift || ""; - printf "%s %s\n", $message, Data::Dumper::Dumper($self); -} - -sub nagios { - my $self = shift; - my %params = @_; - if (! $self->{nagios_level}) { - if ($params{mode} =~ /^server::instance/) { - $self->{instance}->nagios(%params); - $self->merge_nagios($self->{instance}); - } elsif ($params{mode} =~ /^server::database/) { - $self->{database}->nagios(%params); - $self->merge_nagios($self->{database}); - } elsif ($params{mode} =~ /^server::uptime/) { - $self->add_nagios( - $self->check_thresholds($self->{uptime} / 60, "10:", "5:"), - sprintf "database is up since %d minutes", $self->{uptime} / 60); - $self->add_perfdata(sprintf "uptime=%ds", - $self->{uptime}); - } elsif ($params{mode} =~ /^server::connectiontime/) { - $self->add_nagios( - $self->check_thresholds($self->{connection_time}, 1, 5), - sprintf "%.2f seconds to connect as %s", - $self->{connection_time}, ($self->{username} || getpwuid($<))); - $self->add_perfdata(sprintf "connection_time=%.4fs;%d;%d", - $self->{connection_time}, - $self->{warningrange}, $self->{criticalrange}); - } elsif ($params{mode} =~ /^server::sql/) { - if ($params{regexp}) { - if (substr($params{name2}, 0, 1) eq '!') { - $params{name2} =~ s/^!//; - if ($self->{genericsql} !~ /$params{name2}/) { - $self->add_nagios_ok( - sprintf "output %s does not match pattern %s", - $self->{genericsql}, $params{name2}); - } else { - $self->add_nagios_critical( - sprintf "output %s matches pattern %s", - $self->{genericsql}, $params{name2}); - } - } else { - if ($self->{genericsql} =~ /$params{name2}/) { - $self->add_nagios_ok( - sprintf "output %s matches pattern %s", - $self->{genericsql}, $params{name2}); - } else { - $self->add_nagios_critical( - sprintf "output %s does not match pattern %s", - $self->{genericsql}, $params{name2}); - } - } - } else { - $self->add_nagios( - # the first item in the list will trigger the threshold values - $self->check_thresholds($self->{genericsql}[0], 1, 5), - sprintf "%s: %s%s", - $params{name2} ? lc $params{name2} : lc $params{selectname}, - # float as float, integers as integers - join(" ", map { - (sprintf("%d", $_) eq $_) ? $_ : sprintf("%f", $_) - } @{$self->{genericsql}}), - $params{units} ? $params{units} : ""); - my $i = 0; - # workaround... getting the column names from the database would be nicer - my @names2_arr = split(/\s+/, $params{name2}); - foreach my $t (@{$self->{genericsql}}) { - $self->add_perfdata(sprintf "\'%s\'=%s%s;%s;%s", - $names2_arr[$i] ? lc $names2_arr[$i] : lc $params{selectname}, - # float as float, integers as integers - (sprintf("%d", $t) eq $t) ? $t : sprintf("%f", $t), - $params{units} ? $params{units} : "", - ($i == 0) ? $self->{warningrange} : "", - ($i == 0) ? $self->{criticalrange} : "" - ); - $i++; - } - } - } elsif ($params{mode} =~ /^my::([^:.]+)/) { - $self->{my}->nagios(%params); - $self->merge_nagios($self->{my}); - } - } -} - - -sub init_nagios { - my $self = shift; - no strict 'refs'; - if (! ref($self)) { - my $nagiosvar = $self."::nagios"; - my $nagioslevelvar = $self."::nagios_level"; - $$nagiosvar = { - messages => { - 0 => [], - 1 => [], - 2 => [], - 3 => [], - }, - perfdata => [], - }; - $$nagioslevelvar = $ERRORS{OK}, - } else { - $self->{nagios} = { - messages => { - 0 => [], - 1 => [], - 2 => [], - 3 => [], - }, - perfdata => [], - }; - $self->{nagios_level} = $ERRORS{OK}, - } -} - -sub check_thresholds { - my $self = shift; - my $value = shift; - my $defaultwarningrange = shift; - my $defaultcriticalrange = shift; - my $level = $ERRORS{OK}; - $self->{warningrange} = defined $self->{warningrange} ? - $self->{warningrange} : $defaultwarningrange; - $self->{criticalrange} = defined $self->{criticalrange} ? - $self->{criticalrange} : $defaultcriticalrange; - if ($self->{warningrange} !~ /:/ && $self->{criticalrange} !~ /:/) { - # warning = 10, critical = 20, warn if > 10, crit if > 20 - $level = $ERRORS{WARNING} if $value > $self->{warningrange}; - $level = $ERRORS{CRITICAL} if $value > $self->{criticalrange}; - } elsif ($self->{warningrange} =~ /([\d\.]+):/ && - $self->{criticalrange} =~ /([\d\.]+):/) { - # warning = 98:, critical = 95:, warn if < 98, crit if < 95 - $self->{warningrange} =~ /([\d\.]+):/; - $level = $ERRORS{WARNING} if $value < $1; - $self->{criticalrange} =~ /([\d\.]+):/; - $level = $ERRORS{CRITICAL} if $value < $1; - } - return $level; - # - # syntax error must be reported with returncode -1 - # -} - -sub add_nagios { - my $self = shift; - my $level = shift; - my $message = shift; - push(@{$self->{nagios}->{messages}->{$level}}, $message); - # recalc current level - foreach my $llevel (qw(CRITICAL WARNING UNKNOWN OK)) { - if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$llevel}}})) { - $self->{nagios_level} = $ERRORS{$llevel}; - } - } -} - -sub add_nagios_ok { - my $self = shift; - my $message = shift; - $self->add_nagios($ERRORS{OK}, $message); -} - -sub add_nagios_warning { - my $self = shift; - my $message = shift; - $self->add_nagios($ERRORS{WARNING}, $message); -} - -sub add_nagios_critical { - my $self = shift; - my $message = shift; - $self->add_nagios($ERRORS{CRITICAL}, $message); -} - -sub add_nagios_unknown { - my $self = shift; - my $message = shift; - $self->add_nagios($ERRORS{UNKNOWN}, $message); -} - -sub add_perfdata { - my $self = shift; - my $data = shift; - push(@{$self->{nagios}->{perfdata}}, $data); -} - -sub merge_nagios { - my $self = shift; - my $child = shift; - foreach my $level (0..3) { - foreach (@{$child->{nagios}->{messages}->{$level}}) { - $self->add_nagios($level, $_); - } - #push(@{$self->{nagios}->{messages}->{$level}}, - # @{$child->{nagios}->{messages}->{$level}}); - } - push(@{$self->{nagios}->{perfdata}}, @{$child->{nagios}->{perfdata}}); -} - -sub calculate_result { - my $self = shift; - my $labels = shift || {}; - my $multiline = 0; - map { - $self->{nagios_level} = $ERRORS{$_} if - (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}})); - } ("OK", "UNKNOWN", "WARNING", "CRITICAL"); - if ($ENV{NRPE_MULTILINESUPPORT} && - length join(" ", @{$self->{nagios}->{perfdata}}) > 200) { - $multiline = 1; - } - my $all_messages = join(($multiline ? "\n" : ", "), map { - join(($multiline ? "\n" : ", "), @{$self->{nagios}->{messages}->{$ERRORS{$_}}}) - } grep { - scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) - } ("CRITICAL", "WARNING", "UNKNOWN", "OK")); - my $bad_messages = join(($multiline ? "\n" : ", "), map { - join(($multiline ? "\n" : ", "), @{$self->{nagios}->{messages}->{$ERRORS{$_}}}) - } grep { - scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) - } ("CRITICAL", "WARNING", "UNKNOWN")); - my $all_messages_short = $bad_messages ? $bad_messages : 'no problems'; - my $all_messages_html = "". - join("", map { - my $level = $_; - join("", map { - sprintf "", - $level, $_; - } @{$self->{nagios}->{messages}->{$ERRORS{$_}}}); - } grep { - scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) - } ("CRITICAL", "WARNING", "UNKNOWN", "OK")). - "
%s
"; - if (exists $self->{identstring}) { - $self->{nagios_message} .= $self->{identstring}; - } - if ($self->{report} eq "long") { - $self->{nagios_message} .= $all_messages; - } elsif ($self->{report} eq "short") { - $self->{nagios_message} .= $all_messages_short; - } elsif ($self->{report} eq "html") { - $self->{nagios_message} .= $all_messages_short."\n".$all_messages_html; - } - if ($self->{labelformat} eq "pnp4nagios") { - $self->{perfdata} = join(" ", @{$self->{nagios}->{perfdata}}); - } else { - $self->{perfdata} = join(" ", map { - my $perfdata = $_; - if ($perfdata =~ /^(.*?)=(.*)/) { - my $label = $1; - my $data = $2; - if (exists $labels->{$label} && - exists $labels->{$label}->{$self->{labelformat}}) { - $labels->{$label}->{$self->{labelformat}}."=".$data; - } else { - $perfdata; - } - } else { - $perfdata; - } - } @{$self->{nagios}->{perfdata}}); - } -} - -sub set_global_db_thresholds { - my $self = shift; - my $params = shift; - my $warning = undef; - my $critical = undef; - return unless defined $params->{dbthresholds}; - $params->{name0} = $params->{dbthresholds}; - # :pluginmode :name :warning :critical - # mode empty - # - eval { - if ($self->{handle}->fetchrow_array(q{ - SELECT table_name - FROM information_schema.tables - WHERE table_schema = ? - AND table_name = 'CHECK_MYSQL_HEALTH_THRESHOLDS'; - }, $self->{database})) { # either --database... or information_schema - my @dbthresholds = $self->{handle}->fetchall_array(q{ - SELECT * FROM check_mysql_health_thresholds - }); - $params->{dbthresholds} = \@dbthresholds; - foreach (@dbthresholds) { - if (($_->[0] eq $params->{cmdlinemode}) && - (! defined $_->[1] || ! $_->[1])) { - ($warning, $critical) = ($_->[2], $_->[3]); - } - } - } - }; - if (! $@) { - if ($warning) { - $params->{warningrange} = $warning; - $self->trace("read warningthreshold %s from database", $warning); - } - if ($critical) { - $params->{criticalrange} = $critical; - $self->trace("read criticalthreshold %s from database", $critical); - } - } -} - -sub set_local_db_thresholds { - my $self = shift; - my %params = @_; - my $warning = undef; - my $critical = undef; - # :pluginmode :name :warning :critical - # mode name0 - # mode name2 - # mode name - # - # first: argument of --dbthresholds, it it exists - # second: --name2 - # third: --name - if (ref($params{dbthresholds}) eq 'ARRAY') { - my $marker; - foreach (@{$params{dbthresholds}}) { - if ($_->[0] eq $params{cmdlinemode}) { - if (defined $_->[1] && $params{name0} && $_->[1] eq $params{name0}) { - ($warning, $critical) = ($_->[2], $_->[3]); - $marker = $params{name0}; - last; - } elsif (defined $_->[1] && $params{name2} && $_->[1] eq $params{name2}) { - ($warning, $critical) = ($_->[2], $_->[3]); - $marker = $params{name2}; - last; - } elsif (defined $_->[1] && $params{name} && $_->[1] eq $params{name}) { - ($warning, $critical) = ($_->[2], $_->[3]); - $marker = $params{name}; - last; - } - } - } - if ($warning) { - $self->{warningrange} = $warning; - $self->trace("read warningthreshold %s for %s from database", - $marker, $warning); - } - if ($critical) { - $self->{criticalrange} = $critical; - $self->trace("read criticalthreshold %s for %s from database", - $marker, $critical); - } - } -} - -sub debug { - my $self = shift; - my $msg = shift; - if ($DBD::MySQL::Server::verbose) { - printf "%s %s\n", $msg, ref($self); - } -} - -sub dbconnect { - my $self = shift; - my %params = @_; - my $retval = undef; - $self->{tic} = Time::HiRes::time(); - $self->{handle} = DBD::MySQL::Server::Connection->new(%params); - if ($self->{handle}->{errstr}) { - if ($params{mode} =~ /^server::tnsping/ && - $self->{handle}->{errstr} =~ /ORA-01017/) { - $self->add_nagios($ERRORS{OK}, - sprintf "connection established to %s.", $self->{connect}); - $retval = undef; - } elsif ($self->{handle}->{errstr} eq "alarm\n") { - $self->add_nagios($ERRORS{CRITICAL}, - sprintf "connection could not be established within %d seconds", - $self->{timeout}); - } else { - $self->add_nagios($ERRORS{CRITICAL}, - sprintf "cannot connect to %s. %s", - $self->{database}, $self->{handle}->{errstr}); - $retval = undef; - } - } else { - $retval = $self->{handle}; - } - $self->{tac} = Time::HiRes::time(); - return $retval; -} - -sub trace { - my $self = shift; - my $format = shift; - $self->{trace} = -f "/tmp/check_mysql_health.trace" ? 1 : 0; - if ($self->{verbose}) { - printf("%s: ", scalar localtime); - printf($format, @_); - } - if ($self->{trace}) { - my $logfh = new IO::File; - $logfh->autoflush(1); - if ($logfh->open("/tmp/check_mysql_health.trace", "a")) { - $logfh->printf("%s: ", scalar localtime); - $logfh->printf($format, @_); - $logfh->printf("\n"); - $logfh->close(); - } - } -} - -sub DESTROY { - my $self = shift; - my $handle1 = "null"; - my $handle2 = "null"; - if (defined $self->{handle}) { - $handle1 = ref($self->{handle}); - if (defined $self->{handle}->{handle}) { - $handle2 = ref($self->{handle}->{handle}); - } - } - $self->trace(sprintf "DESTROY %s with handle %s %s", ref($self), $handle1, $handle2); - if (ref($self) eq "DBD::MySQL::Server") { - } - $self->trace(sprintf "DESTROY %s exit with handle %s %s", ref($self), $handle1, $handle2); - if (ref($self) eq "DBD::MySQL::Server") { - #printf "humpftata\n"; - } -} - -sub save_state { - my $self = shift; - my %params = @_; - my $extension = ""; - my $mode = $params{mode}; - if ($params{connect} && $params{connect} =~ /(\w+)\/(\w+)@(\w+)/) { - $params{connect} = $3; - } elsif ($params{connect}) { - # just to be sure - $params{connect} =~ s/\//_/g; - } - if ($^O =~ /MSWin/) { - $mode =~ s/::/_/g; - $params{statefilesdir} = $self->system_vartmpdir(); - } - if (! -d $params{statefilesdir}) { - eval { - use File::Path; - mkpath $params{statefilesdir}; - }; - } - if ($@ || ! -w $params{statefilesdir}) { - $self->add_nagios($ERRORS{CRITICAL}, - sprintf "statefilesdir %s does not exist or is not writable\n", - $params{statefilesdir}); - return; - } - my $statefile = sprintf "%s_%s", $params{hostname}, $mode; - $extension .= $params{differenciator} ? "_".$params{differenciator} : ""; - $extension .= $params{socket} ? "_".$params{socket} : ""; - $extension .= $params{port} ? "_".$params{port} : ""; - $extension .= $params{database} ? "_".$params{database} : ""; - $extension .= $params{tablespace} ? "_".$params{tablespace} : ""; - $extension .= $params{datafile} ? "_".$params{datafile} : ""; - $extension .= $params{name} ? "_".$params{name} : ""; - $extension =~ s/\//_/g; - $extension =~ s/\(/_/g; - $extension =~ s/\)/_/g; - $extension =~ s/\*/_/g; - $extension =~ s/\s/_/g; - $statefile .= $extension; - $statefile = lc $statefile; - $statefile = sprintf "%s/%s", $params{statefilesdir}, $statefile; - if (open(STATE, ">$statefile")) { - if ((ref($params{save}) eq "HASH") && exists $params{save}->{timestamp}) { - $params{save}->{localtime} = scalar localtime $params{save}->{timestamp}; - } - printf STATE Data::Dumper::Dumper($params{save}); - close STATE; - } else { - $self->add_nagios($ERRORS{CRITICAL}, - sprintf "statefile %s is not writable", $statefile); - } - $self->debug(sprintf "saved %s to %s", - Data::Dumper::Dumper($params{save}), $statefile); -} - -sub load_state { - my $self = shift; - my %params = @_; - my $extension = ""; - my $mode = $params{mode}; - if ($params{connect} && $params{connect} =~ /(\w+)\/(\w+)@(\w+)/) { - $params{connect} = $3; - } elsif ($params{connect}) { - # just to be sure - $params{connect} =~ s/\//_/g; - } - if ($^O =~ /MSWin/) { - $mode =~ s/::/_/g; - $params{statefilesdir} = $self->system_vartmpdir(); - } - my $statefile = sprintf "%s_%s", $params{hostname}, $mode; - $extension .= $params{differenciator} ? "_".$params{differenciator} : ""; - $extension .= $params{socket} ? "_".$params{socket} : ""; - $extension .= $params{port} ? "_".$params{port} : ""; - $extension .= $params{database} ? "_".$params{database} : ""; - $extension .= $params{tablespace} ? "_".$params{tablespace} : ""; - $extension .= $params{datafile} ? "_".$params{datafile} : ""; - $extension .= $params{name} ? "_".$params{name} : ""; - $extension =~ s/\//_/g; - $extension =~ s/\(/_/g; - $extension =~ s/\)/_/g; - $extension =~ s/\*/_/g; - $extension =~ s/\s/_/g; - $statefile .= $extension; - $statefile = lc $statefile; - $statefile = sprintf "%s/%s", $params{statefilesdir}, $statefile; - if ( -f $statefile) { - our $VAR1; - eval { - require $statefile; - }; - if($@) { - $self->add_nagios($ERRORS{CRITICAL}, - sprintf "statefile %s is corrupt", $statefile); - } - $self->debug(sprintf "load %s", Data::Dumper::Dumper($VAR1)); - return $VAR1; - } else { - return undef; - } -} - -sub valdiff { - my $self = shift; - my $pparams = shift; - my %params = %{$pparams}; - my @keys = @_; - my $now = time; - my $last_values = $self->load_state(%params) || eval { - my $empty_events = {}; - foreach (@keys) { - $empty_events->{$_} = 0; - } - $empty_events->{timestamp} = 0; - if ($params{lookback}) { - $empty_events->{lookback_history} = {}; - } - $empty_events; - }; - foreach (@keys) { - if ($params{lookback}) { - # find a last_value in the history which fits lookback best - # and overwrite $last_values->{$_} with historic data - if (exists $last_values->{lookback_history}->{$_}) { - foreach my $date (sort {$a <=> $b} keys %{$last_values->{lookback_history}->{$_}}) { - if ($date >= ($now - $params{lookback})) { - $last_values->{$_} = $last_values->{lookback_history}->{$_}->{$date}; - $last_values->{timestamp} = $date; - last; - } else { - delete $last_values->{lookback_history}->{$_}->{$date}; - } - } - } - } - $last_values->{$_} = 0 if ! exists $last_values->{$_}; - if ($self->{$_} >= $last_values->{$_}) { - $self->{'delta_'.$_} = $self->{$_} - $last_values->{$_}; - } else { - # vermutlich db restart und zaehler alle auf null - $self->{'delta_'.$_} = $self->{$_}; - } - $self->debug(sprintf "delta_%s %f", $_, $self->{'delta_'.$_}); - } - $self->{'delta_timestamp'} = $now - $last_values->{timestamp}; - $params{save} = eval { - my $empty_events = {}; - foreach (@keys) { - $empty_events->{$_} = $self->{$_}; - } - $empty_events->{timestamp} = $now; - if ($params{lookback}) { - $empty_events->{lookback_history} = $last_values->{lookback_history}; - foreach (@keys) { - $empty_events->{lookback_history}->{$_}->{$now} = $self->{$_}; - } - } - $empty_events; - }; - $self->save_state(%params); -} - -sub requires_version { - my $self = shift; - my $version = shift; - my @instances = DBD::MySQL::Server::return_servers(); - my $instversion = $instances[0]->{version}; - if (! $self->version_is_minimum($version)) { - $self->add_nagios($ERRORS{UNKNOWN}, - sprintf "not implemented/possible for MySQL release %s", $instversion); - } -} - -sub version_is_minimum { - # the current version is newer or equal - my $self = shift; - my $version = shift; - my $newer = 1; - my @instances = DBD::MySQL::Server::return_servers(); - my @v1 = map { $_ eq "x" ? 0 : $_ } split(/\./, $version); - my @v2 = split(/\./, $instances[0]->{version}); - if (scalar(@v1) > scalar(@v2)) { - push(@v2, (0) x (scalar(@v1) - scalar(@v2))); - } elsif (scalar(@v2) > scalar(@v1)) { - push(@v1, (0) x (scalar(@v2) - scalar(@v1))); - } - foreach my $pos (0..$#v1) { - if ($v2[$pos] > $v1[$pos]) { - $newer = 1; - last; - } elsif ($v2[$pos] < $v1[$pos]) { - $newer = 0; - last; - } - } - #printf STDERR "check if %s os minimum %s\n", join(".", @v2), join(".", @v1); - return $newer; -} - -sub instance_thread { - my $self = shift; - my @instances = DBD::MySQL::Server::return_servers(); - return $instances[0]->{thread}; -} - -sub windows_server { - my $self = shift; - my @instances = DBD::MySQL::Server::return_servers(); - if ($instances[0]->{os} =~ /Win/i) { - return 1; - } else { - return 0; - } -} - -sub system_vartmpdir { - my $self = shift; - if ($^O =~ /MSWin/) { - return $self->system_tmpdir(); - } else { - return "/var/tmp/check_mysql_health"; - } -} - -sub system_oldvartmpdir { - my $self = shift; - return "/tmp"; -} - -sub system_tmpdir { - my $self = shift; - if ($^O =~ /MSWin/) { - return $ENV{TEMP} if defined $ENV{TEMP}; - return $ENV{TMP} if defined $ENV{TMP}; - return File::Spec->catfile($ENV{windir}, 'Temp') - if defined $ENV{windir}; - return 'C:\Temp'; - } else { - return "/tmp"; - } -} - - -package DBD::MySQL::Server::Connection; - -use strict; - -our @ISA = qw(DBD::MySQL::Server); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub new { - my $class = shift; - my %params = @_; - my $self = { - mode => $params{mode}, - timeout => $params{timeout}, - access => $params{method} || "dbi", - hostname => $params{hostname}, - database => $params{database} || "information_schema", - port => $params{port}, - socket => $params{socket}, - username => $params{username}, - password => $params{password}, - mycnf => $params{mycnf}, - mycnfgroup => $params{mycnfgroup}, - handle => undef, - }; - bless $self, $class; - if ($params{method} eq "dbi") { - bless $self, "DBD::MySQL::Server::Connection::Dbi"; - } elsif ($params{method} eq "mysql") { - bless $self, "DBD::MySQL::Server::Connection::Mysql"; - } elsif ($params{method} eq "sqlrelay") { - bless $self, "DBD::MySQL::Server::Connection::Sqlrelay"; - } - $self->init(%params); - return $self; -} - - -package DBD::MySQL::Server::Connection::Dbi; - -use strict; -use Net::Ping; - -our @ISA = qw(DBD::MySQL::Server::Connection); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub init { - my $self = shift; - my %params = @_; - my $retval = undef; - if ($self->{mode} =~ /^server::tnsping/) { - if (! $self->{connect}) { - $self->{errstr} = "Please specify a database"; - } else { - $self->{sid} = $self->{connect}; - $self->{username} ||= time; # prefer an existing user - $self->{password} = time; - } - } else { - if ( - ($self->{hostname} ne 'localhost' && (! $self->{username} || ! $self->{password})) && - (! $self->{mycnf}) ) { - $self->{errstr} = "Please specify hostname, username and password or a .cnf file"; - return undef; - } - $self->{dsn} = "DBI:mysql:"; - $self->{dsn} .= sprintf "database=%s", $self->{database}; - if ($self->{mycnf}) { - $self->{dsn} .= sprintf ";mysql_read_default_file=%s", $self->{mycnf}; - if ($self->{mycnfgroup}) { - $self->{dsn} .= sprintf ";mysql_read_default_group=%s", $self->{mycnfgroup}; - } - } else { - $self->{dsn} .= sprintf ";host=%s", $self->{hostname}; - $self->{dsn} .= sprintf ";port=%s", $self->{port} - unless $self->{socket} || $self->{hostname} eq 'localhost'; - $self->{dsn} .= sprintf ";mysql_socket=%s", $self->{socket} - if $self->{socket}; - } - } - if (! exists $self->{errstr}) { - eval { - require DBI; - use POSIX ':signal_h'; - if ($^O =~ /MSWin/) { - local $SIG{'ALRM'} = sub { - die "alarm\n"; - }; - } else { - my $mask = POSIX::SigSet->new( SIGALRM ); - my $action = POSIX::SigAction->new( - sub { die "alarm\n" ; }, $mask); - my $oldaction = POSIX::SigAction->new(); - sigaction(SIGALRM ,$action ,$oldaction ); - } - alarm($self->{timeout} - 1); # 1 second before the global unknown timeout - if ($self->{handle} = DBI->connect( - $self->{dsn}, - $self->{username}, - $self->{password}, - { RaiseError => 0, AutoCommit => 0, PrintError => 0 })) { -# $self->{handle}->do(q{ -# ALTER SESSION SET NLS_NUMERIC_CHARACTERS=".," }); - $retval = $self; - } else { - $self->{errstr} = DBI::errstr(); - } - }; - if ($@) { - $self->{errstr} = $@; - $retval = undef; - } - } - $self->{tac} = Time::HiRes::time(); - return $retval; -} - -sub selectrow_hashref { - my $self = shift; - my $sql = shift; - my @arguments = @_; - my $sth = undef; - my $hashref = undef; - eval { - $self->trace(sprintf "SQL:\n%s\nARGS:\n%s\n", - $sql, Data::Dumper::Dumper(\@arguments)); - # helm auf! jetzt wirds dreckig. - if ($sql =~ /^\s*SHOW/) { - $hashref = $self->{handle}->selectrow_hashref($sql); - } else { - $sth = $self->{handle}->prepare($sql); - if (scalar(@arguments)) { - $sth->execute(@arguments); - } else { - $sth->execute(); - } - $hashref = $sth->selectrow_hashref(); - } - $self->trace(sprintf "RESULT:\n%s\n", - Data::Dumper::Dumper($hashref)); - }; - if ($@) { - $self->debug(sprintf "bumm %s", $@); - } - if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { - my $simulation = do { local (@ARGV, $/) = - "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; - # keine lust auf den scheiss - } - return $hashref; -} - -sub fetchrow_array { - my $self = shift; - my $sql = shift; - my @arguments = @_; - my $sth = undef; - my @row = (); - eval { - $self->trace(sprintf "SQL:\n%s\nARGS:\n%s\n", - $sql, Data::Dumper::Dumper(\@arguments)); - $sth = $self->{handle}->prepare($sql); - if (scalar(@arguments)) { - $sth->execute(@arguments); - } else { - $sth->execute(); - } - @row = $sth->fetchrow_array(); - $self->trace(sprintf "RESULT:\n%s\n", - Data::Dumper::Dumper(\@row)); - }; - if ($@) { - $self->debug(sprintf "bumm %s", $@); - } - if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { - my $simulation = do { local (@ARGV, $/) = - "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; - @row = split(/\s+/, (split(/\n/, $simulation))[0]); - } - return $row[0] unless wantarray; - return @row; -} - -sub fetchall_array { - my $self = shift; - my $sql = shift; - my @arguments = @_; - my $sth = undef; - my $rows = undef; - eval { - $self->trace(sprintf "SQL:\n%s\nARGS:\n%s\n", - $sql, Data::Dumper::Dumper(\@arguments)); - $sth = $self->{handle}->prepare($sql); - if (scalar(@arguments)) { - $sth->execute(@arguments); - } else { - $sth->execute(); - } - $rows = $sth->fetchall_arrayref(); - $self->trace(sprintf "RESULT:\n%s\n", - Data::Dumper::Dumper($rows)); - }; - if ($@) { - printf STDERR "bumm %s\n", $@; - } - if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { - my $simulation = do { local (@ARGV, $/) = - "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; - @{$rows} = map { [ split(/\s+/, $_) ] } split(/\n/, $simulation); - } - return @{$rows}; -} - -sub func { - my $self = shift; - $self->{handle}->func(@_); -} - - -sub execute { - my $self = shift; - my $sql = shift; - eval { - my $sth = $self->{handle}->prepare($sql); - $sth->execute(); - }; - if ($@) { - printf STDERR "bumm %s\n", $@; - } -} - -sub errstr { - my $self = shift; - return $self->{errstr}; -} - -sub DESTROY { - my $self = shift; - $self->trace(sprintf "disconnecting DBD %s", - $self->{handle} ? "with handle" : "without handle"); - $self->{handle}->disconnect() if $self->{handle}; -} - -package DBD::MySQL::Server::Connection::Mysql; - -use strict; -use File::Temp qw/tempfile/; - -our @ISA = qw(DBD::MySQL::Server::Connection); - -my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); -my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); - -sub init { - my $self = shift; - my %params = @_; - my $retval = undef; - $self->{loginstring} = "traditional"; - ($self->{sql_commandfile_handle}, $self->{sql_commandfile}) = - tempfile($self->{mode}."XXXXX", SUFFIX => ".sql", - DIR => $self->system_tmpdir() ); - close $self->{sql_commandfile_handle}; - ($self->{sql_resultfile_handle}, $self->{sql_resultfile}) = - tempfile($self->{mode}."XXXXX", SUFFIX => ".out", - DIR => $self->system_tmpdir() ); - close $self->{sql_resultfile_handle}; - if ($self->{mode} =~ /^server::tnsping/) { - if (! $self->{connect}) { - $self->{errstr} = "Please specify a database"; - } else { - $self->{sid} = $self->{connect}; - $self->{username} ||= time; # prefer an existing user - $self->{password} = time; - } - } else { - if (! $self->{username} || ! $self->{password}) { - $self->{errstr} = "Please specify database, username and password"; - return undef; - } elsif (! (($self->{hostname} && $self->{port}) || $self->{socket})) { - $self->{errstr} = "Please specify hostname and port or socket"; - return undef; - } - } - if (! exists $self->{errstr}) { - eval { - my $mysql = '/'.'usr'.'/'.'bin'.'/'.'mysql'; - if (! -x $mysql) { - die "nomysql\n"; - } - if ($self->{loginstring} eq "traditional") { - $self->{sqlplus} = sprintf "%s ", $mysql; - $self->{sqlplus} .= sprintf "--batch --raw --skip-column-names "; - $self->{sqlplus} .= sprintf "--database=%s ", $self->{database}; - $self->{sqlplus} .= sprintf "--host=%s ", $self->{hostname}; - $self->{sqlplus} .= sprintf "--port=%s ", $self->{port} - unless $self->{socket} || $self->{hostname} eq "localhost"; - $self->{sqlplus} .= sprintf "--socket=%s ", $self->{socket} - if $self->{socket}; - $self->{sqlplus} .= sprintf "--user=%s --password=%s < %s > %s", - $self->{username}, $self->{password}, - $self->{sql_commandfile}, $self->{sql_resultfile}; - } - - use POSIX ':signal_h'; - if ($^O =~ /MSWin/) { - local $SIG{'ALRM'} = sub { - die "alarm\n"; - }; - } else { - my $mask = POSIX::SigSet->new( SIGALRM ); - my $action = POSIX::SigAction->new( - sub { die "alarm\n" ; }, $mask); - my $oldaction = POSIX::SigAction->new(); - sigaction(SIGALRM ,$action ,$oldaction ); - } - alarm($self->{timeout} - 1); # 1 second before the global unknown timeout - - my $answer = $self->fetchrow_array( - q{ SELECT 42 FROM dual}); - die unless defined $answer and $answer == 42; - $retval = $self; - }; - if ($@) { - $self->{errstr} = $@; - $self->{errstr} =~ s/at $0 .*//g; - chomp $self->{errstr}; - $retval = undef; - } - } - $self->{tac} = Time::HiRes::time(); - return $retval; -} - -sub selectrow_hashref { - my $self = shift; - my $sql = shift; - my @arguments = @_; - my $sth = undef; - my $hashref = undef; - foreach (@arguments) { - # replace the ? by the parameters - if (/^\d+$/) { - $sql =~ s/\?/$_/; - } else { - $sql =~ s/\?/'$_'/; - } - } - if ($sql =~ /^\s*SHOW/) { - $sql .= '\G'; # http://dev.mysql.com/doc/refman/5.1/de/show-slave-status.html - } - $self->trace(sprintf "SQL (? resolved):\n%s\nARGS:\n%s\n", - $sql, Data::Dumper::Dumper(\@arguments)); - $self->create_commandfile($sql); - my $exit_output = `$self->{sqlplus}`; - if ($?) { - printf STDERR "fetchrow_array exit bumm \n"; - my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; - my @oerrs = map { - /((ERROR \d+).*)/ ? $1 : (); - } split(/\n/, $output); - $self->{errstr} = join(" ", @oerrs); - } else { - my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; - if ($sql =~ /^\s*SHOW/) { - map { - if (/^\s*([\w_]+):\s*(.*)/) { - $hashref->{$1} = $2; - } - } split(/\n/, $output); - } else { - # i dont mess around here and you shouldn't either - } - $self->trace(sprintf "RESULT:\n%s\n", - Data::Dumper::Dumper($hashref)); - } - unlink $self->{sql_commandfile}; - unlink $self->{sql_resultfile}; - return $hashref; -} - -sub fetchrow_array { - my $self = shift; - my $sql = shift; - my @arguments = @_; - my $sth = undef; - my @row = (); - foreach (@arguments) { - # replace the ? by the parameters - if (/^\d+$/) { - $sql =~ s/\?/$_/; - } else { - $sql =~ s/\?/'$_'/; - } - } - $self->trace(sprintf "SQL (? resolved):\n%s\nARGS:\n%s\n", - $sql, Data::Dumper::Dumper(\@arguments)); - $self->create_commandfile($sql); - my $exit_output = `$self->{sqlplus}`; - if ($?) { - printf STDERR "fetchrow_array exit bumm \n"; - my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; - my @oerrs = map { - /((ERROR \d+).*)/ ? $1 : (); - } split(/\n/, $output); - $self->{errstr} = join(" ", @oerrs); - } else { - my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; - @row = map { convert($_) } - map { s/^\s+([\.\d]+)$/$1/g; $_ } # strip leading space from numbers - map { s/\s+$//g; $_ } # strip trailing space - split(/\t/, (split(/\n/, $output))[0]); - $self->trace(sprintf "RESULT:\n%s\n", - Data::Dumper::Dumper(\@row)); - } - if ($@) { - $self->debug(sprintf "bumm %s", $@); - } - unlink $self->{sql_commandfile}; - unlink $self->{sql_resultfile}; - return $row[0] unless wantarray; - return @row; -} - -sub fetchall_array { - my $self = shift; - my $sql = shift; - my @arguments = @_; - my $sth = undef; - my $rows = undef; - foreach (@arguments) { - # replace the ? by the parameters - if (/^\d+$/) { - $sql =~ s/\?/$_/; - } else { - $sql =~ s/\?/'$_'/; - } - } - $self->trace(sprintf "SQL (? resolved):\n%s\nARGS:\n%s\n", - $sql, Data::Dumper::Dumper(\@arguments)); - $self->create_commandfile($sql); - my $exit_output = `$self->{sqlplus}`; - if ($?) { - printf STDERR "fetchrow_array exit bumm %s\n", $exit_output; - my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; - my @oerrs = map { - /((ERROR \d+).*)/ ? $1 : (); - } split(/\n/, $output); - $self->{errstr} = join(" ", @oerrs); - } else { - my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; - my @rows = map { [ - map { convert($_) } - map { s/^\s+([\.\d]+)$/$1/g; $_ } - map { s/\s+$//g; $_ } - split /\t/ - ] } grep { ! /^\d+ rows selected/ } - grep { ! /^Elapsed: / } - grep { ! /^\s*$/ } split(/\n/, $output); - $rows = \@rows; - $self->trace(sprintf "RESULT:\n%s\n", - Data::Dumper::Dumper($rows)); - } - if ($@) { - $self->debug(sprintf "bumm %s", $@); - } - unlink $self->{sql_commandfile}; - unlink $self->{sql_resultfile}; - return @{$rows}; -} - -sub func { - my $self = shift; - my $function = shift; - $self->{handle}->func(@_); -} - -sub convert { - my $n = shift; - # mostly used to convert numbers in scientific notation - if ($n =~ /^\s*\d+\s*$/) { - return $n; - } elsif ($n =~ /^\s*([-+]?)(\d*[\.,]*\d*)[eE]{1}([-+]?)(\d+)\s*$/) { - my ($vor, $num, $sign, $exp) = ($1, $2, $3, $4); - $n =~ s/E/e/g; - $n =~ s/,/\./g; - $num =~ s/,/\./g; - my $sig = $sign eq '-' ? "." . ($exp - 1 + length $num) : ''; - my $dec = sprintf "%${sig}f", $n; - $dec =~ s/\.[0]+$//g; - return $dec; - } elsif ($n =~ /^\s*([-+]?)(\d+)[\.,]*(\d*)\s*$/) { - return $1.$2.".".$3; - } elsif ($n =~ /^\s*(.*?)\s*$/) { - return $1; - } else { - return $n; - } -} - - -sub execute { - my $self = shift; - my $sql = shift; - eval { - my $sth = $self->{handle}->prepare($sql); - $sth->execute(); - }; - if ($@) { - printf STDERR "bumm %s\n", $@; - } -} - -sub errstr { - my $self = shift; - return $self->{errstr}; -} - -sub DESTROY { - my $self = shift; - $self->trace("try to clean up command and result files"); - unlink $self->{sql_commandfile} if -f $self->{sql_commandfile}; - unlink $self->{sql_resultfile} if -f $self->{sql_resultfile}; -} - -sub create_commandfile { - my $self = shift; - my $sql = shift; - open CMDCMD, "> $self->{sql_commandfile}"; - printf CMDCMD "%s\n", $sql; - close CMDCMD; -} - - -package DBD::MySQL::Server::Connection::Sqlrelay; - -use strict; -use Net::Ping; - -our @ISA = qw(DBD::MySQL::Server::Connection); - - -sub init { - my $self = shift; - my %params = @_; - my $retval = undef; - if ($self->{mode} =~ /^server::tnsping/) { - if (! $self->{connect}) { - $self->{errstr} = "Please specify a database"; - } else { - if ($self->{connect} =~ /([\.\w]+):(\d+)/) { - $self->{host} = $1; - $self->{port} = $2; - $self->{socket} = ""; - } elsif ($self->{connect} =~ /([\.\w]+):([\w\/]+)/) { - $self->{host} = $1; - $self->{socket} = $2; - $self->{port} = ""; - } - } - } else { - if (! $self->{hostname} || ! $self->{username} || ! $self->{password}) { - if ($self->{hostname} && $self->{hostname} =~ /(\w+)\/(\w+)@([\.\w]+):(\d+)/) { - $self->{username} = $1; - $self->{password} = $2; - $self->{hostname} = $3; - $self->{port} = $4; - $self->{socket} = ""; - } elsif ($self->{hostname} && $self->{hostname} =~ /(\w+)\/(\w+)@([\.\w]+):([\w\/]+)/) { - $self->{username} = $1; - $self->{password} = $2; - $self->{hostname} = $3; - $self->{socket} = $4; - $self->{port} = ""; - } else { - $self->{errstr} = "Please specify database, username and password"; - return undef; - } - } else { - if ($self->{hostname} =~ /([\.\w]+):(\d+)/) { - $self->{hostname} = $1; - $self->{port} = $2; - $self->{socket} = ""; - } elsif ($self->{hostname} =~ /([\.\w]+):([\w\/]+)/) { - $self->{hostname} = $1; - $self->{socket} = $2; - $self->{port} = ""; - } else { - $self->{errstr} = "Please specify hostname, username, password and port/socket"; - return undef; - } - } - } - if (! exists $self->{errstr}) { - eval { - require DBI; - use POSIX ':signal_h'; - if ($^O =~ /MSWin/) { - local $SIG{'ALRM'} = sub { - die "alarm\n"; - }; - } else { - my $mask = POSIX::SigSet->new( SIGALRM ); - my $action = POSIX::SigAction->new( - sub { die "alarm\n" ; }, $mask); - my $oldaction = POSIX::SigAction->new(); - sigaction(SIGALRM ,$action ,$oldaction ); - } - alarm($self->{timeout} - 1); # 1 second before the global unknown timeout - if ($self->{handle} = DBI->connect( - sprintf("DBI:SQLRelay:host=%s;port=%d;socket=%s", - $self->{hostname}, $self->{port}, $self->{socket}), - $self->{username}, - $self->{password}, - { RaiseError => 1, AutoCommit => 0, PrintError => 1 })) { - $retval = $self; - if ($self->{mode} =~ /^server::tnsping/ && $self->{handle}->ping()) { - # database connected. fake a "unknown user" - $self->{errstr} = "ORA-01017"; - } - } else { - $self->{errstr} = DBI::errstr(); - } - }; - if ($@) { - $self->{errstr} = $@; - $self->{errstr} =~ s/at [\w\/\.]+ line \d+.*//g; - $retval = undef; - } - } - $self->{tac} = Time::HiRes::time(); - return $retval; -} - -sub fetchrow_array { - my $self = shift; - my $sql = shift; - my @arguments = @_; - my $sth = undef; - my @row = (); - $self->trace(sprintf "fetchrow_array: %s", $sql); - eval { - $sth = $self->{handle}->prepare($sql); - if (scalar(@arguments)) { - $sth->execute(@arguments); - } else { - $sth->execute(); - } - @row = $sth->fetchrow_array(); - }; - if ($@) { - $self->debug(sprintf "bumm %s", $@); - } - if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { - my $simulation = do { local (@ARGV, $/) = - "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; - @row = split(/\s+/, (split(/\n/, $simulation))[0]); - } - return $row[0] unless wantarray; - return @row; -} - -sub fetchall_array { - my $self = shift; - my $sql = shift; - my @arguments = @_; - my $sth = undef; - my $rows = undef; - $self->trace(sprintf "fetchall_array: %s", $sql); - eval { - $sth = $self->{handle}->prepare($sql); - if (scalar(@arguments)) { - $sth->execute(@arguments); - } else { - $sth->execute(); - } - $rows = $sth->fetchall_arrayref(); - }; - if ($@) { - printf STDERR "bumm %s\n", $@; - } - if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { - my $simulation = do { local (@ARGV, $/) = - "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; - @{$rows} = map { [ split(/\s+/, $_) ] } split(/\n/, $simulation); - } - return @{$rows}; -} - -sub func { - my $self = shift; - $self->{handle}->func(@_); -} - -sub execute { - my $self = shift; - my $sql = shift; - eval { - my $sth = $self->{handle}->prepare($sql); - $sth->execute(); - }; - if ($@) { - printf STDERR "bumm %s\n", $@; - } -} - -sub DESTROY { - my $self = shift; - #$self->trace(sprintf "disconnecting DBD %s", - # $self->{handle} ? "with handle" : "without handle"); - #$self->{handle}->disconnect() if $self->{handle}; -} - -1; - - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/Extraopts.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/Extraopts.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/Extraopts.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/Nagios/Extraopts.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,103 +0,0 @@ -package Extraopts; - -use strict; -use File::Basename; -use Data::Dumper; - -sub new { - my $class = shift; - my %params = @_; - my $self = { - file => $params{file}, - commandline => $params{commandline}, - config => {}, - section => 'default_no_section', - }; - bless $self, $class; - $self->prepare_file_and_section(); - $self->init(); - return $self; -} - -sub prepare_file_and_section { - my $self = shift; - if (! defined $self->{file}) { - # ./check_stuff --extra-opts - $self->{section} = basename($0); - $self->{file} = $self->get_default_file(); - } elsif ($self->{file} =~ /^[^@]+$/) { - # ./check_stuff --extra-opts=special_opts - $self->{section} = $self->{file}; - $self->{file} = $self->get_default_file(); - } elsif ($self->{file} =~ /^@(.*)/) { - # ./check_stuff --extra-opts=@/etc/myconfig.ini - $self->{section} = basename($0); - $self->{file} = $1; - } elsif ($self->{file} =~ /^(.*?)@(.*)/) { - # ./check_stuff --extra-opts=special_opts@/etc/myconfig.ini - $self->{section} = $1; - $self->{file} = $2; - } -} - -sub get_default_file { - my $self = shift; - foreach my $default (qw(/etc/nagios/plugins.ini - /usr/local/nagios/etc/plugins.ini - /usr/local/etc/nagios/plugins.ini - /etc/opt/nagios/plugins.ini - /etc/nagios-plugins.ini - /usr/local/etc/nagios-plugins.ini - /etc/opt/nagios-plugins.ini)) { - if (-f $default) { - return $default; - } - } - return undef; -} - -sub init { - my $self = shift; - if (! defined $self->{file}) { - $self->{errors} = sprintf 'no extra-opts file specified and no default file found'; - } elsif (! -f $self->{file}) { - $self->{errors} = sprintf 'could not open %s', $self->{file}; - } else { - my $data = do { local (@ARGV, $/) = $self->{file}; <> }; - my $in_section = 'default_no_section'; - foreach my $line (split(/\n/, $data)) { - if ($line =~ /\[(.*)\]/) { - $in_section = $1; - } elsif ($line =~ /(.*?)\s*=\s*(.*)/) { - $self->{config}->{$in_section}->{$1} = $2; - } - } - } -} - -sub is_valid { - my $self = shift; - return ! exists $self->{errors}; -} - -sub overwrite { - my $self = shift; - my %commandline = (); - if (scalar(keys %{$self->{config}->{default_no_section}}) > 0) { - foreach (keys %{$self->{config}->{default_no_section}}) { - $commandline{$_} = $self->{config}->{default_no_section}->{$_}; - } - } - if (exists $self->{config}->{$self->{section}}) { - foreach (keys %{$self->{config}->{$self->{section}}}) { - $commandline{$_} = $self->{config}->{$self->{section}}->{$_}; - } - } - foreach (keys %commandline) { - if (! exists $self->{commandline}->{$_}) { - $self->{commandline}->{$_} = $commandline{$_}; - } - } -} - - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/subst.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/subst.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/subst.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/plugins-scripts/subst.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,61 +0,0 @@ -#!/usr/bin/awk - -function which(c,path) { - cmd = "test -x " c; - - if (system(cmd)==0) { - return c; - } - - sub(/\/.*\//,"",c); - for (dir in path) { - cmd = "test -x " path[dir] "/" c; - if (system(cmd)==0) { - return path[dir] "/" c; - } - } - - - return c; -} - -# used to replace "use lib utils.pm" with "use lib @libexecdir" -# -function led() { - led1 = "@libexecdir@"; - led2 = "@exec_prefix@"; - led3 = "@prefix@"; - if ( match(led1, /^\$\{exec_prefix\}/ ) != 0 ) { - return "\"" led3 "/libexec\" " ; - - } - return "\"" led1 "\"" ; -} - -BEGIN { - split(ENVIRON["PATH"] ":/sbin:/usr/sbin",path,/:/); - -} - -# scripting language (first line) - -/^#! ?\/.*\/python/ {sub(/^#! ?\/.*\/python/,"#! @PYTHON@");} -/^#! ?\/.*\/perl/ {sub(/^#! ?\/.*\/perl/,"#! @PERL@");} -/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");} -/^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");} - -# add to libexecdir to INC for perl utils.pm -/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } } - - -# Replace the placeholders with the values from configure -/#PERL#/ {sub(/#PERL#/,"@PERL@");} -/#GZIP#/ {sub(/#GZIP#/,"@GZIP@");} -/#STATEFILES_DIR#/ {sub(/#STATEFILES_DIR#/,"@STATEFILES_DIR@");} -/#PACKAGE_VERSION#/ {sub(/#PACKAGE_VERSION#/,"@PACKAGE_VERSION@");} -/#MYMODULES_DYN_DIR#/ {sub(/#MYMODULES_DYN_DIR#/,"@MYMODULES_DYN_DIR@");} - -{ - print; -} - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/README nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/README --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/README 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,135 +0,0 @@ -check_mysql_health Nagios Plugin README ---------------------- - -This plugin is used to monitor a variety of mysql database metrics. - -* For instructions on installing this plugin for use with Nagios, - see below. In addition, generic instructions for the GNU toolchain - can be found in the INSTALL file. - -* For major changes between releases, read the CHANGES file. - -* For information on detailed changes that have been made, - read the Changelog file. - -* This plugin is self documenting. All plugins that comply with - the basic guidelines for development will provide detailed help when - invoked with the '-h' or '--help' options. - -You can check for the latest plugin at: - http://www.consol.com/opensource/nagios/check-mysql-health - -The documentation in this README covers only the most common features. -To view the full documentation and examples, go to - http://www.consol.com/opensource/nagios/check-mysql-health or - http://www.consol.de/opensource/nagios/check-mysql-health - -Send mail to gerhard.lausser@consol.de for assistance. -Please include the OS type/version and the Perl DBI/DBD version -that you are using. -Also, run the plugin with the '-vvv' option and provide the resulting -version information. Of course, there may be additional diagnostic information -required as well. Use good judgment. - -For patch submissions and bug reports, please send me a mail. You can also find -me at http://www.nagios-portal.de - - - - -How to "compile" the check_mysql_health script. --------------------------------------------------------- - -1) Run the configure script to initialize variables and create a Makefile, etc. - - ./configure --prefix=BASEDIRECTORY --with-nagios-user=SOMEUSER --with-nagios-group=SOMEGROUP --with-perl=PATH_TO_PERL --with-statefiles-dir=STATE_PATH - - a) Replace BASEDIRECTORY with the path of the directory under which Nagios - is installed (default is '/usr/local/nagios') - b) Replace SOMEUSER with the name of a user on your system that will be - assigned permissions to the installed plugins (default is 'nagios') - c) Replace SOMEGRP with the name of a group on your system that will be - assigned permissions to the installed plugins (default is 'nagios') - d) Replace PATH_TO_PERL with the path where a perl binary can be found. - Besides the system wide perl you might have installed a private perl - just for the nagios plugins (default is the perl in your path). - e) Replace STATE_PATH with the directory where you want the script to - write state files which transport information from one run to the next. - (default is /tmp) - - Simply running ./configure will be sufficient to create a check_mysql_health - script which you can customize later. - - -2) "Compile" the plugin with the following command: - - make - - This will produce a "check_mysql_health" script. You will also find - a "check_mysql_health.pl" which you better ignore. It is the base for - the compilation filled with placeholders. These will be replaced during - the make process. - - -3) Install the compiled plugin script with the following command: - - make install - - The installation procedure will attempt to place the plugin in a - 'libexec/' subdirectory in the base directory you specified with - the --prefix argument to the configure script. - - -4) Verify that your configuration files for Nagios contains - the correct paths to the new plugin. - - -Command line parameters ------------------------ - ---hostname= - This is what you would also use with tnsping and sqlplus. - ---username= - This is the user which reads the system tables. - ---password= - This is the user's password. - ---mode= - This parameter tells the plugin what it should check. - The list of known modes may grow frequently. Please look at - http://www.consol.com/opensource/nagios/check-mysql-health for a list - of features. - ---warning= - If the metric is out of this range, the plugin returns a warning. - ---critical= - If the metric is out of this range, the plugin returns a critical. - - - -How to prepare the database for monitoring --------------------------------------- - -GRANT USAGE ON *.* TO 'nagios'@'nagiosserver' IDENTIFIED BY 'nagiospassword'; - --------------------------------------- - -That's it. If you have any problems or questions, feel free to send mail -to gerhard.lausser@consol.de - -Please do not send me a mail like this: - -+-------------------------------------------------+ -| I need monitor of database urgent. Please help. | -| Suresh | -+-------------------------------------------------+ - -I will answer you: - -+-------------------------------------------------+ -| A drumm Schelln konnst hom | -| Gerhard | -+-------------------------------------------------+ diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/t/check_mysql_health.t nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/t/check_mysql_health.t --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/t/check_mysql_health.t 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/t/check_mysql_health.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,159 +0,0 @@ -#! /usr/bin/perl -w -I .. -# -# MySQL Database Server Tests via check_mysql_healthdb -# -# -# These are the database permissions required for this test: -# GRANT SELECT ON $db.* TO $user@$host INDENTIFIED BY '$password'; -# GRANT SUPER, REPLICATION CLIENT ON *.* TO $user@$host; -# Check with: -# mysql -u$user -p$password -h$host $db - -use strict; -use Test::More; -use NPTest; - -use vars qw($tests); - -plan skip_all => "check_mysql_health not compiled" unless (-x "./check_mysql_health"); - -plan tests => 51; - -my $bad_login_output = '/Access denied for user /'; -my $mysqlserver = getTestParameter( - "NP_MYSQL_SERVER", - "A MySQL Server with no slaves setup" - ); -my $mysql_login_details = getTestParameter( - "MYSQL_LOGIN_DETAILS", - "Command line parameters to specify login access", - "-u user -ppw -d db", - ); -my $with_slave = getTestParameter( - "NP_MYSQL_WITH_SLAVE", - "MySQL server with slaves setup" - ); -my $with_slave_login = getTestParameter( - "NP_MYSQL_WITH_SLAVE_LOGIN", - "Login details for server with slave", - "-uroot -ppw" - ); - -my $result; -SKIP: { - $result = NPTest->testCmd("./check_mysql_health -V"); - cmp_ok( $result->return_code, '==', 0, "expected result"); - like( $result->output, "/check_mysql_health \\(\\d+\\.\\d+\\)/", "Expected message"); - - $result = NPTest->testCmd("./check_mysql_health --help"); - cmp_ok( $result->return_code, '==', 0, "expected result"); - like( $result->output, "/slave-lag/", "Expected message"); - like( $result->output, "/slave-io-running/", "Expected message"); - like( $result->output, "/slave-sql-running/", "Expected message"); - like( $result->output, "/threads-connected/", "Expected message"); - like( $result->output, "/threadcache-hitrate/", "Expected message"); - like( $result->output, "/querycache-hitrate/", "Expected message"); - like( $result->output, "/keycache-hitrate/", "Expected message"); - like( $result->output, "/bufferpool-hitrate/", "Expected message"); - like( $result->output, "/tablecache-hitrate/", "Expected message"); - like( $result->output, "/table-lock-contention/", "Expected message"); - like( $result->output, "/temp-disk-tables/", "Expected message"); - like( $result->output, "/connection-time/", "Expected message"); - like( $result->output, "/slow-queries/", "Expected message"); - like( $result->output, "/qcache-lowmem-prunes/", "Expected message"); - like( $result->output, "/bufferpool-wait-free/", "Expected message"); - like( $result->output, "/log-waits/", "Expected message"); - -} - -SKIP: { - $result = NPTest->testCmd("./check_mysql_health -H $mysqlserver -m connection-time -u dummy -pdummy"); - cmp_ok( $result->return_code, '==', 2, "Login failure"); - like( $result->output, "/CRITICAL - Cannot connect to database: Error: Access denied/", "Expected login failure message"); - - $result = NPTest->testCmd("./check_mysql_health"); - cmp_ok( $result->return_code, "==", 3, "No mode defined" ); - like( $result->output, "/Must specify a mode/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m connection-time -w 10 -c 30"); - cmp_ok( $result->return_code, "==", 0, "Connected" ); - like( $result->output, "/OK - Connection Time ([0-9\.]+) usecs|connection_time=([0-9\.]+);10;30/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m keycache-hitrate -w :10 -c 2"); - cmp_ok( $result->return_code, "==", 2, "Connected" ); - like( $result->output, "/CRITICAL - Key Cache Hitrate at ([0-9\.]+)%|keycache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m qcache-hitrate -w :10 -c 2"); - cmp_ok( $result->return_code, "==", 2, "Connected" ); - like( $result->output, "/CRITICAL - Query Cache Hitrate at ([0-9\.]+)%|qcache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m qcache-hitrate -w :10 -c 2 -v 2>&1"); - cmp_ok( $result->return_code, "==", 2, "Connected" ); - like( $result->output, "/NOTICE: we have results/", "Verbose output"); - like( $result->output, "/CRITICAL - Query Cache Hitrate at ([0-9\.]+)%|qcache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); - -} - -SKIP: { - my $slow_queries_last = 0; - my $slow_queries = 0; - my $delta = 0; - $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :10 -c 2"); - sleep 1; - $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :10 -c 2 -v 2>&1"); - ok( $result->output =~ /Load variable Slow_queries \(([0-9]+)\) /); - $slow_queries_last = $1; - ok( $result->output =~ /Result column 1 returns value ([0-9]+) /); - $slow_queries = $1; - $delta = $slow_queries - $slow_queries_last; - ok( $result->output =~ /OK - ([0-9]+) slow queries/); - cmp_ok($1, "==", $delta); -} - -SKIP: { - # performance data - $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :11 -c :22 -v 2>&1"); - like( $result->output, "/slow_queries_rate=[0-9\.]+;:11;:22 slow_queries=[0-9]+;:11;:22/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m qcache-lowmem-prunes -w :11 -c :22 -v 2>&1"); - like( $result->output, "/lowmem_prunes_rate=[0-9\.]+;:11;:22 lowmem_prunes=[0-9]+;:11;:22/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m bufferpool-wait-free -w :11 -c :22 -v 2>&1"); - like( $result->output, "/bufferpool_free_waits_rate=[0-9\.]+;:11;:22 bufferpool_free_waits=[0-9]+;:11;:22/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m log-waits -w :11 -c :22 -v 2>&1"); - like( $result->output, "/log_waits_rate=[0-9\.]+;:11;:22 log_waits=[0-9]+;:11;:22/", "Correct error message"); -} - -SKIP: { - skip "Has a slave server", 6 if $with_slave; - - $result = NPTest->testCmd("./check_mysql_health -m slave-lag"); - cmp_ok( $result->return_code, "==", 2, "No slave" ); - like( $result->output, "/CRITICAL - Slave lag NULL|slave_lag=0;10;20/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m slave-io-running"); - cmp_ok( $result->return_code, "==", 2, "No slave" ); - like( $result->output, "/CRITICAL - Slave io not running|slave_io_running=0/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m slave-sql-running"); - cmp_ok( $result->return_code, "==", 2, "No slave" ); - like( $result->output, "/CRITICAL - Slave sql not running|slave_io_running=0/", "Correct error message"); - -} - -SKIP: { - skip "No mysql server with slaves defined", 5 unless $with_slave; - $result = NPTest->testCmd("./check_mysql_health -H $with_slave $with_slave_login"); - cmp_ok( $result->return_code, '==', 0, "Login okay"); - - $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login"); - cmp_ok( $result->return_code, "==", 0, "Slaves okay" ); - - $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login -w 60"); - cmp_ok( $result->return_code, '==', 0, 'Slaves are not > 60 seconds behind'); - - $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login -w 60:"); - cmp_ok( $result->return_code, '==', 1, 'Alert warning if < 60 seconds behind'); - like( $result->output, "/^SLOW_SLAVE WARNING:/", "Output okay"); -} diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/t/Makefile.am nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/t/Makefile.am --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/t/Makefile.am 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/t/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -## -## Process this file with automake to produce Makefile.in -## - -AUTOMAKE_OPTIONS = 1.3 no-dependencies - -#all: tests - -TEST_VERBOSE=0 -TEST_TYPE=test_$(LINKTYPE) -TEST_FILE = test.pl -TEST_FILES = *.t -TESTDB_SW = -d - -#EXTRA_DIST = *.t bin var etc -EXTRA_DIST = *.t - -tests: - $(PERL) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) -# PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) - diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/t/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/t/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/t/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/t/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,297 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = t -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_CLEAN_FILES = -depcomp = -am__depfiles_maybe = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -INSTALL = @INSTALL@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAT = @CAT@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -GREP = @GREP@ -GZIP = @GZIP@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_OPTS = @INSTALL_OPTS@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MYMODULES_DIR = @MYMODULES_DIR@ -MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -RELEASE = @RELEASE@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SH = @SH@ -SHELL = @SHELL@ -STATEFILES_DIR = @STATEFILES_DIR@ -STRIP = @STRIP@ -SUPPORT = @SUPPORT@ -VERSION = @VERSION@ -WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__leading_dot = @am__leading_dot@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -with_nagios_group = @with_nagios_group@ -with_nagios_user = @with_nagios_user@ -AUTOMAKE_OPTIONS = 1.3 no-dependencies - -#all: tests -TEST_VERBOSE = 0 -TEST_TYPE = test_$(LINKTYPE) -TEST_FILE = test.pl -TEST_FILES = *.t -TESTDB_SW = -d - -#EXTRA_DIST = *.t bin var etc -EXTRA_DIST = *.t -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu t/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu t/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - - -tests: - $(PERL) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) -# PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/TODO nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/TODO --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.1.8.2/TODO 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.1.8.2/TODO 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -a lot - -http://blog.it4sport.de/2010/10/10/optimize-table-fallig/ diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/acinclude.m4 nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/acinclude.m4 --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/acinclude.m4 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/acinclude.m4 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,734 @@ +# generated automatically by aclocal 1.14 -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl + +# Copyright (C) 2002-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is '.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. +m4_define([AC_PROG_CC], +m4_defn([AC_PROG_CC]) +[_AM_PROG_CC_C_O +]) + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.65])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[AC_DIAGNOSE([obsolete], + [$0: two- and three-arguments forms are deprecated.]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if( + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + [ok:ok],, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl +]) +AC_REQUIRE([AM_SILENT_RULES])dnl +dnl The testsuite driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) + fi +fi]) + +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST([install_sh])]) + +# Copyright (C) 2003-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it is modern enough. +# If it is, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + AC_MSG_WARN(['missing' script is too old or missing]) +fi +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken + alias in your environment]) + fi + if test "$[2]" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( + [AC_MSG_CHECKING([that generated files are newer than configure]) + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + AC_MSG_RESULT([done])]) +rm -f conftest.file +]) + +# Copyright (C) 2009-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# ("yes" being less verbose, "no" or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], [dnl +AS_HELP_STRING( + [--enable-silent-rules], + [less verbose build output (undo: "make V=1")]) +AS_HELP_STRING( + [--disable-silent-rules], + [verbose build output (undo: "make V=0")])dnl +]) +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using '$V' instead of '$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor 'install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in "make install-strip", and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of 'v7', 'ustar', or 'pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +# +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' + +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + + [m4_case([$1], + [ustar], + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. + # There is notably a 21 bits limit for the UID and the GID. In fact, + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 + # and bug#13588). + am_max_uid=2097151 # 2^21 - 1 + am_max_gid=$am_max_uid + # The $UID and $GID variables are not portable, so we need to resort + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls + # below are definitely unexpected, so allow the users to see them + # (that is, avoid stderr redirection). + am_uid=`id -u || echo unknown` + am_gid=`id -g || echo unknown` + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) + if test $am_uid -le $am_max_uid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) + if test $am_gid -le $am_max_gid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi], + + [pax], + [], + + [m4_fatal([Unknown tar format])]) + + AC_MSG_CHECKING([how to create a $1 tar archive]) + + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_$1-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi + done + rm -rf conftest.dir + + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +# @synopsis ACX_FEATURE(ENABLE_OR_WITH,NAME[,VALUE]) +AC_DEFUN([ACX_FEATURE], + [echo "builtin([substr],[ ],len(--$1-$2))--$1-$2: ifelse($3,,[$]translit($1-$2,-,_),$3)"]) + +# @synopsis ACX_HELP_STRING(OPTION,DESCRIPTION) +AC_DEFUN([ACX_HELP_STRING], + [ $1 builtin([substr],[ ],len($1))[$2]]) + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/aclocal.m4 nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/aclocal.m4 --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/aclocal.m4 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,128 @@ +# generated automatically by aclocal 1.14 -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) + +# Copyright (C) 2002-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.14' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.14], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.14])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAINTAINER_MODE([DEFAULT-MODE]) +# ---------------------------------- +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless 'enable' is passed literally. +# For symmetry, 'disable' may be passed as well. Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), + [enable], [m4_define([am_maintainer_other], [disable])], + [disable], [m4_define([am_maintainer_other], [enable])], + [m4_define([am_maintainer_other], [enable]) + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode's default is 'disable' unless 'enable' is passed + AC_ARG_ENABLE([maintainer-mode], + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], + am_maintainer_other[ make rules and dependencies not useful + (and sometimes confusing) to the casual installer])], + [USE_MAINTAINER_MODE=$enableval], + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST([MAINT])dnl +] +) + +m4_include([acinclude.m4]) diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/AUTHORS nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/AUTHORS --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/AUTHORS 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/AUTHORS 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1 @@ +Gerhard Lausser diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/ChangeLog nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/ChangeLog --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/ChangeLog 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/ChangeLog 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,81 @@ +* 2.2.1 - 2015-08-18 + fix the autoconf m4, so the debian-builds don't fail (thanks Jan Wagner) +* 2.2 - 2015-04-23 + add rfc3986-encoded passwords +* 2.1.9.2 2014-12-22 + bugfix in InnoDB initialization & versions > 5.6.1 (Thanks Jorg Veit) +* 2.1.9.1 2014-06-12 + add connections_aborted, open_files to the pnp template (Thanks Simon Meggle) +* 2.1.9 2014-06-12 + bugfix in pnp template (Thanks Simon Meggle) + bugfix in qcache calculation (Thanks lermit) +* 2.1.8.4 2014-04-01 + implement --negate old_level=new_level + allow floating point numbers in thresholds +* 2.1.8.3 2012-10-15 + output also ok-messages for my-modes +* 2.1.8.2 2012-08-08 + bugfix in querycache-hitrate (div by 0 after db restart). (Thanks Gianluca Varisco) +* 2.1.8.1 2012-01-21 + bugfix in timeout-alarm handling under windows + fix warnings for newest perl versions +* 2.1.8 2011-09-29 + new parameters --mycnf and --mycnfgroup + single ticks around the --name argument under Windows CMD will be removed auto +matically +* 2.1.7 2011-08-23 + innodb modes now detect problems with the innodb engine +* 2.1.6 2011-08-12 + fix a bug with statefilesdir and capital letters + add --labelformat so that groundwork no longer complains (max label length is 19 characters) +* 2.1.5.2 2011-06-03 + sites in an OMD (http://omdistro.org) environment have now private statefile directories +* 2.1.5.1 2011-01-03 + bugfix in --mode sql (numeric vs. regexp result) +* 2.1.5 2010-12-20 + fixed a division by zero bug in index-usage (Thanks Wiltmut Gerdes) + fixed a severe bug when loading dynamic extensions (Thanks Ralph Schneider) + added mode table-fragmentation + fixed a bug in table-lock-contention (thanks mayukmok00) + mode sql can now have a non-numerical output which is compared to a string/regexp + new parameter --dbthresholds + new mode report can be used to output only the bad news (short,long,html) +* 2.1.4 2010-10-02 + added modes threads-created, threads-running, threads-cached + added connects-aborted, clients-aborted +* 2.1.3 2010-09-29 + added mode open-files + fix a bug in the pnp template + add extra-opts +* 2.1.2 2010-06-10 + changed statements for 4.x compatibility (show variables like) (Thanks Florian) +* 2.1.1 2010-03-30 + added more tracing (touch /tmp/check_mysql_health.trace to watch) + fixed a bug in master-slave modes, so it outputs a more meaningful error message (Thanks Will Oberman) + fixed a typo (Thanks Larsen) +* 2.1 + parameter --lookback uses custom intervals for _now-values +* 2.0.5 2009-09-21 + fixed another bug in master-slave modes. (Thanks Thomas Mueller) + fixed a bug in bufferpool-wait-free. (Thanks Matthias Flacke) + fixed a bug in the PNP template. (Thanks Matthias Flacke) + slave-lag now handles failed io threads. (Thanks Greg) + fixed a bug in connections with non-standard sockets (Thanks Stephan Huiser) +* 2.0.4 + fixed a bug in --mode cluster-ndbd-running where dead api nodes were overseen + fixed a bug in master-slave modes. (Thanks Arkadiusz Miskiewicz) +* 2.0.3 + fixed a bug with 0 warning/critical + fixed a bug in long-running-procs (affects only mysql 5.0 and below). (Thanks Bodo Schulz) +* 2.0.2 + $NAGIOS__HOSTMYSQL_HOST etc. is now possible +* 2.0.1 2009-03-09 + fixed a (harmless) bug which caused uninitialized-messages. (Thanks John Alberts & Thomas Borger) + enabled password-less login to localhost. +* 2.0 2009-03-06 + This is the first release of the new plugin check_mysql_health + It replaces check_mysql_perf which is a nightmare to install + It is written in Perl + It can use either DBD::mysql, the mysql command or DBD::SQLrelay + It can monitor mysql clusters (the ndb stuff) + It can execute custom sql statements diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/config.guess nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/config.guess --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/config.guess 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/config.guess 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,1558 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright 1992-2013 Free Software Foundation, Inc. + +timestamp='2013-06-10' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD +# +# Please send patches with a ChangeLog entry to config-patches@gnu.org. + + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright 1992-2013 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + or1k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + or32:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + fi + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; +esac + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/config.sub nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/config.sub --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/config.sub 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/config.sub 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,1788 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright 1992-2013 Free Software Foundation, Inc. + +timestamp='2013-04-24' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). + + +# Please send patches with a ChangeLog entry to config-patches@gnu.org. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright 1992-2013 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze*) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | be32 | be64 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | epiphany \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ + | ns16k | ns32k \ + | open8 \ + | or1k | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pyramid \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ + | we32k \ + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pyramid-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze*) + basic_machine=microblaze-xilinx + ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i386-pc + os=-msys + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc | ppcbe) basic_machine=powerpc-unknown + ;; + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or1k-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/configure nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/configure --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/configure 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/configure 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,4190 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for check_mysql_health 2.2.1. +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='check_mysql_health' +PACKAGE_TARNAME='check_mysql_health' +PACKAGE_VERSION='2.2.1' +PACKAGE_STRING='check_mysql_health 2.2.1' +PACKAGE_BUGREPORT='' +PACKAGE_URL='' + +ac_default_prefix=/usr/local/nagios +ac_subst_vars='LTLIBOBJS +LIBOBJS +GZIP +PERL +SH +CAT +GREP +SED +ECHO +INSTALL +MYMODULES_DYN_DIR +MYMODULES_DIR +STATEFILES_DIR +INSTALL_OPTS +with_nagios_group +with_nagios_user +SUPPORT +WARRANTY +RELEASE +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +MAINT +MAINTAINER_MODE_FALSE +MAINTAINER_MODE_TRUE +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_maintainer_mode +with_nagios_user +with_nagios_group +with_statefiles_dir +with_mymodules_dir +with_mymodules_dyn_dir +with_perl +' + ac_precious_vars='build_alias +host_alias +target_alias' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures check_mysql_health 2.2.1 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root + [DATAROOTDIR/doc/check_mysql_health] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of check_mysql_health 2.2.1:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --enable-maintainer-mode + enable make rules and dependencies not useful (and + sometimes confusing) to the casual installer + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-nagios-user=USER set user name to run nagios + --with-nagios-group=GROUP set group name to run nagios + --with-statefiles-dir=PATH sets directory for the state files (default=/var/tmp/check_mysql_health) + --with-mymodules-dir=PATH sets directory for own extensions which will be included during the build process (default=/usr/local/nagios/libexec) + --with-mymodules-dyn-dir=PATH sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec) + --with-perl=PATH sets path to perl executable + +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +check_mysql_health configure 2.2.1 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by check_mysql_health $as_me 2.2.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +am__api_version='1.14' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='check_mysql_health' + VERSION='2.2.1' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 +$as_echo_n "checking how to create a pax tar archive... " >&6; } + + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_pax-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + { echo "$as_me:$LINENO: $_am_tar --version" >&5 + ($_am_tar --version) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && break + done + am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x pax -w "$$tardir"' + am__tar_='pax -L -x pax -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H pax -L' + am__tar_='find "$tardir" -print | cpio -o -H pax -L' + am__untar='cpio -i -H pax -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_pax}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 + (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + rm -rf conftest.dir + if test -s conftest.tar; then + { echo "$as_me:$LINENO: $am__untar &5 + ($am__untar &5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 + (cat conftest.dir/file) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break + fi + done + rm -rf conftest.dir + + if ${am_cv_prog_tar_pax+:} false; then : + $as_echo_n "(cached) " >&6 +else + am_cv_prog_tar_pax=$_am_tool +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 +$as_echo "$am_cv_prog_tar_pax" >&6; } + + + + + + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } + # Check whether --enable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then : + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval +else + USE_MAINTAINER_MODE=no +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 +$as_echo "$USE_MAINTAINER_MODE" >&6; } + if test $USE_MAINTAINER_MODE = yes; then + MAINTAINER_MODE_TRUE= + MAINTAINER_MODE_FALSE='#' +else + MAINTAINER_MODE_TRUE='#' + MAINTAINER_MODE_FALSE= +fi + + MAINT=$MAINTAINER_MODE_TRUE + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +RELEASE=1 + + + + +WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" + + +SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" + + + +# Check whether --with-nagios_user was given. +if test "${with_nagios_user+set}" = set; then : + withval=$with_nagios_user; with_nagios_user=$withval +else + with_nagios_user=nagios +fi + + +# Check whether --with-nagios_group was given. +if test "${with_nagios_group+set}" = set; then : + withval=$with_nagios_group; with_nagios_group=$withval +else + with_nagios_group=nagios +fi + + + +INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" + + + +# Check whether --with-statefiles_dir was given. +if test "${with_statefiles_dir+set}" = set; then : + withval=$with_statefiles_dir; with_statefiles_dir=$withval +else + with_statefiles_dir=/var/tmp/check_mysql_health +fi + +STATEFILES_DIR=$with_statefiles_dir + +echo variable with_statefiles_dir is $with_statefiles_dir + + +# Check whether --with-mymodules_dir was given. +if test "${with_mymodules_dir+set}" = set; then : + withval=$with_mymodules_dir; with_mymodules_dir=$withval +else + with_mymodules_dir=/usr/local/nagios/libexec +fi + +MYMODULES_DIR=$with_mymodules_dir + +echo variable with_mymodules_dir is $with_mymodules_dir + + +# Check whether --with-mymodules_dyn_dir was given. +if test "${with_mymodules_dyn_dir+set}" = set; then : + withval=$with_mymodules_dyn_dir; with_mymodules_dyn_dir=$withval +else + with_mymodules_dyn_dir=/usr/local/nagios/libexec +fi + +MYMODULES_DYN_DIR=$with_mymodules_dyn_dir + +echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir + + +EXTRAS= +# PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH + + +# Checks for programs. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +# Figure out how to invoke "install" and what install options to use. + + +# Extract the first word of "echo", so it can be a program name with args. +set dummy echo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ECHO+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ECHO in + [\\/]* | ?:[\\/]*) + ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ECHO=$ac_cv_path_ECHO +if test -n "$ECHO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 +$as_echo "$ECHO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "sed", so it can be a program name with args. +set dummy sed; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SED in + [\\/]* | ?:[\\/]*) + ac_cv_path_SED="$SED" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SED=$ac_cv_path_SED +if test -n "$SED"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "grep", so it can be a program name with args. +set dummy grep; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GREP in + [\\/]* | ?:[\\/]*) + ac_cv_path_GREP="$GREP" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +GREP=$ac_cv_path_GREP +if test -n "$GREP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 +$as_echo "$GREP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "cat", so it can be a program name with args. +set dummy cat; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_CAT+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $CAT in + [\\/]* | ?:[\\/]*) + ac_cv_path_CAT="$CAT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +CAT=$ac_cv_path_CAT +if test -n "$CAT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 +$as_echo "$CAT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "sh", so it can be a program name with args. +set dummy sh; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SH+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $SH in + [\\/]* | ?:[\\/]*) + ac_cv_path_SH="$SH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +SH=$ac_cv_path_SH +if test -n "$SH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 +$as_echo "$SH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gzip", so it can be a program name with args. +set dummy gzip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GZIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GZIP in + [\\/]* | ?:[\\/]*) + ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +GZIP=$ac_cv_path_GZIP +if test -n "$GZIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 +$as_echo "$GZIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +for ac_prog in gawk nawk /usr/xpg4/bin/awk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $AWK in + [\\/]* | ?:[\\/]*) + ac_cv_path_AWK="$AWK" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +AWK=$ac_cv_path_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +# allow them to override the path of perl + +# Check whether --with-perl was given. +if test "${with_perl+set}" = set; then : + withval=$with_perl; with_perl=$withval +else + with_perl=$PERL +fi + +PERL=$with_perl + + +# Checks for libraries. + +# Checks for header files. + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +ac_config_files="$ac_config_files Makefile plugins-scripts/Makefile plugins-scripts/subst t/Makefile" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} +t clear +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +t quote +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +t quote +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` + + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by check_mysql_health $as_me 2.2.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Report bugs to the package provider." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +check_mysql_health config.status 2.2.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "plugins-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;; + "plugins-scripts/subst") CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;; + "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + + +eval set X " :F $CONFIG_FILES " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + + + + esac + +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + +echo " --with-perl: $with_perl" +echo " --with-statefiles-dir: $with_statefiles_dir" +echo " --with-nagios-user: $with_nagios_user" +echo " --with-nagios-group: $with_nagios_group" +echo " --with-mymodules-dir: $with_mymodules_dir" +echo " --with-mymodules-dyn-dir: $with_mymodules_dyn_dir" + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/configure.ac nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/configure.ac --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/configure.ac 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/configure.ac 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,103 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT(check_mysql_health,2.2.1) +AM_INIT_AUTOMAKE([1.9 tar-pax]) +AM_MAINTAINER_MODE([disable]) +AC_CANONICAL_HOST +RELEASE=1 +AC_SUBST(RELEASE) + +AC_PREFIX_DEFAULT(/usr/local/nagios) + +WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" +AC_SUBST(WARRANTY) + +SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" +AC_SUBST(SUPPORT) + +AC_ARG_WITH(nagios_user, + ACX_HELP_STRING([--with-nagios-user=USER], + [set user name to run nagios]), + with_nagios_user=$withval, + with_nagios_user=nagios) +AC_ARG_WITH(nagios_group, + ACX_HELP_STRING([--with-nagios-group=GROUP], + [set group name to run nagios]), + with_nagios_group=$withval, + with_nagios_group=nagios) +AC_SUBST(with_nagios_user) +AC_SUBST(with_nagios_group) +INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" +AC_SUBST(INSTALL_OPTS) + +AC_ARG_WITH(statefiles_dir, + ACX_HELP_STRING([--with-statefiles-dir=PATH], + [sets directory for the state files (default=/var/tmp/check_mysql_health)]), + with_statefiles_dir=$withval, + with_statefiles_dir=/var/tmp/check_mysql_health) +AC_SUBST(STATEFILES_DIR, $with_statefiles_dir) +echo variable with_statefiles_dir is $with_statefiles_dir + +AC_ARG_WITH(mymodules_dir, + ACX_HELP_STRING([--with-mymodules-dir=PATH], + [sets directory for own extensions which will be included during the build process (default=/usr/local/nagios/libexec)]), + with_mymodules_dir=$withval, + with_mymodules_dir=/usr/local/nagios/libexec) +AC_SUBST(MYMODULES_DIR, $with_mymodules_dir) +echo variable with_mymodules_dir is $with_mymodules_dir + +AC_ARG_WITH(mymodules_dyn_dir, + ACX_HELP_STRING([--with-mymodules-dyn-dir=PATH], + [sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec)]), + with_mymodules_dyn_dir=$withval, + with_mymodules_dyn_dir=/usr/local/nagios/libexec) +AC_SUBST(MYMODULES_DYN_DIR, $with_mymodules_dyn_dir) +echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir + + +EXTRAS= +# PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH + + +# Checks for programs. +AC_PROG_MAKE_SET +# Figure out how to invoke "install" and what install options to use. +AC_PROG_INSTALL +AC_SUBST(INSTALL) +AC_PATH_PROG(ECHO,echo) +AC_PATH_PROG(SED,sed) +AC_PATH_PROG(GREP,grep) +AC_PATH_PROG(CAT,cat) +AC_PATH_PROG(SH,sh) +AC_PATH_PROG(PERL,perl) +AC_PATH_PROG(GZIP,gzip) +AC_PATH_PROGS(AWK,gawk nawk /usr/xpg4/bin/awk awk) +# allow them to override the path of perl +AC_ARG_WITH(perl, + ACX_HELP_STRING([--with-perl=PATH], + [sets path to perl executable]), + with_perl=$withval,with_perl=$PERL) +AC_SUBST(PERL, $with_perl) + +# Checks for libraries. + +# Checks for header files. + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +AC_CONFIG_FILES([Makefile + plugins-scripts/Makefile + plugins-scripts/subst + t/Makefile]) +AC_OUTPUT +ACX_FEATURE([with],[perl]) +ACX_FEATURE([with],[statefiles-dir]) +ACX_FEATURE([with],[nagios-user]) +ACX_FEATURE([with],[nagios-group]) +ACX_FEATURE([with],[mymodules-dir]) +ACX_FEATURE([with],[mymodules-dyn-dir]) + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/contrib/CheckMySQLHealthExt1.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/contrib/CheckMySQLHealthExt1.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/contrib/CheckMySQLHealthExt1.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/contrib/CheckMySQLHealthExt1.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,68 @@ +package MyQueue; + +our @ISA = qw(DBD::MySQL::Server); + +sub init { + my $self = shift; + my %params = @_; + $self->{running} = 0; + $self->{waiting} = 0; + $self->{held} = 20; + $self->{cancelled} = 0; + $self->{length} = 100; + if ($params{mode} =~ /my::queue::status/) { + ($self->{running}, $self->{waiting}, $self->{held}, $self->{cancelled}) = + $self->{handle}->fetchrow_array(q{ + SELECT COUNT(*) FROM queues WHERE + status IN ('running', 'waiting', 'held', 'cancelled') + GROUP BY status + }); + } elsif ($params{mode} =~ /my::queue::length/) { + $self->{length} = $self->{handle}->fetchrow_array(q{ + SELECT COUNT(*) FROM queues + }); + } elsif ($params{mode} =~ /my::queue::througput/) { + $self->{processed_items} = $self->{handle}->fetchrow_array(q{ + SELECT processed FROM queue_status + }); + $self->valdiff(\%params, qw(processed_items)); + # this automatically creates + # $self->{delta_timestamp} + # the time in seconds since the last run of check_mysql_health + # $self->{delta_processed_items} + # the difference between processed_items now and + # processed_items when check_mysql_health was run last time + $self->{throughput} = $self->{delta_processed_items} / $self->{delta_timestamp}; + } else { + } +} + +sub nagios { + my $self = shift; + my %params = @_; + if ($params{mode} =~ /my::queue::status/) { + if ($self->{held} > 10 || $self->{cancelled} > 10) { + $self->add_nagios_critical("more than 10 queues are held or cancelled"); + } elsif ($self->{waiting} > 20 && $self->{running} < 3) { + $self->add_nagios_warning("more than 20 queues are waiting and less than 3 queues are running"); + } else { + $self->add_nagios_ok("queues are running normal"); + } + $self->add_perfdata(sprintf "held=%d cancelled=%d waiting=%d running=%d", + $self->{running}, $self->{waiting}, $self->{held}, $self->{cancelled}); + } elsif ($params{mode} =~ /my::queue::length/) { + $self->add_nagios( + $self->check_thresholds($self->{length}, 100, 500), + sprintf "queue length is %d", $self->{length}); + $self->add_perfdata(sprintf "queuelen=%d;%d;%d", + $self->{length}, $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /my::queue::througput/) { + $self->add_nagios( + $self->check_thresholds($self->{throughput}, "50:", "10:"), + sprintf "queue throughput is %d", $self->{throughput}); + $self->add_perfdata(sprintf "throughput=%.2f;%d;%d", + $self->{throughput}, $self->{warningrange}, $self->{criticalrange}); + } else { + $self->add_nagios_unknown("unknown mode"); + } +} diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/contrib/check_mysql_health.php nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/contrib/check_mysql_health.php --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/contrib/check_mysql_health.php 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/contrib/check_mysql_health.php 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,370 @@ +60s) on $hostname\" "; + $def[$defcnt] = ""; + $def[$defcnt] .= "DEF:longrun=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:longrun#111111 "; + $def[$defcnt] .= "VDEF:vlongrun=longrun,LAST " ; + $def[$defcnt] .= "GPRINT:vlongrun:\"%.0lf long running processes \" " ; + $defcnt++; + } + if(preg_match('/^keycache_hitrate_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "MyISAM key cache hitrate"; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"MyISAM key cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^keycache_hitrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE1.5:hitrate#111111:\" \" "; + $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; + $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; + } + if(preg_match('/^keycache_hitrate_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; + $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; + } + } + $defcnt++; + } + if(preg_match('/^qcache_hitrate_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "Query cache hitrate"; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Query cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^qcache_hitrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE1.5:hitrate#111111:\" \" "; + $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; + $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; + } + if(preg_match('/^qcache_hitrate_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; + $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; + } + } + $defcnt++; + $ds_name[$defcnt] = "Selects per second"; + $opt[$defcnt] = "--vertical-label \"Selects / sec\" --title \"Selects per second on $hostname\" "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^selects_per_sec$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:sps=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:sps#$now:\" \" "; + $def[$defcnt] .= "VDEF:vsps=sps,LAST " ; + $def[$defcnt] .= "GPRINT:vsps:\"%3.2lf Selects per second \\n\" "; + } + } + $defcnt++; + } + if(preg_match('/^qcache_lowmem_prunes_rate$/', $NAME[$i])) { + $ds_name[$defcnt] = "Query cache low memory prunes"; + $opt[$defcnt] = "--vertical-label \"Prunes / sec\" --title \"Query cache low mem prunes on $hostname\" "; + $def[$defcnt] = ""; + $def[$defcnt] .= "DEF:prunes=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:prunes#111111 "; + $def[$defcnt] .= "VDEF:vprunes=prunes,LAST " ; + $def[$defcnt] .= "GPRINT:vprunes:\"Rate is %3.2lf Prunes / Second \" " ; + $defcnt++; + } + if(preg_match('/^slow_queries_rate$/', $NAME[$i])) { + $ds_name[$defcnt] = "Slow query rate"; + $opt[$defcnt] = "--vertical-label \"Slow queries / sec\" --title \"Slow queries on $hostname\" "; + $def[$defcnt] = ""; + $def[$defcnt] .= "DEF:prunes=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:prunes#111111 "; + $def[$defcnt] .= "VDEF:vprunes=prunes,LAST " ; + $def[$defcnt] .= "GPRINT:vprunes:\"%3.2lf Slow queries / Second \" " ; + $defcnt++; + } + if(preg_match('/^tablelock_contention_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "Table lock contention"; + # set upper limit to 10, because 3 means an already dead database + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Table lock contention on $hostname\" --upper-limit 10 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^tablelock_contention$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:tbllckcont=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ag=tbllckcont,$WARN[$ii],LE,tbllckcont,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; + $def[$defcnt] .= "CDEF:ay=tbllckcont,$CRIT[$ii],LE,tbllckcont,$WARN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; + $def[$defcnt] .= "CDEF:ar=tbllckcont,100,LE,tbllckcont,$CRIT[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE:tbllckcont#111111:\" \" "; + $def[$defcnt] .= "VDEF:vtbllckcont=tbllckcont,LAST " ; + $def[$defcnt] .= "GPRINT:vtbllckcont:\"Lock contention (since epoch) is %3.2lf%%\\n\" " ; + } + if(preg_match('/^tablelock_contention_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:tbllckcontnow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:tbllckcontnow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vtbllckcontnow=tbllckcontnow,LAST " ; + $def[$defcnt] .= "GPRINT:vtbllckcontnow:\"Lock contention (current) is %3.2lf%%\" "; + } + } + $defcnt++; + } + if(preg_match('/^tablecache_fillrate$/', $NAME[$i])) { + $ds_name[$defcnt] = "Table cache hitrate"; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Table cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^tablecache_hitrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE:hitrate#111111:\" \" "; + $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; + $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio is %3.2lf percent \\n\" "; + } + if(preg_match('/^tablecache_fillrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; + $def[$defcnt] .= "GPRINT:vhitratenow:\"%3.2lf%% of the cache is filled \\n\" "; + } + } + $defcnt++; + } + if(preg_match('/^pct_tmp_table_on_disk_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "Temporary tables created on disk "; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Temporary tables created on disk on $hostname\" --upper-limit 10 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^pct_tmp_table_on_disk$/', $NAME[$ii])) { + + $def[$defcnt] .= "DEF:tmptbldsk=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ag=tmptbldsk,$WARN[$ii],LE,tmptbldsk,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; + $def[$defcnt] .= "CDEF:ay=tmptbldsk,$CRIT[$ii],LE,tmptbldsk,$WARN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; + $def[$defcnt] .= "CDEF:ar=tmptbldsk,100,LE,tmptbldsk,$CRIT[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE:tmptbldsk#111111:\" \" "; + $def[$defcnt] .= "VDEF:vtmptbldsk=tmptbldsk,LAST " ; + $def[$defcnt] .= "GPRINT:vtmptbldsk:\"%3.2lf percent of temp tables were created on disk (since epoch)\\n\" " ; + } + if(preg_match('/^pct_tmp_table_on_disk_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:tmptbldsknow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:tmptbldsknow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vtmptbldsknow=tmptbldsknow,LAST " ; + $def[$defcnt] .= "GPRINT:vtmptbldsknow:\"%3.2lf percent of temp tables were created on disk (recently)\\n\" " ; + } + } + $defcnt++; + } + if(preg_match('/^thread_cache_hitrate_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "Thread cache hitrate"; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Thread cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^thread_cache_hitrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE:hitrate#111111:\" \" "; + $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; + $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; + } + if(preg_match('/^thread_cache_hitrate_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; + $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; + } + } + $defcnt++; + $ds_name[$defcnt] = "Connects per second"; + $opt[$defcnt] = "--vertical-label \"Conects / sec\" --title \"Connects per second on $hostname\" "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^connections_per_sec$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:sps=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:sps#$now:\" \" "; + $def[$defcnt] .= "VDEF:vsps=sps,LAST " ; + $def[$defcnt] .= "GPRINT:vsps:\"%3.2lf Connects per second \\n\" "; + } + } + $defcnt++; + } + if(preg_match('/^threads_connected$/', $NAME[$i])) { + $ds_name[$defcnt] = "Connection threads"; + $opt[$defcnt] = "--vertical-label \"Threads\" --title \"Connection threads on $hostname\" "; + $def[$defcnt] = ""; + $def[$defcnt] .= "DEF:threads=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:threads#111111 "; + $def[$defcnt] .= "VDEF:vthreads=threads,LAST " ; + $def[$defcnt] .= "GPRINT:vthreads:\"%.0lf Connection threads \" " ; + $defcnt++; + } +} +?> + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/contrib/README.my-extensions nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/contrib/README.my-extensions --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/contrib/README.my-extensions 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/contrib/README.my-extensions 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,139 @@ +# you will find instructions how to write extensions here + +Self-written code is addressed by using a mode which starts with my- +--mode=my-thing-does ? + +check_mysql_health will then look for a package named MyThing. + +So you first have to write a Module which describes MyThing. Such a thing iinherits from DBD::MySQL::Server and needs two methods: init and nagios. + +Start with a file called CheckMySQLHealthExt1.pm and skeleton code: + +################################################### +package MyThing; + +our @ISA = qw(DBD::MySQL::Server); + +sub init { + my $self = shift; + my %params = @_; +} + +sub nagios { + my $self = shift; + my %params = @_; +} +################################################### + +When you call check_mysql_health with --mode=my-thing-does, it will +- create a DBD::MySQL::Server object + $obj = DBD::MySQL::Server->new() +- connect to the database + $obj->connect() +- re-bless the object + bless $obj, "MyThing" +- call $obj->init() +- if that was ok, call $obj->nagios() + + +So you need to write code which +- initializes the parameters you want to check +- calculates the nagios result from these parameters + +For your convenience there are some predefined methods and variables: + +Variable $self + $self is a hash-based object of type My::Thing + You can pass metrics from the init() method to the nagios() method by + adding attributes to the hash. + One important predefined attribute is $self->{handle} which points to + a database Connection object. You surely will use this. + +Variable %params + $params{mode} contains the string you passed to the + --mode command line parameter, only with the "-" replaced by "::". + In the above example it will be "my::thing::does". + Because you can have only one init() method for your MyThing object but + more than one related modes (my-thing-does, my-thing-length, my-thing-rate) + you use $params{mode} for branching in your code. (see the example file) + +Method add_nagios + $self->add_nagios(1, "i warn you"); + This method can be called several times. The messages will be concatenated. + The first parameter is one of 0..3 and sets the nagios level. The worst level + among several calls to add_nagios will determine the plugin's exit code. + +Method add_nagios_[ok|warning|critical|unknown] + $self->add_nagios_critical("i warned you!!! now it's too late"); + $self->add_nagios_ok("everything is ok. i am the exit message"); + These methods are wrappers for add_nagios which make your code more readable. + +Method add_perfdata + $self->add_perfdata("metric1=0 metric2=100"); + $self->add_perfdata("metric3=0); + $self->add_perfdata(sprintf "metric_xy=%d", $self->{xy}); + You can call add_perfdata as often as you like. + The strings will be concatenated. + +Method valdiff + $self->valdiff(\%params, qw(metric1 metric2)); + Use this if you want to know how a metric has changed since the last run + of check_mysql_health. + Provided you have attributes metric1 and metric2 this method will create + new attributes for your $self object. + $self->{delta_metric1} which is the difference between the value of + $self->{metric1} during the current run and $self->{metric1} during the + last run. + $self->{delta_timestamp} which is the number of seconds which passed + since the last run of check_mysql_health. + If you have ever-growing values, you can simply calculate the rate: + $self->{metric1_per_second} = $self->{delta_metric1} / $self->{delta_timestamp} + The valdiff method will automatically save the current value to a state file + and read the past value from this file. + If you used the --name parameter which appears as $params{name} in your code + then you probably need to separate the saved values from each other. Otherwise + name1 would read the same saved value as name2. They would overwrite the + saved values. Use $params{differentiator} to use different state files. + $params{differenciator} = lc $self->{name}; + $self->valdiff(\%params, qw(gets misses)); + +Method fetchrow_array + my($column1, $column2) = $self->{handle}->fetchrow_array(q{ + SELECT col1, col2 FROM table1 where col1 = 'val1' + }); + $self->{connected_users} = $self->{handle}->fetchrow_array(q{ + SELECT COUNT(*) FROM v$session WHERE type = 'USER' + }); + This method is used like the Perl DBI method fetchrow_array. + + +Method fetchall_array + my @results = $self->{handle}->fetchall_array(q{ + SELECT col1, col2, col3 FROM table1 + }); + foreach (@results) { + my($column1, $column2, $column3) = @{$_}; + ... + } + This method is used like the Perl DBI method fetchall_array. + + + + +Now you have written your first extension to check_mysql_health. Maybe you +just modified the example file contrib/CheckMySQLHealthExt1.pm +There are two methods how to import your own code into check_mysql_health: + +- the static method +with ./configure --with-mymodules-dir= parameter you build a plugin which +contains both my code and your code in a single file. When you call "make" +every file in which matches CheckMySQLHealthExt*.pm is appended +to the final plugin check_mysql_health. + +- the dynamic method +with ./configure --with-mymodules-dyn-dir= you build a plugin which will +search at runtime the for files matching CheckMySQLHealthExt*.pm and +import them. This way you can have different extensions on different hosts. +You also can modify your extension without having to rebuild the plugin. +On the other hand you have to distribute your extensions along with the plugin. + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/COPYING nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/COPYING --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/COPYING 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/COPYING 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/INSTALL nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/INSTALL --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/INSTALL 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/INSTALL 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,233 @@ +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2008 Free Software +Foundation, Inc. + + This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have to compile the package for one architecture at a +time in the source code directory. After you have installed the +package for one architecture, use `make distclean' before reconfiguring +for another architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=PATH' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the `--target=TYPE' option to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +will cause the specified gcc to be used as the C compiler (unless it is +overridden in the site shell script). + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + +Joerg +===== + +Na, hast du alles brav durchgelesen? diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/install-sh nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/install-sh --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/install-sh 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/install-sh 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,527 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2011-11-20.07; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# 'make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +nl=' +' +IFS=" "" $nl" + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +no_target_directory= + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/Makefile.am nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/Makefile.am --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/Makefile.am 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/Makefile.am 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,13 @@ +## Process this file with automake to produce Makefile.in + +# find . \( -type d -and -name .svn -and -prune \) -or -type f -exec fromdos -v {} \; + +SUBDIRS = plugins-scripts t +EXTRA_DIST = contrib + +dist-hook: + rm -f t/var/tmp/* + rm -f t/var/adm/* + find $(distdir) -depth -name .svn -exec rm -rf {} \; + find $(distdir) -type f -exec fromdos -v {} \; + make diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/Makefile.in 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,760 @@ +# Makefile.in generated by automake 1.14 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# find . \( -type d -and -name .svn -and -prune \) -or -type f -exec fromdos -v {} \; +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = . +DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ + $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/configure $(am__configure_deps) COPYING TODO \ + config.guess config.sub install-sh missing +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope distdir dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +CSCOPE = cscope +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__post_remove_distdir = $(am__remove_distdir) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +DIST_TARGETS = dist-gzip +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CAT = @CAT@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +GREP = @GREP@ +GZIP = @GZIP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_OPTS = @INSTALL_OPTS@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MYMODULES_DIR = @MYMODULES_DIR@ +MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +RELEASE = @RELEASE@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SH = @SH@ +SHELL = @SHELL@ +STATEFILES_DIR = @STATEFILES_DIR@ +STRIP = @STRIP@ +SUPPORT = @SUPPORT@ +VERSION = @VERSION@ +WARRANTY = @WARRANTY@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +with_nagios_group = @with_nagios_group@ +with_nagios_user = @with_nagios_user@ +SUBDIRS = plugins-scripts t +EXTRA_DIST = contrib +all: all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: + -rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__post_remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__post_remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__post_remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__post_remove_distdir) + +dist-tarZ: distdir + @echo WARNING: "Support for shar distribution archives is" \ + "deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__post_remove_distdir) + +dist-shar: distdir + @echo WARNING: "Support for distribution archives compressed with" \ + "legacy program 'compress' is deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__post_remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__post_remove_distdir) + +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__post_remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(am__recursive_targets) install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--refresh check check-am clean clean-cscope clean-generic \ + cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ + dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \ + dist-zip distcheck distclean distclean-generic distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags tags-am uninstall uninstall-am + + +dist-hook: + rm -f t/var/tmp/* + rm -f t/var/adm/* + find $(distdir) -depth -name .svn -exec rm -rf {} \; + find $(distdir) -type f -exec fromdos -v {} \; + make + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/missing nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/missing --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/missing 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/missing 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,215 @@ +#! /bin/sh +# Common wrapper for a few potentially missing GNU programs. + +scriptversion=2012-06-26.16; # UTC + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try '$0 --help' for more information" + exit 1 +fi + +case $1 in + + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; + + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + +Supported PROGRAM values: + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man + +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: unknown '$1' option" + echo 1>&2 "Try '$0 --help' for more information" + exit 1 + ;; + +esac + +# Run the given program, remember its exit status. +"$@"; st=$? + +# If it succeeded, we are done. +test $st -eq 0 && exit 0 + +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch. This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then + msg="probably too old" +elif test $st -eq 127; then + # Program was missing. + msg="missing on your system" +else + # Program was found and executed, but failed. Give up. + exit $st +fi + +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ + case $1 in + aclocal|automake) + echo "The '$1' program is part of the GNU Automake package:" + echo "<$gnu_software_URL/automake>" + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/autoconf>" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + autoconf|autom4te|autoheader) + echo "The '$1' program is part of the GNU Autoconf package:" + echo "<$gnu_software_URL/autoconf/>" + echo "It also requires GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + esac +} + +give_advice () +{ + # Normalize program name to check for. + normalized_program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + + printf '%s\n' "'$1' is $msg." + + configure_deps="'configure.ac' or m4 files included by 'configure.ac'" + case $normalized_program in + autoconf*) + echo "You should only need it if you modified 'configure.ac'," + echo "or m4 files included by it." + program_details 'autoconf' + ;; + autoheader*) + echo "You should only need it if you modified 'acconfig.h' or" + echo "$configure_deps." + program_details 'autoheader' + ;; + automake*) + echo "You should only need it if you modified 'Makefile.am' or" + echo "$configure_deps." + program_details 'automake' + ;; + aclocal*) + echo "You should only need it if you modified 'acinclude.m4' or" + echo "$configure_deps." + program_details 'aclocal' + ;; + autom4te*) + echo "You might have modified some maintainer files that require" + echo "the 'automa4te' program to be rebuilt." + program_details 'autom4te' + ;; + bison*|yacc*) + echo "You should only need it if you modified a '.y' file." + echo "You may want to install the GNU Bison package:" + echo "<$gnu_software_URL/bison/>" + ;; + lex*|flex*) + echo "You should only need it if you modified a '.l' file." + echo "You may want to install the Fast Lexical Analyzer package:" + echo "<$flex_URL>" + ;; + help2man*) + echo "You should only need it if you modified a dependency" \ + "of a man page." + echo "You may want to install the GNU Help2man package:" + echo "<$gnu_software_URL/help2man/>" + ;; + makeinfo*) + echo "You should only need it if you modified a '.texi' file, or" + echo "any other file indirectly affecting the aspect of the manual." + echo "You might want to install the Texinfo package:" + echo "<$gnu_software_URL/texinfo/>" + echo "The spurious makeinfo call might also be the consequence of" + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "want to install GNU make:" + echo "<$gnu_software_URL/make/>" + ;; + *) + echo "You might have modified some files without having the proper" + echo "tools for further handling them. Check the 'README' file, it" + echo "often tells you about the needed prerequisites for installing" + echo "this package. You may also peek at any GNU archive site, in" + echo "case some other package contains this missing '$1' program." + ;; + esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ + -e '2,$s/^/ /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/NEWS nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/NEWS --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/NEWS 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/NEWS 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1 @@ +buy a newspaper if you want to read news diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/check_mysql_health.pl nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/check_mysql_health.pl --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/check_mysql_health.pl 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/check_mysql_health.pl 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,613 @@ + +package main; + +use strict; +use Getopt::Long qw(:config no_ignore_case); +use File::Basename; +use lib dirname($0); +use Nagios::DBD::MySQL::Server; +use Nagios::DBD::MySQL::Cluster; + + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +use vars qw ($PROGNAME $REVISION $CONTACT $TIMEOUT $STATEFILESDIR $needs_restart %commandline); + +$PROGNAME = "check_mysql_health"; +$REVISION = '$Revision: #PACKAGE_VERSION# $'; +$CONTACT = 'gerhard.lausser@consol.de'; +$TIMEOUT = 60; +$STATEFILESDIR = '#STATEFILES_DIR#'; +$needs_restart = 0; + +my @modes = ( + ['server::connectiontime', + 'connection-time', undef, + 'Time to connect to the server' ], + ['server::uptime', + 'uptime', undef, + 'Time the server is running' ], + ['server::instance::connectedthreads', + 'threads-connected', undef, + 'Number of currently open connections' ], + ['server::instance::threadcachehitrate', + 'threadcache-hitrate', undef, + 'Hit rate of the thread-cache' ], + ['server::instance::createdthreads', + 'threads-created', undef, + 'Number of threads created per sec' ], + ['server::instance::runningthreads', + 'threads-running', undef, + 'Number of currently running threads' ], + ['server::instance::cachedthreads', + 'threads-cached', undef, + 'Number of currently cached threads' ], + ['server::instance::abortedconnects', + 'connects-aborted', undef, + 'Number of aborted connections per sec' ], + ['server::instance::abortedclients', + 'clients-aborted', undef, + 'Number of aborted connections (because the client died) per sec' ], + ['server::instance::replication::slavelag', + 'slave-lag', ['replication-slave-lag'], + 'Seconds behind master' ], + ['server::instance::replication::slaveiorunning', + 'slave-io-running', ['replication-slave-io-running'], + 'Slave io running: Yes' ], + ['server::instance::replication::slavesqlrunning', + 'slave-sql-running', ['replication-slave-sql-running'], + 'Slave sql running: Yes' ], + ['server::instance::querycachehitrate', + 'qcache-hitrate', ['querycache-hitrate'], + 'Query cache hitrate' ], + ['server::instance::querycachelowmemprunes', + 'qcache-lowmem-prunes', ['querycache-lowmem-prunes'], + 'Query cache entries pruned because of low memory' ], + ['server::instance::myisam::keycache::hitrate', + 'keycache-hitrate', ['myisam-keycache-hitrate'], + 'MyISAM key cache hitrate' ], + ['server::instance::innodb::bufferpool::hitrate', + 'bufferpool-hitrate', ['innodb-bufferpool-hitrate'], + 'InnoDB buffer pool hitrate' ], + ['server::instance::innodb::bufferpool::waitfree', + 'bufferpool-wait-free', ['innodb-bufferpool-wait-free'], + 'InnoDB buffer pool waits for clean page available' ], + ['server::instance::innodb::logwaits', + 'log-waits', ['innodb-log-waits'], + 'InnoDB log waits because of a too small log buffer' ], + ['server::instance::tablecachehitrate', + 'tablecache-hitrate', undef, + 'Table cache hitrate' ], + ['server::instance::tablelockcontention', + 'table-lock-contention', undef, + 'Table lock contention' ], + ['server::instance::tableindexusage', + 'index-usage', undef, + 'Usage of indices' ], + ['server::instance::tabletmpondisk', + 'tmp-disk-tables', undef, + 'Percent of temp tables created on disk' ], + ['server::instance::needoptimize', + 'table-fragmentation', undef, + 'Show tables which should be optimized' ], + ['server::instance::openfiles', + 'open-files', undef, + 'Percent of opened files' ], + ['server::instance::slowqueries', + 'slow-queries', undef, + 'Slow queries' ], + ['server::instance::longprocs', + 'long-running-procs', undef, + 'long running processes' ], + ['cluster::ndbdrunning', + 'cluster-ndbd-running', undef, + 'ndnd nodes are up and running' ], + ['server::sql', + 'sql', undef, + 'any sql command returning a single number' ], +); + +# rrd data store names are limited to 19 characters +my %labels = ( + bufferpool_hitrate => { + groundwork => 'bp_hitrate', + }, + bufferpool_hitrate_now => { + groundwork => 'bp_hitrate_now', + }, + bufferpool_free_waits_rate => { + groundwork => 'bp_freewaits', + }, + innodb_log_waits_rate => { + groundwork => 'inno_log_waits', + }, + keycache_hitrate => { + groundwork => 'kc_hitrate', + }, + keycache_hitrate_now => { + groundwork => 'kc_hitrate_now', + }, + threads_created_per_sec => { + groundwork => 'thrds_creat_per_s', + }, + connects_aborted_per_sec => { + groundwork => 'conn_abrt_per_s', + }, + clients_aborted_per_sec => { + groundwork => 'clnt_abrt_per_s', + }, + thread_cache_hitrate => { + groundwork => 'tc_hitrate', + }, + thread_cache_hitrate_now => { + groundwork => 'tc_hitrate_now', + }, + qcache_lowmem_prunes_rate => { + groundwork => 'qc_lowm_prnsrate', + }, + slow_queries_rate => { + groundwork => 'slow_q_rate', + }, + tablecache_hitrate => { + groundwork => 'tac_hitrate', + }, + tablecache_fillrate => { + groundwork => 'tac_fillrate', + }, + tablelock_contention => { + groundwork => 'tl_contention', + }, + tablelock_contention_now => { + groundwork => 'tl_contention_now', + }, + pct_tmp_table_on_disk => { + groundwork => 'tmptab_on_disk', + }, + pct_tmp_table_on_disk_now => { + groundwork => 'tmptab_on_disk_now', + }, +); + +sub print_usage () { + print <] [[--hostname ] + [--port | --socket ] + --username --password ] --mode + [--method mysql] + $PROGNAME [-h | --help] + $PROGNAME [-V | --version] + + Options: + --hostname + the database server's hostname + --port + the database's port. (default: 3306) + --socket + the database's unix socket. + --username + the mysql db user + --password + the mysql db user's password + --database + the database's name. (default: information_schema) + --replication-user + the database's replication user name (default: replication) + --warning + the warning range + --critical + the critical range + --mode + the mode of the plugin. select one of the following keywords: +EOUS + my $longest = length ((reverse sort {length $a <=> length $b} map { $_->[1] } @modes)[0]); + my $format = " %-". + (length ((reverse sort {length $a <=> length $b} map { $_->[1] } @modes)[0])). + "s\t(%s)\n"; + foreach (@modes) { + printf $format, $_->[1], $_->[3]; + } + printf "\n"; + print <new(file => $commandline{'extra-opts'}, commandline => + \%commandline); + if (! $extras->is_valid()) { + printf "extra-opts are not valid: %s\n", $extras->{errors}; + exit $ERRORS{UNKNOWN}; + } else { + $extras->overwrite(); + } +} + +if (exists $commandline{version}) { + print_revision($PROGNAME, $REVISION); + exit $ERRORS{OK}; +} + +if (exists $commandline{help}) { + print_help(); + exit $ERRORS{OK}; +} elsif (! exists $commandline{mode}) { + printf "Please select a mode\n"; + print_help(); + exit $ERRORS{OK}; +} + +if ($commandline{mode} eq "encode") { + my $input = <>; + chomp $input; + $input =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg; + printf "%s\n", $input; + exit $ERRORS{OK}; +} + +if (exists $commandline{3}) { + $ENV{NRPE_MULTILINESUPPORT} = 1; +} + +if (exists $commandline{timeout}) { + $TIMEOUT = $commandline{timeout}; +} + +if (exists $commandline{verbose}) { + $DBD::MySQL::Server::verbose = exists $commandline{verbose}; +} + +if (exists $commandline{scream}) { +# $DBD::MySQL::Server::hysterical = exists $commandline{scream}; +} + +if (exists $commandline{method}) { + # snmp or mysql cmdline +} else { + $commandline{method} = "dbi"; +} + +if (exists $commandline{report}) { + # short, long, html +} else { + $commandline{report} = "long"; +} + +if (exists $commandline{labelformat}) { + # groundwork +} else { + $commandline{labelformat} = "pnp4nagios"; +} + +if (exists $commandline{'with-mymodules-dyn-dir'}) { + $DBD::MySQL::Server::my_modules_dyn_dir = $commandline{'with-mymodules-dyn-dir'}; +} else { + $DBD::MySQL::Server::my_modules_dyn_dir = '#MYMODULES_DYN_DIR#'; +} + +if (exists $commandline{environment}) { + # if the desired environment variable values are different from + # the environment of this running script, then a restart is necessary. + # because setting $ENV does _not_ change the environment of the running script. + foreach (keys %{$commandline{environment}}) { + if ((! $ENV{$_}) || ($ENV{$_} ne $commandline{environment}->{$_})) { + $needs_restart = 1; + $ENV{$_} = $commandline{environment}->{$_}; + printf STDERR "new %s=%s forces restart\n", $_, $ENV{$_} + if $DBD::MySQL::Server::verbose; + } + } + # e.g. called with --runas dbnagio. shlib_path environment variable is stripped + # during the sudo. + # so the perl interpreter starts without a shlib_path. but --runas cares for + # a --environment shlib_path=... + # so setting the environment variable in the code above and restarting the + # perl interpreter will help it find shared libs +} + +if (exists $commandline{runas}) { + # remove the runas parameter + # exec sudo $0 ... the remaining parameters + $needs_restart = 1; + # if the calling script has a path for shared libs and there is no --environment + # parameter then the called script surely needs the variable too. + foreach my $important_env (qw(LD_LIBRARY_PATH SHLIB_PATH + ORACLE_HOME TNS_ADMIN ORA_NLS ORA_NLS33 ORA_NLS10)) { + if ($ENV{$important_env} && ! scalar(grep { /^$important_env=/ } + keys %{$commandline{environment}})) { + $commandline{environment}->{$important_env} = $ENV{$important_env}; + printf STDERR "add important --environment %s=%s\n", + $important_env, $ENV{$important_env} if $DBD::MySQL::Server::verbose; + } + } +} + +if ($needs_restart) { + my @newargv = (); + my $runas = undef; + if (exists $commandline{runas}) { + $runas = $commandline{runas}; + delete $commandline{runas}; + } + foreach my $option (keys %commandline) { + if (grep { /^$option/ && /=/ } @params) { + if (ref ($commandline{$option}) eq "HASH") { + foreach (keys %{$commandline{$option}}) { + push(@newargv, sprintf "--%s", $option); + push(@newargv, sprintf "%s=%s", $_, $commandline{$option}->{$_}); + } + } else { + push(@newargv, sprintf "--%s", $option); + push(@newargv, sprintf "%s", $commandline{$option}); + } + } else { + push(@newargv, sprintf "--%s", $option); + } + } + if ($runas) { + exec "sudo", "-S", "-u", $runas, $0, @newargv; + } else { + exec $0, @newargv; + # this makes sure that even a SHLIB or LD_LIBRARY_PATH are set correctly + # when the perl interpreter starts. Setting them during runtime does not + # help loading e.g. libclntsh.so + } + exit; +} + +if (exists $commandline{shell}) { + # forget what you see here. + system("/bin/sh"); +} + +if (! exists $commandline{statefilesdir}) { + if (exists $ENV{OMD_ROOT}) { + $commandline{statefilesdir} = $ENV{OMD_ROOT}."/var/tmp/check_mysql_health"; + } else { + $commandline{statefilesdir} = $STATEFILESDIR; + } +} + +if (exists $commandline{name}) { + if ($^O =~ /MSWin/ && $commandline{name} =~ /^'(.*)'$/) { + # putting arguments in single ticks under Windows CMD leaves the ' intact + # we remove them + $commandline{name} = $1; + } + # objects can be encoded like an url + # with s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg; + if (($commandline{mode} ne "sql") || + (($commandline{mode} eq "sql") && + ($commandline{name} =~ /select%20/i))) { # protect ... like '%cac%' ... from decoding + $commandline{name} =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg; + } + if ($commandline{name} =~ /^0$/) { + # without this, $params{selectname} would be treated like undef + $commandline{name} = "00"; + } +} + +$SIG{'ALRM'} = sub { + printf "UNKNOWN - %s timed out after %d seconds\n", $PROGNAME, $TIMEOUT; + exit $ERRORS{UNKNOWN}; +}; +alarm($TIMEOUT); + +my $nagios_level = $ERRORS{UNKNOWN}; +my $nagios_message = ""; +my $perfdata = ""; +if ($commandline{mode} =~ /^my-([^\-.]+)/) { + my $param = $commandline{mode}; + $param =~ s/\-/::/g; + push(@modes, [$param, $commandline{mode}, undef, 'my extension']); +} elsif ((! grep { $commandline{mode} eq $_ } map { $_->[1] } @modes) && + (! grep { $commandline{mode} eq $_ } map { defined $_->[2] ? @{$_->[2]} : () } @modes)) { + printf "UNKNOWN - mode %s\n", $commandline{mode}; + print_usage(); + exit 3; +} +my %params = ( + timeout => $TIMEOUT, + mode => ( + map { $_->[0] } + grep { + ($commandline{mode} eq $_->[1]) || + ( defined $_->[2] && grep { $commandline{mode} eq $_ } @{$_->[2]}) + } @modes + )[0], + cmdlinemode => $commandline{mode}, + method => $commandline{method} || + $ENV{NAGIOS__SERVICEMYSQL_METH} || + $ENV{NAGIOS__HOSTMYSQL_METH} || 'dbi', + hostname => $commandline{hostname} || + $ENV{NAGIOS__SERVICEMYSQL_HOST} || + $ENV{NAGIOS__HOSTMYSQL_HOST} || 'localhost', + database => $commandline{database} || + $ENV{NAGIOS__SERVICEMYSQL_DATABASE} || + $ENV{NAGIOS__HOSTMYSQL_DATABASE} || 'information_schema', + port => $commandline{port} || (($commandline{mode} =~ /^cluster/) ? + ($ENV{NAGIOS__SERVICENDBMGM_PORT} || $ENV{NAGIOS__HOSTNDBMGM_PORT} || 1186) : + ($ENV{NAGIOS__SERVICEMYSQL_PORT} || $ENV{NAGIOS__HOSTMYSQL_PORT} || 3306)), + socket => $commandline{socket} || + $ENV{NAGIOS__SERVICEMYSQL_SOCKET} || + $ENV{NAGIOS__HOSTMYSQL_SOCKET}, + username => $commandline{username} || + $ENV{NAGIOS__SERVICEMYSQL_USER} || + $ENV{NAGIOS__HOSTMYSQL_USER}, + password => $commandline{password} || + $ENV{NAGIOS__SERVICEMYSQL_PASS} || + $ENV{NAGIOS__HOSTMYSQL_PASS}, + replication_user => $commandline{'replication-user'} || 'replication', + mycnf => $commandline{mycnf} || + $ENV{NAGIOS__SERVICEMYSQL_MYCNF} || + $ENV{NAGIOS__HOSTMYSQL_MYCNF}, + mycnfgroup => $commandline{mycnfgroup} || + $ENV{NAGIOS__SERVICEMYSQL_MYCNFGROUP} || + $ENV{NAGIOS__HOSTMYSQL_MYCNFGROUP}, + warningrange => $commandline{warning}, + criticalrange => $commandline{critical}, + dbthresholds => $commandline{dbthresholds}, + absolute => $commandline{absolute}, + lookback => $commandline{lookback}, + selectname => $commandline{name} || $commandline{tablespace} || $commandline{datafile}, + regexp => $commandline{regexp}, + name => $commandline{name}, + name2 => $commandline{name2} || $commandline{name}, + units => $commandline{units}, + lookback => $commandline{lookback} || 0, + eyecandy => $commandline{eyecandy}, + statefilesdir => $commandline{statefilesdir}, + verbose => $commandline{verbose}, + report => $commandline{report}, + labelformat => $commandline{labelformat}, + negate => $commandline{negate}, +); + +my $server = undef; +my $cluster = undef; + +if ($params{mode} =~ /^(server|my)/) { + $server = DBD::MySQL::Server->new(%params); + $server->nagios(%params); + $server->calculate_result(\%labels); + $nagios_message = $server->{nagios_message}; + $nagios_level = $server->{nagios_level}; + $perfdata = $server->{perfdata}; +} elsif ($params{mode} =~ /^cluster/) { + $cluster = DBD::MySQL::Cluster->new(%params); + $cluster->nagios(%params); + $cluster->calculate_result(\%labels); + $nagios_message = $cluster->{nagios_message}; + $nagios_level = $cluster->{nagios_level}; + $perfdata = $cluster->{perfdata}; +} + +printf "%s - %s", $ERRORCODES{$nagios_level}, $nagios_message; +printf " | %s", $perfdata if $perfdata; +printf "\n"; +exit $nagios_level; + + +__END__ + + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.am nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.am --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.am 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.am 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,53 @@ +## Process this file with automake to produce Makefile.in + +SUFFIXES = .pl .pm .sh + +VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t + +libexec_SCRIPTS=check_mysql_health +MY_MODULES= +EXTRA_MODULES=\ + Nagios/DBD/MySQL/Server/Instance/Innodb.pm \ + Nagios/DBD/MySQL/Server/Instance/Myisam.pm \ + Nagios/DBD/MySQL/Server/Instance/Replication.pm \ + Nagios/DBD/MySQL/Server/Instance.pm \ + Nagios/DBD/MySQL/Server.pm \ + Nagios/DBD/MySQL/Cluster.pm \ + Nagios/Extraopts.pm +EXTRA_DIST=check_mysql_health.pl $(EXTRA_MODULES) + +CLEANFILES=$(libexec_SCRIPTS) + +AM_INSTALL_PROGRAM_FLAGS=@INSTALL_OPTS@ + +.pm : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +.pl : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +.sh : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +$(libexec_SCRIPTS) : $(EXTRA_DIST) + $(ECHO) "#! #PERL# -w" | $(AWK) -f ./subst > $@ + $(ECHO) "# nagios: -epn" >> $@ + $(ECHO) >> $@ + $(ECHO) "my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 );" >> $@ + $(ECHO) "my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' );" >> $@ + for m in ${EXTRA_MODULES}; do \ + $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "my %ERROR" >> $@; \ + done + if [ -d "${MYMODULES_DIR}" ]; then \ + for m in ${MYMODULES_DIR}/CheckMySQLHealthExt*.pm; do \ + if [ -f $$m ]; then \ + $(ECHO) found $$m; \ + $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "my %ERROR" >> $@; \ + fi \ + done \ + fi + $(CAT) check_mysql_health.pl | $(GREP) -v "^use Nagios" | $(GREP) -v "^my %ERROR" | $(AWK) -f ./subst >> $@ + chmod +x $@ diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.in 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,516 @@ +# Makefile.in generated by automake 1.14 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = plugins-scripts +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(srcdir)/subst.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = subst +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libexecdir)" +SCRIPTS = $(libexec_SCRIPTS) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +VPATH = $(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CAT = @CAT@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +GREP = @GREP@ +GZIP = @GZIP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_OPTS = @INSTALL_OPTS@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MYMODULES_DIR = @MYMODULES_DIR@ +MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +RELEASE = @RELEASE@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SH = @SH@ +SHELL = @SHELL@ +STATEFILES_DIR = @STATEFILES_DIR@ +STRIP = @STRIP@ +SUPPORT = @SUPPORT@ +VERSION = @VERSION@ +WARRANTY = @WARRANTY@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +with_nagios_group = @with_nagios_group@ +with_nagios_user = @with_nagios_user@ +SUFFIXES = .pl .pm .sh +libexec_SCRIPTS = check_mysql_health +MY_MODULES = +EXTRA_MODULES = \ + Nagios/DBD/MySQL/Server/Instance/Innodb.pm \ + Nagios/DBD/MySQL/Server/Instance/Myisam.pm \ + Nagios/DBD/MySQL/Server/Instance/Replication.pm \ + Nagios/DBD/MySQL/Server/Instance.pm \ + Nagios/DBD/MySQL/Server.pm \ + Nagios/DBD/MySQL/Cluster.pm \ + Nagios/Extraopts.pm + +EXTRA_DIST = check_mysql_health.pl $(EXTRA_MODULES) +CLEANFILES = $(libexec_SCRIPTS) +AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ +all: all-am + +.SUFFIXES: +.SUFFIXES: .pl .pm .sh +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins-scripts/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins-scripts/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +subst: $(top_builddir)/config.status $(srcdir)/subst.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +install-libexecSCRIPTS: $(libexec_SCRIPTS) + @$(NORMAL_INSTALL) + @list='$(libexec_SCRIPTS)'; test -n "$(libexecdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n' \ + -e 'h;s|.*|.|' \ + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) { files[d] = files[d] " " $$1; \ + if (++n[d] == $(am__install_max)) { \ + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ + else { print "f", d "/" $$4, $$1 } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \ + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-libexecSCRIPTS: + @$(NORMAL_UNINSTALL) + @list='$(libexec_SCRIPTS)'; test -n "$(libexecdir)" || exit 0; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 's,.*/,,;$(transform)'`; \ + dir='$(DESTDIR)$(libexecdir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(SCRIPTS) +installdirs: + for dir in "$(DESTDIR)$(libexecdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-libexecSCRIPTS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libexecSCRIPTS + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-libexecSCRIPTS install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags-am uninstall uninstall-am \ + uninstall-libexecSCRIPTS + + +.pm : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +.pl : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +.sh : + $(AWK) -f ./subst $< > $@ + chmod +x $@ + +$(libexec_SCRIPTS) : $(EXTRA_DIST) + $(ECHO) "#! #PERL# -w" | $(AWK) -f ./subst > $@ + $(ECHO) "# nagios: -epn" >> $@ + $(ECHO) >> $@ + $(ECHO) "my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 );" >> $@ + $(ECHO) "my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' );" >> $@ + for m in ${EXTRA_MODULES}; do \ + $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "my %ERROR" >> $@; \ + done + if [ -d "${MYMODULES_DIR}" ]; then \ + for m in ${MYMODULES_DIR}/CheckMySQLHealthExt*.pm; do \ + if [ -f $$m ]; then \ + $(ECHO) found $$m; \ + $(SED) -e 's/^1;//g' < $$m | $(AWK) -f ./subst | $(GREP) -v "my %ERROR" >> $@; \ + fi \ + done \ + fi + $(CAT) check_mysql_health.pl | $(GREP) -v "^use Nagios" | $(GREP) -v "^my %ERROR" | $(AWK) -f ./subst >> $@ + chmod +x $@ + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,620 @@ +package DBD::MySQL::Cluster; + +use strict; +use Time::HiRes; +use IO::File; +use Data::Dumper; + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +{ + our $verbose = 0; + our $scream = 0; # scream if something is not implemented + our $access = "dbi"; # how do we access the database. + our $my_modules_dyn_dir = ""; # where we look for self-written extensions + + my @clusters = (); + my $initerrors = undef; + + sub add_cluster { + push(@clusters, shift); + } + + sub return_clusters { + return @clusters; + } + + sub return_first_cluster() { + return $clusters[0]; + } + +} + +sub new { + my $class = shift; + my %params = @_; + my $self = { + hostname => $params{hostname}, + port => $params{port}, + username => $params{username}, + password => $params{password}, + timeout => $params{timeout}, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + version => 'unknown', + nodes => [], + ndbd_nodes => 0, + ndb_mgmd_nodes => 0, + mysqld_nodes => 0, + }; + bless $self, $class; + $self->init_nagios(); + if ($self->connect(%params)) { + DBD::MySQL::Cluster::add_cluster($self); + $self->init(%params); + } + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + if ($self->{show}) { + my $type = undef; + foreach (split /\n/, $self->{show}) { + if (/\[(\w+)\((\w+)\)\]\s+(\d+) node/) { + $type = uc $2; + } elsif (/id=(\d+)(.*)/) { + push(@{$self->{nodes}}, DBD::MySQL::Cluster::Node->new( + type => $type, + id => $1, + status => $2, + )); + } + } + } else { + } + if ($params{mode} =~ /^cluster::ndbdrunning/) { + foreach my $node (@{$self->{nodes}}) { + $node->{type} eq "NDB" && $node->{status} eq "running" && $self->{ndbd_nodes}++; + $node->{type} eq "MGM" && $node->{status} eq "running" && $self->{ndb_mgmd_nodes}++; + $node->{type} eq "API" && $node->{status} eq "running" && $self->{mysqld_nodes}++; + } + } else { + printf "broken mode %s\n", $params{mode}; + } +} + +sub dump { + my $self = shift; + my $message = shift || ""; + printf "%s %s\n", $message, Data::Dumper::Dumper($self); +} + +sub nagios { + my $self = shift; + my %params = @_; + my $dead_ndb = 0; + my $dead_api = 0; + if (! $self->{nagios_level}) { + if ($params{mode} =~ /^cluster::ndbdrunning/) { + foreach my $node (grep { $_->{type} eq "NDB"} @{$self->{nodes}}) { + next if $params{selectname} && $params{selectname} ne $_->{id}; + if (! $node->{connected}) { + $self->add_nagios_critical( + sprintf "ndb node %d is not connected", $node->{id}); + $dead_ndb++; + } + } + foreach my $node (grep { $_->{type} eq "API"} @{$self->{nodes}}) { + next if $params{selectname} && $params{selectname} ne $_->{id}; + if (! $node->{connected}) { + $self->add_nagios_critical( + sprintf "api node %d is not connected", $node->{id}); + $dead_api++; + } + } + if (! $dead_ndb) { + $self->add_nagios_ok("all ndb nodes are connected"); + } + if (! $dead_api) { + $self->add_nagios_ok("all api nodes are connected"); + } + } + } + $self->add_perfdata(sprintf "ndbd_nodes=%d ndb_mgmd_nodes=%d mysqld_nodes=%d", + $self->{ndbd_nodes}, $self->{ndb_mgmd_nodes}, $self->{mysqld_nodes}); +} + + +sub init_nagios { + my $self = shift; + no strict 'refs'; + if (! ref($self)) { + my $nagiosvar = $self."::nagios"; + my $nagioslevelvar = $self."::nagios_level"; + $$nagiosvar = { + messages => { + 0 => [], + 1 => [], + 2 => [], + 3 => [], + }, + perfdata => [], + }; + $$nagioslevelvar = $ERRORS{OK}, + } else { + $self->{nagios} = { + messages => { + 0 => [], + 1 => [], + 2 => [], + 3 => [], + }, + perfdata => [], + }; + $self->{nagios_level} = $ERRORS{OK}, + } +} + +sub check_thresholds { + my $self = shift; + my $value = shift; + my $defaultwarningrange = shift; + my $defaultcriticalrange = shift; + my $level = $ERRORS{OK}; + $self->{warningrange} = $self->{warningrange} ? + $self->{warningrange} : $defaultwarningrange; + $self->{criticalrange} = $self->{criticalrange} ? + $self->{criticalrange} : $defaultcriticalrange; + if ($self->{warningrange} !~ /:/ && $self->{criticalrange} !~ /:/) { + # warning = 10, critical = 20, warn if > 10, crit if > 20 + $level = $ERRORS{WARNING} if $value > $self->{warningrange}; + $level = $ERRORS{CRITICAL} if $value > $self->{criticalrange}; + } elsif ($self->{warningrange} =~ /([\d\.]+):/ && + $self->{criticalrange} =~ /([\d\.]+):/) { + # warning = 98:, critical = 95:, warn if < 98, crit if < 95 + $self->{warningrange} =~ /([\d\.]+):/; + $level = $ERRORS{WARNING} if $value < $1; + $self->{criticalrange} =~ /([\d\.]+):/; + $level = $ERRORS{CRITICAL} if $value < $1; + } + return $level; + # + # syntax error must be reported with returncode -1 + # +} + +sub add_nagios { + my $self = shift; + my $level = shift; + my $message = shift; + push(@{$self->{nagios}->{messages}->{$level}}, $message); + # recalc current level + foreach my $llevel (qw(CRITICAL WARNING UNKNOWN OK)) { + if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$llevel}}})) { + $self->{nagios_level} = $ERRORS{$llevel}; + } + } +} + +sub add_nagios_ok { + my $self = shift; + my $message = shift; + $self->add_nagios($ERRORS{OK}, $message); +} + +sub add_nagios_warning { + my $self = shift; + my $message = shift; + $self->add_nagios($ERRORS{WARNING}, $message); +} + +sub add_nagios_critical { + my $self = shift; + my $message = shift; + $self->add_nagios($ERRORS{CRITICAL}, $message); +} + +sub add_nagios_unknown { + my $self = shift; + my $message = shift; + $self->add_nagios($ERRORS{UNKNOWN}, $message); +} + +sub add_perfdata { + my $self = shift; + my $data = shift; + push(@{$self->{nagios}->{perfdata}}, $data); +} + +sub merge_nagios { + my $self = shift; + my $child = shift; + foreach my $level (0..3) { + foreach (@{$child->{nagios}->{messages}->{$level}}) { + $self->add_nagios($level, $_); + } + #push(@{$self->{nagios}->{messages}->{$level}}, + # @{$child->{nagios}->{messages}->{$level}}); + } + push(@{$self->{nagios}->{perfdata}}, @{$child->{nagios}->{perfdata}}); +} + + +sub calculate_result { + my $self = shift; + if ($ENV{NRPE_MULTILINESUPPORT} && + length join(" ", @{$self->{nagios}->{perfdata}}) > 200) { + foreach my $level ("CRITICAL", "WARNING", "UNKNOWN", "OK") { + # first the bad news + if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$level}}})) { + $self->{nagios_message} .= + "\n".join("\n", @{$self->{nagios}->{messages}->{$ERRORS{$level}}}); + } + } + $self->{nagios_message} =~ s/^\n//g; + $self->{perfdata} = join("\n", @{$self->{nagios}->{perfdata}}); + } else { + foreach my $level ("CRITICAL", "WARNING", "UNKNOWN", "OK") { + # first the bad news + if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$level}}})) { + $self->{nagios_message} .= + join(", ", @{$self->{nagios}->{messages}->{$ERRORS{$level}}}).", "; + } + } + $self->{nagios_message} =~ s/, $//g; + $self->{perfdata} = join(" ", @{$self->{nagios}->{perfdata}}); + } + foreach my $level ("OK", "UNKNOWN", "WARNING", "CRITICAL") { + if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$level}}})) { + $self->{nagios_level} = $ERRORS{$level}; + } + } +} + +sub debug { + my $self = shift; + my $msg = shift; + if ($DBD::MySQL::Cluster::verbose) { + printf "%s %s\n", $msg, ref($self); + } +} + +sub connect { + my $self = shift; + my %params = @_; + my $retval = undef; + $self->{tic} = Time::HiRes::time(); + eval { + use POSIX ':signal_h'; + local $SIG{'ALRM'} = sub { + die "alarm\n"; + }; + my $mask = POSIX::SigSet->new( SIGALRM ); + my $action = POSIX::SigAction->new( + sub { die "connection timeout\n" ; }, $mask); + my $oldaction = POSIX::SigAction->new(); + sigaction(SIGALRM ,$action ,$oldaction ); + alarm($self->{timeout} - 1); # 1 second before the global unknown timeout + my $ndb_mgm = "ndb_mgm"; + $params{hostname} = "127.0.0.1" if ! $params{hostname}; + $ndb_mgm .= sprintf " --ndb-connectstring=%s", $params{hostname} + if $params{hostname}; + $ndb_mgm .= sprintf ":%d", $params{port} + if $params{port}; + $self->{show} = `$ndb_mgm -e show 2>&1`; + if ($? == -1) { + $self->add_nagios_critical("ndb_mgm failed to execute $!"); + } elsif ($? & 127) { + $self->add_nagios_critical("ndb_mgm failed to execute $!"); + } elsif ($? >> 8 != 0) { + $self->add_nagios_critical("ndb_mgm unable to connect"); + } else { + if ($self->{show} !~ /Cluster Configuration/) { + $self->add_nagios_critical("got no cluster configuration"); + } else { + $retval = 1; + } + } + }; + if ($@) { + $self->{errstr} = $@; + $self->{errstr} =~ s/at $0 .*//g; + chomp $self->{errstr}; + $self->add_nagios_critical($self->{errstr}); + $retval = undef; + } + $self->{tac} = Time::HiRes::time(); + return $retval; +} + +sub trace { + my $self = shift; + my $format = shift; + $self->{trace} = -f "/tmp/check_mysql_health.trace" ? 1 : 0; + if ($self->{verbose}) { + printf("%s: ", scalar localtime); + printf($format, @_); + } + if ($self->{trace}) { + my $logfh = new IO::File; + $logfh->autoflush(1); + if ($logfh->open("/tmp/check_mysql_health.trace", "a")) { + $logfh->printf("%s: ", scalar localtime); + $logfh->printf($format, @_); + $logfh->printf("\n"); + $logfh->close(); + } + } +} + +sub DESTROY { + my $self = shift; + my $handle1 = "null"; + my $handle2 = "null"; + if (defined $self->{handle}) { + $handle1 = ref($self->{handle}); + if (defined $self->{handle}->{handle}) { + $handle2 = ref($self->{handle}->{handle}); + } + } + $self->trace(sprintf "DESTROY %s with handle %s %s", ref($self), $handle1, $handle2); + if (ref($self) eq "DBD::MySQL::Cluster") { + } + $self->trace(sprintf "DESTROY %s exit with handle %s %s", ref($self), $handle1, $handle2); + if (ref($self) eq "DBD::MySQL::Cluster") { + #printf "humpftata\n"; + } +} + +sub save_state { + my $self = shift; + my %params = @_; + my $extension = ""; + mkdir $params{statefilesdir} unless -d $params{statefilesdir}; + my $statefile = sprintf "%s/%s_%s", + $params{statefilesdir}, $params{hostname}, $params{mode}; + $extension .= $params{differenciator} ? "_".$params{differenciator} : ""; + $extension .= $params{socket} ? "_".$params{socket} : ""; + $extension .= $params{port} ? "_".$params{port} : ""; + $extension .= $params{database} ? "_".$params{database} : ""; + $extension .= $params{tablespace} ? "_".$params{tablespace} : ""; + $extension .= $params{datafile} ? "_".$params{datafile} : ""; + $extension .= $params{name} ? "_".$params{name} : ""; + $extension =~ s/\//_/g; + $extension =~ s/\(/_/g; + $extension =~ s/\)/_/g; + $extension =~ s/\*/_/g; + $extension =~ s/\s/_/g; + $statefile .= $extension; + $statefile = lc $statefile; + open(STATE, ">$statefile"); + if ((ref($params{save}) eq "HASH") && exists $params{save}->{timestamp}) { + $params{save}->{localtime} = scalar localtime $params{save}->{timestamp}; + } + printf STATE Data::Dumper::Dumper($params{save}); + close STATE; + $self->debug(sprintf "saved %s to %s", + Data::Dumper::Dumper($params{save}), $statefile); +} + +sub load_state { + my $self = shift; + my %params = @_; + my $extension = ""; + my $statefile = sprintf "%s/%s_%s", + $params{statefilesdir}, $params{hostname}, $params{mode}; + $extension .= $params{differenciator} ? "_".$params{differenciator} : ""; + $extension .= $params{socket} ? "_".$params{socket} : ""; + $extension .= $params{port} ? "_".$params{port} : ""; + $extension .= $params{database} ? "_".$params{database} : ""; + $extension .= $params{tablespace} ? "_".$params{tablespace} : ""; + $extension .= $params{datafile} ? "_".$params{datafile} : ""; + $extension .= $params{name} ? "_".$params{name} : ""; + $extension =~ s/\//_/g; + $extension =~ s/\(/_/g; + $extension =~ s/\)/_/g; + $extension =~ s/\*/_/g; + $extension =~ s/\s/_/g; + $statefile .= $extension; + $statefile = lc $statefile; + if ( -f $statefile) { + our $VAR1; + eval { + require $statefile; + }; + if($@) { +printf "rumms\n"; + } + $self->debug(sprintf "load %s", Data::Dumper::Dumper($VAR1)); + return $VAR1; + } else { + return undef; + } +} + +sub valdiff { + my $self = shift; + my $pparams = shift; + my %params = %{$pparams}; + my @keys = @_; + my $last_values = $self->load_state(%params) || eval { + my $empty_events = {}; + foreach (@keys) { + $empty_events->{$_} = 0; + } + $empty_events->{timestamp} = 0; + $empty_events; + }; + foreach (@keys) { + $self->{'delta_'.$_} = $self->{$_} - $last_values->{$_}; + $self->debug(sprintf "delta_%s %f", $_, $self->{'delta_'.$_}); + } + $self->{'delta_timestamp'} = time - $last_values->{timestamp}; + $params{save} = eval { + my $empty_events = {}; + foreach (@keys) { + $empty_events->{$_} = $self->{$_}; + } + $empty_events->{timestamp} = time; + $empty_events; + }; + $self->save_state(%params); +} + +sub requires_version { + my $self = shift; + my $version = shift; + my @instances = DBD::MySQL::Cluster::return_clusters(); + my $instversion = $instances[0]->{version}; + if (! $self->version_is_minimum($version)) { + $self->add_nagios($ERRORS{UNKNOWN}, + sprintf "not implemented/possible for MySQL release %s", $instversion); + } +} + +sub version_is_minimum { + # the current version is newer or equal + my $self = shift; + my $version = shift; + my $newer = 1; + my @instances = DBD::MySQL::Cluster::return_clusters(); + my @v1 = map { $_ eq "x" ? 0 : $_ } split(/\./, $version); + my @v2 = split(/\./, $instances[0]->{version}); + if (scalar(@v1) > scalar(@v2)) { + push(@v2, (0) x (scalar(@v1) - scalar(@v2))); + } elsif (scalar(@v2) > scalar(@v1)) { + push(@v1, (0) x (scalar(@v2) - scalar(@v1))); + } + foreach my $pos (0..$#v1) { + if ($v2[$pos] > $v1[$pos]) { + $newer = 1; + last; + } elsif ($v2[$pos] < $v1[$pos]) { + $newer = 0; + last; + } + } + #printf STDERR "check if %s os minimum %s\n", join(".", @v2), join(".", @v1); + return $newer; +} + +sub instance_rac { + my $self = shift; + my @instances = DBD::MySQL::Cluster::return_clusters(); + return (lc $instances[0]->{parallel} eq "yes") ? 1 : 0; +} + +sub instance_thread { + my $self = shift; + my @instances = DBD::MySQL::Cluster::return_clusters(); + return $instances[0]->{thread}; +} + +sub windows_cluster { + my $self = shift; + my @instances = DBD::MySQL::Cluster::return_clusters(); + if ($instances[0]->{os} =~ /Win/i) { + return 1; + } else { + return 0; + } +} + +sub system_vartmpdir { + my $self = shift; + if ($^O =~ /MSWin/) { + return $self->system_tmpdir(); + } else { + return "/var/tmp/check_mysql_health"; + } +} + +sub system_oldvartmpdir { + my $self = shift; + return "/tmp"; +} + +sub system_tmpdir { + my $self = shift; + if ($^O =~ /MSWin/) { + return $ENV{TEMP} if defined $ENV{TEMP}; + return $ENV{TMP} if defined $ENV{TMP}; + return File::Spec->catfile($ENV{windir}, 'Temp') + if defined $ENV{windir}; + return 'C:\Temp'; + } else { + return "/tmp"; + } +} + + +package DBD::MySQL::Cluster::Node; + +use strict; + +our @ISA = qw(DBD::MySQL::Cluster); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub new { + my $class = shift; + my %params = @_; + my $self = { + mode => $params{mode}, + timeout => $params{timeout}, + type => $params{type}, + id => $params{id}, + status => $params{status}, + }; + bless $self, $class; + $self->init(%params); + if ($params{type} eq "NDB") { + bless $self, "DBD::MySQL::Cluster::Node::NDB"; + $self->init(%params); + } + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + if ($self->{status} =~ /@(\d+\.\d+\.\d+\.\d+)\s/) { + $self->{addr} = $1; + $self->{connected} = 1; + } elsif ($self->{status} =~ /accepting connect from (\d+\.\d+\.\d+\.\d+)/) { + $self->{addr} = $1; + $self->{connected} = 0; + } + if ($self->{status} =~ /starting,/) { + $self->{status} = "starting"; + } elsif ($self->{status} =~ /shutting,/) { + $self->{status} = "shutting"; + } else { + $self->{status} = $self->{connected} ? "running" : "dead"; + } +} + + +package DBD::MySQL::Cluster::Node::NDB; + +use strict; + +our @ISA = qw(DBD::MySQL::Cluster::Node); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub init { + my $self = shift; + my %params = @_; + if ($self->{status} =~ /Nodegroup:\s*(\d+)/) { + $self->{nodegroup} = $1; + } + $self->{master} = ($self->{status} =~ /Master\)/) ? 1 : 0; +} + + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,190 @@ +package DBD::MySQL::Server::Instance::Innodb; + +use strict; + +our @ISA = qw(DBD::MySQL::Server::Instance); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub new { + my $class = shift; + my %params = @_; + my $self = { + handle => $params{handle}, + internals => undef, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + $self->init_nagios(); + if ($params{mode} =~ /server::instance::innodb/) { + $self->{internals} = + DBD::MySQL::Server::Instance::Innodb::Internals->new(%params); + } +} + +sub nagios { + my $self = shift; + my %params = @_; + if ($params{mode} =~ /server::instance::innodb/) { + $self->{internals}->nagios(%params); + $self->merge_nagios($self->{internals}); + } +} + + +package DBD::MySQL::Server::Instance::Innodb::Internals; + +use strict; + +our @ISA = qw(DBD::MySQL::Server::Instance::Innodb); + +our $internals; # singleton, nur ein einziges mal instantiierbar + +sub new { + my $class = shift; + my %params = @_; + unless ($internals) { + $internals = { + handle => $params{handle}, + bufferpool_hitrate => undef, + wait_free => undef, + log_waits => undef, + have_innodb => undef, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + }; + bless($internals, $class); + $internals->init(%params); + } + return($internals); +} + +sub init { + my $self = shift; + my %params = @_; + my $dummy; + $self->debug("enter init"); + $self->init_nagios(); + if (DBD::MySQL::Server::return_first_server()->version_is_minimum("5.1")) { + ($dummy, $self->{have_innodb}) = $self->{handle}->fetchrow_array(q{ + SELECT ENGINE, SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE='InnoDB' + }); + } else { + ($dummy, $self->{have_innodb}) = $self->{handle}->fetchrow_array(q{ + SHOW VARIABLES LIKE 'have_innodb' + }); + } + if ($self->{have_innodb} eq "NO") { + $self->add_nagios_critical("the innodb engine has a problem (have_innodb=no)"); + } elsif ($self->{have_innodb} eq "DISABLED") { + # add_nagios_ok later + } elsif ($params{mode} =~ /server::instance::innodb::bufferpool::hitrate/) { + ($dummy, $self->{bufferpool_reads}) + = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Innodb_buffer_pool_reads' + }); + ($dummy, $self->{bufferpool_read_requests}) + = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Innodb_buffer_pool_read_requests' + }); + if (! defined $self->{bufferpool_reads}) { + $self->add_nagios_critical("no innodb buffer pool info available"); + } else { + $self->valdiff(\%params, qw(bufferpool_reads + bufferpool_read_requests)); + $self->{bufferpool_hitrate_now} = + $self->{delta_bufferpool_read_requests} > 0 ? + 100 - (100 * $self->{delta_bufferpool_reads} / + $self->{delta_bufferpool_read_requests}) : 100; + $self->{bufferpool_hitrate} = + $self->{bufferpool_read_requests} > 0 ? + 100 - (100 * $self->{bufferpool_reads} / + $self->{bufferpool_read_requests}) : 100; + } + } elsif ($params{mode} =~ /server::instance::innodb::bufferpool::waitfree/) { + ($dummy, $self->{bufferpool_wait_free}) + = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Innodb_buffer_pool_wait_free' + }); + if (! defined $self->{bufferpool_wait_free}) { + $self->add_nagios_critical("no innodb buffer pool info available"); + } else { + $self->valdiff(\%params, qw(bufferpool_wait_free)); + $self->{bufferpool_wait_free_rate} = + $self->{delta_bufferpool_wait_free} / $self->{delta_timestamp}; + } + } elsif ($params{mode} =~ /server::instance::innodb::logwaits/) { + ($dummy, $self->{log_waits}) + = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Innodb_log_waits' + }); + if (! defined $self->{log_waits}) { + $self->add_nagios_critical("no innodb log info available"); + } else { + $self->valdiff(\%params, qw(log_waits)); + $self->{log_waits_rate} = + $self->{delta_log_waits} / $self->{delta_timestamp}; + } + } elsif ($params{mode} =~ /server::instance::innodb::needoptimize/) { +#fragmentation=$(($datafree * 100 / $datalength)) + +#http://www.electrictoolbox.com/optimize-tables-mysql-php/ + my @result = $self->{handle}->fetchall_array(q{ +SHOW TABLE STATUS WHERE Data_free / Data_length > 0.1 AND Data_free > 102400 +}); +printf "%s\n", Data::Dumper::Dumper(\@result); + + } +} + +sub nagios { + my $self = shift; + my %params = @_; + my $now = $params{lookback} ? '_now' : ''; + if ($self->{have_innodb} eq "DISABLED") { + $self->add_nagios_ok("the innodb engine has been disabled"); + } elsif (! $self->{nagios_level}) { + if ($params{mode} =~ /server::instance::innodb::bufferpool::hitrate/) { + my $refkey = 'bufferpool_hitrate'.($params{lookback} ? '_now' : ''); + $self->add_nagios( + $self->check_thresholds($self->{$refkey}, "99:", "95:"), + sprintf "innodb buffer pool hitrate at %.2f%%", $self->{$refkey}); + $self->add_perfdata(sprintf "bufferpool_hitrate=%.2f%%;%s;%s;0;100", + $self->{bufferpool_hitrate}, + $self->{warningrange}, $self->{criticalrange}); + $self->add_perfdata(sprintf "bufferpool_hitrate_now=%.2f%%", + $self->{bufferpool_hitrate_now}); + } elsif ($params{mode} =~ /server::instance::innodb::bufferpool::waitfree/) { + $self->add_nagios( + $self->check_thresholds($self->{bufferpool_wait_free_rate}, "1", "10"), + sprintf "%ld innodb buffer pool waits in %ld seconds (%.4f/sec)", + $self->{delta_bufferpool_wait_free}, $self->{delta_timestamp}, + $self->{bufferpool_wait_free_rate}); + $self->add_perfdata(sprintf "bufferpool_free_waits_rate=%.4f;%s;%s;0;100", + $self->{bufferpool_wait_free_rate}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::innodb::logwaits/) { + $self->add_nagios( + $self->check_thresholds($self->{log_waits_rate}, "1", "10"), + sprintf "%ld innodb log waits in %ld seconds (%.4f/sec)", + $self->{delta_log_waits}, $self->{delta_timestamp}, + $self->{log_waits_rate}); + $self->add_perfdata(sprintf "innodb_log_waits_rate=%.4f;%s;%s;0;100", + $self->{log_waits_rate}, + $self->{warningrange}, $self->{criticalrange}); + } + } +} + + +1; + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,119 @@ +package DBD::MySQL::Server::Instance::MyISAM; + +use strict; + +our @ISA = qw(DBD::MySQL::Server::Instance); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub new { + my $class = shift; + my %params = @_; + my $self = { + handle => $params{handle}, + internals => undef, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + $self->init_nagios(); + if ($params{mode} =~ /server::instance::myisam/) { + $self->{internals} = + DBD::MySQL::Server::Instance::MyISAM::Internals->new(%params); + } +} + +sub nagios { + my $self = shift; + my %params = @_; + if ($params{mode} =~ /server::instance::myisam/) { + $self->{internals}->nagios(%params); + $self->merge_nagios($self->{internals}); + } +} + + +package DBD::MySQL::Server::Instance::MyISAM::Internals; + +use strict; + +our @ISA = qw(DBD::MySQL::Server::Instance::MyISAM); + +our $internals; # singleton, nur ein einziges mal instantiierbar + +sub new { + my $class = shift; + my %params = @_; + unless ($internals) { + $internals = { + handle => $params{handle}, + keycache_hitrate => undef, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + }; + bless($internals, $class); + $internals->init(%params); + } + return($internals); +} + +sub init { + my $self = shift; + my %params = @_; + my $dummy; + $self->debug("enter init"); + $self->init_nagios(); + if ($params{mode} =~ /server::instance::myisam::keycache::hitrate/) { + ($dummy, $self->{key_reads}) + = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Key_reads' + }); + ($dummy, $self->{key_read_requests}) + = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Key_read_requests' + }); + if (! defined $self->{key_read_requests}) { + $self->add_nagios_critical("no myisam keycache info available"); + } else { + $self->valdiff(\%params, qw(key_reads key_read_requests)); + $self->{keycache_hitrate} = + $self->{key_read_requests} > 0 ? + 100 - (100 * $self->{key_reads} / + $self->{key_read_requests}) : 100; + $self->{keycache_hitrate_now} = + $self->{delta_key_read_requests} > 0 ? + 100 - (100 * $self->{delta_key_reads} / + $self->{delta_key_read_requests}) : 100; + } + } elsif ($params{mode} =~ /server::instance::myisam::sonstnochwas/) { + } +} + +sub nagios { + my $self = shift; + my %params = @_; + if (! $self->{nagios_level}) { + if ($params{mode} =~ /server::instance::myisam::keycache::hitrate/) { + my $refkey = 'keycache_hitrate'.($params{lookback} ? '_now' : ''); + $self->add_nagios( + $self->check_thresholds($self->{$refkey}, "99:", "95:"), + sprintf "myisam keycache hitrate at %.2f%%", $self->{$refkey}); + $self->add_perfdata(sprintf "keycache_hitrate=%.2f%%;%s;%s", + $self->{keycache_hitrate}, + $self->{warningrange}, $self->{criticalrange}); + $self->add_perfdata(sprintf "keycache_hitrate_now=%.2f%%;%s;%s", + $self->{keycache_hitrate_now}, + $self->{warningrange}, $self->{criticalrange}); + } + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,144 @@ +package DBD::MySQL::Server::Instance::Replication; + +use strict; + +our @ISA = qw(DBD::MySQL::Server::Instance); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub new { + my $class = shift; + my %params = @_; + my $self = { + handle => $params{handle}, + internals => undef, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + $self->init_nagios(); + if ($params{mode} =~ /server::instance::replication/) { + $self->{internals} = + DBD::MySQL::Server::Instance::Replication::Internals->new(%params); + } +} + +sub nagios { + my $self = shift; + my %params = @_; + if ($params{mode} =~ /server::instance::replication/) { + $self->{internals}->nagios(%params); + $self->merge_nagios($self->{internals}); + } +} + + +package DBD::MySQL::Server::Instance::Replication::Internals; + +use strict; + +our @ISA = qw(DBD::MySQL::Server::Instance::Replication); + +our $internals; # singleton, nur ein einziges mal instantiierbar + +sub new { + my $class = shift; + my %params = @_; + unless ($internals) { + $internals = { + handle => $params{handle}, + seconds_behind_master => undef, + slave_io_running => undef, + slave_sql_running => undef, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + }; + bless($internals, $class); + $internals->init(%params); + } + return($internals); +} + +sub init { + my $self = shift; + my %params = @_; + $self->debug("enter init"); + $self->init_nagios(); + if ($params{mode} =~ /server::instance::replication::slavelag/) { + # "show slave status", "Seconds_Behind_Master" + my $slavehash = $self->{handle}->selectrow_hashref(q{ + SHOW SLAVE STATUS + }); + if ((! defined $slavehash->{Seconds_Behind_Master}) && + (lc $slavehash->{Slave_IO_Running} eq 'no')) { + $self->add_nagios_critical( + "unable to get slave lag, because io thread is not running"); + } elsif (! defined $slavehash->{Seconds_Behind_Master}) { + $self->add_nagios_critical(sprintf "unable to get replication info%s", + $self->{handle}->{errstr} ? $self->{handle}->{errstr} : ""); + } else { + $self->{seconds_behind_master} = $slavehash->{Seconds_Behind_Master}; + } + } elsif ($params{mode} =~ /server::instance::replication::slaveiorunning/) { + # "show slave status", "Slave_IO_Running" + my $slavehash = $self->{handle}->selectrow_hashref(q{ + SHOW SLAVE STATUS + }); + if (! defined $slavehash->{Slave_IO_Running}) { + $self->add_nagios_critical(sprintf "unable to get replication info%s", + $self->{handle}->{errstr} ? $self->{handle}->{errstr} : ""); + } else { + $self->{slave_io_running} = $slavehash->{Slave_IO_Running}; + } + } elsif ($params{mode} =~ /server::instance::replication::slavesqlrunning/) { + # "show slave status", "Slave_SQL_Running" + my $slavehash = $self->{handle}->selectrow_hashref(q{ + SHOW SLAVE STATUS + }); + if (! defined $slavehash->{Slave_SQL_Running}) { + $self->add_nagios_critical(sprintf "unable to get replication info%s", + $self->{handle}->{errstr} ? $self->{handle}->{errstr} : ""); + } else { + $self->{slave_sql_running} = $slavehash->{Slave_SQL_Running}; + } + } +} + +sub nagios { + my $self = shift; + my %params = @_; + if (! $self->{nagios_level}) { + if ($params{mode} =~ /server::instance::replication::slavelag/) { + $self->add_nagios( + $self->check_thresholds($self->{seconds_behind_master}, "10", "20"), + sprintf "Slave is %d seconds behind master", + $self->{seconds_behind_master}); + $self->add_perfdata(sprintf "slave_lag=%d;%s;%s", + $self->{seconds_behind_master}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::replication::slaveiorunning/) { + if (lc $self->{slave_io_running} eq "yes") { + $self->add_nagios_ok("Slave io is running"); + } else { + $self->add_nagios_critical("Slave io is not running"); + } + } elsif ($params{mode} =~ /server::instance::replication::slavesqlrunning/) { + if (lc $self->{slave_sql_running} eq "yes") { + $self->add_nagios_ok("Slave sql is running"); + } else { + $self->add_nagios_critical("Slave sql is not running"); + } + } + } +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,512 @@ +package DBD::MySQL::Server::Instance; + +use strict; + +our @ISA = qw(DBD::MySQL::Server); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub new { + my $class = shift; + my %params = @_; + my $self = { + handle => $params{handle}, + uptime => $params{uptime}, + replication_user => $params{replication_user}, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + threads_connected => undef, + threads_created => undef, + connections => undef, + threadcache_hitrate => undef, + querycache_hitrate => undef, + lowmem_prunes_per_sec => undef, + slow_queries_per_sec => undef, + longrunners => undef, + tablecache_hitrate => undef, + index_usage => undef, + engine_innodb => undef, + engine_myisam => undef, + replication => undef, + }; + bless $self, $class; + $self->init(%params); + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + my $dummy; + $self->init_nagios(); + if ($params{mode} =~ /server::instance::connectedthreads/) { + ($dummy, $self->{threads_connected}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Threads_connected' + }); + } elsif ($params{mode} =~ /server::instance::createdthreads/) { + ($dummy, $self->{threads_created}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Threads_created' + }); + $self->valdiff(\%params, qw(threads_created)); + $self->{threads_created_per_sec} = $self->{delta_threads_created} / + $self->{delta_timestamp}; + } elsif ($params{mode} =~ /server::instance::runningthreads/) { + ($dummy, $self->{threads_running}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Threads_running' + }); + } elsif ($params{mode} =~ /server::instance::cachedthreads/) { + ($dummy, $self->{threads_cached}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Threads_cached' + }); + } elsif ($params{mode} =~ /server::instance::abortedconnects/) { + ($dummy, $self->{connects_aborted}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Aborted_connects' + }); + $self->valdiff(\%params, qw(connects_aborted)); + $self->{connects_aborted_per_sec} = $self->{delta_connects_aborted} / + $self->{delta_timestamp}; + } elsif ($params{mode} =~ /server::instance::abortedclients/) { + ($dummy, $self->{clients_aborted}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Aborted_clients' + }); + $self->valdiff(\%params, qw(clients_aborted)); + $self->{clients_aborted_per_sec} = $self->{delta_clients_aborted} / + $self->{delta_timestamp}; + } elsif ($params{mode} =~ /server::instance::threadcachehitrate/) { + ($dummy, $self->{threads_created}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Threads_created' + }); + ($dummy, $self->{connections}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Connections' + }); + $self->valdiff(\%params, qw(threads_created connections)); + if ($self->{delta_connections} > 0) { + $self->{threadcache_hitrate_now} = + 100 - ($self->{delta_threads_created} * 100.0 / + $self->{delta_connections}); + } else { + $self->{threadcache_hitrate_now} = 100; + } + $self->{threadcache_hitrate} = 100 - + ($self->{threads_created} * 100.0 / $self->{connections}); + $self->{connections_per_sec} = $self->{delta_connections} / + $self->{delta_timestamp}; + } elsif ($params{mode} =~ /server::instance::querycachehitrate/) { + ($dummy, $self->{qcache_inserts}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Qcache_inserts' + }); + ($dummy, $self->{qcache_not_cached}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Qcache_not_cached' + }); + ($dummy, $self->{com_select}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Com_select' + }); + ($dummy, $self->{qcache_hits}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Qcache_hits' + }); + # SHOW VARIABLES WHERE Variable_name = 'have_query_cache' for 5.x, but LIKE is compatible + ($dummy, $self->{have_query_cache}) = $self->{handle}->fetchrow_array(q{ + SHOW VARIABLES LIKE 'have_query_cache' + }); + # SHOW VARIABLES WHERE Variable_name = 'query_cache_size' + ($dummy, $self->{query_cache_size}) = $self->{handle}->fetchrow_array(q{ + SHOW VARIABLES LIKE 'query_cache_size' + }); + $self->valdiff(\%params, qw(com_select qcache_hits)); + $self->{querycache_hitrate_now} = + ($self->{delta_com_select} + $self->{delta_qcache_hits}) > 0 ? + 100 * $self->{delta_qcache_hits} / + ($self->{delta_com_select} + $self->{delta_qcache_hits}) : + 0; + $self->{querycache_hitrate} = + ($self->{qcache_not_cached} + $self->{qcache_inserts} + $self->{qcache_hits}) > 0 ? + 100 * $self->{qcache_hits} / + ($self->{qcache_not_cached} + $self->{qcache_inserts} + $self->{qcache_hits}) : + 0; + $self->{selects_per_sec} = + $self->{delta_com_select} / $self->{delta_timestamp}; + } elsif ($params{mode} =~ /server::instance::querycachelowmemprunes/) { + ($dummy, $self->{lowmem_prunes}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Qcache_lowmem_prunes' + }); + $self->valdiff(\%params, qw(lowmem_prunes)); + $self->{lowmem_prunes_per_sec} = $self->{delta_lowmem_prunes} / + $self->{delta_timestamp}; + } elsif ($params{mode} =~ /server::instance::slowqueries/) { + ($dummy, $self->{slow_queries}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Slow_queries' + }); + $self->valdiff(\%params, qw(slow_queries)); + $self->{slow_queries_per_sec} = $self->{delta_slow_queries} / + $self->{delta_timestamp}; + } elsif ($params{mode} =~ /server::instance::longprocs/) { + if (DBD::MySQL::Server::return_first_server()->version_is_minimum("5.1")) { + ($self->{longrunners}) = $self->{handle}->fetchrow_array(qq( + SELECT + COUNT(*) + FROM + information_schema.processlist + WHERE user <> ? + AND id <> CONNECTION_ID() + AND time > 60 + AND command <> 'Sleep' + ), $self->{replication_user}); + } else { + $self->{longrunners} = 0 if ! defined $self->{longrunners}; + foreach ($self->{handle}->fetchall_array(q{ + SHOW PROCESSLIST + })) { + my($id, $user, $host, $db, $command, $tme, $state, $info) = @{$_}; + if (($user ne $self->{replication_user}) && + ($tme > 60) && + ($command ne 'Sleep')) { + $self->{longrunners}++; + } + } + } + } elsif ($params{mode} =~ /server::instance::tablecachehitrate/) { + ($dummy, $self->{open_tables}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Open_tables' + }); + ($dummy, $self->{opened_tables}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Opened_tables' + }); + if (DBD::MySQL::Server::return_first_server()->version_is_minimum("5.1.3")) { + # SHOW VARIABLES WHERE Variable_name = 'table_open_cache' + ($dummy, $self->{table_cache}) = $self->{handle}->fetchrow_array(q{ + SHOW VARIABLES LIKE 'table_open_cache' + }); + } else { + # SHOW VARIABLES WHERE Variable_name = 'table_cache' + ($dummy, $self->{table_cache}) = $self->{handle}->fetchrow_array(q{ + SHOW VARIABLES LIKE 'table_cache' + }); + } + $self->{table_cache} ||= 0; + #$self->valdiff(\%params, qw(open_tables opened_tables table_cache)); + # _now ist hier sinnlos, da opened_tables waechst, aber open_tables wieder + # schrumpfen kann weil tabellen geschlossen werden. + if ($self->{opened_tables} != 0 && $self->{table_cache} != 0) { + $self->{tablecache_hitrate} = + 100 * $self->{open_tables} / $self->{opened_tables}; + $self->{tablecache_fillrate} = + 100 * $self->{open_tables} / $self->{table_cache}; + } elsif ($self->{opened_tables} == 0 && $self->{table_cache} != 0) { + $self->{tablecache_hitrate} = 100; + $self->{tablecache_fillrate} = + 100 * $self->{open_tables} / $self->{table_cache}; + } else { + $self->{tablecache_hitrate} = 0; + $self->{tablecache_fillrate} = 0; + $self->add_nagios_critical("no table cache"); + } + } elsif ($params{mode} =~ /server::instance::tablelockcontention/) { + ($dummy, $self->{table_locks_waited}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Table_locks_waited' + }); + ($dummy, $self->{table_locks_immediate}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Table_locks_immediate' + }); + $self->valdiff(\%params, qw(table_locks_waited table_locks_immediate)); + $self->{table_lock_contention} = + ($self->{table_locks_waited} + $self->{table_locks_immediate}) > 0 ? + 100 * $self->{table_locks_waited} / + ($self->{table_locks_waited} + $self->{table_locks_immediate}) : + 100; + $self->{table_lock_contention_now} = + ($self->{delta_table_locks_waited} + $self->{delta_table_locks_immediate}) > 0 ? + 100 * $self->{delta_table_locks_waited} / + ($self->{delta_table_locks_waited} + $self->{delta_table_locks_immediate}) : + 100; + } elsif ($params{mode} =~ /server::instance::tableindexusage/) { + # http://johnjacobm.wordpress.com/2007/06/ + # formula for calculating the percentage of full table scans + ($dummy, $self->{handler_read_first}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Handler_read_first' + }); + ($dummy, $self->{handler_read_key}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Handler_read_key' + }); + ($dummy, $self->{handler_read_next}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Handler_read_next' + }); + ($dummy, $self->{handler_read_prev}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Handler_read_prev' + }); + ($dummy, $self->{handler_read_rnd}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Handler_read_rnd' + }); + ($dummy, $self->{handler_read_rnd_next}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Handler_read_rnd_next' + }); + $self->valdiff(\%params, qw(handler_read_first handler_read_key + handler_read_next handler_read_prev handler_read_rnd + handler_read_rnd_next)); + my $delta_reads = $self->{delta_handler_read_first} + + $self->{delta_handler_read_key} + + $self->{delta_handler_read_next} + + $self->{delta_handler_read_prev} + + $self->{delta_handler_read_rnd} + + $self->{delta_handler_read_rnd_next}; + my $reads = $self->{handler_read_first} + + $self->{handler_read_key} + + $self->{handler_read_next} + + $self->{handler_read_prev} + + $self->{handler_read_rnd} + + $self->{handler_read_rnd_next}; + $self->{index_usage_now} = ($delta_reads == 0) ? 0 : + 100 - (100.0 * ($self->{delta_handler_read_rnd} + + $self->{delta_handler_read_rnd_next}) / + $delta_reads); + $self->{index_usage} = ($reads == 0) ? 0 : + 100 - (100.0 * ($self->{handler_read_rnd} + + $self->{handler_read_rnd_next}) / + $reads); + } elsif ($params{mode} =~ /server::instance::tabletmpondisk/) { + ($dummy, $self->{created_tmp_tables}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Created_tmp_tables' + }); + ($dummy, $self->{created_tmp_disk_tables}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Created_tmp_disk_tables' + }); + $self->valdiff(\%params, qw(created_tmp_tables created_tmp_disk_tables)); + $self->{pct_tmp_on_disk} = $self->{created_tmp_tables} > 0 ? + 100 * $self->{created_tmp_disk_tables} / $self->{created_tmp_tables} : + 100; + $self->{pct_tmp_on_disk_now} = $self->{delta_created_tmp_tables} > 0 ? + 100 * $self->{delta_created_tmp_disk_tables} / $self->{delta_created_tmp_tables} : + 100; + } elsif ($params{mode} =~ /server::instance::openfiles/) { + ($dummy, $self->{open_files_limit}) = $self->{handle}->fetchrow_array(q{ + SHOW VARIABLES LIKE 'open_files_limit' + }); + ($dummy, $self->{open_files}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Open_files' + }); + $self->{pct_open_files} = 100 * $self->{open_files} / $self->{open_files_limit}; + } elsif ($params{mode} =~ /server::instance::needoptimize/) { + $self->{fragmented} = []; + #http://www.electrictoolbox.com/optimize-tables-mysql-php/ + my @result = $self->{handle}->fetchall_array(q{ + SHOW TABLE STATUS + }); + foreach (@result) { + my ($name, $engine, $data_length, $data_free) = + ($_->[0], $_->[1], $_->[6 ], $_->[9]); + next if ($params{name} && $params{name} ne $name); + my $fragmentation = $data_length ? $data_free * 100 / $data_length : 0; + push(@{$self->{fragmented}}, + [$name, $fragmentation, $data_length, $data_free]); + } + } elsif ($params{mode} =~ /server::instance::myisam/) { + $self->{engine_myisam} = DBD::MySQL::Server::Instance::MyISAM->new( + %params + ); + } elsif ($params{mode} =~ /server::instance::innodb/) { + $self->{engine_innodb} = DBD::MySQL::Server::Instance::Innodb->new( + %params + ); + } elsif ($params{mode} =~ /server::instance::replication/) { + $self->{replication} = DBD::MySQL::Server::Instance::Replication->new( + %params + ); + } +} + +sub nagios { + my $self = shift; + my %params = @_; + if (! $self->{nagios_level}) { + if ($params{mode} =~ /server::instance::connectedthreads/) { + $self->add_nagios( + $self->check_thresholds($self->{threads_connected}, 10, 20), + sprintf "%d client connection threads", $self->{threads_connected}); + $self->add_perfdata(sprintf "threads_connected=%d;%d;%d", + $self->{threads_connected}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::createdthreads/) { + $self->add_nagios( + $self->check_thresholds($self->{threads_created_per_sec}, 10, 20), + sprintf "%.2f threads created/sec", $self->{threads_created_per_sec}); + $self->add_perfdata(sprintf "threads_created_per_sec=%.2f;%.2f;%.2f", + $self->{threads_created_per_sec}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::runningthreads/) { + $self->add_nagios( + $self->check_thresholds($self->{threads_running}, 10, 20), + sprintf "%d running threads", $self->{threads_running}); + $self->add_perfdata(sprintf "threads_running=%d;%d;%d", + $self->{threads_running}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::cachedthreads/) { + $self->add_nagios( + $self->check_thresholds($self->{threads_cached}, 10, 20), + sprintf "%d cached threads", $self->{threads_cached}); + $self->add_perfdata(sprintf "threads_cached=%d;%d;%d", + $self->{threads_cached}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::abortedconnects/) { + $self->add_nagios( + $self->check_thresholds($self->{connects_aborted_per_sec}, 1, 5), + sprintf "%.2f aborted connections/sec", $self->{connects_aborted_per_sec}); + $self->add_perfdata(sprintf "connects_aborted_per_sec=%.2f;%.2f;%.2f", + $self->{connects_aborted_per_sec}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::abortedclients/) { + $self->add_nagios( + $self->check_thresholds($self->{clients_aborted_per_sec}, 1, 5), + sprintf "%.2f aborted (client died) connections/sec", $self->{clients_aborted_per_sec}); + $self->add_perfdata(sprintf "clients_aborted_per_sec=%.2f;%.2f;%.2f", + $self->{clients_aborted_per_sec}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::threadcachehitrate/) { + my $refkey = 'threadcache_hitrate'.($params{lookback} ? '_now' : ''); + $self->add_nagios( + $self->check_thresholds($self->{$refkey}, "90:", "80:"), + sprintf "thread cache hitrate %.2f%%", $self->{$refkey}); + $self->add_perfdata(sprintf "thread_cache_hitrate=%.2f%%;%s;%s", + $self->{threadcache_hitrate}, + $self->{warningrange}, $self->{criticalrange}); + $self->add_perfdata(sprintf "thread_cache_hitrate_now=%.2f%%", + $self->{threadcache_hitrate_now}); + $self->add_perfdata(sprintf "connections_per_sec=%.2f", + $self->{connections_per_sec}); + } elsif ($params{mode} =~ /server::instance::querycachehitrate/) { + my $refkey = 'querycache_hitrate'.($params{lookback} ? '_now' : ''); + if ((lc $self->{have_query_cache} eq 'yes') && ($self->{query_cache_size})) { + $self->add_nagios( + $self->check_thresholds($self->{$refkey}, "90:", "80:"), + sprintf "query cache hitrate %.2f%%", $self->{$refkey}); + } else { + $self->check_thresholds($self->{$refkey}, "90:", "80:"); + $self->add_nagios_ok( + sprintf "query cache hitrate %.2f%% (because it's turned off)", + $self->{querycache_hitrate}); + } + $self->add_perfdata(sprintf "qcache_hitrate=%.2f%%;%s;%s", + $self->{querycache_hitrate}, + $self->{warningrange}, $self->{criticalrange}); + $self->add_perfdata(sprintf "qcache_hitrate_now=%.2f%%", + $self->{querycache_hitrate_now}); + $self->add_perfdata(sprintf "selects_per_sec=%.2f", + $self->{selects_per_sec}); + } elsif ($params{mode} =~ /server::instance::querycachelowmemprunes/) { + $self->add_nagios( + $self->check_thresholds($self->{lowmem_prunes_per_sec}, "1", "10"), + sprintf "%d query cache lowmem prunes in %d seconds (%.2f/sec)", + $self->{delta_lowmem_prunes}, $self->{delta_timestamp}, + $self->{lowmem_prunes_per_sec}); + $self->add_perfdata(sprintf "qcache_lowmem_prunes_rate=%.2f;%s;%s", + $self->{lowmem_prunes_per_sec}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::slowqueries/) { + $self->add_nagios( + $self->check_thresholds($self->{slow_queries_per_sec}, "0.1", "1"), + sprintf "%d slow queries in %d seconds (%.2f/sec)", + $self->{delta_slow_queries}, $self->{delta_timestamp}, + $self->{slow_queries_per_sec}); + $self->add_perfdata(sprintf "slow_queries_rate=%.2f%%;%s;%s", + $self->{slow_queries_per_sec}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::longprocs/) { + $self->add_nagios( + $self->check_thresholds($self->{longrunners}, 10, 20), + sprintf "%d long running processes", $self->{longrunners}); + $self->add_perfdata(sprintf "long_running_procs=%d;%d;%d", + $self->{longrunners}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /server::instance::tablecachehitrate/) { + if ($self->{tablecache_fillrate} < 95) { + $self->add_nagios_ok( + sprintf "table cache hitrate %.2f%%, %.2f%% filled", + $self->{tablecache_hitrate}, + $self->{tablecache_fillrate}); + $self->check_thresholds($self->{tablecache_hitrate}, "99:", "95:"); + } else { + $self->add_nagios( + $self->check_thresholds($self->{tablecache_hitrate}, "99:", "95:"), + sprintf "table cache hitrate %.2f%%", $self->{tablecache_hitrate}); + } + $self->add_perfdata(sprintf "tablecache_hitrate=%.2f%%;%s;%s", + $self->{tablecache_hitrate}, + $self->{warningrange}, $self->{criticalrange}); + $self->add_perfdata(sprintf "tablecache_fillrate=%.2f%%", + $self->{tablecache_fillrate}); + } elsif ($params{mode} =~ /server::instance::tablelockcontention/) { + my $refkey = 'table_lock_contention'.($params{lookback} ? '_now' : ''); + if ($self->{uptime} > 10800) { # MySQL Bug #30599 + $self->add_nagios( + $self->check_thresholds($self->{$refkey}, "1", "2"), + sprintf "table lock contention %.2f%%", $self->{$refkey}); + } else { + $self->check_thresholds($self->{$refkey}, "1", "2"); + $self->add_nagios_ok( + sprintf "table lock contention %.2f%% (uptime < 10800)", + $self->{$refkey}); + } + $self->add_perfdata(sprintf "tablelock_contention=%.2f%%;%s;%s", + $self->{table_lock_contention}, + $self->{warningrange}, $self->{criticalrange}); + $self->add_perfdata(sprintf "tablelock_contention_now=%.2f%%", + $self->{table_lock_contention_now}); + } elsif ($params{mode} =~ /server::instance::tableindexusage/) { + my $refkey = 'index_usage'.($params{lookback} ? '_now' : ''); + $self->add_nagios( + $self->check_thresholds($self->{$refkey}, "90:", "80:"), + sprintf "index usage %.2f%%", $self->{$refkey}); + $self->add_perfdata(sprintf "index_usage=%.2f%%;%s;%s", + $self->{index_usage}, + $self->{warningrange}, $self->{criticalrange}); + $self->add_perfdata(sprintf "index_usage_now=%.2f%%", + $self->{index_usage_now}); + } elsif ($params{mode} =~ /server::instance::tabletmpondisk/) { + my $refkey = 'pct_tmp_on_disk'.($params{lookback} ? '_now' : ''); + $self->add_nagios( + $self->check_thresholds($self->{$refkey}, "25", "50"), + sprintf "%.2f%% of %d tables were created on disk", + $self->{$refkey}, $self->{delta_created_tmp_tables}); + $self->add_perfdata(sprintf "pct_tmp_table_on_disk=%.2f%%;%s;%s", + $self->{pct_tmp_on_disk}, + $self->{warningrange}, $self->{criticalrange}); + $self->add_perfdata(sprintf "pct_tmp_table_on_disk_now=%.2f%%", + $self->{pct_tmp_on_disk_now}); + } elsif ($params{mode} =~ /server::instance::openfiles/) { + $self->add_nagios( + $self->check_thresholds($self->{pct_open_files}, 80, 95), + sprintf "%.2f%% of the open files limit reached (%d of max. %d)", + $self->{pct_open_files}, + $self->{open_files}, $self->{open_files_limit}); + $self->add_perfdata(sprintf "pct_open_files=%.3f%%;%.3f;%.3f", + $self->{pct_open_files}, + $self->{warningrange}, + $self->{criticalrange}); + $self->add_perfdata(sprintf "open_files=%d;%d;%d", + $self->{open_files}, + $self->{open_files_limit} * $self->{warningrange} / 100, + $self->{open_files_limit} * $self->{criticalrange} / 100); + } elsif ($params{mode} =~ /server::instance::needoptimize/) { + foreach (@{$self->{fragmented}}) { + $self->add_nagios( + $self->check_thresholds($_->[1], 10, 25), + sprintf "table %s is %.2f%% fragmented", $_->[0], $_->[1]); + if ($params{name}) { + $self->add_perfdata(sprintf "'%s_frag'=%.2f%%;%d;%d", + $_->[0], $_->[1], $self->{warningrange}, $self->{criticalrange}); + } + } + } elsif ($params{mode} =~ /server::instance::myisam/) { + $self->{engine_myisam}->nagios(%params); + $self->merge_nagios($self->{engine_myisam}); + } elsif ($params{mode} =~ /server::instance::innodb/) { + $self->{engine_innodb}->nagios(%params); + $self->merge_nagios($self->{engine_innodb}); + } elsif ($params{mode} =~ /server::instance::replication/) { + $self->{replication}->nagios(%params); + $self->merge_nagios($self->{replication}); + } + } +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,1631 @@ +package DBD::MySQL::Server; + +use strict; +use Time::HiRes; +use IO::File; +use File::Copy 'cp'; +use Data::Dumper; + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +{ + our $verbose = 0; + our $scream = 0; # scream if something is not implemented + our $access = "dbi"; # how do we access the database. + our $my_modules_dyn_dir = ""; # where we look for self-written extensions + + my @servers = (); + my $initerrors = undef; + + sub add_server { + push(@servers, shift); + } + + sub return_servers { + return @servers; + } + + sub return_first_server() { + return $servers[0]; + } + +} + +sub new { + my $class = shift; + my %params = @_; + my $self = { + mode => $params{mode}, + access => $params{method} || 'dbi', + hostname => $params{hostname}, + database => $params{database} || 'information_schema', + port => $params{port}, + socket => $params{socket}, + username => $params{username}, + password => $params{password}, + replication_user => $params{replication_user}, + mycnf => $params{mycnf}, + mycnfgroup => $params{mycnfgroup}, + timeout => $params{timeout}, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + verbose => $params{verbose}, + report => $params{report}, + negate => $params{negate}, + labelformat => $params{labelformat}, + version => 'unknown', + instance => undef, + handle => undef, + }; + bless $self, $class; + $self->init_nagios(); + if ($self->dbconnect(%params)) { + ($self->{dummy}, $self->{version}) = $self->{handle}->fetchrow_array( + #q{ SHOW VARIABLES WHERE Variable_name = 'version' } + q{ SHOW VARIABLES LIKE 'version' } + ); + $self->{version} = (split "-", $self->{version})[0]; + ($self->{dummy}, $self->{uptime}) = $self->{handle}->fetchrow_array( + q{ SHOW STATUS LIKE 'Uptime' } + ); + DBD::MySQL::Server::add_server($self); + $self->init(%params); + } + return $self; +} + +sub init { + my $self = shift; + my %params = @_; + $params{handle} = $self->{handle}; + $params{uptime} = $self->{uptime}; + $self->set_global_db_thresholds(\%params); + if ($params{mode} =~ /^server::instance/) { + $self->{instance} = DBD::MySQL::Server::Instance->new(%params); + } elsif ($params{mode} =~ /^server::sql/) { + $self->set_local_db_thresholds(%params); + if ($params{regexp}) { + # sql output is treated as text + if ($params{name2} eq $params{name}) { + $self->add_nagios_unknown(sprintf "where's the regexp????"); + } else { + $self->{genericsql} = + $self->{handle}->fetchrow_array($params{selectname}); + if (! defined $self->{genericsql}) { + $self->add_nagios_unknown(sprintf "got no valid response for %s", + $params{selectname}); + } + } + } else { + # sql output must be a number (or array of numbers) + @{$self->{genericsql}} = + $self->{handle}->fetchrow_array($params{selectname}); + if (! (defined $self->{genericsql} && + (scalar(grep { /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/ } @{$self->{genericsql}})) == + scalar(@{$self->{genericsql}}))) { + $self->add_nagios_unknown(sprintf "got no valid response for %s", + $params{selectname}); + } else { + # name2 in array + # units in array + } + } + } elsif ($params{mode} =~ /^server::uptime/) { + # already set with the connection. but use minutes here + } elsif ($params{mode} =~ /^server::connectiontime/) { + $self->{connection_time} = $self->{tac} - $self->{tic}; + } elsif ($params{mode} =~ /^my::([^:.]+)/) { + my $class = $1; + my $loaderror = undef; + substr($class, 0, 1) = uc substr($class, 0, 1); + foreach my $libpath (split(":", $DBD::MySQL::Server::my_modules_dyn_dir)) { + foreach my $extmod (glob $libpath."/CheckMySQLHealth*.pm") { + eval { + $self->trace(sprintf "loading module %s", $extmod); + require $extmod; + }; + if ($@) { + $loaderror = $extmod; + $self->trace(sprintf "failed loading module %s: %s", $extmod, $@); + } + } + } + my $obj = { + handle => $params{handle}, + warningrange => $params{warningrange}, + criticalrange => $params{criticalrange}, + }; + bless $obj, "My$class"; + $self->{my} = $obj; + if ($self->{my}->isa("DBD::MySQL::Server")) { + my $dos_init = $self->can("init"); + my $dos_nagios = $self->can("nagios"); + my $my_init = $self->{my}->can("init"); + my $my_nagios = $self->{my}->can("nagios"); + if ($my_init == $dos_init) { + $self->add_nagios_unknown( + sprintf "Class %s needs an init() method", ref($self->{my})); + } elsif ($my_nagios == $dos_nagios) { + $self->add_nagios_unknown( + sprintf "Class %s needs a nagios() method", ref($self->{my})); + } else { + $self->{my}->init_nagios(%params); + $self->{my}->init(%params); + } + } else { + $self->add_nagios_unknown( + sprintf "Class %s is not a subclass of DBD::MySQL::Server%s", + ref($self->{my}), + $loaderror ? sprintf " (syntax error in %s?)", $loaderror : "" ); + } + } else { + printf "broken mode %s\n", $params{mode}; + } +} + +sub dump { + my $self = shift; + my $message = shift || ""; + printf "%s %s\n", $message, Data::Dumper::Dumper($self); +} + +sub nagios { + my $self = shift; + my %params = @_; + if (! $self->{nagios_level}) { + if ($params{mode} =~ /^server::instance/) { + $self->{instance}->nagios(%params); + $self->merge_nagios($self->{instance}); + } elsif ($params{mode} =~ /^server::database/) { + $self->{database}->nagios(%params); + $self->merge_nagios($self->{database}); + } elsif ($params{mode} =~ /^server::uptime/) { + $self->add_nagios( + $self->check_thresholds($self->{uptime} / 60, "10:", "5:"), + sprintf "database is up since %d minutes", $self->{uptime} / 60); + $self->add_perfdata(sprintf "uptime=%ds", + $self->{uptime}); + } elsif ($params{mode} =~ /^server::connectiontime/) { + $self->add_nagios( + $self->check_thresholds($self->{connection_time}, 1, 5), + sprintf "%.2f seconds to connect as %s", + $self->{connection_time}, ($self->{username} || getpwuid($<))); + $self->add_perfdata(sprintf "connection_time=%.4fs;%d;%d", + $self->{connection_time}, + $self->{warningrange}, $self->{criticalrange}); + } elsif ($params{mode} =~ /^server::sql/) { + if ($params{regexp}) { + if (substr($params{name2}, 0, 1) eq '!') { + $params{name2} =~ s/^!//; + if ($self->{genericsql} !~ /$params{name2}/) { + $self->add_nagios_ok( + sprintf "output %s does not match pattern %s", + $self->{genericsql}, $params{name2}); + } else { + $self->add_nagios_critical( + sprintf "output %s matches pattern %s", + $self->{genericsql}, $params{name2}); + } + } else { + if ($self->{genericsql} =~ /$params{name2}/) { + $self->add_nagios_ok( + sprintf "output %s matches pattern %s", + $self->{genericsql}, $params{name2}); + } else { + $self->add_nagios_critical( + sprintf "output %s does not match pattern %s", + $self->{genericsql}, $params{name2}); + } + } + } else { + $self->add_nagios( + # the first item in the list will trigger the threshold values + $self->check_thresholds($self->{genericsql}[0], 1, 5), + sprintf "%s: %s%s", + $params{name2} ? lc $params{name2} : lc $params{selectname}, + # float as float, integers as integers + join(" ", map { + (sprintf("%d", $_) eq $_) ? $_ : sprintf("%f", $_) + } @{$self->{genericsql}}), + $params{units} ? $params{units} : ""); + my $i = 0; + # workaround... getting the column names from the database would be nicer + my @names2_arr = split(/\s+/, $params{name2}); + foreach my $t (@{$self->{genericsql}}) { + $self->add_perfdata(sprintf "\'%s\'=%s%s;%s;%s", + $names2_arr[$i] ? lc $names2_arr[$i] : lc $params{selectname}, + # float as float, integers as integers + (sprintf("%d", $t) eq $t) ? $t : sprintf("%f", $t), + $params{units} ? $params{units} : "", + ($i == 0) ? $self->{warningrange} : "", + ($i == 0) ? $self->{criticalrange} : "" + ); + $i++; + } + } + } elsif ($params{mode} =~ /^my::([^:.]+)/) { + $self->{my}->nagios(%params); + $self->merge_nagios($self->{my}); + } + } +} + + +sub init_nagios { + my $self = shift; + no strict 'refs'; + if (! ref($self)) { + my $nagiosvar = $self."::nagios"; + my $nagioslevelvar = $self."::nagios_level"; + $$nagiosvar = { + messages => { + 0 => [], + 1 => [], + 2 => [], + 3 => [], + }, + perfdata => [], + }; + $$nagioslevelvar = $ERRORS{OK}, + } else { + $self->{nagios} = { + messages => { + 0 => [], + 1 => [], + 2 => [], + 3 => [], + }, + perfdata => [], + }; + $self->{nagios_level} = $ERRORS{OK}, + } +} + +sub check_thresholds { + my $self = shift; + my $value = shift; + my $defaultwarningrange = shift; + my $defaultcriticalrange = shift; + my $level = $ERRORS{OK}; + $self->{warningrange} = defined $self->{warningrange} ? + $self->{warningrange} : $defaultwarningrange; + $self->{criticalrange} = defined $self->{criticalrange} ? + $self->{criticalrange} : $defaultcriticalrange; + + if ($self->{warningrange} =~ /^([-+]?[0-9]*\.?[0-9]+)$/) { + # warning = 10, warn if > 10 or < 0 + $level = $ERRORS{WARNING} + if ($value > $1 || $value < 0); + } elsif ($self->{warningrange} =~ /^([-+]?[0-9]*\.?[0-9]+):$/) { + # warning = 10:, warn if < 10 + $level = $ERRORS{WARNING} + if ($value < $1); + } elsif ($self->{warningrange} =~ /^~:([-+]?[0-9]*\.?[0-9]+)$/) { + # warning = ~:10, warn if > 10 + $level = $ERRORS{WARNING} + if ($value > $1); + } elsif ($self->{warningrange} =~ /^([-+]?[0-9]*\.?[0-9]+):([-+]?[0-9]*\.?[0-9]+)$/) { + # warning = 10:20, warn if < 10 or > 20 + $level = $ERRORS{WARNING} + if ($value < $1 || $value > $2); + } elsif ($self->{warningrange} =~ /^@([-+]?[0-9]*\.?[0-9]+):([-+]?[0-9]*\.?[0-9]+)$/) { + # warning = @10:20, warn if >= 10 and <= 20 + $level = $ERRORS{WARNING} + if ($value >= $1 && $value <= $2); + } + if ($self->{criticalrange} =~ /^([-+]?[0-9]*\.?[0-9]+)$/) { + # critical = 10, crit if > 10 or < 0 + $level = $ERRORS{CRITICAL} + if ($value > $1 || $value < 0); + } elsif ($self->{criticalrange} =~ /^([-+]?[0-9]*\.?[0-9]+):$/) { + # critical = 10:, crit if < 10 + $level = $ERRORS{CRITICAL} + if ($value < $1); + } elsif ($self->{criticalrange} =~ /^~:([-+]?[0-9]*\.?[0-9]+)$/) { + # critical = ~:10, crit if > 10 + $level = $ERRORS{CRITICAL} + if ($value > $1); + } elsif ($self->{criticalrange} =~ /^([-+]?[0-9]*\.?[0-9]+):([-+]?[0-9]*\.?[0-9]+)$/) { + # critical = 10:20, crit if < 10 or > 20 + $level = $ERRORS{CRITICAL} + if ($value < $1 || $value > $2); + } elsif ($self->{criticalrange} =~ /^@([-+]?[0-9]*\.?[0-9]+):([-+]?[0-9]*\.?[0-9]+)$/) { + # critical = @10:20, crit if >= 10 and <= 20 + $level = $ERRORS{CRITICAL} + if ($value >= $1 && $value <= $2); + } + return $level; + # + # syntax error must be reported with returncode -1 + # +} + +sub add_nagios { + my $self = shift; + my $level = shift; + my $message = shift; + push(@{$self->{nagios}->{messages}->{$level}}, $message); + # recalc current level + foreach my $llevel (qw(CRITICAL WARNING UNKNOWN OK)) { + if (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$llevel}}})) { + $self->{nagios_level} = $ERRORS{$llevel}; + } + } +} + +sub add_nagios_ok { + my $self = shift; + my $message = shift; + $self->add_nagios($ERRORS{OK}, $message); +} + +sub add_nagios_warning { + my $self = shift; + my $message = shift; + $self->add_nagios($ERRORS{WARNING}, $message); +} + +sub add_nagios_critical { + my $self = shift; + my $message = shift; + $self->add_nagios($ERRORS{CRITICAL}, $message); +} + +sub add_nagios_unknown { + my $self = shift; + my $message = shift; + $self->add_nagios($ERRORS{UNKNOWN}, $message); +} + +sub add_perfdata { + my $self = shift; + my $data = shift; + push(@{$self->{nagios}->{perfdata}}, $data); +} + +sub merge_nagios { + my $self = shift; + my $child = shift; + foreach my $level (0..3) { + foreach (@{$child->{nagios}->{messages}->{$level}}) { + $self->add_nagios($level, $_); + } + #push(@{$self->{nagios}->{messages}->{$level}}, + # @{$child->{nagios}->{messages}->{$level}}); + } + push(@{$self->{nagios}->{perfdata}}, @{$child->{nagios}->{perfdata}}); +} + +sub calculate_result { + my $self = shift; + my $labels = shift || {}; + my $multiline = 0; + map { + $self->{nagios_level} = $ERRORS{$_} if + (scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}})); + } ("OK", "UNKNOWN", "WARNING", "CRITICAL"); + if ($ENV{NRPE_MULTILINESUPPORT} && + length join(" ", @{$self->{nagios}->{perfdata}}) > 200) { + $multiline = 1; + } + my $all_messages = join(($multiline ? "\n" : ", "), map { + join(($multiline ? "\n" : ", "), @{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } grep { + scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } ("CRITICAL", "WARNING", "UNKNOWN", "OK")); + my $bad_messages = join(($multiline ? "\n" : ", "), map { + join(($multiline ? "\n" : ", "), @{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } grep { + scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } ("CRITICAL", "WARNING", "UNKNOWN")); + my $good_messages = join(($multiline ? "\n" : ", "), map { + join(($multiline ? "\n" : ", "), @{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } grep { + scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } ("OK")); + my $all_messages_short = $bad_messages ? $bad_messages : 'no problems'; + # if mode = my-.... + # and there are some ok-messages + # output them instead of "no problems" + if ($self->{mode} =~ /^my\:\:/ && $good_messages) { + $all_messages_short = $bad_messages ? $bad_messages : $good_messages; + } + my $all_messages_html = "". + join("", map { + my $level = $_; + join("", map { + sprintf "", + $level, $_; + } @{$self->{nagios}->{messages}->{$ERRORS{$_}}}); + } grep { + scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } ("CRITICAL", "WARNING", "UNKNOWN", "OK")). + "
%s
"; + if (exists $self->{identstring}) { + $self->{nagios_message} .= $self->{identstring}; + } + if ($self->{report} eq "long") { + $self->{nagios_message} .= $all_messages; + } elsif ($self->{report} eq "short") { + $self->{nagios_message} .= $all_messages_short; + } elsif ($self->{report} eq "html") { + $self->{nagios_message} .= $all_messages_short."\n".$all_messages_html; + } + foreach my $from (keys %{$self->{negate}}) { + if ((uc $from) =~ /^(OK|WARNING|CRITICAL|UNKNOWN)$/ && + (uc $self->{negate}->{$from}) =~ /^(OK|WARNING|CRITICAL|UNKNOWN)$/) { + if ($self->{nagios_level} == $ERRORS{uc $from}) { + $self->{nagios_level} = $ERRORS{uc $self->{negate}->{$from}}; + } + } + } + if ($self->{labelformat} eq "pnp4nagios") { + $self->{perfdata} = join(" ", @{$self->{nagios}->{perfdata}}); + } else { + $self->{perfdata} = join(" ", map { + my $perfdata = $_; + if ($perfdata =~ /^(.*?)=(.*)/) { + my $label = $1; + my $data = $2; + if (exists $labels->{$label} && + exists $labels->{$label}->{$self->{labelformat}}) { + $labels->{$label}->{$self->{labelformat}}."=".$data; + } else { + $perfdata; + } + } else { + $perfdata; + } + } @{$self->{nagios}->{perfdata}}); + } +} + +sub set_global_db_thresholds { + my $self = shift; + my $params = shift; + my $warning = undef; + my $critical = undef; + return unless defined $params->{dbthresholds}; + $params->{name0} = $params->{dbthresholds}; + # :pluginmode :name :warning :critical + # mode empty + # + eval { + if ($self->{handle}->fetchrow_array(q{ + SELECT table_name FROM information_schema.tables + WHERE table_schema = ? + AND table_name = 'CHECK_MYSQL_HEALTH_THRESHOLDS'; + }, $self->{database})) { # either --database... or information_schema + my @dbthresholds = $self->{handle}->fetchall_array(q{ + SELECT * FROM check_mysql_health_thresholds + }); + $params->{dbthresholds} = \@dbthresholds; + foreach (@dbthresholds) { + if (($_->[0] eq $params->{cmdlinemode}) && + (! defined $_->[1] || ! $_->[1])) { + ($warning, $critical) = ($_->[2], $_->[3]); + } + } + } + }; + if (! $@) { + if ($warning) { + $params->{warningrange} = $warning; + $self->trace("read warningthreshold %s from database", $warning); + } + if ($critical) { + $params->{criticalrange} = $critical; + $self->trace("read criticalthreshold %s from database", $critical); + } + } +} + +sub set_local_db_thresholds { + my $self = shift; + my %params = @_; + my $warning = undef; + my $critical = undef; + # :pluginmode :name :warning :critical + # mode name0 + # mode name2 + # mode name + # + # first: argument of --dbthresholds, it it exists + # second: --name2 + # third: --name + if (ref($params{dbthresholds}) eq 'ARRAY') { + my $marker; + foreach (@{$params{dbthresholds}}) { + if ($_->[0] eq $params{cmdlinemode}) { + if (defined $_->[1] && $params{name0} && $_->[1] eq $params{name0}) { + ($warning, $critical) = ($_->[2], $_->[3]); + $marker = $params{name0}; + last; + } elsif (defined $_->[1] && $params{name2} && $_->[1] eq $params{name2}) { + ($warning, $critical) = ($_->[2], $_->[3]); + $marker = $params{name2}; + last; + } elsif (defined $_->[1] && $params{name} && $_->[1] eq $params{name}) { + ($warning, $critical) = ($_->[2], $_->[3]); + $marker = $params{name}; + last; + } + } + } + if ($warning) { + $self->{warningrange} = $warning; + $self->trace("read warningthreshold %s for %s from database", + $marker, $warning); + } + if ($critical) { + $self->{criticalrange} = $critical; + $self->trace("read criticalthreshold %s for %s from database", + $marker, $critical); + } + } +} + +sub debug { + my $self = shift; + my $msg = shift; + if ($DBD::MySQL::Server::verbose) { + printf "%s %s\n", $msg, ref($self); + } +} + +sub dbconnect { + my $self = shift; + my %params = @_; + my $retval = undef; + $self->{tic} = Time::HiRes::time(); + $self->{handle} = DBD::MySQL::Server::Connection->new(%params); + if ($self->{handle}->{errstr}) { + if ($params{mode} =~ /^server::tnsping/ && + $self->{handle}->{errstr} =~ /ORA-01017/) { + $self->add_nagios($ERRORS{OK}, + sprintf "connection established to %s.", $self->{connect}); + $retval = undef; + } elsif ($self->{handle}->{errstr} eq "alarm\n") { + $self->add_nagios($ERRORS{CRITICAL}, + sprintf "connection could not be established within %d seconds", + $self->{timeout}); + } else { + $self->add_nagios($ERRORS{CRITICAL}, + sprintf "cannot connect to %s. %s", + $self->{database}, $self->{handle}->{errstr}); + $retval = undef; + } + } else { + $retval = $self->{handle}; + } + $self->{tac} = Time::HiRes::time(); + return $retval; +} + +sub trace { + my $self = shift; + my $format = shift; + $self->{trace} = -f "/tmp/check_mysql_health.trace" ? 1 : 0; + if ($self->{verbose}) { + printf("%s: ", scalar localtime); + printf($format, @_); + } + if ($self->{trace}) { + my $logfh = new IO::File; + $logfh->autoflush(1); + if ($logfh->open("/tmp/check_mysql_health.trace", "a")) { + $logfh->printf("%s: ", scalar localtime); + $logfh->printf($format, @_); + $logfh->printf("\n"); + $logfh->close(); + } + } +} + +sub DESTROY { + my $self = shift; + my $handle1 = "null"; + my $handle2 = "null"; + if (defined $self->{handle}) { + $handle1 = ref($self->{handle}); + if (defined $self->{handle}->{handle}) { + $handle2 = ref($self->{handle}->{handle}); + } + } + $self->trace(sprintf "DESTROY %s with handle %s %s", ref($self), $handle1, $handle2); + if (ref($self) eq "DBD::MySQL::Server") { + } + $self->trace(sprintf "DESTROY %s exit with handle %s %s", ref($self), $handle1, $handle2); + if (ref($self) eq "DBD::MySQL::Server") { + #printf "humpftata\n"; + } +} + +sub save_state { + my $self = shift; + my %params = @_; + my $extension = ""; + my $mode = $params{mode}; + if ($params{connect} && $params{connect} =~ /(\w+)\/(\w+)@(\w+)/) { + $params{connect} = $3; + } elsif ($params{connect}) { + # just to be sure + $params{connect} =~ s/\//_/g; + } + if ($^O =~ /MSWin/) { + $mode =~ s/::/_/g; + $params{statefilesdir} = $self->system_vartmpdir(); + } + if (! -d $params{statefilesdir}) { + eval { + use File::Path; + mkpath $params{statefilesdir}; + }; + } + if ($@ || ! -w $params{statefilesdir}) { + $self->add_nagios($ERRORS{CRITICAL}, + sprintf "statefilesdir %s does not exist or is not writable\n", + $params{statefilesdir}); + return; + } + my $statefile = sprintf "%s_%s", $params{hostname}, $mode; + $extension .= $params{differenciator} ? "_".$params{differenciator} : ""; + $extension .= $params{socket} ? "_".$params{socket} : ""; + $extension .= $params{port} ? "_".$params{port} : ""; + $extension .= $params{database} ? "_".$params{database} : ""; + $extension .= $params{tablespace} ? "_".$params{tablespace} : ""; + $extension .= $params{datafile} ? "_".$params{datafile} : ""; + $extension .= $params{name} ? "_".$params{name} : ""; + $extension =~ s/\//_/g; + $extension =~ s/\(/_/g; + $extension =~ s/\)/_/g; + $extension =~ s/\*/_/g; + $extension =~ s/\s/_/g; + $statefile .= $extension; + $statefile = lc $statefile; + $statefile = sprintf "%s/%s", $params{statefilesdir}, $statefile; + if (open(STATE, ">$statefile")) { + if ((ref($params{save}) eq "HASH") && exists $params{save}->{timestamp}) { + $params{save}->{localtime} = scalar localtime $params{save}->{timestamp}; + } + printf STATE Data::Dumper::Dumper($params{save}); + close STATE; + } else { + $self->add_nagios($ERRORS{CRITICAL}, + sprintf "statefile %s is not writable", $statefile); + } + $self->debug(sprintf "saved %s to %s", + Data::Dumper::Dumper($params{save}), $statefile); +} + +sub load_state { + my $self = shift; + my %params = @_; + my $extension = ""; + my $mode = $params{mode}; + if ($params{connect} && $params{connect} =~ /(\w+)\/(\w+)@(\w+)/) { + $params{connect} = $3; + } elsif ($params{connect}) { + # just to be sure + $params{connect} =~ s/\//_/g; + } + if ($^O =~ /MSWin/) { + $mode =~ s/::/_/g; + $params{statefilesdir} = $self->system_vartmpdir(); + } + my $statefile = sprintf "%s_%s", $params{hostname}, $mode; + $extension .= $params{differenciator} ? "_".$params{differenciator} : ""; + $extension .= $params{socket} ? "_".$params{socket} : ""; + $extension .= $params{port} ? "_".$params{port} : ""; + $extension .= $params{database} ? "_".$params{database} : ""; + $extension .= $params{tablespace} ? "_".$params{tablespace} : ""; + $extension .= $params{datafile} ? "_".$params{datafile} : ""; + $extension .= $params{name} ? "_".$params{name} : ""; + $extension =~ s/\//_/g; + $extension =~ s/\(/_/g; + $extension =~ s/\)/_/g; + $extension =~ s/\*/_/g; + $extension =~ s/\s/_/g; + $statefile .= $extension; + $statefile = lc $statefile; + $statefile = sprintf "%s/%s", $params{statefilesdir}, $statefile; + if ( -f $statefile) { + our $VAR1; + eval { + require $statefile; + }; + if($@) { + $self->add_nagios($ERRORS{CRITICAL}, + sprintf "statefile %s is corrupt", $statefile); + } + $self->debug(sprintf "load %s", Data::Dumper::Dumper($VAR1)); + return $VAR1; + } else { + return undef; + } +} + +sub valdiff { + my $self = shift; + my $pparams = shift; + my %params = %{$pparams}; + my @keys = @_; + my $now = time; + my $last_values = $self->load_state(%params) || eval { + my $empty_events = {}; + foreach (@keys) { + $empty_events->{$_} = 0; + } + $empty_events->{timestamp} = 0; + if ($params{lookback}) { + $empty_events->{lookback_history} = {}; + } + $empty_events; + }; + foreach (@keys) { + if ($params{lookback}) { + # find a last_value in the history which fits lookback best + # and overwrite $last_values->{$_} with historic data + if (exists $last_values->{lookback_history}->{$_}) { + foreach my $date (sort {$a <=> $b} keys %{$last_values->{lookback_history}->{$_}}) { + if ($date >= ($now - $params{lookback})) { + $last_values->{$_} = $last_values->{lookback_history}->{$_}->{$date}; + $last_values->{timestamp} = $date; + last; + } else { + delete $last_values->{lookback_history}->{$_}->{$date}; + } + } + } + } + $last_values->{$_} = 0 if ! exists $last_values->{$_}; + if ($self->{$_} >= $last_values->{$_}) { + $self->{'delta_'.$_} = $self->{$_} - $last_values->{$_}; + } else { + # vermutlich db restart und zaehler alle auf null + $self->{'delta_'.$_} = $self->{$_}; + } + $self->debug(sprintf "delta_%s %f", $_, $self->{'delta_'.$_}); + } + $self->{'delta_timestamp'} = $now - $last_values->{timestamp}; + $params{save} = eval { + my $empty_events = {}; + foreach (@keys) { + $empty_events->{$_} = $self->{$_}; + } + $empty_events->{timestamp} = $now; + if ($params{lookback}) { + $empty_events->{lookback_history} = $last_values->{lookback_history}; + foreach (@keys) { + $empty_events->{lookback_history}->{$_}->{$now} = $self->{$_}; + } + } + $empty_events; + }; + $self->save_state(%params); +} + +sub requires_version { + my $self = shift; + my $version = shift; + my @instances = DBD::MySQL::Server::return_servers(); + my $instversion = $instances[0]->{version}; + if (! $self->version_is_minimum($version)) { + $self->add_nagios($ERRORS{UNKNOWN}, + sprintf "not implemented/possible for MySQL release %s", $instversion); + } +} + +sub version_is_minimum { + # the current version is newer or equal + my $self = shift; + my $version = shift; + my $newer = 1; + my @instances = DBD::MySQL::Server::return_servers(); + my @v1 = map { $_ eq "x" ? 0 : $_ } split(/\./, $version); + my @v2 = split(/\./, $instances[0]->{version}); + if (scalar(@v1) > scalar(@v2)) { + push(@v2, (0) x (scalar(@v1) - scalar(@v2))); + } elsif (scalar(@v2) > scalar(@v1)) { + push(@v1, (0) x (scalar(@v2) - scalar(@v1))); + } + foreach my $pos (0..$#v1) { + if ($v2[$pos] > $v1[$pos]) { + $newer = 1; + last; + } elsif ($v2[$pos] < $v1[$pos]) { + $newer = 0; + last; + } + } + #printf STDERR "check if %s os minimum %s\n", join(".", @v2), join(".", @v1); + return $newer; +} + +sub instance_thread { + my $self = shift; + my @instances = DBD::MySQL::Server::return_servers(); + return $instances[0]->{thread}; +} + +sub windows_server { + my $self = shift; + my @instances = DBD::MySQL::Server::return_servers(); + if ($instances[0]->{os} =~ /Win/i) { + return 1; + } else { + return 0; + } +} + +sub system_vartmpdir { + my $self = shift; + if ($^O =~ /MSWin/) { + return $self->system_tmpdir(); + } else { + return "/var/tmp/check_mysql_health"; + } +} + +sub system_oldvartmpdir { + my $self = shift; + return "/tmp"; +} + +sub system_tmpdir { + my $self = shift; + if ($^O =~ /MSWin/) { + return $ENV{TEMP} if defined $ENV{TEMP}; + return $ENV{TMP} if defined $ENV{TMP}; + return File::Spec->catfile($ENV{windir}, 'Temp') + if defined $ENV{windir}; + return 'C:\Temp'; + } else { + return "/tmp"; + } +} + +sub decode_password { + my $self = shift; + my $password = shift; + if ($password && $password =~ /^rfc3986:\/\/(.*)/) { + $password = $1; + $password =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg; + } + return $password; +} + + +package DBD::MySQL::Server::Connection; + +use strict; + +our @ISA = qw(DBD::MySQL::Server); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub new { + my $class = shift; + my %params = @_; + my $self = { + mode => $params{mode}, + timeout => $params{timeout}, + access => $params{method} || "dbi", + hostname => $params{hostname}, + database => $params{database} || "information_schema", + port => $params{port}, + socket => $params{socket}, + username => $params{username}, + password => $params{password}, + mycnf => $params{mycnf}, + mycnfgroup => $params{mycnfgroup}, + handle => undef, + }; + bless $self, $class; + if ($params{method} eq "dbi") { + bless $self, "DBD::MySQL::Server::Connection::Dbi"; + } elsif ($params{method} eq "mysql") { + bless $self, "DBD::MySQL::Server::Connection::Mysql"; + } elsif ($params{method} eq "sqlrelay") { + bless $self, "DBD::MySQL::Server::Connection::Sqlrelay"; + } + $self->init(%params); + return $self; +} + + +package DBD::MySQL::Server::Connection::Dbi; + +use strict; +use Net::Ping; + +our @ISA = qw(DBD::MySQL::Server::Connection); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub init { + my $self = shift; + my %params = @_; + my $retval = undef; + if ($self->{mode} =~ /^server::tnsping/) { + if (! $self->{connect}) { + $self->{errstr} = "Please specify a database"; + } else { + $self->{sid} = $self->{connect}; + $self->{username} ||= time; # prefer an existing user + $self->{password} = time; + } + } else { + if ( + ($self->{hostname} ne 'localhost' && (! $self->{username} || ! $self->{password})) && + (! $self->{mycnf}) ) { + $self->{errstr} = "Please specify hostname, username and password or a .cnf file"; + return undef; + } + $self->{dsn} = "DBI:mysql:"; + $self->{dsn} .= sprintf "database=%s", $self->{database}; + if ($self->{mycnf}) { + $self->{dsn} .= sprintf ";mysql_read_default_file=%s", $self->{mycnf}; + if ($self->{mycnfgroup}) { + $self->{dsn} .= sprintf ";mysql_read_default_group=%s", $self->{mycnfgroup}; + } + } else { + $self->{dsn} .= sprintf ";host=%s", $self->{hostname}; + $self->{dsn} .= sprintf ";port=%s", $self->{port} + unless $self->{socket} || $self->{hostname} eq 'localhost'; + $self->{dsn} .= sprintf ";mysql_socket=%s", $self->{socket} + if $self->{socket}; + } + } + if (! exists $self->{errstr}) { + eval { + require DBI; + use POSIX ':signal_h'; + if ($^O =~ /MSWin/) { + local $SIG{'ALRM'} = sub { + die "alarm\n"; + }; + } else { + my $mask = POSIX::SigSet->new( SIGALRM ); + my $action = POSIX::SigAction->new( + sub { die "alarm\n" ; }, $mask); + my $oldaction = POSIX::SigAction->new(); + sigaction(SIGALRM ,$action ,$oldaction ); + } + alarm($self->{timeout} - 1); # 1 second before the global unknown timeout + if ($self->{handle} = DBI->connect( + $self->{dsn}, + $self->{username}, + $self->decode_password($self->{password}), + { RaiseError => 0, AutoCommit => 0, PrintError => 0 })) { +# $self->{handle}->do(q{ +# ALTER SESSION SET NLS_NUMERIC_CHARACTERS=".," }); + $retval = $self; + } else { + $self->{errstr} = DBI::errstr(); + } + }; + if ($@) { + $self->{errstr} = $@; + $retval = undef; + } + } + $self->{tac} = Time::HiRes::time(); + return $retval; +} + +sub selectrow_hashref { + my $self = shift; + my $sql = shift; + my @arguments = @_; + my $sth = undef; + my $hashref = undef; + eval { + $self->trace(sprintf "SQL:\n%s\nARGS:\n%s\n", + $sql, Data::Dumper::Dumper(\@arguments)); + # helm auf! jetzt wirds dreckig. + if ($sql =~ /^\s*SHOW/) { + $hashref = $self->{handle}->selectrow_hashref($sql); + } else { + $sth = $self->{handle}->prepare($sql); + if (scalar(@arguments)) { + $sth->execute(@arguments); + } else { + $sth->execute(); + } + $hashref = $sth->selectrow_hashref(); + } + $self->trace(sprintf "RESULT:\n%s\n", + Data::Dumper::Dumper($hashref)); + }; + if ($@) { + $self->debug(sprintf "bumm %s", $@); + } + if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { + my $simulation = do { local (@ARGV, $/) = + "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; + # keine lust auf den scheiss + } + return $hashref; +} + +sub fetchrow_array { + my $self = shift; + my $sql = shift; + my @arguments = @_; + my $sth = undef; + my @row = (); + eval { + $self->trace(sprintf "SQL:\n%s\nARGS:\n%s\n", + $sql, Data::Dumper::Dumper(\@arguments)); + $sth = $self->{handle}->prepare($sql); + if (scalar(@arguments)) { + $sth->execute(@arguments); + } else { + $sth->execute(); + } + @row = $sth->fetchrow_array(); + $self->trace(sprintf "RESULT:\n%s\n", + Data::Dumper::Dumper(\@row)); + }; + if ($@) { + $self->debug(sprintf "bumm %s", $@); + } + if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { + my $simulation = do { local (@ARGV, $/) = + "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; + @row = split(/\s+/, (split(/\n/, $simulation))[0]); + } + return $row[0] unless wantarray; + return @row; +} + +sub fetchall_array { + my $self = shift; + my $sql = shift; + my @arguments = @_; + my $sth = undef; + my $rows = undef; + eval { + $self->trace(sprintf "SQL:\n%s\nARGS:\n%s\n", + $sql, Data::Dumper::Dumper(\@arguments)); + $sth = $self->{handle}->prepare($sql); + if (scalar(@arguments)) { + $sth->execute(@arguments); + } else { + $sth->execute(); + } + $rows = $sth->fetchall_arrayref(); + $self->trace(sprintf "RESULT:\n%s\n", + Data::Dumper::Dumper($rows)); + }; + if ($@) { + printf STDERR "bumm %s\n", $@; + } + if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { + my $simulation = do { local (@ARGV, $/) = + "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; + @{$rows} = map { [ split(/\s+/, $_) ] } split(/\n/, $simulation); + } + return @{$rows}; +} + +sub func { + my $self = shift; + $self->{handle}->func(@_); +} + + +sub execute { + my $self = shift; + my $sql = shift; + eval { + my $sth = $self->{handle}->prepare($sql); + $sth->execute(); + }; + if ($@) { + printf STDERR "bumm %s\n", $@; + } +} + +sub errstr { + my $self = shift; + return $self->{errstr}; +} + +sub DESTROY { + my $self = shift; + $self->trace(sprintf "disconnecting DBD %s", + $self->{handle} ? "with handle" : "without handle"); + $self->{handle}->disconnect() if $self->{handle}; +} + +package DBD::MySQL::Server::Connection::Mysql; + +use strict; +use File::Temp qw/tempfile/; + +our @ISA = qw(DBD::MySQL::Server::Connection); + +my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 ); +my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' ); + +sub init { + my $self = shift; + my %params = @_; + my $retval = undef; + $self->{loginstring} = "traditional"; + ($self->{sql_commandfile_handle}, $self->{sql_commandfile}) = + tempfile($self->{mode}."XXXXX", SUFFIX => ".sql", + DIR => $self->system_tmpdir() ); + close $self->{sql_commandfile_handle}; + ($self->{sql_resultfile_handle}, $self->{sql_resultfile}) = + tempfile($self->{mode}."XXXXX", SUFFIX => ".out", + DIR => $self->system_tmpdir() ); + close $self->{sql_resultfile_handle}; + if ($self->{mode} =~ /^server::tnsping/) { + if (! $self->{connect}) { + $self->{errstr} = "Please specify a database"; + } else { + $self->{sid} = $self->{connect}; + $self->{username} ||= time; # prefer an existing user + $self->{password} = time; + } + } else { + if (! $self->{username} || ! $self->{password}) { + $self->{errstr} = "Please specify database, username and password"; + return undef; + } elsif (! (($self->{hostname} && $self->{port}) || $self->{socket})) { + $self->{errstr} = "Please specify hostname and port or socket"; + return undef; + } + } + if (! exists $self->{errstr}) { + $self->{password} = $self->decode_password($self->{password}); + eval { + my $mysql = '/'.'usr'.'/'.'bin'.'/'.'mysql'; + if (! -x $mysql) { + die "nomysql\n"; + } + if ($self->{loginstring} eq "traditional") { + $self->{sqlplus} = sprintf "%s ", $mysql; + $self->{sqlplus} .= sprintf "--batch --raw --skip-column-names "; + $self->{sqlplus} .= sprintf "--database=%s ", $self->{database}; + $self->{sqlplus} .= sprintf "--host=%s ", $self->{hostname}; + $self->{sqlplus} .= sprintf "--port=%s ", $self->{port} + unless $self->{socket} || $self->{hostname} eq "localhost"; + $self->{sqlplus} .= sprintf "--socket=%s ", $self->{socket} + if $self->{socket}; + $self->{sqlplus} .= sprintf "--user=%s --password='%s' < %s > %s", + $self->{username}, $self->{password}, + $self->{sql_commandfile}, $self->{sql_resultfile}; + } + + use POSIX ':signal_h'; + if ($^O =~ /MSWin/) { + local $SIG{'ALRM'} = sub { + die "alarm\n"; + }; + } else { + my $mask = POSIX::SigSet->new( SIGALRM ); + my $action = POSIX::SigAction->new( + sub { die "alarm\n" ; }, $mask); + my $oldaction = POSIX::SigAction->new(); + sigaction(SIGALRM ,$action ,$oldaction ); + } + alarm($self->{timeout} - 1); # 1 second before the global unknown timeout + + my $answer = $self->fetchrow_array( + q{ SELECT 42 FROM dual}); + die unless defined $answer and $answer == 42; + $retval = $self; + }; + if ($@) { + $self->{errstr} = $@; + $self->{errstr} =~ s/at $0 .*//g; + chomp $self->{errstr}; + $retval = undef; + } + } + $self->{tac} = Time::HiRes::time(); + return $retval; +} + +sub selectrow_hashref { + my $self = shift; + my $sql = shift; + my @arguments = @_; + my $sth = undef; + my $hashref = undef; + foreach (@arguments) { + # replace the ? by the parameters + if (/^\d+$/) { + $sql =~ s/\?/$_/; + } else { + $sql =~ s/\?/'$_'/; + } + } + if ($sql =~ /^\s*SHOW/) { + $sql .= '\G'; # http://dev.mysql.com/doc/refman/5.1/de/show-slave-status.html + } + $self->trace(sprintf "SQL (? resolved):\n%s\nARGS:\n%s\n", + $sql, Data::Dumper::Dumper(\@arguments)); + $self->create_commandfile($sql); + my $exit_output = `$self->{sqlplus}`; + if ($?) { + printf STDERR "fetchrow_array exit bumm \n"; + my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; + my @oerrs = map { + /((ERROR \d+).*)/ ? $1 : (); + } split(/\n/, $output); + $self->{errstr} = join(" ", @oerrs); + } else { + my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; + if ($sql =~ /^\s*SHOW/) { + map { + if (/^\s*([\w_]+):\s*(.*)/) { + $hashref->{$1} = $2; + } + } split(/\n/, $output); + } else { + # i dont mess around here and you shouldn't either + } + $self->trace(sprintf "RESULT:\n%s\n", + Data::Dumper::Dumper($hashref)); + } + unlink $self->{sql_commandfile}; + unlink $self->{sql_resultfile}; + return $hashref; +} + +sub fetchrow_array { + my $self = shift; + my $sql = shift; + my @arguments = @_; + my $sth = undef; + my @row = (); + foreach (@arguments) { + # replace the ? by the parameters + if (/^\d+$/) { + $sql =~ s/\?/$_/; + } else { + $sql =~ s/\?/'$_'/; + } + } + $self->trace(sprintf "SQL (? resolved):\n%s\nARGS:\n%s\n", + $sql, Data::Dumper::Dumper(\@arguments)); + $self->create_commandfile($sql); + my $exit_output = `$self->{sqlplus}`; + if ($?) { + printf STDERR "fetchrow_array exit bumm \n"; + my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; + my @oerrs = map { + /((ERROR \d+).*)/ ? $1 : (); + } split(/\n/, $output); + $self->{errstr} = join(" ", @oerrs); + } else { + my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; + @row = map { convert($_) } + map { s/^\s+([\.\d]+)$/$1/g; $_ } # strip leading space from numbers + map { s/\s+$//g; $_ } # strip trailing space + split(/\t/, (split(/\n/, $output))[0]); + $self->trace(sprintf "RESULT:\n%s\n", + Data::Dumper::Dumper(\@row)); + } + if ($@) { + $self->debug(sprintf "bumm %s", $@); + } + unlink $self->{sql_commandfile}; + unlink $self->{sql_resultfile}; + return $row[0] unless wantarray; + return @row; +} + +sub fetchall_array { + my $self = shift; + my $sql = shift; + my @arguments = @_; + my $sth = undef; + my $rows = undef; + foreach (@arguments) { + # replace the ? by the parameters + if (/^\d+$/) { + $sql =~ s/\?/$_/; + } else { + $sql =~ s/\?/'$_'/; + } + } + $self->trace(sprintf "SQL (? resolved):\n%s\nARGS:\n%s\n", + $sql, Data::Dumper::Dumper(\@arguments)); + $self->create_commandfile($sql); + my $exit_output = `$self->{sqlplus}`; + if ($?) { + printf STDERR "fetchrow_array exit bumm %s\n", $exit_output; + my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; + my @oerrs = map { + /((ERROR \d+).*)/ ? $1 : (); + } split(/\n/, $output); + $self->{errstr} = join(" ", @oerrs); + } else { + my $output = do { local (@ARGV, $/) = $self->{sql_resultfile}; <> }; + my @rows = map { [ + map { convert($_) } + map { s/^\s+([\.\d]+)$/$1/g; $_ } + map { s/\s+$//g; $_ } + split /\t/ + ] } grep { ! /^\d+ rows selected/ } + grep { ! /^Elapsed: / } + grep { ! /^\s*$/ } split(/\n/, $output); + $rows = \@rows; + $self->trace(sprintf "RESULT:\n%s\n", + Data::Dumper::Dumper($rows)); + } + if ($@) { + $self->debug(sprintf "bumm %s", $@); + } + unlink $self->{sql_commandfile}; + unlink $self->{sql_resultfile}; + return @{$rows}; +} + +sub func { + my $self = shift; + my $function = shift; + $self->{handle}->func(@_); +} + +sub convert { + my $n = shift; + # mostly used to convert numbers in scientific notation + if ($n =~ /^\s*\d+\s*$/) { + return $n; + } elsif ($n =~ /^\s*([-+]?)(\d*[\.,]*\d*)[eE]{1}([-+]?)(\d+)\s*$/) { + my ($vor, $num, $sign, $exp) = ($1, $2, $3, $4); + $n =~ s/E/e/g; + $n =~ s/,/\./g; + $num =~ s/,/\./g; + my $sig = $sign eq '-' ? "." . ($exp - 1 + length $num) : ''; + my $dec = sprintf "%${sig}f", $n; + $dec =~ s/\.[0]+$//g; + return $dec; + } elsif ($n =~ /^\s*([-+]?)(\d+)[\.,]*(\d*)\s*$/) { + return $1.$2.".".$3; + } elsif ($n =~ /^\s*(.*?)\s*$/) { + return $1; + } else { + return $n; + } +} + + +sub execute { + my $self = shift; + my $sql = shift; + eval { + my $sth = $self->{handle}->prepare($sql); + $sth->execute(); + }; + if ($@) { + printf STDERR "bumm %s\n", $@; + } +} + +sub errstr { + my $self = shift; + return $self->{errstr}; +} + +sub DESTROY { + my $self = shift; + $self->trace("try to clean up command and result files"); + unlink $self->{sql_commandfile} if -f $self->{sql_commandfile}; + unlink $self->{sql_resultfile} if -f $self->{sql_resultfile}; +} + +sub create_commandfile { + my $self = shift; + my $sql = shift; + open CMDCMD, "> $self->{sql_commandfile}"; + printf CMDCMD "%s\n", $sql; + close CMDCMD; +} + +sub decode_password { + my $self = shift; + my $password = shift; + $password = $self->SUPER::decode_password($password); + # we call '...%s/%s@...' inside backticks where the second %s is the password + # abc'xcv -> ''abc'\''xcv'' + # abc'`xcv -> ''abc'\''\`xcv'' + if ($password && $password =~ /'/) { + $password = "'".join("\\'", map { "'".$_."'"; } split("'", $password))."'"; + } + return $password; +} + + +package DBD::MySQL::Server::Connection::Sqlrelay; + +use strict; +use Net::Ping; + +our @ISA = qw(DBD::MySQL::Server::Connection); + + +sub init { + my $self = shift; + my %params = @_; + my $retval = undef; + if ($self->{mode} =~ /^server::tnsping/) { + if (! $self->{connect}) { + $self->{errstr} = "Please specify a database"; + } else { + if ($self->{connect} =~ /([\.\w]+):(\d+)/) { + $self->{host} = $1; + $self->{port} = $2; + $self->{socket} = ""; + } elsif ($self->{connect} =~ /([\.\w]+):([\w\/]+)/) { + $self->{host} = $1; + $self->{socket} = $2; + $self->{port} = ""; + } + } + } else { + if (! $self->{hostname} || ! $self->{username} || ! $self->{password}) { + if ($self->{hostname} && $self->{hostname} =~ /(\w+?)\/(.+)@([\.\w]+):(\d+)/) { + $self->{username} = $1; + $self->{password} = $2; + $self->{hostname} = $3; + $self->{port} = $4; + $self->{socket} = ""; + } elsif ($self->{hostname} && $self->{hostname} =~ /(\w+?)\/(.+)@([\.\w]+):([\w\/]+)/) { + $self->{username} = $1; + $self->{password} = $2; + $self->{hostname} = $3; + $self->{socket} = $4; + $self->{port} = ""; + } else { + $self->{errstr} = "Please specify database, username and password"; + return undef; + } + } else { + if ($self->{hostname} =~ /([\.\w]+):(\d+)/) { + $self->{hostname} = $1; + $self->{port} = $2; + $self->{socket} = ""; + } elsif ($self->{hostname} =~ /([\.\w]+):([\w\/]+)/) { + $self->{hostname} = $1; + $self->{socket} = $2; + $self->{port} = ""; + } else { + $self->{errstr} = "Please specify hostname, username, password and port/socket"; + return undef; + } + } + } + if (! exists $self->{errstr}) { + eval { + require DBI; + use POSIX ':signal_h'; + if ($^O =~ /MSWin/) { + local $SIG{'ALRM'} = sub { + die "alarm\n"; + }; + } else { + my $mask = POSIX::SigSet->new( SIGALRM ); + my $action = POSIX::SigAction->new( + sub { die "alarm\n" ; }, $mask); + my $oldaction = POSIX::SigAction->new(); + sigaction(SIGALRM ,$action ,$oldaction ); + } + alarm($self->{timeout} - 1); # 1 second before the global unknown timeout + if ($self->{handle} = DBI->connect( + sprintf("DBI:SQLRelay:host=%s;port=%d;socket=%s", + $self->{hostname}, $self->{port}, $self->{socket}), + $self->{username}, + $self->decode_password($self->{password}), + { RaiseError => 1, AutoCommit => 0, PrintError => 1 })) { + $retval = $self; + if ($self->{mode} =~ /^server::tnsping/ && $self->{handle}->ping()) { + # database connected. fake a "unknown user" + $self->{errstr} = "ORA-01017"; + } + } else { + $self->{errstr} = DBI::errstr(); + } + }; + if ($@) { + $self->{errstr} = $@; + $self->{errstr} =~ s/at [\w\/\.]+ line \d+.*//g; + $retval = undef; + } + } + $self->{tac} = Time::HiRes::time(); + return $retval; +} + +sub fetchrow_array { + my $self = shift; + my $sql = shift; + my @arguments = @_; + my $sth = undef; + my @row = (); + $self->trace(sprintf "fetchrow_array: %s", $sql); + eval { + $sth = $self->{handle}->prepare($sql); + if (scalar(@arguments)) { + $sth->execute(@arguments); + } else { + $sth->execute(); + } + @row = $sth->fetchrow_array(); + }; + if ($@) { + $self->debug(sprintf "bumm %s", $@); + } + if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { + my $simulation = do { local (@ARGV, $/) = + "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; + @row = split(/\s+/, (split(/\n/, $simulation))[0]); + } + return $row[0] unless wantarray; + return @row; +} + +sub fetchall_array { + my $self = shift; + my $sql = shift; + my @arguments = @_; + my $sth = undef; + my $rows = undef; + $self->trace(sprintf "fetchall_array: %s", $sql); + eval { + $sth = $self->{handle}->prepare($sql); + if (scalar(@arguments)) { + $sth->execute(@arguments); + } else { + $sth->execute(); + } + $rows = $sth->fetchall_arrayref(); + }; + if ($@) { + printf STDERR "bumm %s\n", $@; + } + if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) { + my $simulation = do { local (@ARGV, $/) = + "/tmp/check_mysql_health_simulation/".$self->{mode}; <> }; + @{$rows} = map { [ split(/\s+/, $_) ] } split(/\n/, $simulation); + } + return @{$rows}; +} + +sub func { + my $self = shift; + $self->{handle}->func(@_); +} + +sub execute { + my $self = shift; + my $sql = shift; + eval { + my $sth = $self->{handle}->prepare($sql); + $sth->execute(); + }; + if ($@) { + printf STDERR "bumm %s\n", $@; + } +} + +sub DESTROY { + my $self = shift; + #$self->trace(sprintf "disconnecting DBD %s", + # $self->{handle} ? "with handle" : "without handle"); + #$self->{handle}->disconnect() if $self->{handle}; +} + +1; + + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/Extraopts.pm nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/Extraopts.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/Extraopts.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/Extraopts.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,103 @@ +package Extraopts; + +use strict; +use File::Basename; +use Data::Dumper; + +sub new { + my $class = shift; + my %params = @_; + my $self = { + file => $params{file}, + commandline => $params{commandline}, + config => {}, + section => 'default_no_section', + }; + bless $self, $class; + $self->prepare_file_and_section(); + $self->init(); + return $self; +} + +sub prepare_file_and_section { + my $self = shift; + if (! defined $self->{file}) { + # ./check_stuff --extra-opts + $self->{section} = basename($0); + $self->{file} = $self->get_default_file(); + } elsif ($self->{file} =~ /^[^@]+$/) { + # ./check_stuff --extra-opts=special_opts + $self->{section} = $self->{file}; + $self->{file} = $self->get_default_file(); + } elsif ($self->{file} =~ /^@(.*)/) { + # ./check_stuff --extra-opts=@/etc/myconfig.ini + $self->{section} = basename($0); + $self->{file} = $1; + } elsif ($self->{file} =~ /^(.*?)@(.*)/) { + # ./check_stuff --extra-opts=special_opts@/etc/myconfig.ini + $self->{section} = $1; + $self->{file} = $2; + } +} + +sub get_default_file { + my $self = shift; + foreach my $default (qw(/etc/nagios/plugins.ini + /usr/local/nagios/etc/plugins.ini + /usr/local/etc/nagios/plugins.ini + /etc/opt/nagios/plugins.ini + /etc/nagios-plugins.ini + /usr/local/etc/nagios-plugins.ini + /etc/opt/nagios-plugins.ini)) { + if (-f $default) { + return $default; + } + } + return undef; +} + +sub init { + my $self = shift; + if (! defined $self->{file}) { + $self->{errors} = sprintf 'no extra-opts file specified and no default file found'; + } elsif (! -f $self->{file}) { + $self->{errors} = sprintf 'could not open %s', $self->{file}; + } else { + my $data = do { local (@ARGV, $/) = $self->{file}; <> }; + my $in_section = 'default_no_section'; + foreach my $line (split(/\n/, $data)) { + if ($line =~ /\[(.*)\]/) { + $in_section = $1; + } elsif ($line =~ /(.*?)\s*=\s*(.*)/) { + $self->{config}->{$in_section}->{$1} = $2; + } + } + } +} + +sub is_valid { + my $self = shift; + return ! exists $self->{errors}; +} + +sub overwrite { + my $self = shift; + my %commandline = (); + if (scalar(keys %{$self->{config}->{default_no_section}}) > 0) { + foreach (keys %{$self->{config}->{default_no_section}}) { + $commandline{$_} = $self->{config}->{default_no_section}->{$_}; + } + } + if (exists $self->{config}->{$self->{section}}) { + foreach (keys %{$self->{config}->{$self->{section}}}) { + $commandline{$_} = $self->{config}->{$self->{section}}->{$_}; + } + } + foreach (keys %commandline) { + if (! exists $self->{commandline}->{$_}) { + $self->{commandline}->{$_} = $commandline{$_}; + } + } +} + + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/subst.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/subst.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/subst.in 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/subst.in 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,61 @@ +#!/usr/bin/awk + +function which(c,path) { + cmd = "test -x " c; + + if (system(cmd)==0) { + return c; + } + + sub(/\/.*\//,"",c); + for (dir in path) { + cmd = "test -x " path[dir] "/" c; + if (system(cmd)==0) { + return path[dir] "/" c; + } + } + + + return c; +} + +# used to replace "use lib utils.pm" with "use lib @libexecdir" +# +function led() { + led1 = "@libexecdir@"; + led2 = "@exec_prefix@"; + led3 = "@prefix@"; + if ( match(led1, /^\$\{exec_prefix\}/ ) != 0 ) { + return "\"" led3 "/libexec\" " ; + + } + return "\"" led1 "\"" ; +} + +BEGIN { + split(ENVIRON["PATH"] ":/sbin:/usr/sbin",path,/:/); + +} + +# scripting language (first line) + +/^#! ?\/.*\/python/ {sub(/^#! ?\/.*\/python/,"#! @PYTHON@");} +/^#! ?\/.*\/perl/ {sub(/^#! ?\/.*\/perl/,"#! @PERL@");} +/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");} +/^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");} + +# add to libexecdir to INC for perl utils.pm +/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } } + + +# Replace the placeholders with the values from configure +/#PERL#/ {sub(/#PERL#/,"@PERL@");} +/#GZIP#/ {sub(/#GZIP#/,"@GZIP@");} +/#STATEFILES_DIR#/ {sub(/#STATEFILES_DIR#/,"@STATEFILES_DIR@");} +/#PACKAGE_VERSION#/ {sub(/#PACKAGE_VERSION#/,"@PACKAGE_VERSION@");} +/#MYMODULES_DYN_DIR#/ {sub(/#MYMODULES_DYN_DIR#/,"@MYMODULES_DYN_DIR@");} + +{ + print; +} + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/README nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/README --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/README 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/README 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,140 @@ +check_mysql_health Nagios Plugin README +--------------------- + +This plugin is used to monitor a variety of mysql database metrics. + +* For instructions on installing this plugin for use with Nagios, + see below. In addition, generic instructions for the GNU toolchain + can be found in the INSTALL file. + +* For major changes between releases, read the CHANGES file. + +* For information on detailed changes that have been made, + read the Changelog file. + +* This plugin is self documenting. All plugins that comply with + the basic guidelines for development will provide detailed help when + invoked with the '-h' or '--help' options. + +You can check for the latest plugin at: + http://www.consol.com/opensource/nagios/check-mysql-health + +The documentation in this README covers only the most common features. +To view the full documentation and examples, go to + http://www.consol.com/opensource/nagios/check-mysql-health or + http://www.consol.de/opensource/nagios/check-mysql-health + +Send mail to gerhard.lausser@consol.de for assistance. +Please include the OS type/version and the Perl DBI/DBD version +that you are using. +Also, run the plugin with the '-vvv' option and provide the resulting +version information. Of course, there may be additional diagnostic information +required as well. Use good judgment. + +For patch submissions and bug reports, please send me a mail. You can also find +me at http://www.nagios-portal.de + + + + +How to "compile" the check_mysql_health script. +-------------------------------------------------------- + +1) Run the configure script to initialize variables and create a Makefile, etc. + + ./configure --prefix=BASEDIRECTORY --with-nagios-user=SOMEUSER --with-nagios-group=SOMEGROUP --with-perl=PATH_TO_PERL --with-statefiles-dir=STATE_PATH + + a) Replace BASEDIRECTORY with the path of the directory under which Nagios + is installed (default is '/usr/local/nagios') + b) Replace SOMEUSER with the name of a user on your system that will be + assigned permissions to the installed plugins (default is 'nagios') + c) Replace SOMEGRP with the name of a group on your system that will be + assigned permissions to the installed plugins (default is 'nagios') + d) Replace PATH_TO_PERL with the path where a perl binary can be found. + Besides the system wide perl you might have installed a private perl + just for the nagios plugins (default is the perl in your path). + e) Replace STATE_PATH with the directory where you want the script to + write state files which transport information from one run to the next. + (default is /tmp) + + Simply running ./configure will be sufficient to create a check_mysql_health + script which you can customize later. + + +2) "Compile" the plugin with the following command: + + make + + This will produce a "check_mysql_health" script. You will also find + a "check_mysql_health.pl" which you better ignore. It is the base for + the compilation filled with placeholders. These will be replaced during + the make process. + + +3) Install the compiled plugin script with the following command: + + make install + + The installation procedure will attempt to place the plugin in a + 'libexec/' subdirectory in the base directory you specified with + the --prefix argument to the configure script. + + +4) Verify that your configuration files for Nagios contains + the correct paths to the new plugin. + + +Command line parameters +----------------------- + +--hostname= + This is what you would also use with tnsping and sqlplus. + +--username= + This is the user which reads the system tables. + +--password= + This is the user's password. + +--mode= + This parameter tells the plugin what it should check. + The list of known modes may grow frequently. Please look at + http://www.consol.com/opensource/nagios/check-mysql-health for a list + of features. + +--replication-user= + This is the username used to authenticated mysql replication, this is useful + with the longprocs mode where the replication users process is not counted as + a longrunning process. + +--warning= + If the metric is out of this range, the plugin returns a warning. + +--critical= + If the metric is out of this range, the plugin returns a critical. + + + +How to prepare the database for monitoring +-------------------------------------- + +GRANT USAGE ON *.* TO 'nagios'@'nagiosserver' IDENTIFIED BY 'nagiospassword'; + +-------------------------------------- + +That's it. If you have any problems or questions, feel free to send mail +to gerhard.lausser@consol.de + +Please do not send me a mail like this: + ++-------------------------------------------------+ +| I need monitor of database urgent. Please help. | +| Suresh | ++-------------------------------------------------+ + +I will answer you: + ++-------------------------------------------------+ +| A drumm Schelln konnst hom | +| Gerhard | ++-------------------------------------------------+ diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/t/check_mysql_health.t nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/t/check_mysql_health.t --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/t/check_mysql_health.t 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/t/check_mysql_health.t 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,159 @@ +#! /usr/bin/perl -w -I .. +# +# MySQL Database Server Tests via check_mysql_healthdb +# +# +# These are the database permissions required for this test: +# GRANT SELECT ON $db.* TO $user@$host INDENTIFIED BY '$password'; +# GRANT SUPER, REPLICATION CLIENT ON *.* TO $user@$host; +# Check with: +# mysql -u$user -p$password -h$host $db + +use strict; +use Test::More; +use NPTest; + +use vars qw($tests); + +plan skip_all => "check_mysql_health not compiled" unless (-x "./check_mysql_health"); + +plan tests => 51; + +my $bad_login_output = '/Access denied for user /'; +my $mysqlserver = getTestParameter( + "NP_MYSQL_SERVER", + "A MySQL Server with no slaves setup" + ); +my $mysql_login_details = getTestParameter( + "MYSQL_LOGIN_DETAILS", + "Command line parameters to specify login access", + "-u user -ppw -d db", + ); +my $with_slave = getTestParameter( + "NP_MYSQL_WITH_SLAVE", + "MySQL server with slaves setup" + ); +my $with_slave_login = getTestParameter( + "NP_MYSQL_WITH_SLAVE_LOGIN", + "Login details for server with slave", + "-uroot -ppw" + ); + +my $result; +SKIP: { + $result = NPTest->testCmd("./check_mysql_health -V"); + cmp_ok( $result->return_code, '==', 0, "expected result"); + like( $result->output, "/check_mysql_health \\(\\d+\\.\\d+\\)/", "Expected message"); + + $result = NPTest->testCmd("./check_mysql_health --help"); + cmp_ok( $result->return_code, '==', 0, "expected result"); + like( $result->output, "/slave-lag/", "Expected message"); + like( $result->output, "/slave-io-running/", "Expected message"); + like( $result->output, "/slave-sql-running/", "Expected message"); + like( $result->output, "/threads-connected/", "Expected message"); + like( $result->output, "/threadcache-hitrate/", "Expected message"); + like( $result->output, "/querycache-hitrate/", "Expected message"); + like( $result->output, "/keycache-hitrate/", "Expected message"); + like( $result->output, "/bufferpool-hitrate/", "Expected message"); + like( $result->output, "/tablecache-hitrate/", "Expected message"); + like( $result->output, "/table-lock-contention/", "Expected message"); + like( $result->output, "/temp-disk-tables/", "Expected message"); + like( $result->output, "/connection-time/", "Expected message"); + like( $result->output, "/slow-queries/", "Expected message"); + like( $result->output, "/qcache-lowmem-prunes/", "Expected message"); + like( $result->output, "/bufferpool-wait-free/", "Expected message"); + like( $result->output, "/log-waits/", "Expected message"); + +} + +SKIP: { + $result = NPTest->testCmd("./check_mysql_health -H $mysqlserver -m connection-time -u dummy -pdummy"); + cmp_ok( $result->return_code, '==', 2, "Login failure"); + like( $result->output, "/CRITICAL - Cannot connect to database: Error: Access denied/", "Expected login failure message"); + + $result = NPTest->testCmd("./check_mysql_health"); + cmp_ok( $result->return_code, "==", 3, "No mode defined" ); + like( $result->output, "/Must specify a mode/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m connection-time -w 10 -c 30"); + cmp_ok( $result->return_code, "==", 0, "Connected" ); + like( $result->output, "/OK - Connection Time ([0-9\.]+) usecs|connection_time=([0-9\.]+);10;30/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m keycache-hitrate -w :10 -c 2"); + cmp_ok( $result->return_code, "==", 2, "Connected" ); + like( $result->output, "/CRITICAL - Key Cache Hitrate at ([0-9\.]+)%|keycache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m qcache-hitrate -w :10 -c 2"); + cmp_ok( $result->return_code, "==", 2, "Connected" ); + like( $result->output, "/CRITICAL - Query Cache Hitrate at ([0-9\.]+)%|qcache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m qcache-hitrate -w :10 -c 2 -v 2>&1"); + cmp_ok( $result->return_code, "==", 2, "Connected" ); + like( $result->output, "/NOTICE: we have results/", "Verbose output"); + like( $result->output, "/CRITICAL - Query Cache Hitrate at ([0-9\.]+)%|qcache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); + +} + +SKIP: { + my $slow_queries_last = 0; + my $slow_queries = 0; + my $delta = 0; + $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :10 -c 2"); + sleep 1; + $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :10 -c 2 -v 2>&1"); + ok( $result->output =~ /Load variable Slow_queries \(([0-9]+)\) /); + $slow_queries_last = $1; + ok( $result->output =~ /Result column 1 returns value ([0-9]+) /); + $slow_queries = $1; + $delta = $slow_queries - $slow_queries_last; + ok( $result->output =~ /OK - ([0-9]+) slow queries/); + cmp_ok($1, "==", $delta); +} + +SKIP: { + # performance data + $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :11 -c :22 -v 2>&1"); + like( $result->output, "/slow_queries_rate=[0-9\.]+;:11;:22 slow_queries=[0-9]+;:11;:22/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m qcache-lowmem-prunes -w :11 -c :22 -v 2>&1"); + like( $result->output, "/lowmem_prunes_rate=[0-9\.]+;:11;:22 lowmem_prunes=[0-9]+;:11;:22/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m bufferpool-wait-free -w :11 -c :22 -v 2>&1"); + like( $result->output, "/bufferpool_free_waits_rate=[0-9\.]+;:11;:22 bufferpool_free_waits=[0-9]+;:11;:22/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m log-waits -w :11 -c :22 -v 2>&1"); + like( $result->output, "/log_waits_rate=[0-9\.]+;:11;:22 log_waits=[0-9]+;:11;:22/", "Correct error message"); +} + +SKIP: { + skip "Has a slave server", 6 if $with_slave; + + $result = NPTest->testCmd("./check_mysql_health -m slave-lag"); + cmp_ok( $result->return_code, "==", 2, "No slave" ); + like( $result->output, "/CRITICAL - Slave lag NULL|slave_lag=0;10;20/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m slave-io-running"); + cmp_ok( $result->return_code, "==", 2, "No slave" ); + like( $result->output, "/CRITICAL - Slave io not running|slave_io_running=0/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m slave-sql-running"); + cmp_ok( $result->return_code, "==", 2, "No slave" ); + like( $result->output, "/CRITICAL - Slave sql not running|slave_io_running=0/", "Correct error message"); + +} + +SKIP: { + skip "No mysql server with slaves defined", 5 unless $with_slave; + $result = NPTest->testCmd("./check_mysql_health -H $with_slave $with_slave_login"); + cmp_ok( $result->return_code, '==', 0, "Login okay"); + + $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login"); + cmp_ok( $result->return_code, "==", 0, "Slaves okay" ); + + $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login -w 60"); + cmp_ok( $result->return_code, '==', 0, 'Slaves are not > 60 seconds behind'); + + $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login -w 60:"); + cmp_ok( $result->return_code, '==', 1, 'Alert warning if < 60 seconds behind'); + like( $result->output, "/^SLOW_SLAVE WARNING:/", "Output okay"); +} diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/t/Makefile.am nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/t/Makefile.am --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/t/Makefile.am 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/t/Makefile.am 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,21 @@ +## +## Process this file with automake to produce Makefile.in +## + +AUTOMAKE_OPTIONS = 1.3 no-dependencies + +#all: tests + +TEST_VERBOSE=0 +TEST_TYPE=test_$(LINKTYPE) +TEST_FILE = test.pl +TEST_FILES = *.t +TESTDB_SW = -d + +#EXTRA_DIST = *.t bin var etc +EXTRA_DIST = *.t + +tests: + $(PERL) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) +# PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/t/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/t/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/t/Makefile.in 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/t/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,412 @@ +# Makefile.in generated by automake 1.14 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = t +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +depcomp = +am__depfiles_maybe = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CAT = @CAT@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +GREP = @GREP@ +GZIP = @GZIP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_OPTS = @INSTALL_OPTS@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MYMODULES_DIR = @MYMODULES_DIR@ +MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +RELEASE = @RELEASE@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SH = @SH@ +SHELL = @SHELL@ +STATEFILES_DIR = @STATEFILES_DIR@ +STRIP = @STRIP@ +SUPPORT = @SUPPORT@ +VERSION = @VERSION@ +WARRANTY = @WARRANTY@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +with_nagios_group = @with_nagios_group@ +with_nagios_user = @with_nagios_user@ +AUTOMAKE_OPTIONS = 1.3 no-dependencies + +#all: tests +TEST_VERBOSE = 0 +TEST_TYPE = test_$(LINKTYPE) +TEST_FILE = test.pl +TEST_FILES = *.t +TESTDB_SW = -d + +#EXTRA_DIST = *.t bin var etc +EXTRA_DIST = *.t +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu t/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu t/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags-am uninstall uninstall-am + + +tests: + $(PERL) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) +# PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/TODO nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/TODO --- nagios-plugins-contrib-14.20141104/check_mysql_health/check_mysql_health-2.2.1/TODO 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/check_mysql_health-2.2.1/TODO 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,3 @@ +a lot + +http://blog.it4sport.de/2010/10/10/optimize-table-fallig/ diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/control nagios-plugins-contrib-16.20151226/check_mysql_health/control --- nagios-plugins-contrib-14.20141104/check_mysql_health/control 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/control 2015-12-26 17:20:34.000000000 +0000 @@ -5,4 +5,4 @@ Description: plugin to check various parameters of a MySQL database Build-Depends: autotools-dev -Version: 2.1.8.2 +Version: 2.2.1 diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/acinclude.m4 nagios-plugins-contrib-16.20151226/check_mysql_health/src/acinclude.m4 --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/acinclude.m4 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/acinclude.m4 2015-12-26 17:20:34.000000000 +0000 @@ -1,78 +1,734 @@ -dnl @synopsis ACX_WHICH_GETHOSTBYNAME_R -dnl -dnl Provides a test to determine the correct way to call gethostbyname_r -dnl -dnl defines HAVE_GETHOSTBYNAME_R to the number of arguments required -dnl -dnl e.g. 6 arguments (linux) -dnl e.g. 5 arguments (solaris) -dnl e.g. 3 arguments (osf/1) -dnl -dnl @version $Id: acinclude.m4,v 1.5 2004/02/18 14:56:34 kdebisschop Exp $ -dnl @author Brian Stafford -dnl -dnl based on version by Caolan McNamara -dnl based on David Arnold's autoconf suggestion in the threads faq -dnl -AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R], -[AC_CACHE_CHECK(number of arguments to gethostbyname_r, - acx_which_gethostbyname_r, [ - AC_TRY_COMPILE([ -# include - ], [ - - char *name; - struct hostent *he; - struct hostent_data data; - (void) gethostbyname_r(name, he, &data); - - ],acx_which_gethostbyname_r=3, - [ -dnl acx_which_gethostbyname_r=0 - AC_TRY_COMPILE([ -# include - ], [ - char *name; - struct hostent *he, *res; - char *buffer = NULL; - int buflen = 2048; - int h_errnop; - (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) - ],acx_which_gethostbyname_r=6, - - [ -dnl acx_which_gethostbyname_r=0 - AC_TRY_COMPILE([ -# include - ], [ - char *name; - struct hostent *he; - char *buffer = NULL; - int buflen = 2048; - int h_errnop; - (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) - ],acx_which_gethostbyname_r=5,acx_which_gethostbyname_r=0) - - ] - - ) - ] - ) - ]) - -if test $acx_which_gethostbyname_r -gt 0 ; then - AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME_R], $acx_which_gethostbyname_r, - [Number of parameters to gethostbyname_r or 0 if not available]) +# generated automatically by aclocal 1.14 -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl + +# Copyright (C) 2002-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is '.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. +m4_define([AC_PROG_CC], +m4_defn([AC_PROG_CC]) +[_AM_PROG_CC_C_O +]) + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.65])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[AC_DIAGNOSE([obsolete], + [$0: two- and three-arguments forms are deprecated.]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if( + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + [ok:ok],, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) +AC_REQUIRE([AM_SILENT_RULES])dnl +dnl The testsuite driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl -dnl @synopsis ACX_HELP_STRING(OPTION,DESCRIPTION) -AC_DEFUN([ACX_HELP_STRING], - [ $1 builtin([substr],[ ],len($1))[$2]]) +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) + fi +fi]) + +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST([install_sh])]) + +# Copyright (C) 2003-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it is modern enough. +# If it is, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + AC_MSG_WARN(['missing' script is too old or missing]) +fi +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken + alias in your environment]) + fi + if test "$[2]" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( + [AC_MSG_CHECKING([that generated files are newer than configure]) + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + AC_MSG_RESULT([done])]) +rm -f conftest.file +]) + +# Copyright (C) 2009-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# ("yes" being less verbose, "no" or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], [dnl +AS_HELP_STRING( + [--enable-silent-rules], + [less verbose build output (undo: "make V=1")]) +AS_HELP_STRING( + [--disable-silent-rules], + [verbose build output (undo: "make V=0")])dnl +]) +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using '$V' instead of '$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor 'install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in "make install-strip", and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004-2013 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of 'v7', 'ustar', or 'pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +# +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' + +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], + [ustar], + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. + # There is notably a 21 bits limit for the UID and the GID. In fact, + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 + # and bug#13588). + am_max_uid=2097151 # 2^21 - 1 + am_max_gid=$am_max_uid + # The $UID and $GID variables are not portable, so we need to resort + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls + # below are definitely unexpected, so allow the users to see them + # (that is, avoid stderr redirection). + am_uid=`id -u || echo unknown` + am_gid=`id -g || echo unknown` + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) + if test $am_uid -le $am_max_uid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) + if test $am_gid -le $am_max_gid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi], -dnl @synopsis ACX_FEATURE(ENABLE_OR_WITH,NAME[,VALUE]) + [pax], + [], + + [m4_fatal([Unknown tar format])]) + + AC_MSG_CHECKING([how to create a $1 tar archive]) + + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_$1-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi + done + rm -rf conftest.dir + + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +# @synopsis ACX_FEATURE(ENABLE_OR_WITH,NAME[,VALUE]) AC_DEFUN([ACX_FEATURE], [echo "builtin([substr],[ ],len(--$1-$2))--$1-$2: ifelse($3,,[$]translit($1-$2,-,_),$3)"]) +# @synopsis ACX_HELP_STRING(OPTION,DESCRIPTION) +AC_DEFUN([ACX_HELP_STRING], + [ $1 builtin([substr],[ ],len($1))[$2]]) + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/aclocal.m4 nagios-plugins-contrib-16.20151226/check_mysql_health/src/aclocal.m4 --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/aclocal.m4 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/aclocal.m4 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.9.6 -*- Autoconf -*- +# generated automatically by aclocal 1.14 -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,7 +11,16 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) + +# Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -21,539 +30,99 @@ # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.14' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.14], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- -# Call AM_AUTOMAKE_VERSION so it can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], - [AM_AUTOMAKE_VERSION([1.9.6])]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.58])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +[AM_AUTOMAKE_VERSION([1.14])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"$am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' else - am__leading_dot=_ + $1_TRUE='#' + $1_FALSE= fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. +# Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. -# -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories -# created by `make install' are always world readable, even if the -# installer happens to have an overly restrictive umask (e.g. 077). -# This was a mistake. There are at least two reasons why we must not -# use `-m 0755': -# - it causes special bits like SGID to be ignored, -# - it may be too restrictive (some setups expect 775 directories). -# -# Do not use -m 0755 and let people choose whatever they expect by -# setting umask. -# -# We cannot accept any implementation of `mkdir' that recognizes `-p'. -# Some implementations (such as Solaris 8's) are not thread-safe: if a -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' -# concurrently, both version can detect that a/ is missing, but only -# one can create it and the other will error out. Consequently we -# restrict ourselves to GNU make (using the --version option ensures -# this.) -AC_DEFUN([AM_PROG_MKDIR_P], -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi -AC_SUBST([mkdir_p])]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) +# AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless 'enable' is passed literally. +# For symmetry, 'disable' may be passed as well. Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), + [enable], [m4_define([am_maintainer_other], [disable])], + [disable], [m4_define([am_maintainer_other], [enable])], + [m4_define([am_maintainer_other], [enable]) + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode's default is 'disable' unless 'enable' is passed + AC_ARG_ENABLE([maintainer-mode], + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], + am_maintainer_other[ make rules and dependencies not useful + (and sometimes confusing) to the casual installer])], + [USE_MAINTAINER_MODE=$enableval], + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST([MAINT])dnl +] +) m4_include([acinclude.m4]) diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/ChangeLog nagios-plugins-contrib-16.20151226/check_mysql_health/src/ChangeLog --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/ChangeLog 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/ChangeLog 2015-12-26 17:20:34.000000000 +0000 @@ -1,85 +1,79 @@ -############################################### -# Changelog of the check_mysql_health plugin # -############################################### - -2.1.8.2 2012-08-08 -- bugfix in querycache-hitrate (div by 0 after db restart). (Thanks Gianluca Varisco) - -2.1.8.1 2012-01-21 -- bugfix in timeout-alarm handling under windows -- fix warnings for newest perl versions - -2.1.8 2011-09-29 -- new parameters --mycnf and --mycnfgroup -- single ticks around the --name argument under Windows CMD will be removed auto +* 2.2.1 - 2015-08-18 + fix the autoconf m4, so the debian-builds don't fail (thanks Jan Wagner) +* 2.2 - 2015-04-23 + add rfc3986-encoded passwords +* 2.1.9.2 2014-12-22 + bugfix in InnoDB initialization & versions > 5.6.1 (Thanks Jorg Veit) +* 2.1.9.1 2014-06-12 + add connections_aborted, open_files to the pnp template (Thanks Simon Meggle) +* 2.1.9 2014-06-12 + bugfix in pnp template (Thanks Simon Meggle) + bugfix in qcache calculation (Thanks lermit) +* 2.1.8.4 2014-04-01 + implement --negate old_level=new_level + allow floating point numbers in thresholds +* 2.1.8.3 2012-10-15 + output also ok-messages for my-modes +* 2.1.8.2 2012-08-08 + bugfix in querycache-hitrate (div by 0 after db restart). (Thanks Gianluca Varisco) +* 2.1.8.1 2012-01-21 + bugfix in timeout-alarm handling under windows + fix warnings for newest perl versions +* 2.1.8 2011-09-29 + new parameters --mycnf and --mycnfgroup + single ticks around the --name argument under Windows CMD will be removed auto matically - -2.1.7 2011-08-23 -- innodb modes now detect problems with the innodb engine - -2.1.6 2011-08-12 -- fix a bug with statefilesdir and capital letters -- add --labelformat so that groundwork no longer complains (max label length is 19 characters) - -2.1.5.2 2011-06-03 -- sites in an OMD (http://omdistro.org) environment have now private statefile directories - -2.1.5.1 2011-01-03 -- bugfix in --mode sql (numeric vs. regexp result) - -2.1.5 2010-12-20 -- fixed a division by zero bug in index-usage (Thanks Wiltmut Gerdes) -- fixed a severe bug when loading dynamic extensions (Thanks Ralph Schneider) -- added mode table-fragmentation -- fixed a bug in table-lock-contention (thanks mayukmok00) -- mode sql can now have a non-numerical output which is compared to a string/regexp -- new parameter --dbthresholds -- new mode report can be used to output only the bad news (short,long,html) - -2.1.4 2010-10-02 -- added modes threads-created, threads-running, threads-cached -- added connects-aborted, clients-aborted - -2.1.3 2010-09-29 -- added mode open-files -- fix a bug in the pnp template -- add extra-opts - -2.1.2 2010-06-10 -- changed statements for 4.x compatibility (show variables like) (Thanks Florian) - -2.1.1 2010-03-30 -- added more tracing (touch /tmp/check_mysql_health.trace to watch) -- fixed a bug in master-slave modes, so it outputs a more meaningful error message (Thanks Will Oberman) -- fixed a typo (Thanks Larsen) - -2.1 -- parameter --lookback uses custom intervals for _now-values - -2.0.5 2009-09-21 -- fixed another bug in master-slave modes. (Thanks Thomas Mueller) -- fixed a bug in bufferpool-wait-free. (Thanks Matthias Flacke) -- fixed a bug in the PNP template. (Thanks Matthias Flacke) -- slave-lag now handles failed io threads. (Thanks Greg) -- fixed a bug in connections with non-standard sockets (Thanks Stephan Huiser) - -2.0.4 -- fixed a bug in --mode cluster-ndbd-running where dead api nodes were overseen -- fixed a bug in master-slave modes. (Thanks Arkadiusz Miskiewicz) - -2.0.3 -- fixed a bug with 0 warning/critical -- fixed a bug in long-running-procs (affects only mysql 5.0 and below). (Thanks Bodo Schulz) - -2.0.2 -- $NAGIOS__HOSTMYSQL_HOST etc. is now possible - -2.0.1 2009-03-09 -- fixed a (harmless) bug which caused uninitialized-messages. (Thanks John Alberts & Thomas Borger) -- enabled password-less login to localhost. - -2.0 2009-03-06 -- This is the first release of the new plugin check_mysql_health +* 2.1.7 2011-08-23 + innodb modes now detect problems with the innodb engine +* 2.1.6 2011-08-12 + fix a bug with statefilesdir and capital letters + add --labelformat so that groundwork no longer complains (max label length is 19 characters) +* 2.1.5.2 2011-06-03 + sites in an OMD (http://omdistro.org) environment have now private statefile directories +* 2.1.5.1 2011-01-03 + bugfix in --mode sql (numeric vs. regexp result) +* 2.1.5 2010-12-20 + fixed a division by zero bug in index-usage (Thanks Wiltmut Gerdes) + fixed a severe bug when loading dynamic extensions (Thanks Ralph Schneider) + added mode table-fragmentation + fixed a bug in table-lock-contention (thanks mayukmok00) + mode sql can now have a non-numerical output which is compared to a string/regexp + new parameter --dbthresholds + new mode report can be used to output only the bad news (short,long,html) +* 2.1.4 2010-10-02 + added modes threads-created, threads-running, threads-cached + added connects-aborted, clients-aborted +* 2.1.3 2010-09-29 + added mode open-files + fix a bug in the pnp template + add extra-opts +* 2.1.2 2010-06-10 + changed statements for 4.x compatibility (show variables like) (Thanks Florian) +* 2.1.1 2010-03-30 + added more tracing (touch /tmp/check_mysql_health.trace to watch) + fixed a bug in master-slave modes, so it outputs a more meaningful error message (Thanks Will Oberman) + fixed a typo (Thanks Larsen) +* 2.1 + parameter --lookback uses custom intervals for _now-values +* 2.0.5 2009-09-21 + fixed another bug in master-slave modes. (Thanks Thomas Mueller) + fixed a bug in bufferpool-wait-free. (Thanks Matthias Flacke) + fixed a bug in the PNP template. (Thanks Matthias Flacke) + slave-lag now handles failed io threads. (Thanks Greg) + fixed a bug in connections with non-standard sockets (Thanks Stephan Huiser) +* 2.0.4 + fixed a bug in --mode cluster-ndbd-running where dead api nodes were overseen + fixed a bug in master-slave modes. (Thanks Arkadiusz Miskiewicz) +* 2.0.3 + fixed a bug with 0 warning/critical + fixed a bug in long-running-procs (affects only mysql 5.0 and below). (Thanks Bodo Schulz) +* 2.0.2 + $NAGIOS__HOSTMYSQL_HOST etc. is now possible +* 2.0.1 2009-03-09 + fixed a (harmless) bug which caused uninitialized-messages. (Thanks John Alberts & Thomas Borger) + enabled password-less login to localhost. +* 2.0 2009-03-06 + This is the first release of the new plugin check_mysql_health It replaces check_mysql_perf which is a nightmare to install It is written in Perl It can use either DBD::mysql, the mysql command or DBD::SQLrelay diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/config.guess nagios-plugins-contrib-16.20151226/check_mysql_health/src/config.guess --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/config.guess 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/config.guess 2015-12-26 17:20:34.000000000 +0000 @@ -1,13 +1,12 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2003-10-20' +timestamp='2013-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -16,24 +15,22 @@ # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Per Bothner . -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner. # -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. +# Please send patches with a ChangeLog entry to config-patches@gnu.org. + me=`echo "$0" | sed -e 's,.*/,,'` @@ -53,8 +50,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -66,11 +62,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -104,7 +100,7 @@ trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; @@ -123,7 +119,7 @@ ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ;' +esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) @@ -136,12 +132,33 @@ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac + # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward @@ -158,6 +175,7 @@ arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched @@ -166,7 +184,7 @@ arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null + | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? @@ -176,7 +194,7 @@ fi ;; *) - os=netbsd + os=netbsd ;; esac # The OS release @@ -196,53 +214,36 @@ # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - macppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvmeppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pegasos:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mipseb-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then + case $UNAME_RELEASE in + *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU @@ -280,45 +281,52 @@ "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac + # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; - Alpha*:OpenVMS:*:*) - echo alpha-hp-vms - exit 0 ;; + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix - exit 0 ;; + exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 - exit 0 ;; + exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 - exit 0;; + exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; + exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos - exit 0 ;; + exit ;; *:OS/390:*:*) echo i370-ibm-openedition - exit 0 ;; + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; *:OS400:*:*) - echo powerpc-ibm-os400 - exit 0 ;; + echo powerpc-ibm-os400 + exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; + exit ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp - exit 0;; + exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then @@ -326,32 +334,51 @@ else echo pyramid-pyramid-bsd fi - exit 0 ;; + exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 - exit 0 ;; + exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 - exit 0 ;; - DRS?6000:UNIX_SV:4.2*:7*) + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7 && exit 0 ;; + sparc) echo sparc-icl-nx7; exit ;; esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) @@ -360,10 +387,10 @@ esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; + exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 @@ -375,10 +402,10 @@ echo sparc-sun-sunos${UNAME_RELEASE} ;; esac - exit 0 ;; + exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor @@ -388,38 +415,41 @@ # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; + exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 - exit 0 ;; + exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; + exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -443,35 +473,36 @@ exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c \ - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; + exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax - exit 0 ;; + exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix - exit 0 ;; + exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 - exit 0 ;; + exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 - exit 0 ;; + exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ @@ -484,29 +515,29 @@ else echo i586-dg-dgux${UNAME_RELEASE} fi - exit 0 ;; + exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 - exit 0 ;; + exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 - exit 0 ;; + exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd - exit 0 ;; + exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; + exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix - exit 0 ;; + exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` @@ -514,7 +545,7 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build @@ -529,15 +560,19 @@ exit(0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo rs6000-ibm-aix3.2.5 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi - exit 0 ;; - *:AIX:*:[45]) + exit ;; + *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 @@ -550,28 +585,28 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:*:*) echo rs6000-ibm-aix - exit 0 ;; + exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 - exit 0 ;; + exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 + exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx - exit 0 ;; + exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 - exit 0 ;; + exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd - exit 0 ;; + exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 - exit 0 ;; + exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in @@ -580,52 +615,52 @@ 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac + esac ;; + esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa @@ -633,9 +668,19 @@ esac if [ ${HP_ARCH} = "hppa2.0w" ] then - # avoid double evaluation of $set_cc_for_build - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ then HP_ARCH="hppa2.0w" else @@ -643,11 +688,11 @@ fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -675,337 +720,345 @@ exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 - exit 0 ;; + exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd - exit 0 ;; + exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd - exit 0 ;; + exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix - exit 0 ;; + exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf - exit 0 ;; + exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf - exit 0 ;; + exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi - exit 0 ;; + exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites - exit 0 ;; + exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd - exit 0 ;; + exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd - exit 0 ;; + exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd - exit 0 ;; + exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd - exit 0 ;; + exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; *:UNICOS/mp:*:*) - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:FreeBSD:*:*) - # Determine whether the default compiler uses glibc. - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #if __GLIBC__ >= 2 - LIBC=gnu - #else - LIBC= - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - # GNU/KFreeBSD systems have a "k" prefix to indicate we are using - # FreeBSD's kernel, but not the complete OS. - case ${LIBC} in gnu) kernel_only='k' ;; esac - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} - exit 0 ;; + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) + exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; + *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; + exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 - exit 0 ;; - x86:Interix*:[34]*) - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' - exit 0 ;; + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks - exit 0 ;; + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix - exit 0 ;; + exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin - exit 0 ;; + exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; *:GNU:*:*) # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix - exit 0 ;; + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; arm*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; cris:Linux:*:*) - echo cris-axis-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; - mips:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips - #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 - ;; - mips64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU - #undef mips64 - #undef mips64el + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mips64el + CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips64 + CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit 0 ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit 0 ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit 0 ;; + or1k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + or32:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; esac - exit 0 ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit 0 ;; + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu - exit 0 ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - a.out-i386-linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 ;; - coff-i386) - echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 ;; - "") - # Either a pre-BFD a.out linker (linux-gnuoldld) or - # one that does not give us useful --help. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit 0 ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #ifdef __INTEL_COMPILER - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 - ;; + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 - exit 0 ;; + exit ;; i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. + # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx - exit 0 ;; + exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop - exit 0 ;; + exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos - exit 0 ;; - i*86:syllable:*:*) + exit ;; + i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable - exit 0 ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; + exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then @@ -1013,15 +1066,16 @@ else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi - exit 0 ;; - i*86:*:5:[78]*) + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi - exit 0 ;; + exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv - exit 0 ;; + exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv - exit 0 ;; + exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 - exit 0 ;; + exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; + exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` @@ -1113,68 +1180,99 @@ else echo ns32k-sni-sysv fi - exit 0 ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit 0 ;; + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 - exit 0 ;; + exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 - exit 0 ;; + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos - exit 0 ;; + exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; + exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 - exit 0 ;; + exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv${UNAME_RELEASE} else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv${UNAME_RELEASE} fi - exit 0 ;; + exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos - exit 0 ;; + exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos - exit 0 ;; + exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos - exit 0 ;; + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Darwin:*:*) - case `uname -p` in - *86) UNAME_PROCESSOR=i686 ;; - powerpc) UNAME_PROCESSOR=powerpc ;; - esac + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit 0 ;; + exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then @@ -1182,22 +1280,28 @@ UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit 0 ;; + exit ;; *:QNX:*:4*) echo i386-pc-qnx - exit 0 ;; - NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) + exit ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} - exit 0 ;; + exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux - exit 0 ;; + exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv - exit 0 ;; + exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 @@ -1208,36 +1312,55 @@ UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 - exit 0 ;; + exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 - exit 0 ;; + exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex - exit 0 ;; + exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 - exit 0 ;; + exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 - exit 0 ;; + exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 - exit 0 ;; + exit ;; *:ITS:*:*) echo pdp10-unknown-its - exit 0 ;; + exit ;; SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit 0 ;; - *:DRAGONFLY:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE} - exit 0 ;; + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; esac -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - eval $set_cc_for_build cat >$dummy.c < printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 - "4" + "4" #else - "" + "" #endif - ); exit (0); + ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); + printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) @@ -1353,11 +1476,12 @@ } EOF -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) @@ -1366,22 +1490,22 @@ case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd - exit 0 ;; + exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; c34*) echo c34-convex-bsd - exit 0 ;; + exit ;; c38*) echo c38-convex-bsd - exit 0 ;; + exit ;; c4*) echo c4-convex-bsd - exit 0 ;; + exit ;; esac fi @@ -1392,7 +1516,9 @@ the operating system you are using. It is advised that you download the most up to date version of the config scripts from - ftp://ftp.gnu.org/pub/gnu/config/ + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD +and + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run ($0) is already up to date, please send the following data and any information you think might be diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/config.sub nagios-plugins-contrib-16.20151226/check_mysql_health/src/config.sub --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/config.sub 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/config.sub 2015-12-26 17:20:34.000000000 +0000 @@ -1,42 +1,40 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2003-11-20' +timestamp='2013-04-24' -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - +# along with this program; if not, see . +# # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. + +# Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. @@ -70,8 +68,7 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -83,11 +80,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -99,7 +96,7 @@ *local*) # First pass through any local machine types. echo $1 - exit 0;; + exit ;; * ) break ;; @@ -118,11 +115,18 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] @@ -145,10 +149,13 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) + -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; + -bluegene*) + os=-cnk + ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 @@ -163,13 +170,17 @@ os=-chorusos basic_machine=$1 ;; - -chorusrdb) - os=-chorusrdb + -chorusrdb) + os=-chorusrdb basic_machine=$1 - ;; + ;; -hiux*) os=-hiuxwe2 ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -186,6 +197,10 @@ # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -203,6 +218,12 @@ -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; -lynx*) os=-lynxos ;; @@ -227,57 +248,106 @@ # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ + | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | be32 | be64 \ + | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ + | epiphany \ + | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | m32r | m68000 | m68k | m88k | mcore \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ - | mips64vr | mips64vrel \ + | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ + | moxie \ + | mt \ | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ - | openrisc | or32 \ + | open8 \ + | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ - | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ - | v850 | v850e \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ - | x86 | xscale | xstormy16 | xtensa \ - | z8k) + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) basic_machine=$basic_machine-unknown ;; - m6811 | m68hc11 | m6812 | m68hc12) - # Motorola 68HC11/12. + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and @@ -293,59 +363,82 @@ # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ + | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* \ - | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | cydra-* \ + | avr-* | avr32-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ - | m32r-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | mcore-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ - | mips64vr-* | mips64vrel-* \ + | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ - | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ + | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ | tron-* \ - | v850-* | v850e-* | vax-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ - | xtensa-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ | ymp-* \ - | z8k-*) + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. @@ -363,6 +456,9 @@ basic_machine=a29k-amd os=-udi ;; + abacus) + basic_machine=abacus-unknown + ;; adobe68k) basic_machine=m68010-adobe os=-scout @@ -380,6 +476,9 @@ amd64) basic_machine=x86_64-pc ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; amdahl) basic_machine=580-amdahl os=-sysv @@ -403,6 +502,10 @@ basic_machine=m68k-apollo os=-bsd ;; + aros) + basic_machine=i386-pc + os=-aros + ;; aux) basic_machine=m68k-apple os=-aux @@ -411,10 +514,35 @@ basic_machine=ns32k-sequent os=-dynix ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; c90) basic_machine=c90-cray os=-unicos ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; convex-c1) basic_machine=c1-convex os=-bsd @@ -439,12 +567,27 @@ basic_machine=j90-cray os=-unicos ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; crds | unos) basic_machine=m68k-crds ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; da30 | da30-*) basic_machine=m68k-da30 ;; @@ -467,6 +610,14 @@ basic_machine=m88k-motorola os=-sysv3 ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx @@ -578,7 +729,6 @@ i370-ibm* | ibm*) basic_machine=i370-ibm ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 @@ -617,6 +767,14 @@ basic_machine=m68k-isi os=-sysv ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; m88k-omron*) basic_machine=m88k-omron ;; @@ -628,10 +786,21 @@ basic_machine=ns32k-utek os=-sysv ;; + microblaze*) + basic_machine=microblaze-xilinx + ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; miniframe) basic_machine=m68000-convergent ;; @@ -645,10 +814,6 @@ mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; monitor) basic_machine=m68k-rom68k os=-coff @@ -661,10 +826,21 @@ basic_machine=i386-pc os=-msdos ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i386-pc + os=-msys + ;; mvs) basic_machine=i370-ibm os=-mvs ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; ncr3000) basic_machine=i486-ncr os=-sysv4 @@ -729,9 +905,11 @@ np1) basic_machine=np1-gould ;; - nv1) - basic_machine=nv1-cray - os=-unicosmp + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem @@ -740,9 +918,8 @@ basic_machine=hppa1.1-oki os=-proelf ;; - or32 | or32-*) + openrisc | openrisc-*) basic_machine=or32-unknown - os=-coff ;; os400) basic_machine=powerpc-ibm @@ -764,6 +941,14 @@ basic_machine=i860-intel os=-osf ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; pbd) basic_machine=sparc-tti ;; @@ -773,6 +958,12 @@ pc532 | pc532-*) basic_machine=ns32k-pc532 ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; @@ -802,9 +993,10 @@ ;; power) basic_machine=power-ibm ;; - ppc) basic_machine=powerpc-unknown + ppc | ppcbe) basic_machine=powerpc-unknown ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown @@ -829,6 +1021,14 @@ basic_machine=i586-unknown os=-pw32 ;; + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) + basic_machine=i386-pc + os=-rdos + ;; rom68k) basic_machine=m68k-rom68k os=-coff @@ -855,6 +1055,10 @@ sb1el) basic_machine=mipsisa64sb1el-unknown ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; sei) basic_machine=mips-sei os=-seiux @@ -866,6 +1070,9 @@ basic_machine=sh-hitachi os=-hms ;; + sh5el) + basic_machine=sh5le-unknown + ;; sh64) basic_machine=sh64-unknown ;; @@ -887,6 +1094,9 @@ basic_machine=i860-stratus os=-sysv4 ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; sun2) basic_machine=m68000-sun ;; @@ -943,17 +1153,9 @@ basic_machine=t90-cray os=-unicos ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown @@ -1015,9 +1217,16 @@ basic_machine=hppa1.1-winbond os=-proelf ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; xps | xps100) basic_machine=xps100-honeywell ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; ymp) basic_machine=ymp-cray os=-unicos @@ -1026,6 +1235,10 @@ basic_machine=z8k-unknown os=-sim ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; none) basic_machine=none-none os=-none @@ -1045,6 +1258,9 @@ romp) basic_machine=romp-ibm ;; + mmix) + basic_machine=mmix-knuth + ;; rs6000) basic_machine=rs6000-ibm ;; @@ -1061,13 +1277,10 @@ we32k) basic_machine=we32k-att ;; - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sh64) - basic_machine=sh64-unknown - ;; - sparc | sparcv9 | sparcv9b) + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) @@ -1111,9 +1324,12 @@ if [ x"$os" != x"" ] then case $os in - # First match some system type aliases - # that might get confused with valid system types. + # First match some system type aliases + # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; @@ -1134,25 +1350,31 @@ # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ + | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1170,7 +1392,7 @@ os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) @@ -1191,7 +1413,7 @@ -opened*) os=-openedition ;; - -os400*) + -os400*) os=-os400 ;; -wince*) @@ -1240,7 +1462,7 @@ -sinix*) os=-sysv4 ;; - -tpf*) + -tpf*) os=-tpf ;; -triton*) @@ -1276,8 +1498,13 @@ -aros*) os=-aros ;; - -kaos*) - os=-kaos + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) ;; -none) ;; @@ -1301,6 +1528,12 @@ # system, and we'll never get to this point. case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; *-acorn) os=-riscix1.2 ;; @@ -1310,9 +1543,21 @@ arm*-semi) os=-aout ;; - c4x-* | tic4x-*) - os=-coff - ;; + c4x-* | tic4x-*) + os=-coff + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 @@ -1331,19 +1576,22 @@ ;; m68000-sun) os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 ;; m68*-cisco) os=-aout ;; + mep-*) + os=-elf + ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; + or1k-*) + os=-elf + ;; or32-*) os=-coff ;; @@ -1356,9 +1604,15 @@ *-be) os=-beos ;; + *-haiku) + os=-haiku + ;; *-ibm) os=-aix ;; + *-knuth) + os=-mmixware + ;; *-wec) os=-proelf ;; @@ -1461,7 +1715,7 @@ -sunos*) vendor=sun ;; - -aix*) + -cnk*|-aix*) vendor=ibm ;; -beos*) @@ -1524,7 +1778,7 @@ esac echo $basic_machine$os -exit 0 +exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/configure nagios-plugins-contrib-16.20151226/check_mysql_health/src/configure --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/configure 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/configure 2015-12-26 17:20:34.000000000 +0000 @@ -1,82 +1,458 @@ #! /bin/sh -# From configure.in . # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for check_mysql_health 2.1.8.2. +# Generated by GNU Autoconf 2.69 for check_mysql_health 2.2.1. +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# # -# Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac fi -DUALCASE=1; export DUALCASE # for MKS sh -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." else - $as_unset $as_var + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." fi -done + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. -as_me=`$as_basename "$0" || +as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` - -# PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' @@ -84,146 +460,91 @@ as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop - s,-$,, - s,^['$as_cr_digits']*\n,, + s/-\n.*// ' >$as_me.lineno && - chmod +x $as_me.lineno || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" # Exit status is that of the last command. exit } - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file else - as_expr=false + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi -rm -f conf$$ conf$$.exe conf$$.file +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi -as_executable_p="test -f" +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -232,53 +553,152 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` -exec 6>&1 - # # Initializations. # ac_default_prefix=/usr/local +ac_clean_files= ac_config_libobj_dir=. +LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME='check_mysql_health' PACKAGE_TARNAME='check_mysql_health' -PACKAGE_VERSION='2.1.8.2' -PACKAGE_STRING='check_mysql_health 2.1.8.2' +PACKAGE_VERSION='2.2.1' +PACKAGE_STRING='check_mysql_health 2.2.1' PACKAGE_BUGREPORT='' +PACKAGE_URL='' ac_default_prefix=/usr/local/nagios -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os RELEASE INSTALL WARRANTY SUPPORT with_nagios_user with_nagios_group INSTALL_OPTS STATEFILES_DIR MYMODULES_DIR MYMODULES_DYN_DIR SH PERL GZIP GREP ECHO SED CAT LIBOBJS LTLIBOBJS' +ac_subst_vars='LTLIBOBJS +LIBOBJS +GZIP +PERL +SH +CAT +GREP +SED +ECHO +INSTALL +MYMODULES_DYN_DIR +MYMODULES_DIR +STATEFILES_DIR +INSTALL_OPTS +with_nagios_group +with_nagios_user +SUPPORT +WARRANTY +RELEASE +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +MAINT +MAINTAINER_MODE_FALSE +MAINTAINER_MODE_TRUE +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_maintainer_mode +with_nagios_user +with_nagios_group +with_statefiles_dir +with_mymodules_dir +with_mymodules_dyn_dir +with_perl +' + ac_precious_vars='build_alias +host_alias +target_alias' + # Initialize some variables set by options. ac_init_help= ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null @@ -301,34 +721,49 @@ # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' +datarootdir='${prefix}/share' +datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' ac_prev= +ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" + eval $ac_prev=\$ac_option ac_prev= continue fi - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_option in + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; @@ -350,33 +785,59 @@ --config-cache | -C) cache_file=config.cache ;; - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) + -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; esac - eval "enable_$ac_feature='$ac_optarg'" ;; + eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -403,6 +864,12 @@ -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; @@ -427,13 +894,16 @@ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) + | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) @@ -498,6 +968,16 @@ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; @@ -548,26 +1028,36 @@ ac_init_version=: ;; -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; esac - eval "with_$ac_package='$ac_optarg'" ;; + eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. @@ -587,27 +1077,26 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac @@ -615,31 +1104,36 @@ if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "missing argument to $ac_option" fi -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac -done +fi -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir do - eval ac_val=$`echo $ac_var` + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' @@ -653,8 +1147,6 @@ if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi @@ -666,54 +1158,72 @@ test "$silent" = yes && exec 6>/dev/null +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_confdir=`(dirname "$0") 2>/dev/null || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then + if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 - { (exit 1); exit 1; }; } -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done # # Report the --help message. @@ -722,7 +1232,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures check_mysql_health 2.1.8.2 to adapt to many kinds of systems. +\`configure' configures check_mysql_health 2.2.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -736,20 +1246,17 @@ --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages + -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] -_ACEOF - - cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] + [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] + [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify @@ -759,18 +1266,26 @@ For better control, use the options below. Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data [PREFIX/share] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --infodir=DIR info documentation [PREFIX/info] - --mandir=DIR man documentation [PREFIX/man] + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root + [DATAROOTDIR/doc/check_mysql_health] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF @@ -788,10 +1303,20 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of check_mysql_health 2.1.8.2:";; + short | recursive ) echo "Configuration of check_mysql_health 2.2.1:";; esac cat <<\_ACEOF +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --enable-maintainer-mode + enable make rules and dependencies not useful (and + sometimes confusing) to the casual installer + Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) @@ -802,121 +1327,93 @@ --with-mymodules-dyn-dir=PATH sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec) --with-perl=PATH sets path to perl executable +Report bugs to the package provider. _ACEOF +ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. - ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d $ac_dir || continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue ac_builddir=. -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix case $srcdir in - .) # No --srcdir option. We are building in place. + .) # We are building in place. ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - cd $ac_dir - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_srcdir/configure.gnu; then - echo - $SHELL $ac_srcdir/configure.gnu --help=recursive - elif test -f $ac_srcdir/configure; then - echo - $SHELL $ac_srcdir/configure --help=recursive - elif test -f $ac_srcdir/configure.ac || - test -f $ac_srcdir/configure.in; then - echo - $ac_configure --help + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi - cd $ac_popdir + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } done fi -test -n "$ac_init_help" && exit 0 +test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -check_mysql_health configure 2.1.8.2 -generated by GNU Autoconf 2.59 +check_mysql_health configure 2.2.1 +generated by GNU Autoconf 2.69 -Copyright (C) 2003 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF - exit 0 + exit fi -exec 5>config.log -cat >&5 <<_ACEOF + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## +cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by check_mysql_health $as_me 2.1.8.2, which was -generated by GNU Autoconf 2.59. Invocation command line was +It was created by check_mysql_health $as_me 2.2.1, which was +generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF +exec 5>>config.log { cat <<_ASUNAME ## --------- ## @@ -935,7 +1432,7 @@ /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` @@ -947,8 +1444,9 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS } >&5 @@ -970,7 +1468,6 @@ ac_configure_args= ac_configure_args0= ac_configure_args1= -ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do @@ -981,13 +1478,13 @@ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" + as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else @@ -1003,104 +1500,115 @@ -* ) ac_must_keep_next=true ;; esac fi - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - # Get rid of the leading space. - ac_sep=" " + as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. -# WARNING: Be sure not to use single quotes in there, as some shells, -# such as our DU 5.0 friend, will then `close' the trap. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo - cat <<\_ASBOX -## ---------------- ## + $as_echo "## ---------------- ## ## Cache variables. ## -## ---------------- ## -_ASBOX +## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, -{ +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; - esac; -} + esac | + sort +) echo - cat <<\_ASBOX -## ----------------- ## + $as_echo "## ----------------- ## ## Output variables. ## -## ----------------- ## -_ASBOX +## ----------------- ##" echo for ac_var in $ac_subst_vars do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------- ## -## Output files. ## -## ------------- ## -_ASBOX + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" echo for ac_var in $ac_subst_files do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## + $as_echo "## ----------- ## ## confdefs.h. ## -## ----------- ## -_ASBOX +## ----------- ##" echo - sed "/^$/d" confdefs.h | sort + cat confdefs.h echo fi test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" } >&5 - rm -f core *.core && - rm -rf conftest* confdefs* conf$$* $ac_clean_files && + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status - ' 0 +' 0 for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. @@ -1108,112 +1616,137 @@ #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + # Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; esac fi else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do +for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -1222,56 +1755,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +am__api_version='1.14' - - - - - - - - - - - - - - - - - - - - - - - - -am__api_version="1.9" ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break - elif test -f $ac_dir/install.sh; then + elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break - elif test -f $ac_dir/shtool; then + elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} - { (exit 1); exit 1; }; } -fi -ac_config_guess="$SHELL $ac_aux_dir/config.guess" -ac_config_sub="$SHELL $ac_aux_dir/config.sub" -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -1286,22 +1799,23 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. @@ -1309,7 +1823,7 @@ # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. @@ -1319,30 +1833,43 @@ # program-specific install script used by HP pwplus--don't use. : else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi fi fi done done ;; esac -done + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is - # removed, or if the path is relative. + # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -1352,118 +1879,262 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done test "$2" = conftest.file ) then # Ok. : else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 + +rm -f conftest.file + test "$program_prefix" != NONE && - program_transform_name="s,^,$program_prefix,;$program_transform_name" + program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && - program_transform_name="s,\$,$program_suffix,;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. # By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm conftest.sed +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " else am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" else - mkdir_p='$(install_sh) -d' + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP fi +else + STRIP="$ac_cv_prog_STRIP" fi +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. @@ -1473,55 +2144,59 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi + test -n "$AWK" && break done -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF +SHELL = /bin/sh all: - @echo 'ac_maketemp="$(MAKE)"' + @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac rm -f conftest.make fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } SET_MAKE= else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -1534,12 +2209,53 @@ fi rmdir .tst 2>/dev/null -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi fi # test whether we have cygpath @@ -1554,7 +2270,7 @@ # Define the identity of the package. PACKAGE='check_mysql_health' - VERSION='2.1.8.2' + VERSION='2.2.1' cat >>confdefs.h <<_ACEOF @@ -1582,359 +2298,252 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -install_sh=${install_sh-"$am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' - STRIP=$ac_ct_STRIP -else - STRIP="$ac_cv_prog_STRIP" -fi -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. -AMTAR=${AMTAR-"${am_missing_run}tar"} + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 +$as_echo_n "checking how to create a pax tar archive... " >&6; } -echo "$as_me:$LINENO: checking how to create a pax tar archive" >&5 -echo $ECHO_N "checking how to create a pax tar archive... $ECHO_C" >&6 -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' -_am_tools=${am_cv_prog_tar_pax-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - { echo "$as_me:$LINENO: $_am_tar --version" >&5 + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_pax-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + { echo "$as_me:$LINENO: $_am_tar --version" >&5 ($_am_tar --version) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && break - done - am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x pax -w "$$tardir"' - am__tar_='pax -L -x pax -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H pax -L' - am__tar_='find "$tardir" -print | cpio -o -H pax -L' - am__untar='cpio -i -H pax -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_pax}" && break + done + am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x pax -w "$$tardir"' + am__tar_='pax -L -x pax -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H pax -L' + am__tar_='find "$tardir" -print | cpio -o -H pax -L' + am__untar='cpio -i -H pax -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_pax}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } - rm -rf conftest.dir - if test -s conftest.tar; then - { echo "$as_me:$LINENO: $am__untar &5 + rm -rf conftest.dir + if test -s conftest.tar; then + { echo "$as_me:$LINENO: $am__untar &5 ($am__untar &5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break - fi -done -rm -rf conftest.dir + { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 + (cat conftest.dir/file) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break + fi + done + rm -rf conftest.dir -if test "${am_cv_prog_tar_pax+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if ${am_cv_prog_tar_pax+:} false; then : + $as_echo_n "(cached) " >&6 else am_cv_prog_tar_pax=$_am_tool fi -echo "$as_me:$LINENO: result: $am_cv_prog_tar_pax" >&5 -echo "${ECHO_T}$am_cv_prog_tar_pax" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 +$as_echo "$am_cv_prog_tar_pax" >&6; } -# Make sure we can run config.sub. -$ac_config_sub sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 -echo "$as_me: error: cannot run $ac_config_sub" >&2;} - { (exit 1); exit 1; }; } - -echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6 -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_build_alias=$build_alias -test -z "$ac_cv_build_alias" && - ac_cv_build_alias=`$ac_config_guess` -test -z "$ac_cv_build_alias" && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi -echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6 -build=$ac_cv_build -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - -echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6 -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_host_alias=$host_alias -test -z "$ac_cv_host_alias" && - ac_cv_host_alias=$ac_cv_build_alias -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} - { (exit 1); exit 1; }; } +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! -fi -echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6 -host=$ac_cv_host -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. -RELEASE=1 +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } + # Check whether --enable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then : + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval +else + USE_MAINTAINER_MODE=no +fi -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 +$as_echo "$USE_MAINTAINER_MODE" >&6; } + if test $USE_MAINTAINER_MODE = yes; then + MAINTAINER_MODE_TRUE= + MAINTAINER_MODE_FALSE='#' else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done + MAINTAINER_MODE_TRUE='#' + MAINTAINER_MODE_FALSE= +fi + MAINT=$MAINTAINER_MODE_TRUE -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac +RELEASE=1 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -all: - @echo 'ac_maketemp="$(MAKE)"' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftest.make -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - SET_MAKE= -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - SET_MAKE="MAKE=${MAKE-make}" -fi WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" @@ -1944,74 +2553,112 @@ -# Check whether --with-nagios_user or --without-nagios_user was given. -if test "${with_nagios_user+set}" = set; then - withval="$with_nagios_user" - with_nagios_user=$withval +# Check whether --with-nagios_user was given. +if test "${with_nagios_user+set}" = set; then : + withval=$with_nagios_user; with_nagios_user=$withval else with_nagios_user=nagios -fi; +fi -# Check whether --with-nagios_group or --without-nagios_group was given. -if test "${with_nagios_group+set}" = set; then - withval="$with_nagios_group" - with_nagios_group=$withval + +# Check whether --with-nagios_group was given. +if test "${with_nagios_group+set}" = set; then : + withval=$with_nagios_group; with_nagios_group=$withval else with_nagios_group=nagios -fi; +fi + INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" -# Check whether --with-statefiles_dir or --without-statefiles_dir was given. -if test "${with_statefiles_dir+set}" = set; then - withval="$with_statefiles_dir" - with_statefiles_dir=$withval +# Check whether --with-statefiles_dir was given. +if test "${with_statefiles_dir+set}" = set; then : + withval=$with_statefiles_dir; with_statefiles_dir=$withval else with_statefiles_dir=/var/tmp/check_mysql_health -fi; +fi + STATEFILES_DIR=$with_statefiles_dir echo variable with_statefiles_dir is $with_statefiles_dir -# Check whether --with-mymodules_dir or --without-mymodules_dir was given. -if test "${with_mymodules_dir+set}" = set; then - withval="$with_mymodules_dir" - with_mymodules_dir=$withval +# Check whether --with-mymodules_dir was given. +if test "${with_mymodules_dir+set}" = set; then : + withval=$with_mymodules_dir; with_mymodules_dir=$withval else with_mymodules_dir=/usr/local/nagios/libexec -fi; +fi + MYMODULES_DIR=$with_mymodules_dir echo variable with_mymodules_dir is $with_mymodules_dir -# Check whether --with-mymodules_dyn_dir or --without-mymodules_dyn_dir was given. -if test "${with_mymodules_dyn_dir+set}" = set; then - withval="$with_mymodules_dyn_dir" - with_mymodules_dyn_dir=$withval +# Check whether --with-mymodules_dyn_dir was given. +if test "${with_mymodules_dyn_dir+set}" = set; then : + withval=$with_mymodules_dyn_dir; with_mymodules_dyn_dir=$withval else with_mymodules_dyn_dir=/usr/local/nagios/libexec -fi; +fi + MYMODULES_DYN_DIR=$with_mymodules_dyn_dir echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir + EXTRAS= +# PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH -# Extract the first word of "sh", so it can be a program name with args. -set dummy sh; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_SH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + +# Checks for programs. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 else - case $SH in + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +# Figure out how to invoke "install" and what install options to use. + + +# Extract the first word of "echo", so it can be a program name with args. +set dummy echo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ECHO+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ECHO in [\\/]* | ?:[\\/]*) - ac_cv_path_SH="$SH" # Let the user override the test with a path. + ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2019,38 +2666,39 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi -SH=$ac_cv_path_SH - -if test -n "$SH"; then - echo "$as_me:$LINENO: result: $SH" >&5 -echo "${ECHO_T}$SH" >&6 +ECHO=$ac_cv_path_ECHO +if test -n "$ECHO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 +$as_echo "$ECHO" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + +# Extract the first word of "sed", so it can be a program name with args. +set dummy sed; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 else - case $PERL in + case $SED in [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ac_cv_path_SED="$SED" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2058,38 +2706,39 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi -PERL=$ac_cv_path_PERL - -if test -n "$PERL"; then - echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6 +SED=$ac_cv_path_SED +if test -n "$SED"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +$as_echo "$SED" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -# Extract the first word of "gzip", so it can be a program name with args. -set dummy gzip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_GZIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + +# Extract the first word of "grep", so it can be a program name with args. +set dummy grep; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 else - case $GZIP in + case $GREP in [\\/]* | ?:[\\/]*) - ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. + ac_cv_path_GREP="$GREP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2097,40 +2746,39 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi -GZIP=$ac_cv_path_GZIP - -if test -n "$GZIP"; then - echo "$as_me:$LINENO: result: $GZIP" >&5 -echo "${ECHO_T}$GZIP" >&6 +GREP=$ac_cv_path_GREP +if test -n "$GREP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 +$as_echo "$GREP" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -for ac_prog in gawk nawk /usr/xpg4/bin/awk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + +# Extract the first word of "cat", so it can be a program name with args. +set dummy cat; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_CAT+:} false; then : + $as_echo_n "(cached) " >&6 else - case $AWK in + case $CAT in [\\/]* | ?:[\\/]*) - ac_cv_path_AWK="$AWK" # Let the user override the test with a path. + ac_cv_path_CAT="$CAT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2138,41 +2786,39 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi -AWK=$ac_cv_path_AWK - -if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 +CAT=$ac_cv_path_CAT +if test -n "$CAT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 +$as_echo "$CAT" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - test -n "$AWK" && break -done -# Extract the first word of "grep", so it can be a program name with args. -set dummy grep; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +# Extract the first word of "sh", so it can be a program name with args. +set dummy sh; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SH+:} false; then : + $as_echo_n "(cached) " >&6 else - case $GREP in + case $SH in [\\/]* | ?:[\\/]*) - ac_cv_path_GREP="$GREP" # Let the user override the test with a path. + ac_cv_path_SH="$SH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2180,38 +2826,39 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi -GREP=$ac_cv_path_GREP - -if test -n "$GREP"; then - echo "$as_me:$LINENO: result: $GREP" >&5 -echo "${ECHO_T}$GREP" >&6 +SH=$ac_cv_path_SH +if test -n "$SH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 +$as_echo "$SH" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -# Extract the first word of "echo", so it can be a program name with args. -set dummy echo; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_ECHO+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PERL+:} false; then : + $as_echo_n "(cached) " >&6 else - case $ECHO in + case $PERL in [\\/]* | ?:[\\/]*) - ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2219,38 +2866,39 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi -ECHO=$ac_cv_path_ECHO - -if test -n "$ECHO"; then - echo "$as_me:$LINENO: result: $ECHO" >&5 -echo "${ECHO_T}$ECHO" >&6 +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -# Extract the first word of "sed", so it can be a program name with args. -set dummy sed; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + +# Extract the first word of "gzip", so it can be a program name with args. +set dummy gzip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GZIP+:} false; then : + $as_echo_n "(cached) " >&6 else - case $SED in + case $GZIP in [\\/]* | ?:[\\/]*) - ac_cv_path_SED="$SED" # Let the user override the test with a path. + ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2258,38 +2906,41 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi -SED=$ac_cv_path_SED - -if test -n "$SED"; then - echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6 +GZIP=$ac_cv_path_GZIP +if test -n "$GZIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 +$as_echo "$GZIP" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -# Extract the first word of "cat", so it can be a program name with args. -set dummy cat; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_CAT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + +for ac_prog in gawk nawk /usr/xpg4/bin/awk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_AWK+:} false; then : + $as_echo_n "(cached) " >&6 else - case $CAT in + case $AWK in [\\/]* | ?:[\\/]*) - ac_cv_path_CAT="$CAT" # Let the user override the test with a path. + ac_cv_path_AWK="$AWK" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -2297,41 +2948,54 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done +IFS=$as_save_IFS ;; esac fi -CAT=$ac_cv_path_CAT - -if test -n "$CAT"; then - echo "$as_me:$LINENO: result: $CAT" >&5 -echo "${ECHO_T}$CAT" >&6 +AWK=$ac_cv_path_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi + test -n "$AWK" && break +done + +# allow them to override the path of perl -# Check whether --with-perl or --without-perl was given. -if test "${with_perl+set}" = set; then - withval="$with_perl" - with_perl=$withval +# Check whether --with-perl was given. +if test "${with_perl+set}" = set; then : + withval=$with_perl; with_perl=$withval else with_perl=$PERL -fi; +fi + PERL=$with_perl - ac_config_files="$ac_config_files Makefile plugins-scripts/Makefile plugins-scripts/subst t/Makefile" +# Checks for libraries. + +# Checks for header files. + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +ac_config_files="$ac_config_files Makefile plugins-scripts/Makefile plugins-scripts/subst t/Makefile" + cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -2350,39 +3014,70 @@ # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. +# So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. -{ +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; + ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; - esac; -} | + esac | + sort +) | sed ' + /^ac_cv_env_/b end t clear - : clear + :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi else - echo "not updating unwritable cache $cache_file" + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -2391,76 +3086,83 @@ # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, +# take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\_ACEOF +ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +:clear +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -_ACEOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed +b any +:quote +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +s/\[/\\&/g +s/\]/\\&/g +s/\$/$$/g +H +:any +${ + g + s/^\n// + s/\n/ /g + p +} +' +DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= +U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. - ac_i=`echo "$ac_i" | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Add them. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } -: ${CONFIG_STATUS=./config.status} +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -2470,81 +3172,253 @@ debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -DUALCASE=1; export DUALCASE # for MKS sh -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi -done + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. -as_me=`$as_basename "$0" || +as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` -# PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' @@ -2552,148 +3426,111 @@ as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file else - as_expr=false + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi -rm -f conf$$ conf$$.exe conf$$.file +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + +} # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi -as_executable_p="test -f" + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -2702,31 +3539,20 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Open the log real soon, to keep \$[0] and so on meaningful, and to +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. Logging --version etc. is OK. -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX -} >&5 -cat >&5 <<_CSEOF - -This file was extended by check_mysql_health $as_me 2.1.8.2, which was -generated by GNU Autoconf 2.59. Invocation command line was +# values after options handling. +ac_log=" +This file was extended by check_mysql_health $as_me 2.2.1, which was +generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -2734,125 +3560,119 @@ CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ -_CSEOF -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -echo >&5 +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + _ACEOF -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" -cat >>$CONFIG_STATUS <<\_ACEOF +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -Usage: $0 [OPTIONS] [FILE]... +Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE Configuration files: $config_files -Report bugs to ." -_ACEOF +Report bugs to the package provider." -cat >>$CONFIG_STATUS <<_ACEOF +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -check_mysql_health config.status 2.1.8.2 -configured by $0, generated by GNU Autoconf 2.59, - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" +check_mysql_health config.status 2.2.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" -Copyright (C) 2003 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." -srcdir=$srcdir -INSTALL="$INSTALL" + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= ac_shift=: ;; - -*) + *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_option=$1 - ac_need_defaults=false;; esac case $ac_option in # Handling of the options. -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:$LINENO: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; + --he | --h | --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" ;; + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; esac shift @@ -2866,33 +3686,47 @@ fi _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" fi _ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - - -cat >>$CONFIG_STATUS <<\_ACEOF +# Handling of arguments. for ac_config_target in $ac_config_targets do - case "$ac_config_target" in - # Handling of arguments. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "plugins-scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;; - "plugins-scripts/subst" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;; - "t/Makefile" ) CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; + case $ac_config_target in + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "plugins-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;; + "plugins-scripts/subst") CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;; + "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done + # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely @@ -2902,369 +3736,425 @@ fi # Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason to put it here, and in addition, +# simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. -# Create a temporary directory, and hook for its removal unless debugging. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. $debug || { - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 } - # Create a (secure) tmp directory for tmp files. { - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" } || { - tmp=./confstat$$-$RANDOM - (umask 077 && mkdir $tmp) -} || + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} { - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line } +_ACAWK _ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" -# -# CONFIG_FILES section. -# -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "\$CONFIG_FILES"; then - # Protect against being on the right side of a sed subst in config.status. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@DEFS@,$DEFS,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@LIBS@,$LIBS,;t t -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -s,@INSTALL_DATA@,$INSTALL_DATA,;t t -s,@CYGPATH_W@,$CYGPATH_W,;t t -s,@PACKAGE@,$PACKAGE,;t t -s,@VERSION@,$VERSION,;t t -s,@ACLOCAL@,$ACLOCAL,;t t -s,@AUTOCONF@,$AUTOCONF,;t t -s,@AUTOMAKE@,$AUTOMAKE,;t t -s,@AUTOHEADER@,$AUTOHEADER,;t t -s,@MAKEINFO@,$MAKEINFO,;t t -s,@install_sh@,$install_sh,;t t -s,@STRIP@,$STRIP,;t t -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t -s,@mkdir_p@,$mkdir_p,;t t -s,@AWK@,$AWK,;t t -s,@SET_MAKE@,$SET_MAKE,;t t -s,@am__leading_dot@,$am__leading_dot,;t t -s,@AMTAR@,$AMTAR,;t t -s,@am__tar@,$am__tar,;t t -s,@am__untar@,$am__untar,;t t -s,@build@,$build,;t t -s,@build_cpu@,$build_cpu,;t t -s,@build_vendor@,$build_vendor,;t t -s,@build_os@,$build_os,;t t -s,@host@,$host,;t t -s,@host_cpu@,$host_cpu,;t t -s,@host_vendor@,$host_vendor,;t t -s,@host_os@,$host_os,;t t -s,@RELEASE@,$RELEASE,;t t -s,@INSTALL@,$INSTALL,;t t -s,@WARRANTY@,$WARRANTY,;t t -s,@SUPPORT@,$SUPPORT,;t t -s,@with_nagios_user@,$with_nagios_user,;t t -s,@with_nagios_group@,$with_nagios_group,;t t -s,@INSTALL_OPTS@,$INSTALL_OPTS,;t t -s,@STATEFILES_DIR@,$STATEFILES_DIR,;t t -s,@MYMODULES_DIR@,$MYMODULES_DIR,;t t -s,@MYMODULES_DYN_DIR@,$MYMODULES_DYN_DIR,;t t -s,@SH@,$SH,;t t -s,@PERL@,$PERL,;t t -s,@GZIP@,$GZIP,;t t -s,@GREP@,$GREP,;t t -s,@ECHO@,$ECHO,;t t -s,@SED@,$SED,;t t -s,@CAT@,$CAT,;t t -s,@LIBOBJS@,$LIBOBJS,;t t -s,@LTLIBOBJS@,$LTLIBOBJS,;t t -CEOF - -_ACEOF - - cat >>$CONFIG_STATUS <<\_ACEOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` +eval set X " :F $CONFIG_FILES " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; esac - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`(dirname "$ac_file") 2>/dev/null || + ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix case $srcdir in - .) # No --srcdir option. We are building in place. + .) # We are building in place. ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac + case $ac_mode in + :F) + # + # CONFIG_FILE + # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF - if test x"$ac_file" != x-; then - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - configure_input= - else - configure_input="$ac_file. " - fi - configure_input=$configure_input"Generated from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub $extrasub _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@abs_srcdir@,$ac_abs_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -s,@builddir@,$ac_builddir,;t t -s,@abs_builddir@,$ac_abs_builddir,;t t -s,@top_builddir@,$ac_top_builddir,;t t -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -s,@INSTALL@,$ac_INSTALL,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; -done -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -{ (exit 0); exit 0; } + esac + +done # for ac_tag + + +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -3284,9 +4174,12 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi - echo " --with-perl: $with_perl" echo " --with-statefiles-dir: $with_statefiles_dir" @@ -3294,3 +4187,4 @@ echo " --with-nagios-group: $with_nagios_group" echo " --with-mymodules-dir: $with_mymodules_dir" echo " --with-mymodules-dyn-dir: $with_mymodules_dyn_dir" + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/configure.ac nagios-plugins-contrib-16.20151226/check_mysql_health/src/configure.ac --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/configure.ac 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/configure.ac 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,103 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT(check_mysql_health,2.2.1) +AM_INIT_AUTOMAKE([1.9 tar-pax]) +AM_MAINTAINER_MODE([disable]) +AC_CANONICAL_HOST +RELEASE=1 +AC_SUBST(RELEASE) + +AC_PREFIX_DEFAULT(/usr/local/nagios) + +WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" +AC_SUBST(WARRANTY) + +SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" +AC_SUBST(SUPPORT) + +AC_ARG_WITH(nagios_user, + ACX_HELP_STRING([--with-nagios-user=USER], + [set user name to run nagios]), + with_nagios_user=$withval, + with_nagios_user=nagios) +AC_ARG_WITH(nagios_group, + ACX_HELP_STRING([--with-nagios-group=GROUP], + [set group name to run nagios]), + with_nagios_group=$withval, + with_nagios_group=nagios) +AC_SUBST(with_nagios_user) +AC_SUBST(with_nagios_group) +INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" +AC_SUBST(INSTALL_OPTS) + +AC_ARG_WITH(statefiles_dir, + ACX_HELP_STRING([--with-statefiles-dir=PATH], + [sets directory for the state files (default=/var/tmp/check_mysql_health)]), + with_statefiles_dir=$withval, + with_statefiles_dir=/var/tmp/check_mysql_health) +AC_SUBST(STATEFILES_DIR, $with_statefiles_dir) +echo variable with_statefiles_dir is $with_statefiles_dir + +AC_ARG_WITH(mymodules_dir, + ACX_HELP_STRING([--with-mymodules-dir=PATH], + [sets directory for own extensions which will be included during the build process (default=/usr/local/nagios/libexec)]), + with_mymodules_dir=$withval, + with_mymodules_dir=/usr/local/nagios/libexec) +AC_SUBST(MYMODULES_DIR, $with_mymodules_dir) +echo variable with_mymodules_dir is $with_mymodules_dir + +AC_ARG_WITH(mymodules_dyn_dir, + ACX_HELP_STRING([--with-mymodules-dyn-dir=PATH], + [sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec)]), + with_mymodules_dyn_dir=$withval, + with_mymodules_dyn_dir=/usr/local/nagios/libexec) +AC_SUBST(MYMODULES_DYN_DIR, $with_mymodules_dyn_dir) +echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir + + +EXTRAS= +# PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH + + +# Checks for programs. +AC_PROG_MAKE_SET +# Figure out how to invoke "install" and what install options to use. +AC_PROG_INSTALL +AC_SUBST(INSTALL) +AC_PATH_PROG(ECHO,echo) +AC_PATH_PROG(SED,sed) +AC_PATH_PROG(GREP,grep) +AC_PATH_PROG(CAT,cat) +AC_PATH_PROG(SH,sh) +AC_PATH_PROG(PERL,perl) +AC_PATH_PROG(GZIP,gzip) +AC_PATH_PROGS(AWK,gawk nawk /usr/xpg4/bin/awk awk) +# allow them to override the path of perl +AC_ARG_WITH(perl, + ACX_HELP_STRING([--with-perl=PATH], + [sets path to perl executable]), + with_perl=$withval,with_perl=$PERL) +AC_SUBST(PERL, $with_perl) + +# Checks for libraries. + +# Checks for header files. + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +AC_CONFIG_FILES([Makefile + plugins-scripts/Makefile + plugins-scripts/subst + t/Makefile]) +AC_OUTPUT +ACX_FEATURE([with],[perl]) +ACX_FEATURE([with],[statefiles-dir]) +ACX_FEATURE([with],[nagios-user]) +ACX_FEATURE([with],[nagios-group]) +ACX_FEATURE([with],[mymodules-dir]) +ACX_FEATURE([with],[mymodules-dyn-dir]) + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/configure.in nagios-plugins-contrib-16.20151226/check_mysql_health/src/configure.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/configure.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/configure.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,101 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_REVISION ($Revision: 1.150 $) -AC_PREREQ(2.58) -AC_INIT(check_mysql_health,2.1.8.2) -AM_INIT_AUTOMAKE([1.9 tar-pax]) -AC_CANONICAL_HOST - -RELEASE=1 -AC_SUBST(RELEASE) - -AC_PREFIX_DEFAULT(/usr/local/nagios) - -dnl Figure out how to invoke "install" and what install options to use. -AC_PROG_INSTALL -AC_SUBST(INSTALL) - -dnl AC_PROG_CC -dnl AC_PROG_CPP -dnl AC_PROG_GCC_TRADITIONAL -dnl AC_PROG_RANLIB - -AC_PROG_MAKE_SET - -WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n" -AC_SUBST(WARRANTY) - -SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n" -AC_SUBST(SUPPORT) - -AC_ARG_WITH(nagios_user, - ACX_HELP_STRING([--with-nagios-user=USER], - [set user name to run nagios]), - with_nagios_user=$withval, - with_nagios_user=nagios) -AC_ARG_WITH(nagios_group, - ACX_HELP_STRING([--with-nagios-group=GROUP], - [set group name to run nagios]), - with_nagios_group=$withval, - with_nagios_group=nagios) -AC_SUBST(with_nagios_user) -AC_SUBST(with_nagios_group) -INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" -AC_SUBST(INSTALL_OPTS) - -AC_ARG_WITH(statefiles_dir, - ACX_HELP_STRING([--with-statefiles-dir=PATH], - [sets directory for the state files (default=/var/tmp/check_mysql_health)]), - with_statefiles_dir=$withval, - with_statefiles_dir=/var/tmp/check_mysql_health) -AC_SUBST(STATEFILES_DIR, $with_statefiles_dir) -echo variable with_statefiles_dir is $with_statefiles_dir - -AC_ARG_WITH(mymodules_dir, - ACX_HELP_STRING([--with-mymodules-dir=PATH], - [sets directory for own extensions which will be included during the build process (default=/usr/local/nagios/libexec)]), - with_mymodules_dir=$withval, - with_mymodules_dir=/usr/local/nagios/libexec) -AC_SUBST(MYMODULES_DIR, $with_mymodules_dir) -echo variable with_mymodules_dir is $with_mymodules_dir - -AC_ARG_WITH(mymodules_dyn_dir, - ACX_HELP_STRING([--with-mymodules-dyn-dir=PATH], - [sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec)]), - with_mymodules_dyn_dir=$withval, - with_mymodules_dyn_dir=/usr/local/nagios/libexec) -AC_SUBST(MYMODULES_DYN_DIR, $with_mymodules_dyn_dir) -echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir - -EXTRAS= -dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH - -dnl Checks for programs. -AC_PATH_PROG(SH,sh) -AC_PATH_PROG(PERL,perl) -AC_PATH_PROG(GZIP,gzip) -AC_PATH_PROGS(AWK,gawk nawk /usr/xpg4/bin/awk awk) -AC_PATH_PROG(GREP,grep) -AC_PATH_PROG(ECHO,echo) -AC_PATH_PROG(SED,sed) -AC_PATH_PROG(CAT,cat) - -dnl allow them to override the path of perl -AC_ARG_WITH(perl, - ACX_HELP_STRING([--with-perl=PATH], - [sets path to perl executable]), - with_perl=$withval,with_perl=$PERL) -AC_SUBST(PERL, $with_perl) - -AC_OUTPUT( - Makefile - plugins-scripts/Makefile - plugins-scripts/subst - t/Makefile -) - -ACX_FEATURE([with],[perl]) -ACX_FEATURE([with],[statefiles-dir]) -ACX_FEATURE([with],[nagios-user]) -ACX_FEATURE([with],[nagios-group]) -ACX_FEATURE([with],[mymodules-dir]) -ACX_FEATURE([with],[mymodules-dyn-dir]) diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/contrib/check_mysql_health.php nagios-plugins-contrib-16.20151226/check_mysql_health/src/contrib/check_mysql_health.php --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/contrib/check_mysql_health.php 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/contrib/check_mysql_health.php 2015-12-26 17:20:34.000000000 +0000 @@ -1,349 +1,370 @@ -60s) on $hostname\" "; - $def[$defcnt] = ""; - $def[$defcnt] .= "DEF:longrun=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:longrun#111111 "; - $def[$defcnt] .= "VDEF:vlongrun=longrun,LAST " ; - $def[$defcnt] .= "GPRINT:vlongrun:\"%.0lf long running processes \" " ; - $defcnt++; - } - if(preg_match('/^keycache_hitrate_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "MyISAM key cache hitrate"; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"MyISAM key cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^keycache_hitrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE1.5:hitrate#111111:\" \" "; - $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; - $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; - } - if(preg_match('/^keycache_hitrate_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; - $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; - } - } - $defcnt++; - } - if(preg_match('/^qcache_hitrate_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "Query cache hitrate"; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Query cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^qcache_hitrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE1.5:hitrate#111111:\" \" "; - $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; - $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; - } - if(preg_match('/^qcache_hitrate_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; - $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; - } - } - $defcnt++; - $ds_name[$defcnt] = "Selects per second"; - $opt[$defcnt] = "--vertical-label \"Selects / sec\" --title \"Selects per second on $hostname\" "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^selects_per_sec$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:sps=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:sps#$now:\" \" "; - $def[$defcnt] .= "VDEF:vsps=sps,LAST " ; - $def[$defcnt] .= "GPRINT:vsps:\"%3.2lf Selects per second \\n\" "; - } - } - $defcnt++; - } - if(preg_match('/^qcache_lowmem_prunes_rate$/', $NAME[$i])) { - $ds_name[$defcnt] = "Query cache low memory prunes"; - $opt[$defcnt] = "--vertical-label \"Prunes / sec\" --title \"Query cache low mem prunes on $hostname\" "; - $def[$defcnt] = ""; - $def[$defcnt] .= "DEF:prunes=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:prunes#111111 "; - $def[$defcnt] .= "VDEF:vprunes=prunes,LAST " ; - $def[$defcnt] .= "GPRINT:vprunes:\"Rate is %3.2lf Prunes / Second \" " ; - $defcnt++; - } - if(preg_match('/^slow_queries_rate$/', $NAME[$i])) { - $ds_name[$defcnt] = "Slow query rate"; - $opt[$defcnt] = "--vertical-label \"Slow queries / sec\" --title \"Slow queries on $hostname\" "; - $def[$defcnt] = ""; - $def[$defcnt] .= "DEF:prunes=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:prunes#111111 "; - $def[$defcnt] .= "VDEF:vprunes=prunes,LAST " ; - $def[$defcnt] .= "GPRINT:vprunes:\"%3.2lf Slow queries / Second \" " ; - $defcnt++; - } - if(preg_match('/^tablelock_contention_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "Table lock contention"; - # set upper limit to 10, because 3 means an already dead database - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Table lock contention on $hostname\" --upper-limit 10 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^tablelock_contention$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:tbllckcont=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ag=tbllckcont,$WARN[$ii],LE,tbllckcont,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; - $def[$defcnt] .= "CDEF:ay=tbllckcont,$CRIT[$ii],LE,tbllckcont,$WARN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; - $def[$defcnt] .= "CDEF:ar=tbllckcont,100,LE,tbllckcont,$CRIT[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE:tbllckcont#111111:\" \" "; - $def[$defcnt] .= "VDEF:vtbllckcont=tbllckcont,LAST " ; - $def[$defcnt] .= "GPRINT:vtbllckcont:\"Lock contention (since epoch) is %3.2lf%%\\n\" " ; - } - if(preg_match('/^tablelock_contention_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:tbllckcontnow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:tbllckcontnow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vtbllckcontnow=tbllckcontnow,LAST " ; - $def[$defcnt] .= "GPRINT:vtbllckcontnow:\"Lock contention (current) is %3.2lf%%\" "; - } - } - $defcnt++; - } - if(preg_match('/^tablecache_fillrate$/', $NAME[$i])) { - $ds_name[$defcnt] = "Table cache hitrate"; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Table cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^tablecache_hitrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE:hitrate#111111:\" \" "; - $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; - $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio is %3.2lf percent \\n\" "; - } - if(preg_match('/^tablecache_fillrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; - $def[$defcnt] .= "GPRINT:vhitratenow:\"%3.2lf%% of the cache is filled \\n\" "; - } - } - $defcnt++; - } - if(preg_match('/^pct_tmp_table_on_disk_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "Temporary tables created on disk "; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Temporary tables created on disk on $hostname\" --upper-limit 10 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^pct_tmp_table_on_disk$/', $NAME[$ii])) { - - $def[$defcnt] .= "DEF:tmptbldsk=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ag=tmptbldsk,$WARN[$ii],LE,tmptbldsk,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; - $def[$defcnt] .= "CDEF:ay=tmptbldsk,$CRIT[$ii],LE,tmptbldsk,$WARN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; - $def[$defcnt] .= "CDEF:ar=tmptbldsk,100,LE,tmptbldsk,$CRIT[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE:tmptbldsk#111111:\" \" "; - $def[$defcnt] .= "VDEF:vtmptbldsk=tmptbldsk,LAST " ; - $def[$defcnt] .= "GPRINT:vtmptbldsk:\"%3.2lf percent of temp tables were created on disk (since epoch)\\n\" " ; - } - if(preg_match('/^pct_tmp_table_on_disk_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:tmptbldsknow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:tmptbldsknow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vtmptbldsknow=tmptbldsknow,LAST " ; - $def[$defcnt] .= "GPRINT:vtmptbldsknow:\"%3.2lf percent of temp tables were created on disk (recently)\\n\" " ; - } - } - $defcnt++; - } - if(preg_match('/^thread_cache_hitrate_now$/', $NAME[$i])) { - $ds_name[$defcnt] = "Thread cache hitrate"; - $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Thread cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^thread_cache_hitrate$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; - $def[$defcnt] .= "AREA:ag#$green: " ; - $def[$defcnt] .= "AREA:ay#$yellow: " ; - $def[$defcnt] .= "AREA:ar#$red: " ; - $def[$defcnt] .= "LINE:hitrate#111111:\" \" "; - $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; - $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; - } - if(preg_match('/^thread_cache_hitrate_now$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; - $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; - $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; - } - } - $defcnt++; - $ds_name[$defcnt] = "Connects per second"; - $opt[$defcnt] = "--vertical-label \"Conects / sec\" --title \"Connects per second on $hostname\" "; - $def[$defcnt] = ""; - foreach ($DS as $ii) { - if(preg_match('/^connections_per_sec$/', $NAME[$ii])) { - $def[$defcnt] .= "DEF:sps=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:sps#$now:\" \" "; - $def[$defcnt] .= "VDEF:vsps=sps,LAST " ; - $def[$defcnt] .= "GPRINT:vsps:\"%3.2lf Connects per second \\n\" "; - } - } - $defcnt++; - } - if(preg_match('/^threads_connected$/', $NAME[$i])) { - $ds_name[$defcnt] = "Connection threads"; - $opt[$defcnt] = "--vertical-label \"Threads\" --title \"Connection threads on $hostname\" "; - $def[$defcnt] = ""; - $def[$defcnt] .= "DEF:threads=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; - $def[$defcnt] .= "AREA:threads#111111 "; - $def[$defcnt] .= "VDEF:vthreads=threads,LAST " ; - $def[$defcnt] .= "GPRINT:vthreads:\"%.0lf Connection threads \" " ; - $defcnt++; - } -} -?> - +60s) on $hostname\" "; + $def[$defcnt] = ""; + $def[$defcnt] .= "DEF:longrun=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:longrun#111111 "; + $def[$defcnt] .= "VDEF:vlongrun=longrun,LAST " ; + $def[$defcnt] .= "GPRINT:vlongrun:\"%.0lf long running processes \" " ; + $defcnt++; + } + if(preg_match('/^keycache_hitrate_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "MyISAM key cache hitrate"; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"MyISAM key cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^keycache_hitrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE1.5:hitrate#111111:\" \" "; + $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; + $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; + } + if(preg_match('/^keycache_hitrate_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; + $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; + } + } + $defcnt++; + } + if(preg_match('/^qcache_hitrate_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "Query cache hitrate"; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Query cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^qcache_hitrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE1.5:hitrate#111111:\" \" "; + $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; + $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; + } + if(preg_match('/^qcache_hitrate_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; + $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; + } + } + $defcnt++; + $ds_name[$defcnt] = "Selects per second"; + $opt[$defcnt] = "--vertical-label \"Selects / sec\" --title \"Selects per second on $hostname\" "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^selects_per_sec$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:sps=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:sps#$now:\" \" "; + $def[$defcnt] .= "VDEF:vsps=sps,LAST " ; + $def[$defcnt] .= "GPRINT:vsps:\"%3.2lf Selects per second \\n\" "; + } + } + $defcnt++; + } + if(preg_match('/^qcache_lowmem_prunes_rate$/', $NAME[$i])) { + $ds_name[$defcnt] = "Query cache low memory prunes"; + $opt[$defcnt] = "--vertical-label \"Prunes / sec\" --title \"Query cache low mem prunes on $hostname\" "; + $def[$defcnt] = ""; + $def[$defcnt] .= "DEF:prunes=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:prunes#111111 "; + $def[$defcnt] .= "VDEF:vprunes=prunes,LAST " ; + $def[$defcnt] .= "GPRINT:vprunes:\"Rate is %3.2lf Prunes / Second \" " ; + $defcnt++; + } + if(preg_match('/^slow_queries_rate$/', $NAME[$i])) { + $ds_name[$defcnt] = "Slow query rate"; + $opt[$defcnt] = "--vertical-label \"Slow queries / sec\" --title \"Slow queries on $hostname\" "; + $def[$defcnt] = ""; + $def[$defcnt] .= "DEF:prunes=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:prunes#111111 "; + $def[$defcnt] .= "VDEF:vprunes=prunes,LAST " ; + $def[$defcnt] .= "GPRINT:vprunes:\"%3.2lf Slow queries / Second \" " ; + $defcnt++; + } + if(preg_match('/^tablelock_contention_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "Table lock contention"; + # set upper limit to 10, because 3 means an already dead database + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Table lock contention on $hostname\" --upper-limit 10 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^tablelock_contention$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:tbllckcont=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ag=tbllckcont,$WARN[$ii],LE,tbllckcont,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; + $def[$defcnt] .= "CDEF:ay=tbllckcont,$CRIT[$ii],LE,tbllckcont,$WARN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; + $def[$defcnt] .= "CDEF:ar=tbllckcont,100,LE,tbllckcont,$CRIT[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tbllckcont,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE:tbllckcont#111111:\" \" "; + $def[$defcnt] .= "VDEF:vtbllckcont=tbllckcont,LAST " ; + $def[$defcnt] .= "GPRINT:vtbllckcont:\"Lock contention (since epoch) is %3.2lf%%\\n\" " ; + } + if(preg_match('/^tablelock_contention_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:tbllckcontnow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:tbllckcontnow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vtbllckcontnow=tbllckcontnow,LAST " ; + $def[$defcnt] .= "GPRINT:vtbllckcontnow:\"Lock contention (current) is %3.2lf%%\" "; + } + } + $defcnt++; + } + if(preg_match('/^tablecache_fillrate$/', $NAME[$i])) { + $ds_name[$defcnt] = "Table cache hitrate"; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Table cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^tablecache_hitrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE:hitrate#111111:\" \" "; + $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; + $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio is %3.2lf percent \\n\" "; + } + if(preg_match('/^tablecache_fillrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; + $def[$defcnt] .= "GPRINT:vhitratenow:\"%3.2lf%% of the cache is filled \\n\" "; + } + } + $defcnt++; + } + if(preg_match('/^pct_tmp_table_on_disk_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "Temporary tables created on disk "; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Temporary tables created on disk on $hostname\" --upper-limit 10 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^pct_tmp_table_on_disk$/', $NAME[$ii])) { + + $def[$defcnt] .= "DEF:tmptbldsk=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ag=tmptbldsk,$WARN[$ii],LE,tmptbldsk,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; + $def[$defcnt] .= "CDEF:ay=tmptbldsk,$CRIT[$ii],LE,tmptbldsk,$WARN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; + $def[$defcnt] .= "CDEF:ar=tmptbldsk,100,LE,tmptbldsk,$CRIT[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,tmptbldsk,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE:tmptbldsk#111111:\" \" "; + $def[$defcnt] .= "VDEF:vtmptbldsk=tmptbldsk,LAST " ; + $def[$defcnt] .= "GPRINT:vtmptbldsk:\"%3.2lf percent of temp tables were created on disk (since epoch)\\n\" " ; + } + if(preg_match('/^pct_tmp_table_on_disk_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:tmptbldsknow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:tmptbldsknow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vtmptbldsknow=tmptbldsknow,LAST " ; + $def[$defcnt] .= "GPRINT:vtmptbldsknow:\"%3.2lf percent of temp tables were created on disk (recently)\\n\" " ; + } + } + $defcnt++; + } + if(preg_match('/^thread_cache_hitrate_now$/', $NAME[$i])) { + $ds_name[$defcnt] = "Thread cache hitrate"; + $opt[$defcnt] = "--vertical-label \"Percent\" --title \"Thread cache hitrate on $hostname\" --upper-limit 100 --lower-limit 0 "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^thread_cache_hitrate$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitrate=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "CDEF:ar=hitrate,$CRIT_MIN[$ii],LE,hitrate,0,GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ay=hitrate,$WARN_MIN[$ii],LE,hitrate,$CRIT_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "CDEF:ag=hitrate,100,LE,hitrate,$WARN_MIN[$ii],GT,INF,UNKN,IF,UNKN,IF,ISINF,hitrate,0,IF "; + $def[$defcnt] .= "AREA:ag#$green: " ; + $def[$defcnt] .= "AREA:ay#$yellow: " ; + $def[$defcnt] .= "AREA:ar#$red: " ; + $def[$defcnt] .= "LINE:hitrate#111111:\" \" "; + $def[$defcnt] .= "VDEF:vhitrate=hitrate,LAST " ; + $def[$defcnt] .= "GPRINT:vhitrate:\"Hitratio (since epoch) is %3.2lf percent \\n\" "; + } + if(preg_match('/^thread_cache_hitrate_now$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:hitratenow=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "LINE1.5:hitratenow#$now:\" \" "; + $def[$defcnt] .= "VDEF:vhitratenow=hitratenow,LAST " ; + $def[$defcnt] .= "GPRINT:vhitratenow:\"Hitratio (current) is %3.2lf percent \\n\" "; + } + } + $defcnt++; + $ds_name[$defcnt] = "Connects per second"; + $opt[$defcnt] = "--vertical-label \"Conects / sec\" --title \"Connects per second on $hostname\" "; + $def[$defcnt] = ""; + for ($ii = 1; $ii <= $ds_count; $ii++) { + if(preg_match('/^connections_per_sec$/', $NAME[$ii])) { + $def[$defcnt] .= "DEF:sps=$RRDFILE[$ii]:$DS[$ii]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:sps#$now:\" \" "; + $def[$defcnt] .= "VDEF:vsps=sps,LAST " ; + $def[$defcnt] .= "GPRINT:vsps:\"%3.2lf Connects per second \\n\" "; + } + } + $defcnt++; + } + if(preg_match('/^threads_connected$/', $NAME[$i])) { + $ds_name[$defcnt] = "Connection threads"; + $opt[$defcnt] = "--vertical-label \"Threads\" --title \"Connection threads on $hostname\" "; + $def[$defcnt] = ""; + $def[$defcnt] .= "DEF:threads=$RRDFILE[$i]:$DS[$i]:AVERAGE:reduce=LAST " ; + $def[$defcnt] .= "AREA:threads#111111 "; + $def[$defcnt] .= "VDEF:vthreads=threads,LAST " ; + $def[$defcnt] .= "GPRINT:vthreads:\"%.0lf Connection threads \" " ; + $defcnt++; + } +} +?> + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/contrib/README.my-extensions nagios-plugins-contrib-16.20151226/check_mysql_health/src/contrib/README.my-extensions --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/contrib/README.my-extensions 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/contrib/README.my-extensions 2015-12-26 17:20:34.000000000 +0000 @@ -1,139 +1,139 @@ -# you will find instructions how to write extensions here - -Self-written code is addressed by using a mode which starts with my- ---mode=my-thing-does ? - -check_mysql_health will then look for a package named MyThing. - -So you first have to write a Module which describes MyThing. Such a thing iinherits from DBD::MySQL::Server and needs two methods: init and nagios. - -Start with a file called CheckMySQLHealthExt1.pm and skeleton code: - -################################################### -package MyThing; - -our @ISA = qw(DBD::MySQL::Server); - -sub init { - my $self = shift; - my %params = @_; -} - -sub nagios { - my $self = shift; - my %params = @_; -} -################################################### - -When you call check_mysql_health with --mode=my-thing-does, it will -- create a DBD::MySQL::Server object - $obj = DBD::MySQL::Server->new() -- connect to the database - $obj->connect() -- re-bless the object - bless $obj, "MyThing" -- call $obj->init() -- if that was ok, call $obj->nagios() - - -So you need to write code which -- initializes the parameters you want to check -- calculates the nagios result from these parameters - -For your convenience there are some predefined methods and variables: - -Variable $self - $self is a hash-based object of type My::Thing - You can pass metrics from the init() method to the nagios() method by - adding attributes to the hash. - One important predefined attribute is $self->{handle} which points to - a database Connection object. You surely will use this. - -Variable %params - $params{mode} contains the string you passed to the - --mode command line parameter, only with the "-" replaced by "::". - In the above example it will be "my::thing::does". - Because you can have only one init() method for your MyThing object but - more than one related modes (my-thing-does, my-thing-length, my-thing-rate) - you use $params{mode} for branching in your code. (see the example file) - -Method add_nagios - $self->add_nagios(1, "i warn you"); - This method can be called several times. The messages will be concatenated. - The first parameter is one of 0..3 and sets the nagios level. The worst level - among several calls to add_nagios will determine the plugin's exit code. - -Method add_nagios_[ok|warning|critical|unknown] - $self->add_nagios_critical("i warned you!!! now it's too late"); - $self->add_nagios_ok("everything is ok. i am the exit message"); - These methods are wrappers for add_nagios which make your code more readable. - -Method add_perfdata - $self->add_perfdata("metric1=0 metric2=100"); - $self->add_perfdata("metric3=0); - $self->add_perfdata(sprintf "metric_xy=%d", $self->{xy}); - You can call add_perfdata as often as you like. - The strings will be concatenated. - -Method valdiff - $self->valdiff(\%params, qw(metric1 metric2)); - Use this if you want to know how a metric has changed since the last run - of check_mysql_health. - Provided you have attributes metric1 and metric2 this method will create - new attributes for your $self object. - $self->{delta_metric1} which is the difference between the value of - $self->{metric1} during the current run and $self->{metric1} during the - last run. - $self->{delta_timestamp} which is the number of seconds which passed - since the last run of check_mysql_health. - If you have ever-growing values, you can simply calculate the rate: - $self->{metric1_per_second} = $self->{delta_metric1} / $self->{delta_timestamp} - The valdiff method will automatically save the current value to a state file - and read the past value from this file. - If you used the --name parameter which appears as $params{name} in your code - then you probably need to separate the saved values from each other. Otherwise - name1 would read the same saved value as name2. They would overwrite the - saved values. Use $params{differentiator} to use different state files. - $params{differenciator} = lc $self->{name}; - $self->valdiff(\%params, qw(gets misses)); - -Method fetchrow_array - my($column1, $column2) = $self->{handle}->fetchrow_array(q{ - SELECT col1, col2 FROM table1 where col1 = 'val1' - }); - $self->{connected_users} = $self->{handle}->fetchrow_array(q{ - SELECT COUNT(*) FROM v$session WHERE type = 'USER' - }); - This method is used like the Perl DBI method fetchrow_array. - - -Method fetchall_array - my @results = $self->{handle}->fetchall_array(q{ - SELECT col1, col2, col3 FROM table1 - }); - foreach (@results) { - my($column1, $column2, $column3) = @{$_}; - ... - } - This method is used like the Perl DBI method fetchall_array. - - - - -Now you have written your first extension to check_mysql_health. Maybe you -just modified the example file contrib/CheckMySQLHealthExt1.pm -There are two methods how to import your own code into check_mysql_health: - -- the static method -with ./configure --with-mymodules-dir= parameter you build a plugin which -contains both my code and your code in a single file. When you call "make" -every file in which matches CheckMySQLHealthExt*.pm is appended -to the final plugin check_mysql_health. - -- the dynamic method -with ./configure --with-mymodules-dyn-dir= you build a plugin which will -search at runtime the for files matching CheckMySQLHealthExt*.pm and -import them. This way you can have different extensions on different hosts. -You also can modify your extension without having to rebuild the plugin. -On the other hand you have to distribute your extensions along with the plugin. - +# you will find instructions how to write extensions here + +Self-written code is addressed by using a mode which starts with my- +--mode=my-thing-does ? + +check_mysql_health will then look for a package named MyThing. + +So you first have to write a Module which describes MyThing. Such a thing iinherits from DBD::MySQL::Server and needs two methods: init and nagios. + +Start with a file called CheckMySQLHealthExt1.pm and skeleton code: + +################################################### +package MyThing; + +our @ISA = qw(DBD::MySQL::Server); + +sub init { + my $self = shift; + my %params = @_; +} + +sub nagios { + my $self = shift; + my %params = @_; +} +################################################### + +When you call check_mysql_health with --mode=my-thing-does, it will +- create a DBD::MySQL::Server object + $obj = DBD::MySQL::Server->new() +- connect to the database + $obj->connect() +- re-bless the object + bless $obj, "MyThing" +- call $obj->init() +- if that was ok, call $obj->nagios() + + +So you need to write code which +- initializes the parameters you want to check +- calculates the nagios result from these parameters + +For your convenience there are some predefined methods and variables: + +Variable $self + $self is a hash-based object of type My::Thing + You can pass metrics from the init() method to the nagios() method by + adding attributes to the hash. + One important predefined attribute is $self->{handle} which points to + a database Connection object. You surely will use this. + +Variable %params + $params{mode} contains the string you passed to the + --mode command line parameter, only with the "-" replaced by "::". + In the above example it will be "my::thing::does". + Because you can have only one init() method for your MyThing object but + more than one related modes (my-thing-does, my-thing-length, my-thing-rate) + you use $params{mode} for branching in your code. (see the example file) + +Method add_nagios + $self->add_nagios(1, "i warn you"); + This method can be called several times. The messages will be concatenated. + The first parameter is one of 0..3 and sets the nagios level. The worst level + among several calls to add_nagios will determine the plugin's exit code. + +Method add_nagios_[ok|warning|critical|unknown] + $self->add_nagios_critical("i warned you!!! now it's too late"); + $self->add_nagios_ok("everything is ok. i am the exit message"); + These methods are wrappers for add_nagios which make your code more readable. + +Method add_perfdata + $self->add_perfdata("metric1=0 metric2=100"); + $self->add_perfdata("metric3=0); + $self->add_perfdata(sprintf "metric_xy=%d", $self->{xy}); + You can call add_perfdata as often as you like. + The strings will be concatenated. + +Method valdiff + $self->valdiff(\%params, qw(metric1 metric2)); + Use this if you want to know how a metric has changed since the last run + of check_mysql_health. + Provided you have attributes metric1 and metric2 this method will create + new attributes for your $self object. + $self->{delta_metric1} which is the difference between the value of + $self->{metric1} during the current run and $self->{metric1} during the + last run. + $self->{delta_timestamp} which is the number of seconds which passed + since the last run of check_mysql_health. + If you have ever-growing values, you can simply calculate the rate: + $self->{metric1_per_second} = $self->{delta_metric1} / $self->{delta_timestamp} + The valdiff method will automatically save the current value to a state file + and read the past value from this file. + If you used the --name parameter which appears as $params{name} in your code + then you probably need to separate the saved values from each other. Otherwise + name1 would read the same saved value as name2. They would overwrite the + saved values. Use $params{differentiator} to use different state files. + $params{differenciator} = lc $self->{name}; + $self->valdiff(\%params, qw(gets misses)); + +Method fetchrow_array + my($column1, $column2) = $self->{handle}->fetchrow_array(q{ + SELECT col1, col2 FROM table1 where col1 = 'val1' + }); + $self->{connected_users} = $self->{handle}->fetchrow_array(q{ + SELECT COUNT(*) FROM v$session WHERE type = 'USER' + }); + This method is used like the Perl DBI method fetchrow_array. + + +Method fetchall_array + my @results = $self->{handle}->fetchall_array(q{ + SELECT col1, col2, col3 FROM table1 + }); + foreach (@results) { + my($column1, $column2, $column3) = @{$_}; + ... + } + This method is used like the Perl DBI method fetchall_array. + + + + +Now you have written your first extension to check_mysql_health. Maybe you +just modified the example file contrib/CheckMySQLHealthExt1.pm +There are two methods how to import your own code into check_mysql_health: + +- the static method +with ./configure --with-mymodules-dir= parameter you build a plugin which +contains both my code and your code in a single file. When you call "make" +every file in which matches CheckMySQLHealthExt*.pm is appended +to the final plugin check_mysql_health. + +- the dynamic method +with ./configure --with-mymodules-dyn-dir= you build a plugin which will +search at runtime the for files matching CheckMySQLHealthExt*.pm and +import them. This way you can have different extensions on different hosts. +You also can modify your extension without having to rebuild the plugin. +On the other hand you have to distribute your extensions along with the plugin. + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/install-sh nagios-plugins-contrib-16.20151226/check_mysql_health/src/install-sh --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/install-sh 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/install-sh 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2003-09-24.23 +scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -35,261 +35,493 @@ # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it +# 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. +# from scratch. + +nl=' +' +IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi -# put in absolute paths if you don't have them in your path; or use env. vars. +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename= -transform_arg= -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd= chgrpcmd= -stripcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog rmcmd="$rmprog -f" -mvcmd="$mvprog" +stripcmd= + src= dst= dir_arg= +dst_arg= -usage="Usage: $0 [OPTION]... SRCFILE DSTFILE - or: $0 -d DIR1 DIR2... +copy_on_change=false +no_target_directory= -In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default. -In the second, create the directory path DIR. +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. Options: --b=TRANSFORMBASENAME --c copy source (using $cpprog) instead of moving (using $mvprog). --d create directories instead of installing files. --g GROUP $chgrp installed files to GROUP. --m MODE $chmod installed files to MODE. --o USER $chown installed files to USER. --s strip installed files (using $stripprog). --t=TRANSFORM ---help display this help and exit. ---version display version info and exit. + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG " -while test -n "$1"; do +while test $# -ne 0; do case $1 in - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - -c) instcmd=$cpprog - shift - continue;; - - -d) dir_arg=true - shift - continue;; + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - --help) echo "$usage"; exit 0;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -s) stripcmd=$stripprog - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - --version) echo "$0 $scriptversion"; exit 0;; - - *) if test -z "$src"; then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; esac + shift done -if test -z "$src"; then - echo "$0: no input file specified." >&2 - exit 1 +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done fi -# Protect names starting with `-'. -case $src in - -*) src=./$src ;; -esac - -if test -n "$dir_arg"; then - dst=$src - src= - - if test -d "$dst"; then - instcmd=: - chmodcmd= - else - instcmd=$mkdirprog - fi -else - # Waiting for this to be detected by the "$instcmd $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst"; then - echo "$0: no destination specified." >&2 +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 exit 1 fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi - # Protect names starting with `-'. - case $dst in - -*) dst=./$dst ;; +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; esac - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - dst=$dst/`basename "$src"` - fi fi -# This sed command emulates the dirname command. -dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac -# Make sure that the destination directory exists. + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else -# Skip lots of stat calls in the usual case. -if test ! -d "$dstdir"; then - defaultIFS=' - ' - IFS="${IFS-$defaultIFS}" - - oIFS=$IFS - # Some sh's can't handle IFS=/ for some reason. - IFS='%' - set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` - IFS=$oIFS - - pathcomp= - - while test $# -ne 0 ; do - pathcomp=$pathcomp$1 - shift - test -d "$pathcomp" || $mkdirprog "$pathcomp" - pathcomp=$pathcomp/ - done -fi + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi -if test -n "$dir_arg"; then - $doit $instcmd "$dst" \ - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg -else - # If we're going to rename the final executable, determine the name now. - if test -z "$transformarg"; then - dstfile=`basename "$dst"` - else - dstfile=`basename "$dst" $transformbasename \ - | sed $transformarg`$transformbasename + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi fi - # don't allow the sed command to completely eliminate the filename. - test -z "$dstfile" && dstfile=`basename "$dst"` + obsolete_mkdir_used=false - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 - trap '(exit $?); exit' 1 2 13 15 - - # Move or copy the file name to the temp name - $doit $instcmd "$src" "$dsttmp" && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $instcmd $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && - - # Now remove or move aside any old file at destination location. We - # try this two ways since rm can't unlink itself on some systems and - # the destination file might be busy for other reasons. In this case, - # the final cleanup might fail but the new file should still install - # successfully. - { - if test -f "$dstdir/$dstfile"; then - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ - || { - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 - (exit 1); exit - } + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : else - : + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi fi - } && + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" -fi && - -# The final little trick to "correctly" pass the exit status to the exit trap. -{ - (exit 0); exit -} + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/src/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. +# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,13 +15,56 @@ @SET_MAKE@ # find . \( -type d -and -name .svn -and -prune \) -or -type f -exec fromdos -v {} \; -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = . +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -36,45 +79,122 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ - ChangeLog INSTALL NEWS TODO config.guess config.sub install-sh \ - missing subdir = . +DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ + $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/configure $(am__configure_deps) COPYING TODO \ + config.guess config.sub install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno configure.status.lineno + configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope distdir dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags +CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__post_remove_distdir = $(am__remove_distdir) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best +DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print -INSTALL = @INSTALL@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -88,6 +208,7 @@ ECHO_T = @ECHO_T@ GREP = @GREP@ GZIP = @GZIP@ +INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_OPTS = @INSTALL_OPTS@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -96,7 +217,9 @@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ MYMODULES_DIR = @MYMODULES_DIR@ MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ PACKAGE = @PACKAGE@ @@ -104,6 +227,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ @@ -117,7 +241,10 @@ SUPPORT = @SUPPORT@ VERSION = @VERSION@ WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ @@ -127,28 +254,40 @@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ +builddir = @builddir@ datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ +htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ +localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ +psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ with_nagios_group = @with_nagios_group@ with_nagios_user = @with_nagios_user@ SUBDIRS = plugins-scripts t @@ -156,21 +295,21 @@ all: all-recursive .SUFFIXES: -am--refresh: +am--refresh: Makefile @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -185,29 +324,32 @@ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -uninstall-info-am: +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): # This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ @@ -215,66 +357,20 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ @@ -286,84 +382,113 @@ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: + -rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) - mkdir $(distdir) - $(mkdir_p) $(distdir)/plugins-scripts - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ @@ -371,35 +496,51 @@ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook - -find $(distdir) -type d ! -perm -755 -exec chmod a+rwx,go+rx {} \; -o \ + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) + $(am__post_remove_distdir) dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__post_remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__post_remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__post_remove_distdir) dist-tarZ: distdir + @echo WARNING: "Support for shar distribution archives is" \ + "deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) + $(am__post_remove_distdir) dist-shar: distdir + @echo WARNING: "Support for distribution archives compressed with" \ + "legacy program 'compress' is deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) + $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) + $(am__post_remove_distdir) -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another @@ -407,24 +548,31 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ @@ -445,14 +593,24 @@ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ @@ -483,16 +641,22 @@ installcheck: installcheck-recursive install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -512,18 +676,38 @@ html: html-recursive +html-am: + info: info-recursive info-am: install-data-am: +install-dvi: install-dvi-recursive + +install-dvi-am: + install-exec-am: +install-html: install-html-recursive + +install-html-am: + install-info: install-info-recursive +install-info-am: + install-man: +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-recursive @@ -544,24 +728,24 @@ ps-am: -uninstall-am: uninstall-info-am +uninstall-am: -uninstall-info: uninstall-info-recursive +.MAKE: $(am__recursive_targets) install-am install-strip -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ - check-am clean clean-generic clean-recursive ctags \ - ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \ - dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-generic distclean-recursive distclean-tags \ +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--refresh check check-am clean clean-cscope clean-generic \ + cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ + dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \ + dist-zip distcheck distclean distclean-generic distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ - pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-info-am + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags tags-am uninstall uninstall-am dist-hook: @@ -570,6 +754,7 @@ find $(distdir) -depth -name .svn -exec rm -rf {} \; find $(distdir) -type f -exec fromdos -v {} \; make + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/missing nagios-plugins-contrib-16.20151226/check_mysql_health/src/missing --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/missing 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/missing 2015-12-26 17:20:34.000000000 +0000 @@ -1,11 +1,10 @@ #! /bin/sh -# Common stub for a few missing GNU programs while installing. +# Common wrapper for a few potentially missing GNU programs. -scriptversion=2003-09-02.23 +scriptversion=2012-06-26.16; # UTC -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 -# Free Software Foundation, Inc. -# Originally by Fran,cois Pinard , 1996. +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,9 +17,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -28,333 +25,191 @@ # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" + echo 1>&2 "Try '$0 --help' for more information" exit 1 fi -run=: +case $1 in -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -msg="missing on your system" - -case "$1" in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; -esac + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case "$1" in + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch] + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man + +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. Send bug reports to ." + exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" + exit $? ;; -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" + echo 1>&2 "$0: unknown '$1' option" + echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; - aclocal*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case "$f" in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is needed, but is $msg. - You might have modified some files without having the - proper tools for further handling them. - You can get \`$1' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison|yacc) - echo 1>&2 "\ -WARNING: \`$1' $msg. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if [ ! -f y.tab.h ]; then - echo >y.tab.h - fi - if [ ! -f y.tab.c ]; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex|flex) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if [ ! -f lex.yy.c ]; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; +esac - help2man) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` - fi - if [ -f "$file" ]; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit 1 - fi - ;; +# Run the given program, remember its exit status. +"$@"; st=$? - makeinfo) - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then - # We have makeinfo, but it failed. - exit 1 - fi - - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` - fi - touch $file - ;; +# If it succeeded, we are done. +test $st -eq 0 && exit 0 - tar) - shift - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - fi - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case "$firstarg" in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case "$firstarg" in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and is $msg. - You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequisites for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch. This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then + msg="probably too old" +elif test $st -eq 127; then + # Program was missing. + msg="missing on your system" +else + # Program was found and executed, but failed. Give up. + exit $st +fi -exit 0 +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ + case $1 in + aclocal|automake) + echo "The '$1' program is part of the GNU Automake package:" + echo "<$gnu_software_URL/automake>" + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/autoconf>" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + autoconf|autom4te|autoheader) + echo "The '$1' program is part of the GNU Autoconf package:" + echo "<$gnu_software_URL/autoconf/>" + echo "It also requires GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + esac +} + +give_advice () +{ + # Normalize program name to check for. + normalized_program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + + printf '%s\n' "'$1' is $msg." + + configure_deps="'configure.ac' or m4 files included by 'configure.ac'" + case $normalized_program in + autoconf*) + echo "You should only need it if you modified 'configure.ac'," + echo "or m4 files included by it." + program_details 'autoconf' + ;; + autoheader*) + echo "You should only need it if you modified 'acconfig.h' or" + echo "$configure_deps." + program_details 'autoheader' + ;; + automake*) + echo "You should only need it if you modified 'Makefile.am' or" + echo "$configure_deps." + program_details 'automake' + ;; + aclocal*) + echo "You should only need it if you modified 'acinclude.m4' or" + echo "$configure_deps." + program_details 'aclocal' + ;; + autom4te*) + echo "You might have modified some maintainer files that require" + echo "the 'automa4te' program to be rebuilt." + program_details 'autom4te' + ;; + bison*|yacc*) + echo "You should only need it if you modified a '.y' file." + echo "You may want to install the GNU Bison package:" + echo "<$gnu_software_URL/bison/>" + ;; + lex*|flex*) + echo "You should only need it if you modified a '.l' file." + echo "You may want to install the Fast Lexical Analyzer package:" + echo "<$flex_URL>" + ;; + help2man*) + echo "You should only need it if you modified a dependency" \ + "of a man page." + echo "You may want to install the GNU Help2man package:" + echo "<$gnu_software_URL/help2man/>" + ;; + makeinfo*) + echo "You should only need it if you modified a '.texi' file, or" + echo "any other file indirectly affecting the aspect of the manual." + echo "You might want to install the Texinfo package:" + echo "<$gnu_software_URL/texinfo/>" + echo "The spurious makeinfo call might also be the consequence of" + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "want to install GNU make:" + echo "<$gnu_software_URL/make/>" + ;; + *) + echo "You might have modified some files without having the proper" + echo "tools for further handling them. Check the 'README' file, it" + echo "often tells you about the needed prerequisites for installing" + echo "this package. You may also peek at any GNU archive site, in" + echo "case some other package contains this missing '$1' program." + ;; + esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ + -e '2,$s/^/ /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/check_mysql_health.pl nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/check_mysql_health.pl --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/check_mysql_health.pl 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/check_mysql_health.pl 2015-12-26 17:20:34.000000000 +0000 @@ -192,6 +192,8 @@ the mysql db user's password --database the database's name. (default: information_schema) + --replication-user + the database's replication user name (default: replication) --warning the warning range --critical @@ -235,7 +237,7 @@ option and it will encode the standard input. You can find the full documentation at - http://www.consol.de/opensource/nagios/check-mysql-health + https://labs.consol.de/nagios/check_mysql_health/ EOUS @@ -295,6 +297,7 @@ "socket|S=s", "username|u=s", "password|p=s", + "replication-user=s", "mycnf=s", "mycnfgroup=s", "mode|m=s", @@ -307,6 +310,7 @@ "dbthresholds:s", "absolute|a", "environment|e=s%", + "negate=s%", "method=s", "runas|r=s", "scream", @@ -553,6 +557,7 @@ password => $commandline{password} || $ENV{NAGIOS__SERVICEMYSQL_PASS} || $ENV{NAGIOS__HOSTMYSQL_PASS}, + replication_user => $commandline{'replication-user'} || 'replication', mycnf => $commandline{mycnf} || $ENV{NAGIOS__SERVICEMYSQL_MYCNF} || $ENV{NAGIOS__HOSTMYSQL_MYCNF}, @@ -575,6 +580,7 @@ verbose => $commandline{verbose}, report => $commandline{report}, labelformat => $commandline{labelformat}, + negate => $commandline{negate}, ); my $server = undef; diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. +# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,12 +14,55 @@ @SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -35,25 +78,70 @@ build_triplet = @build@ host_triplet = @host@ subdir = plugins-scripts -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(srcdir)/subst.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = subst +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(libexecdir)" -libexecSCRIPT_INSTALL = $(INSTALL_SCRIPT) SCRIPTS = $(libexec_SCRIPTS) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) VPATH = $(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t -INSTALL = @INSTALL@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -67,6 +155,7 @@ ECHO_T = @ECHO_T@ GREP = @GREP@ GZIP = @GZIP@ +INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_OPTS = @INSTALL_OPTS@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -75,7 +164,9 @@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ MYMODULES_DIR = @MYMODULES_DIR@ MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ PACKAGE = @PACKAGE@ @@ -83,6 +174,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ @@ -96,7 +188,10 @@ SUPPORT = @SUPPORT@ VERSION = @VERSION@ WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ @@ -106,28 +201,40 @@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ +builddir = @builddir@ datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ +htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ +localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ +psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ with_nagios_group = @with_nagios_group@ with_nagios_user = @with_nagios_user@ SUFFIXES = .pl .pm .sh @@ -149,18 +256,18 @@ .SUFFIXES: .SUFFIXES: .pl .pm .sh -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins-scripts/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu plugins-scripts/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins-scripts/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu plugins-scripts/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -174,64 +281,82 @@ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(top_srcdir)/configure: $(am__configure_deps) +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): subst: $(top_builddir)/config.status $(srcdir)/subst.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-libexecSCRIPTS: $(libexec_SCRIPTS) @$(NORMAL_INSTALL) - test -z "$(libexecdir)" || $(mkdir_p) "$(DESTDIR)$(libexecdir)" - @list='$(libexec_SCRIPTS)'; for p in $$list; do \ + @list='$(libexec_SCRIPTS)'; test -n "$(libexecdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \ + fi; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(libexecSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(libexecdir)/$$f'"; \ - $(libexecSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(libexecdir)/$$f"; \ - else :; fi; \ - done + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n' \ + -e 'h;s|.*|.|' \ + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) { files[d] = files[d] " " $$1; \ + if (++n[d] == $(am__install_max)) { \ + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ + else { print "f", d "/" $$4, $$1 } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \ + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \ + } \ + ; done uninstall-libexecSCRIPTS: @$(NORMAL_UNINSTALL) - @list='$(libexec_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(libexecdir)/$$f'"; \ - rm -f "$(DESTDIR)$(libexecdir)/$$f"; \ - done -uninstall-info-am: -tags: TAGS -TAGS: + @list='$(libexec_SCRIPTS)'; test -n "$(libexecdir)" || exit 0; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 's,.*/,,;$(transform)'`; \ + dir='$(DESTDIR)$(libexecdir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist: distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/Nagios $(distdir)/Nagios/DBD/MySQL $(distdir)/Nagios/DBD/MySQL/Server $(distdir)/Nagios/DBD/MySQL/Server/Instance - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -240,7 +365,7 @@ all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(libexecdir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am @@ -252,10 +377,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: @@ -263,6 +393,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -281,18 +412,38 @@ html: html-am +html-am: + info: info-am info-am: install-data-am: +install-dvi: install-dvi-am + +install-dvi-am: + install-exec-am: install-libexecSCRIPTS +install-html: install-html-am + +install-html-am: + install-info: install-info-am +install-info-am: + install-man: +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -311,16 +462,20 @@ ps-am: -uninstall-am: uninstall-info-am uninstall-libexecSCRIPTS +uninstall-am: uninstall-libexecSCRIPTS + +.MAKE: install-am install-strip -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am \ - install-libexecSCRIPTS install-man install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-libexecSCRIPTS install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ + pdf-am ps ps-am tags-am uninstall uninstall-am \ uninstall-libexecSCRIPTS @@ -355,6 +510,7 @@ fi $(CAT) check_mysql_health.pl | $(GREP) -v "^use Nagios" | $(GREP) -v "^my %ERROR" | $(AWK) -f ./subst >> $@ chmod +x $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm 2015-12-26 17:20:34.000000000 +0000 @@ -74,10 +74,15 @@ my $dummy; $self->debug("enter init"); $self->init_nagios(); - ($dummy, $self->{have_innodb}) - = $self->{handle}->fetchrow_array(q{ - SHOW VARIABLES LIKE 'have_innodb' - }); + if (DBD::MySQL::Server::return_first_server()->version_is_minimum("5.1")) { + ($dummy, $self->{have_innodb}) = $self->{handle}->fetchrow_array(q{ + SELECT ENGINE, SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE='InnoDB' + }); + } else { + ($dummy, $self->{have_innodb}) = $self->{handle}->fetchrow_array(q{ + SHOW VARIABLES LIKE 'have_innodb' + }); + } if ($self->{have_innodb} eq "NO") { $self->add_nagios_critical("the innodb engine has a problem (have_innodb=no)"); } elsif ($self->{have_innodb} eq "DISABLED") { diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm 2015-12-26 17:20:34.000000000 +0000 @@ -13,6 +13,7 @@ my $self = { handle => $params{handle}, uptime => $params{uptime}, + replication_user => $params{replication_user}, warningrange => $params{warningrange}, criticalrange => $params{criticalrange}, threads_connected => undef, @@ -81,17 +82,23 @@ }); $self->valdiff(\%params, qw(threads_created connections)); if ($self->{delta_connections} > 0) { - $self->{threadcache_hitrate_now} = + $self->{threadcache_hitrate_now} = 100 - ($self->{delta_threads_created} * 100.0 / $self->{delta_connections}); } else { $self->{threadcache_hitrate_now} = 100; } - $self->{threadcache_hitrate} = 100 - + $self->{threadcache_hitrate} = 100 - ($self->{threads_created} * 100.0 / $self->{connections}); $self->{connections_per_sec} = $self->{delta_connections} / $self->{delta_timestamp}; } elsif ($params{mode} =~ /server::instance::querycachehitrate/) { + ($dummy, $self->{qcache_inserts}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Qcache_inserts' + }); + ($dummy, $self->{qcache_not_cached}) = $self->{handle}->fetchrow_array(q{ + SHOW /*!50000 global */ STATUS LIKE 'Qcache_not_cached' + }); ($dummy, $self->{com_select}) = $self->{handle}->fetchrow_array(q{ SHOW /*!50000 global */ STATUS LIKE 'Com_select' }); @@ -107,15 +114,15 @@ SHOW VARIABLES LIKE 'query_cache_size' }); $self->valdiff(\%params, qw(com_select qcache_hits)); - $self->{querycache_hitrate_now} = + $self->{querycache_hitrate_now} = ($self->{delta_com_select} + $self->{delta_qcache_hits}) > 0 ? 100 * $self->{delta_qcache_hits} / ($self->{delta_com_select} + $self->{delta_qcache_hits}) : 0; - $self->{querycache_hitrate} = - ($self->{com_select} + $self->{qcache_hits}) > 0 ? + $self->{querycache_hitrate} = + ($self->{qcache_not_cached} + $self->{qcache_inserts} + $self->{qcache_hits}) > 0 ? 100 * $self->{qcache_hits} / - ($self->{com_select} + $self->{qcache_hits}) : + ($self->{qcache_not_cached} + $self->{qcache_inserts} + $self->{qcache_hits}) : 0; $self->{selects_per_sec} = $self->{delta_com_select} / $self->{delta_timestamp}; @@ -124,34 +131,34 @@ SHOW /*!50000 global */ STATUS LIKE 'Qcache_lowmem_prunes' }); $self->valdiff(\%params, qw(lowmem_prunes)); - $self->{lowmem_prunes_per_sec} = $self->{delta_lowmem_prunes} / + $self->{lowmem_prunes_per_sec} = $self->{delta_lowmem_prunes} / $self->{delta_timestamp}; } elsif ($params{mode} =~ /server::instance::slowqueries/) { ($dummy, $self->{slow_queries}) = $self->{handle}->fetchrow_array(q{ SHOW /*!50000 global */ STATUS LIKE 'Slow_queries' }); $self->valdiff(\%params, qw(slow_queries)); - $self->{slow_queries_per_sec} = $self->{delta_slow_queries} / + $self->{slow_queries_per_sec} = $self->{delta_slow_queries} / $self->{delta_timestamp}; } elsif ($params{mode} =~ /server::instance::longprocs/) { if (DBD::MySQL::Server::return_first_server()->version_is_minimum("5.1")) { - ($self->{longrunners}) = $self->{handle}->fetchrow_array(q{ + ($self->{longrunners}) = $self->{handle}->fetchrow_array(qq( SELECT COUNT(*) FROM information_schema.processlist - WHERE user <> 'replication' + WHERE user <> ? AND id <> CONNECTION_ID() AND time > 60 AND command <> 'Sleep' - }); + ), $self->{replication_user}); } else { $self->{longrunners} = 0 if ! defined $self->{longrunners}; foreach ($self->{handle}->fetchall_array(q{ SHOW PROCESSLIST })) { my($id, $user, $host, $db, $command, $tme, $state, $info) = @{$_}; - if (($user ne 'replication') && + if (($user ne $self->{replication_user}) && ($tme > 60) && ($command ne 'Sleep')) { $self->{longrunners}++; @@ -178,16 +185,16 @@ } $self->{table_cache} ||= 0; #$self->valdiff(\%params, qw(open_tables opened_tables table_cache)); - # _now ist hier sinnlos, da opened_tables waechst, aber open_tables wieder + # _now ist hier sinnlos, da opened_tables waechst, aber open_tables wieder # schrumpfen kann weil tabellen geschlossen werden. if ($self->{opened_tables} != 0 && $self->{table_cache} != 0) { - $self->{tablecache_hitrate} = + $self->{tablecache_hitrate} = 100 * $self->{open_tables} / $self->{opened_tables}; - $self->{tablecache_fillrate} = + $self->{tablecache_fillrate} = 100 * $self->{open_tables} / $self->{table_cache}; } elsif ($self->{opened_tables} == 0 && $self->{table_cache} != 0) { $self->{tablecache_hitrate} = 100; - $self->{tablecache_fillrate} = + $self->{tablecache_fillrate} = 100 * $self->{open_tables} / $self->{table_cache}; } else { $self->{tablecache_hitrate} = 0; @@ -202,14 +209,14 @@ SHOW /*!50000 global */ STATUS LIKE 'Table_locks_immediate' }); $self->valdiff(\%params, qw(table_locks_waited table_locks_immediate)); - $self->{table_lock_contention} = + $self->{table_lock_contention} = ($self->{table_locks_waited} + $self->{table_locks_immediate}) > 0 ? - 100 * $self->{table_locks_waited} / + 100 * $self->{table_locks_waited} / ($self->{table_locks_waited} + $self->{table_locks_immediate}) : 100; - $self->{table_lock_contention_now} = + $self->{table_lock_contention_now} = ($self->{delta_table_locks_waited} + $self->{delta_table_locks_immediate}) > 0 ? - 100 * $self->{delta_table_locks_waited} / + 100 * $self->{delta_table_locks_waited} / ($self->{delta_table_locks_waited} + $self->{delta_table_locks_immediate}) : 100; } elsif ($params{mode} =~ /server::instance::tableindexusage/) { diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server.pm nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server.pm --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server.pm 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/plugins-scripts/Nagios/DBD/MySQL/Server.pm 2015-12-26 17:20:34.000000000 +0000 @@ -36,6 +36,7 @@ my $class = shift; my %params = @_; my $self = { + mode => $params{mode}, access => $params{method} || 'dbi', hostname => $params{hostname}, database => $params{database} || 'information_schema', @@ -43,6 +44,7 @@ socket => $params{socket}, username => $params{username}, password => $params{password}, + replication_user => $params{replication_user}, mycnf => $params{mycnf}, mycnfgroup => $params{mycnfgroup}, timeout => $params{timeout}, @@ -50,6 +52,7 @@ criticalrange => $params{criticalrange}, verbose => $params{verbose}, report => $params{report}, + negate => $params{negate}, labelformat => $params{labelformat}, version => 'unknown', instance => undef, @@ -289,17 +292,48 @@ $self->{warningrange} : $defaultwarningrange; $self->{criticalrange} = defined $self->{criticalrange} ? $self->{criticalrange} : $defaultcriticalrange; - if ($self->{warningrange} !~ /:/ && $self->{criticalrange} !~ /:/) { - # warning = 10, critical = 20, warn if > 10, crit if > 20 - $level = $ERRORS{WARNING} if $value > $self->{warningrange}; - $level = $ERRORS{CRITICAL} if $value > $self->{criticalrange}; - } elsif ($self->{warningrange} =~ /([\d\.]+):/ && - $self->{criticalrange} =~ /([\d\.]+):/) { - # warning = 98:, critical = 95:, warn if < 98, crit if < 95 - $self->{warningrange} =~ /([\d\.]+):/; - $level = $ERRORS{WARNING} if $value < $1; - $self->{criticalrange} =~ /([\d\.]+):/; - $level = $ERRORS{CRITICAL} if $value < $1; + + if ($self->{warningrange} =~ /^([-+]?[0-9]*\.?[0-9]+)$/) { + # warning = 10, warn if > 10 or < 0 + $level = $ERRORS{WARNING} + if ($value > $1 || $value < 0); + } elsif ($self->{warningrange} =~ /^([-+]?[0-9]*\.?[0-9]+):$/) { + # warning = 10:, warn if < 10 + $level = $ERRORS{WARNING} + if ($value < $1); + } elsif ($self->{warningrange} =~ /^~:([-+]?[0-9]*\.?[0-9]+)$/) { + # warning = ~:10, warn if > 10 + $level = $ERRORS{WARNING} + if ($value > $1); + } elsif ($self->{warningrange} =~ /^([-+]?[0-9]*\.?[0-9]+):([-+]?[0-9]*\.?[0-9]+)$/) { + # warning = 10:20, warn if < 10 or > 20 + $level = $ERRORS{WARNING} + if ($value < $1 || $value > $2); + } elsif ($self->{warningrange} =~ /^@([-+]?[0-9]*\.?[0-9]+):([-+]?[0-9]*\.?[0-9]+)$/) { + # warning = @10:20, warn if >= 10 and <= 20 + $level = $ERRORS{WARNING} + if ($value >= $1 && $value <= $2); + } + if ($self->{criticalrange} =~ /^([-+]?[0-9]*\.?[0-9]+)$/) { + # critical = 10, crit if > 10 or < 0 + $level = $ERRORS{CRITICAL} + if ($value > $1 || $value < 0); + } elsif ($self->{criticalrange} =~ /^([-+]?[0-9]*\.?[0-9]+):$/) { + # critical = 10:, crit if < 10 + $level = $ERRORS{CRITICAL} + if ($value < $1); + } elsif ($self->{criticalrange} =~ /^~:([-+]?[0-9]*\.?[0-9]+)$/) { + # critical = ~:10, crit if > 10 + $level = $ERRORS{CRITICAL} + if ($value > $1); + } elsif ($self->{criticalrange} =~ /^([-+]?[0-9]*\.?[0-9]+):([-+]?[0-9]*\.?[0-9]+)$/) { + # critical = 10:20, crit if < 10 or > 20 + $level = $ERRORS{CRITICAL} + if ($value < $1 || $value > $2); + } elsif ($self->{criticalrange} =~ /^@([-+]?[0-9]*\.?[0-9]+):([-+]?[0-9]*\.?[0-9]+)$/) { + # critical = @10:20, crit if >= 10 and <= 20 + $level = $ERRORS{CRITICAL} + if ($value >= $1 && $value <= $2); } return $level; # @@ -385,7 +419,18 @@ } grep { scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) } ("CRITICAL", "WARNING", "UNKNOWN")); + my $good_messages = join(($multiline ? "\n" : ", "), map { + join(($multiline ? "\n" : ", "), @{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } grep { + scalar(@{$self->{nagios}->{messages}->{$ERRORS{$_}}}) + } ("OK")); my $all_messages_short = $bad_messages ? $bad_messages : 'no problems'; + # if mode = my-.... + # and there are some ok-messages + # output them instead of "no problems" + if ($self->{mode} =~ /^my\:\:/ && $good_messages) { + $all_messages_short = $bad_messages ? $bad_messages : $good_messages; + } my $all_messages_html = "". join("", map { my $level = $_; @@ -407,6 +452,14 @@ } elsif ($self->{report} eq "html") { $self->{nagios_message} .= $all_messages_short."\n".$all_messages_html; } + foreach my $from (keys %{$self->{negate}}) { + if ((uc $from) =~ /^(OK|WARNING|CRITICAL|UNKNOWN)$/ && + (uc $self->{negate}->{$from}) =~ /^(OK|WARNING|CRITICAL|UNKNOWN)$/) { + if ($self->{nagios_level} == $ERRORS{uc $from}) { + $self->{nagios_level} = $ERRORS{uc $self->{negate}->{$from}}; + } + } + } if ($self->{labelformat} eq "pnp4nagios") { $self->{perfdata} = join(" ", @{$self->{nagios}->{perfdata}}); } else { @@ -440,8 +493,7 @@ # eval { if ($self->{handle}->fetchrow_array(q{ - SELECT table_name - FROM information_schema.tables + SELECT table_name FROM information_schema.tables WHERE table_schema = ? AND table_name = 'CHECK_MYSQL_HEALTH_THRESHOLDS'; }, $self->{database})) { # either --database... or information_schema @@ -834,6 +886,16 @@ } } +sub decode_password { + my $self = shift; + my $password = shift; + if ($password && $password =~ /^rfc3986:\/\/(.*)/) { + $password = $1; + $password =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg; + } + return $password; +} + package DBD::MySQL::Server::Connection; @@ -937,7 +999,7 @@ if ($self->{handle} = DBI->connect( $self->{dsn}, $self->{username}, - $self->{password}, + $self->decode_password($self->{password}), { RaiseError => 0, AutoCommit => 0, PrintError => 0 })) { # $self->{handle}->do(q{ # ALTER SESSION SET NLS_NUMERIC_CHARACTERS=".," }); @@ -1122,6 +1184,7 @@ } } if (! exists $self->{errstr}) { + $self->{password} = $self->decode_password($self->{password}); eval { my $mysql = '/'.'usr'.'/'.'bin'.'/'.'mysql'; if (! -x $mysql) { @@ -1136,7 +1199,7 @@ unless $self->{socket} || $self->{hostname} eq "localhost"; $self->{sqlplus} .= sprintf "--socket=%s ", $self->{socket} if $self->{socket}; - $self->{sqlplus} .= sprintf "--user=%s --password=%s < %s > %s", + $self->{sqlplus} .= sprintf "--user=%s --password='%s' < %s > %s", $self->{username}, $self->{password}, $self->{sql_commandfile}, $self->{sql_resultfile}; } @@ -1370,6 +1433,19 @@ close CMDCMD; } +sub decode_password { + my $self = shift; + my $password = shift; + $password = $self->SUPER::decode_password($password); + # we call '...%s/%s@...' inside backticks where the second %s is the password + # abc'xcv -> ''abc'\''xcv'' + # abc'`xcv -> ''abc'\''\`xcv'' + if ($password && $password =~ /'/) { + $password = "'".join("\\'", map { "'".$_."'"; } split("'", $password))."'"; + } + return $password; +} + package DBD::MySQL::Server::Connection::Sqlrelay; @@ -1399,13 +1475,13 @@ } } else { if (! $self->{hostname} || ! $self->{username} || ! $self->{password}) { - if ($self->{hostname} && $self->{hostname} =~ /(\w+)\/(\w+)@([\.\w]+):(\d+)/) { + if ($self->{hostname} && $self->{hostname} =~ /(\w+?)\/(.+)@([\.\w]+):(\d+)/) { $self->{username} = $1; $self->{password} = $2; $self->{hostname} = $3; $self->{port} = $4; $self->{socket} = ""; - } elsif ($self->{hostname} && $self->{hostname} =~ /(\w+)\/(\w+)@([\.\w]+):([\w\/]+)/) { + } elsif ($self->{hostname} && $self->{hostname} =~ /(\w+?)\/(.+)@([\.\w]+):([\w\/]+)/) { $self->{username} = $1; $self->{password} = $2; $self->{hostname} = $3; @@ -1450,7 +1526,7 @@ sprintf("DBI:SQLRelay:host=%s;port=%d;socket=%s", $self->{hostname}, $self->{port}, $self->{socket}), $self->{username}, - $self->{password}, + $self->decode_password($self->{password}), { RaiseError => 1, AutoCommit => 0, PrintError => 1 })) { $retval = $self; if ($self->{mode} =~ /^server::tnsping/ && $self->{handle}->ping()) { diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/README nagios-plugins-contrib-16.20151226/check_mysql_health/src/README --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/README 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/README 2015-12-26 17:20:34.000000000 +0000 @@ -102,6 +102,11 @@ http://www.consol.com/opensource/nagios/check-mysql-health for a list of features. +--replication-user= + This is the username used to authenticated mysql replication, this is useful + with the longprocs mode where the replication users process is not counted as + a longrunning process. + --warning= If the metric is out of this range, the plugin returns a warning. diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/t/check_mysql_health.t nagios-plugins-contrib-16.20151226/check_mysql_health/src/t/check_mysql_health.t --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/t/check_mysql_health.t 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/t/check_mysql_health.t 2015-12-26 17:20:34.000000000 +0000 @@ -1,159 +1,159 @@ -#! /usr/bin/perl -w -I .. -# -# MySQL Database Server Tests via check_mysql_healthdb -# -# -# These are the database permissions required for this test: -# GRANT SELECT ON $db.* TO $user@$host INDENTIFIED BY '$password'; -# GRANT SUPER, REPLICATION CLIENT ON *.* TO $user@$host; -# Check with: -# mysql -u$user -p$password -h$host $db - -use strict; -use Test::More; -use NPTest; - -use vars qw($tests); - -plan skip_all => "check_mysql_health not compiled" unless (-x "./check_mysql_health"); - -plan tests => 51; - -my $bad_login_output = '/Access denied for user /'; -my $mysqlserver = getTestParameter( - "NP_MYSQL_SERVER", - "A MySQL Server with no slaves setup" - ); -my $mysql_login_details = getTestParameter( - "MYSQL_LOGIN_DETAILS", - "Command line parameters to specify login access", - "-u user -ppw -d db", - ); -my $with_slave = getTestParameter( - "NP_MYSQL_WITH_SLAVE", - "MySQL server with slaves setup" - ); -my $with_slave_login = getTestParameter( - "NP_MYSQL_WITH_SLAVE_LOGIN", - "Login details for server with slave", - "-uroot -ppw" - ); - -my $result; -SKIP: { - $result = NPTest->testCmd("./check_mysql_health -V"); - cmp_ok( $result->return_code, '==', 0, "expected result"); - like( $result->output, "/check_mysql_health \\(\\d+\\.\\d+\\)/", "Expected message"); - - $result = NPTest->testCmd("./check_mysql_health --help"); - cmp_ok( $result->return_code, '==', 0, "expected result"); - like( $result->output, "/slave-lag/", "Expected message"); - like( $result->output, "/slave-io-running/", "Expected message"); - like( $result->output, "/slave-sql-running/", "Expected message"); - like( $result->output, "/threads-connected/", "Expected message"); - like( $result->output, "/threadcache-hitrate/", "Expected message"); - like( $result->output, "/querycache-hitrate/", "Expected message"); - like( $result->output, "/keycache-hitrate/", "Expected message"); - like( $result->output, "/bufferpool-hitrate/", "Expected message"); - like( $result->output, "/tablecache-hitrate/", "Expected message"); - like( $result->output, "/table-lock-contention/", "Expected message"); - like( $result->output, "/temp-disk-tables/", "Expected message"); - like( $result->output, "/connection-time/", "Expected message"); - like( $result->output, "/slow-queries/", "Expected message"); - like( $result->output, "/qcache-lowmem-prunes/", "Expected message"); - like( $result->output, "/bufferpool-wait-free/", "Expected message"); - like( $result->output, "/log-waits/", "Expected message"); - -} - -SKIP: { - $result = NPTest->testCmd("./check_mysql_health -H $mysqlserver -m connection-time -u dummy -pdummy"); - cmp_ok( $result->return_code, '==', 2, "Login failure"); - like( $result->output, "/CRITICAL - Cannot connect to database: Error: Access denied/", "Expected login failure message"); - - $result = NPTest->testCmd("./check_mysql_health"); - cmp_ok( $result->return_code, "==", 3, "No mode defined" ); - like( $result->output, "/Must specify a mode/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m connection-time -w 10 -c 30"); - cmp_ok( $result->return_code, "==", 0, "Connected" ); - like( $result->output, "/OK - Connection Time ([0-9\.]+) usecs|connection_time=([0-9\.]+);10;30/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m keycache-hitrate -w :10 -c 2"); - cmp_ok( $result->return_code, "==", 2, "Connected" ); - like( $result->output, "/CRITICAL - Key Cache Hitrate at ([0-9\.]+)%|keycache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m qcache-hitrate -w :10 -c 2"); - cmp_ok( $result->return_code, "==", 2, "Connected" ); - like( $result->output, "/CRITICAL - Query Cache Hitrate at ([0-9\.]+)%|qcache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m qcache-hitrate -w :10 -c 2 -v 2>&1"); - cmp_ok( $result->return_code, "==", 2, "Connected" ); - like( $result->output, "/NOTICE: we have results/", "Verbose output"); - like( $result->output, "/CRITICAL - Query Cache Hitrate at ([0-9\.]+)%|qcache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); - -} - -SKIP: { - my $slow_queries_last = 0; - my $slow_queries = 0; - my $delta = 0; - $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :10 -c 2"); - sleep 1; - $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :10 -c 2 -v 2>&1"); - ok( $result->output =~ /Load variable Slow_queries \(([0-9]+)\) /); - $slow_queries_last = $1; - ok( $result->output =~ /Result column 1 returns value ([0-9]+) /); - $slow_queries = $1; - $delta = $slow_queries - $slow_queries_last; - ok( $result->output =~ /OK - ([0-9]+) slow queries/); - cmp_ok($1, "==", $delta); -} - -SKIP: { - # performance data - $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :11 -c :22 -v 2>&1"); - like( $result->output, "/slow_queries_rate=[0-9\.]+;:11;:22 slow_queries=[0-9]+;:11;:22/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m qcache-lowmem-prunes -w :11 -c :22 -v 2>&1"); - like( $result->output, "/lowmem_prunes_rate=[0-9\.]+;:11;:22 lowmem_prunes=[0-9]+;:11;:22/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m bufferpool-wait-free -w :11 -c :22 -v 2>&1"); - like( $result->output, "/bufferpool_free_waits_rate=[0-9\.]+;:11;:22 bufferpool_free_waits=[0-9]+;:11;:22/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m log-waits -w :11 -c :22 -v 2>&1"); - like( $result->output, "/log_waits_rate=[0-9\.]+;:11;:22 log_waits=[0-9]+;:11;:22/", "Correct error message"); -} - -SKIP: { - skip "Has a slave server", 6 if $with_slave; - - $result = NPTest->testCmd("./check_mysql_health -m slave-lag"); - cmp_ok( $result->return_code, "==", 2, "No slave" ); - like( $result->output, "/CRITICAL - Slave lag NULL|slave_lag=0;10;20/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m slave-io-running"); - cmp_ok( $result->return_code, "==", 2, "No slave" ); - like( $result->output, "/CRITICAL - Slave io not running|slave_io_running=0/", "Correct error message"); - - $result = NPTest->testCmd("./check_mysql_health -m slave-sql-running"); - cmp_ok( $result->return_code, "==", 2, "No slave" ); - like( $result->output, "/CRITICAL - Slave sql not running|slave_io_running=0/", "Correct error message"); - -} - -SKIP: { - skip "No mysql server with slaves defined", 5 unless $with_slave; - $result = NPTest->testCmd("./check_mysql_health -H $with_slave $with_slave_login"); - cmp_ok( $result->return_code, '==', 0, "Login okay"); - - $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login"); - cmp_ok( $result->return_code, "==", 0, "Slaves okay" ); - - $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login -w 60"); - cmp_ok( $result->return_code, '==', 0, 'Slaves are not > 60 seconds behind'); - - $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login -w 60:"); - cmp_ok( $result->return_code, '==', 1, 'Alert warning if < 60 seconds behind'); - like( $result->output, "/^SLOW_SLAVE WARNING:/", "Output okay"); -} +#! /usr/bin/perl -w -I .. +# +# MySQL Database Server Tests via check_mysql_healthdb +# +# +# These are the database permissions required for this test: +# GRANT SELECT ON $db.* TO $user@$host INDENTIFIED BY '$password'; +# GRANT SUPER, REPLICATION CLIENT ON *.* TO $user@$host; +# Check with: +# mysql -u$user -p$password -h$host $db + +use strict; +use Test::More; +use NPTest; + +use vars qw($tests); + +plan skip_all => "check_mysql_health not compiled" unless (-x "./check_mysql_health"); + +plan tests => 51; + +my $bad_login_output = '/Access denied for user /'; +my $mysqlserver = getTestParameter( + "NP_MYSQL_SERVER", + "A MySQL Server with no slaves setup" + ); +my $mysql_login_details = getTestParameter( + "MYSQL_LOGIN_DETAILS", + "Command line parameters to specify login access", + "-u user -ppw -d db", + ); +my $with_slave = getTestParameter( + "NP_MYSQL_WITH_SLAVE", + "MySQL server with slaves setup" + ); +my $with_slave_login = getTestParameter( + "NP_MYSQL_WITH_SLAVE_LOGIN", + "Login details for server with slave", + "-uroot -ppw" + ); + +my $result; +SKIP: { + $result = NPTest->testCmd("./check_mysql_health -V"); + cmp_ok( $result->return_code, '==', 0, "expected result"); + like( $result->output, "/check_mysql_health \\(\\d+\\.\\d+\\)/", "Expected message"); + + $result = NPTest->testCmd("./check_mysql_health --help"); + cmp_ok( $result->return_code, '==', 0, "expected result"); + like( $result->output, "/slave-lag/", "Expected message"); + like( $result->output, "/slave-io-running/", "Expected message"); + like( $result->output, "/slave-sql-running/", "Expected message"); + like( $result->output, "/threads-connected/", "Expected message"); + like( $result->output, "/threadcache-hitrate/", "Expected message"); + like( $result->output, "/querycache-hitrate/", "Expected message"); + like( $result->output, "/keycache-hitrate/", "Expected message"); + like( $result->output, "/bufferpool-hitrate/", "Expected message"); + like( $result->output, "/tablecache-hitrate/", "Expected message"); + like( $result->output, "/table-lock-contention/", "Expected message"); + like( $result->output, "/temp-disk-tables/", "Expected message"); + like( $result->output, "/connection-time/", "Expected message"); + like( $result->output, "/slow-queries/", "Expected message"); + like( $result->output, "/qcache-lowmem-prunes/", "Expected message"); + like( $result->output, "/bufferpool-wait-free/", "Expected message"); + like( $result->output, "/log-waits/", "Expected message"); + +} + +SKIP: { + $result = NPTest->testCmd("./check_mysql_health -H $mysqlserver -m connection-time -u dummy -pdummy"); + cmp_ok( $result->return_code, '==', 2, "Login failure"); + like( $result->output, "/CRITICAL - Cannot connect to database: Error: Access denied/", "Expected login failure message"); + + $result = NPTest->testCmd("./check_mysql_health"); + cmp_ok( $result->return_code, "==", 3, "No mode defined" ); + like( $result->output, "/Must specify a mode/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m connection-time -w 10 -c 30"); + cmp_ok( $result->return_code, "==", 0, "Connected" ); + like( $result->output, "/OK - Connection Time ([0-9\.]+) usecs|connection_time=([0-9\.]+);10;30/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m keycache-hitrate -w :10 -c 2"); + cmp_ok( $result->return_code, "==", 2, "Connected" ); + like( $result->output, "/CRITICAL - Key Cache Hitrate at ([0-9\.]+)%|keycache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m qcache-hitrate -w :10 -c 2"); + cmp_ok( $result->return_code, "==", 2, "Connected" ); + like( $result->output, "/CRITICAL - Query Cache Hitrate at ([0-9\.]+)%|qcache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m qcache-hitrate -w :10 -c 2 -v 2>&1"); + cmp_ok( $result->return_code, "==", 2, "Connected" ); + like( $result->output, "/NOTICE: we have results/", "Verbose output"); + like( $result->output, "/CRITICAL - Query Cache Hitrate at ([0-9\.]+)%|qcache_hitrate=([0-9\.]+)%;:10;2/", "Correct error message"); + +} + +SKIP: { + my $slow_queries_last = 0; + my $slow_queries = 0; + my $delta = 0; + $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :10 -c 2"); + sleep 1; + $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :10 -c 2 -v 2>&1"); + ok( $result->output =~ /Load variable Slow_queries \(([0-9]+)\) /); + $slow_queries_last = $1; + ok( $result->output =~ /Result column 1 returns value ([0-9]+) /); + $slow_queries = $1; + $delta = $slow_queries - $slow_queries_last; + ok( $result->output =~ /OK - ([0-9]+) slow queries/); + cmp_ok($1, "==", $delta); +} + +SKIP: { + # performance data + $result = NPTest->testCmd("./check_mysql_health -m slow-queries -w :11 -c :22 -v 2>&1"); + like( $result->output, "/slow_queries_rate=[0-9\.]+;:11;:22 slow_queries=[0-9]+;:11;:22/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m qcache-lowmem-prunes -w :11 -c :22 -v 2>&1"); + like( $result->output, "/lowmem_prunes_rate=[0-9\.]+;:11;:22 lowmem_prunes=[0-9]+;:11;:22/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m bufferpool-wait-free -w :11 -c :22 -v 2>&1"); + like( $result->output, "/bufferpool_free_waits_rate=[0-9\.]+;:11;:22 bufferpool_free_waits=[0-9]+;:11;:22/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m log-waits -w :11 -c :22 -v 2>&1"); + like( $result->output, "/log_waits_rate=[0-9\.]+;:11;:22 log_waits=[0-9]+;:11;:22/", "Correct error message"); +} + +SKIP: { + skip "Has a slave server", 6 if $with_slave; + + $result = NPTest->testCmd("./check_mysql_health -m slave-lag"); + cmp_ok( $result->return_code, "==", 2, "No slave" ); + like( $result->output, "/CRITICAL - Slave lag NULL|slave_lag=0;10;20/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m slave-io-running"); + cmp_ok( $result->return_code, "==", 2, "No slave" ); + like( $result->output, "/CRITICAL - Slave io not running|slave_io_running=0/", "Correct error message"); + + $result = NPTest->testCmd("./check_mysql_health -m slave-sql-running"); + cmp_ok( $result->return_code, "==", 2, "No slave" ); + like( $result->output, "/CRITICAL - Slave sql not running|slave_io_running=0/", "Correct error message"); + +} + +SKIP: { + skip "No mysql server with slaves defined", 5 unless $with_slave; + $result = NPTest->testCmd("./check_mysql_health -H $with_slave $with_slave_login"); + cmp_ok( $result->return_code, '==', 0, "Login okay"); + + $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login"); + cmp_ok( $result->return_code, "==", 0, "Slaves okay" ); + + $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login -w 60"); + cmp_ok( $result->return_code, '==', 0, 'Slaves are not > 60 seconds behind'); + + $result = NPTest->testCmd("./check_mysql_health -S -H $with_slave $with_slave_login -w 60:"); + cmp_ok( $result->return_code, '==', 1, 'Alert warning if < 60 seconds behind'); + like( $result->output, "/^SLOW_SLAVE WARNING:/", "Output okay"); +} diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/t/Makefile.am nagios-plugins-contrib-16.20151226/check_mysql_health/src/t/Makefile.am --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/t/Makefile.am 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/t/Makefile.am 2015-12-26 17:20:34.000000000 +0000 @@ -1,21 +1,21 @@ -## -## Process this file with automake to produce Makefile.in -## - -AUTOMAKE_OPTIONS = 1.3 no-dependencies - -#all: tests - -TEST_VERBOSE=0 -TEST_TYPE=test_$(LINKTYPE) -TEST_FILE = test.pl -TEST_FILES = *.t -TESTDB_SW = -d - -#EXTRA_DIST = *.t bin var etc -EXTRA_DIST = *.t - -tests: - $(PERL) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) -# PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) - +## +## Process this file with automake to produce Makefile.in +## + +AUTOMAKE_OPTIONS = 1.3 no-dependencies + +#all: tests + +TEST_VERBOSE=0 +TEST_TYPE=test_$(LINKTYPE) +TEST_FILE = test.pl +TEST_FILES = *.t +TESTDB_SW = -d + +#EXTRA_DIST = *.t bin var etc +EXTRA_DIST = *.t + +tests: + $(PERL) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) +# PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) + diff -Nru nagios-plugins-contrib-14.20141104/check_mysql_health/src/t/Makefile.in nagios-plugins-contrib-16.20151226/check_mysql_health/src/t/Makefile.in --- nagios-plugins-contrib-14.20141104/check_mysql_health/src/t/Makefile.in 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_mysql_health/src/t/Makefile.in 2015-12-26 17:20:34.000000000 +0000 @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. +# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -13,13 +13,56 @@ # PARTICULAR PURPOSE. @SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -35,22 +78,41 @@ build_triplet = @build@ host_triplet = @host@ subdir = t -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.in + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = depcomp = am__depfiles_maybe = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -INSTALL = @INSTALL@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -64,6 +126,7 @@ ECHO_T = @ECHO_T@ GREP = @GREP@ GZIP = @GZIP@ +INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_OPTS = @INSTALL_OPTS@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -72,7 +135,9 @@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ MYMODULES_DIR = @MYMODULES_DIR@ MYMODULES_DYN_DIR = @MYMODULES_DYN_DIR@ PACKAGE = @PACKAGE@ @@ -80,6 +145,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ @@ -93,7 +159,10 @@ SUPPORT = @SUPPORT@ VERSION = @VERSION@ WARRANTY = @WARRANTY@ -ac_ct_STRIP = @ac_ct_STRIP@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ @@ -103,28 +172,40 @@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ +builddir = @builddir@ datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ +htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ +localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ +psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ with_nagios_group = @with_nagios_group@ with_nagios_user = @with_nagios_user@ AUTOMAKE_OPTIONS = 1.3 no-dependencies @@ -141,18 +222,18 @@ all: all-am .SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu t/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu t/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu t/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu t/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -166,42 +247,45 @@ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(top_srcdir)/configure: $(am__configure_deps) +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: -tags: TAGS -TAGS: +$(am__aclocal_m4_deps): +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist: distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -219,16 +303,22 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -247,18 +337,38 @@ html: html-am +html-am: + info: info-am info-am: install-data-am: +install-dvi: install-dvi-am + +install-dvi-am: + install-exec-am: +install-html: install-html-am + +install-html-am: + install-info: install-info-am +install-info-am: + install-man: +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -277,21 +387,26 @@ ps-am: -uninstall-am: uninstall-info-am +uninstall-am: + +.MAKE: install-am install-strip -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags-am uninstall uninstall-am tests: $(PERL) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) # PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru nagios-plugins-contrib-14.20141104/check_raid/check_raid nagios-plugins-contrib-16.20151226/check_raid/check_raid --- nagios-plugins-contrib-14.20141104/check_raid/check_raid 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_raid/check_raid 2015-12-26 17:20:34.000000000 +0000 @@ -11,7 +11,7 @@ # 2004-2006 Steve Shipway, university of auckland, # http://www.steveshipway.org/forum/viewtopic.php?f=20&t=417&p=3211 # Steve Shipway Thanks M Carmier for megaraid section. -# 2009-2014 Elan Ruusamäe +# 2009-2015 Elan Ruusamäe # Requires: Perl 5.8 for the open(my $fh , '-|', @CMD) syntax. # You can workaround for earlier Perl it as: @@ -56,8 +56,10 @@ { package utils; -my @EXPORT = qw(which $sudo); -my @EXPORT_OK = @EXPORT; +use Exporter 'import'; + +our @EXPORT = qw(which find_sudo); +our @EXPORT_OK = @EXPORT; # registered plugins our @plugins; @@ -74,42 +76,242 @@ # lookup program from list of possible filenames # search is performed from $PATH plus additional hardcoded @paths +# NOTE: we do not check for execute bit as it may fail for non-root. #104 sub which { for my $prog (@_) { for my $path (@paths) { - return "$path/$prog" if -x "$path/$prog"; + return "$path/$prog" if -f "$path/$prog"; } } return undef; } -our $sudo = which('sudo'); +our @sudo; +sub find_sudo { + # no sudo needed if already root + return [] unless $>; + + # detect once + return \@sudo if @sudo; + + my $sudo = which('sudo') or die "Can't find sudo"; + push(@sudo, $sudo); + + # detect if sudo supports -A, issue #88 + use IPC::Open3; + my $fh; + my @cmd = ($sudo, '-h'); + my $pid = open3(undef, $fh, undef, @cmd) or die "Can't run 'sudo -h': $!"; + local $/ = undef; + local $_ = <$fh>; + close($fh) or die $!; + push(@sudo, '-A') if /-A/; + + return \@sudo; +} + } # package utils { +package sudoers; + +use Exporter 'import'; + +utils->import; + +our @EXPORT = qw(sudoers); +our @EXPORT_OK = @EXPORT; + +# update sudoers file +# +# if sudoers config has "#includedir" directive, add file to that dir +# otherwise update main sudoers file +sub sudoers { + my ($dry_run) = @_; + + # build values to be added + # go over all registered plugins + my @sudo; + foreach my $pn (@utils::plugins) { + my $plugin = $pn->new; + + # skip inactive plugins (disabled or no tools available) + next unless $plugin->active; + + # collect sudo rules + my @rules = $plugin->sudo(1) or next; + + push(@sudo, @rules); + } + + unless (@sudo) { + warn "Your configuration does not need to use sudo, sudoers not updated\n"; + return; + } + + my @rules = join "\n", ( + "", + # setup alias, so we could easily remove these later by matching lines with 'CHECK_RAID' + # also this avoids installing ourselves twice. + "# Lines matching CHECK_RAID added by $0 -S on ". scalar localtime, + "User_Alias CHECK_RAID=nagios", + "Defaults:CHECK_RAID !requiretty", + + # actual rules from plugins + join("\n", @sudo), + "", + ); + + if ($dry_run) { + warn "Content to be inserted to sudo rules:\n"; + warn "--- sudoers ---\n"; + print @rules; + warn "--- sudoers ---\n"; + return; + } + + my $sudoers = find_file('/usr/local/etc/sudoers', '/etc/sudoers'); + my $visudo = which('visudo'); + + die "Unable to find sudoers file.\n" unless -f $sudoers; + die "Unable to write to sudoers file '$sudoers'.\n" unless -w $sudoers; + die "visudo program not found\n" unless -x $visudo; + + # parse sudoers file for "#includedir" directive + my $sudodir = parse_sudoers_includedir($sudoers); + if ($sudodir) { + # sudo will read each file in /etc/sudoers.d, skipping file names that + # end in ~ or contain a . character to avoid causing problems with + # package manager or editor temporary/backup files + $sudoers = "$sudodir/check_raid"; + } + + warn "Updating file $sudoers\n"; + + # NOTE: secure as visudo itself: /etc is root owned + my $new = $sudoers.".new.".$$; + + # setup to have sane perm for new sudoers file + umask(0227); + + open my $fh, '>', $new or die $!; + + # insert old sudoers + if (!$sudodir) { + open my $old, '<', $sudoers or die $!; + while (<$old>) { + print $fh $_; + } + close $old or die $!; + } + + # insert the rules + print $fh @rules; + close $fh; + + # validate sudoers + system($visudo, '-c', '-f', $new) == 0 or unlink($new),exit $? >> 8; + + # check if they differ + if (filediff($sudoers, $new)) { + # use the new file + rename($new, $sudoers) or die $!; + warn "$sudoers file updated.\n"; + } else { + warn "$sudoers file not changed.\n"; + unlink($new); + } +} + +# return first "#includedir" directive from $sudoers file +sub parse_sudoers_includedir { + my ($sudoers) = @_; + + open my $fh, '<', $sudoers or die "Can't open: $sudoers: $!"; + while (<$fh>) { + if (my ($dir) = /^#includedir\s+(.+)$/) { + return $dir; + } + } + close $fh or die $!; + + return undef; +} + +# return FALSE if files are identical +# return TRUE if files are different +# return TRUE if any of the files is missing +sub filediff { + my ($file1, $file2) = @_; + + # return TRUE if neither of them exist + return 1 unless -f $file1; + return 1 unless -f $file2; + + my $f1 = cat($file1); + my $f2 = cat($file2); + + # wipe comments + $f1 =~ s/^#.+$//m; + $f2 =~ s/^#.+$//m; + + # return TRUE if they differ + return $f1 ne $f2; +} + +# get contents of a file +sub cat { + my ($file) = @_; + open(my $fh, '<', $file) or die "Can't open $file: $!"; + local $/ = undef; + local $_ = <$fh>; + close($fh) or die $!; + + return $_; +} + +# find first existing file from list of file paths +sub find_file { + for my $file (@_) { + return $file if -f $file; + } + return undef; +} + +} # package sudoers + +{ package plugin; use Carp qw(croak); +utils->import; + # Nagios standard error codes my (%ERRORS) = (OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3); -# status to set when RAID is in resync state -our $resync_status = $ERRORS{WARNING}; +# default plugin options +our %options = ( + # status to set when RAID is in resync state + resync_status => $ERRORS{WARNING}, + + # Status code to use when no raid was detected + noraid_state => $ERRORS{UNKNOWN}, -# status to set when RAID is in check state -our $check_status = $ERRORS{OK}; + # status to set when RAID is in check state + check_status => $ERRORS{OK}, -# status to set when PD is spare -our $spare_status = $ERRORS{OK}; + # status to set when PD is spare + spare_status => $ERRORS{OK}, -# status to set when BBU is in learning cycle. -our $bbulearn_status = $ERRORS{WARNING}; + # status to set when BBU is in learning cycle. + bbulearn_status => $ERRORS{WARNING}, -# status to set when Write Cache has failed. -our $cache_fail_status = $ERRORS{WARNING}; + # status to set when Write Cache has failed. + cache_fail_status => $ERRORS{WARNING}, -# check status of BBU -our $bbu_monitoring = 0; + # check status of BBU + bbu_monitoring => 0, +); # return list of programs this plugin needs # @internal @@ -135,11 +337,19 @@ croak 'Odd number of elements in argument hash' if @_ % 2; + # convert to hash + my %args = @_; + + # merge 'options' from param and class defaults + %options = (%options, %{$args{options}}) if $args{options}; + delete $args{options}; + my $self = { program_names => [ $class->program_names ], commands => $class->commands, - sudo => $class->sudo ? $utils::sudo : '', - @_, + sudo => $class->sudo ? find_sudo() : '', + options => \%options, + %args, name => $class, status => undef, message => undef, @@ -149,7 +359,7 @@ # lookup program, if not defined by params if (!$self->{program}) { - $self->{program} = utils::which(@{$self->{program_names}}); + $self->{program} = which(@{$self->{program_names}}); } return bless $self, $class; @@ -159,11 +369,11 @@ sub active { my $this = shift; - # program not found + # no tool found, return false return 0 unless $this->{program}; - # program not executable - -x $this->{program}; + # program file must exist, don't check for execute bit. #104 + -f $this->{program}; } # set status code for plugin result @@ -217,7 +427,7 @@ # returns $this to allow fluent api sub resync { my ($this) = @_; - $this->status($resync_status); + $this->status($this->{options}{resync_status}); return $this; } @@ -225,7 +435,7 @@ # returns $this to allow fluent api sub check_status { my ($this) = @_; - $this->status($check_status); + $this->status($this->{options}{check_status}); return $this; } @@ -233,7 +443,7 @@ # returns $this to allow fluent api sub spare { my ($this) = @_; - $this->status($spare_status); + $this->status($this->{options}{spare_status}); return $this; } @@ -241,7 +451,7 @@ # returns $this to allow fluent api sub bbulearn { my ($this) = @_; - $this->status($bbulearn_status); + $this->status($this->{options}{bbulearn_status}); return $this; } @@ -249,7 +459,7 @@ # returns $this to allow fluent api sub cache_fail { my ($this) = @_; - $this->status($cache_fail_status); + $this->status($this->{options}{cache_fail_status}); return $this; } @@ -258,9 +468,9 @@ my ($this, $val) = @_; if (defined $val) { - $bbu_monitoring = $val; + $this->{options}{bbu_monitoring} = $val; } - $bbu_monitoring; + $this->{options}{bbu_monitoring}; } # setup status message text @@ -318,7 +528,7 @@ } # return true if parameter is not in ignore list -sub valid($) { +sub valid { my $this = shift; my ($v) = lc $_[0]; @@ -333,7 +543,7 @@ use constant G => M * 1024; use constant T => G * 1024; -sub format_bytes($) { +sub format_bytes { my $this = shift; my ($bytes) = @_; @@ -377,12 +587,13 @@ # if command fails, program is exited (caller needs not to worry) sub cmd { my ($this, $command, $cb) = @_; + my $debug = $utils::debug; # build up command my @CMD = $this->{program}; # add sudo if program needs - unshift(@CMD, $this->{sudo}, '-A') if $> and $this->{sudo}; + unshift(@CMD, @{$this->{sudo}}) if $> and $this->{sudo}; my $args = $this->{commands}{$command} or croak "command '$command' not defined"; @@ -423,23 +634,23 @@ if ($op eq '=' and ref $cb eq 'SCALAR') { # Special: use open2 use IPC::Open2; - warn "DEBUG EXEC: $op @cmd" if $utils::debug; + warn "DEBUG EXEC: $op @cmd" if $debug; my $pid = open2($fh, $$cb, @cmd) or croak "open2 failed: @cmd: $!"; } elsif ($op eq '>&2') { # Special: same as '|-' but reads both STDERR and STDOUT use IPC::Open3; - warn "DEBUG EXEC: $op @cmd" if $utils::debug; + warn "DEBUG EXEC: $op @cmd" if $debug; my $pid = open3(undef, $fh, $cb, @cmd); } else { - warn "DEBUG EXEC: @cmd" if $utils::debug; + warn "DEBUG EXEC: @cmd" if $debug; open($fh, $op, @cmd) or croak "open failed: @cmd: $!"; } # for dir handles, reopen as opendir if (-d $fh) { undef($fh); - warn "DEBUG OPENDIR: $cmd[0]" if $utils::debug; + warn "DEBUG OPENDIR: $cmd[0]" if $debug; opendir($fh, $cmd[0]) or croak "opendir failed: @cmd: $!"; } @@ -449,7 +660,7 @@ } # package plugin package lsscsi; -use base 'plugin'; +use parent -norequire, 'plugin'; push(@utils::plugins, __PACKAGE__); @@ -531,10 +742,9 @@ package metastat; # Solaris, software RAID -use base 'plugin'; +use parent -norequire, 'plugin'; -# Status: BROKEN: no test data -#push(@utils::plugins, __PACKAGE__); +push(@utils::plugins, __PACKAGE__); sub program_names { __PACKAGE__; @@ -542,15 +752,46 @@ sub commands { { - 'status' => ['-|', '@CMD'], + 'metastat' => ['>&2', '@CMD'], } } sub sudo { - my $cmd = shift->{program}; + my ($this, $deep) = @_; + # quick check when running check + return 1 unless $deep; + + my $cmd = $this->{program}; "CHECK_RAID ALL=(root) NOPASSWD: $cmd" } +sub active { + my ($this) = @_; + + # program not found + return 0 unless $this->{program}; + + my $output = $this->get_metastat; + return !!@$output; +} + +sub get_metastat { + my $this = shift; + + # cache inside single run + return $this->{output} if defined $this->{output}; + + my $fh = $this->cmd('metastat'); + my @data; + while (<$fh>) { + chomp; + last if /there are no existing databases/; + push(@data, $_); + } + + return $this->{output} = \@data; +} + sub check { my $this = shift; @@ -558,13 +799,14 @@ # status messages pushed here my @status; + my $output = $this->get_metastat; - my $fh = $this->cmd('status'); - while (<$fh>) { + foreach (@$output) { if (/^(\S+):/) { $d = $1; $sd = ''; next; } if (/Submirror \d+:\s+(\S+)/) { $sd = $1; next; } - if (my($s) = /State: (\S.+)/) { - if ($sd and valid($sd) and valid($d)) { + if (/Device:\s+(\S+)/) { $sd = $1; next; } + if (my($s) = /State: (\S.+\w)/) { + if ($sd and $this->valid($sd) and $this->valid($d)) { if ($s =~ /Okay/i) { # no worries... } elsif ($s =~ /Resync/i) { @@ -575,24 +817,33 @@ push(@status, "$d:$sd:$s"); } } + + if (defined $d && $d =~ /hsp/) { + if (/(c[0-9]+t[0-9]+d[0-9]+s[0-9]+)\s+(\w+)/) { + $sd = $1; + my $s = $2; + $this->warning if ($s !~ /Available/); + push(@status, "$d:$sd:$s"); + } + } } - close $fh; return unless @status; - $this->message(join(' ', @status)); + $this->ok->message(join(', ', @status)); } package megaide; # MegaIDE RAID controller -use base 'plugin'; +use parent -norequire, 'plugin'; # register # Status: BROKEN: no test data #push(@utils::plugins, __PACKAGE__); sub sudo { - my $cat = utils::which('cat'); + my ($this) = @_; + my $cat = $this->which('cat'); "CHECK_RAID ALL=(root) NOPASSWD: $cat /proc/megaide/0/status"; } @@ -635,7 +886,7 @@ package mdstat; # Linux Multi-Device (md) -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -646,7 +897,7 @@ } } -sub active ($) { +sub active { my ($this) = @_; # easy way out. no /proc/mdstat return 0 unless -e $this->{commands}{mdstat}[1]; @@ -779,7 +1030,7 @@ # We don't want to receive notifications in such case, so we check for this particular case here if ($arr_checking && scalar(@md) >= 2) { foreach my $dev (@md) { - if ( $dev->{resync_status} && $dev->{resync_status} eq "resync=DELAYED") { + if ($dev->{resync_status} && $dev->{resync_status} eq "resync=DELAYED") { delete $dev->{resync_status}; $dev->{check_status} = "check=DELAYED"; } @@ -845,7 +1096,7 @@ package lsraid; # Linux, software RAID -use base 'plugin'; +use parent -norequire, 'plugin'; # register # Broken: missing test data @@ -905,7 +1156,7 @@ # TODO: process drive temperatures # TODO: check error counts # TODO: hostspare information -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -1019,6 +1270,11 @@ next; } + if (my($s) = /Virtual Drive Type\s*:\s*(\S+)/) { + $ld{type} = $s; + next; + } + if (my($s) = /State\s*:\s*(\S+)/) { $ld{state} = $s; next; @@ -1162,6 +1418,11 @@ my @vstatus; foreach my $vol (@{$c->{logical}}) { + # skip CacheCade for now. #91 + if ($vol->{type} && $vol->{type} eq 'CacheCade') { + next; + } + push(@vstatus, sprintf "%s:%s", $vol->{name}, $vol->{state}); if ($vol->{state} ne 'Optimal') { $this->critical; @@ -1179,7 +1440,7 @@ my %dstatus; foreach my $dev (@{$c->{physical}}) { - if ($dev->{state} eq 'Online' || $dev->{state} eq 'Hotspare' || $dev->{state} eq 'Unconfigured(good)') { + if ($dev->{state} eq 'Online' || $dev->{state} eq 'Hotspare' || $dev->{state} eq 'Unconfigured(good)' || $dev->{state} eq 'JBOD') { push(@{$dstatus{$dev->{state}}}, sprintf "%02d", $dev->{dev}); } else { @@ -1275,7 +1536,7 @@ package lsvg; # AIX LVM -use base 'plugin'; +use parent -norequire, 'plugin'; # register # Status: broken (no test data) @@ -1349,7 +1610,7 @@ # Serveraid IPS # Tested on IBM xSeries 346 servers with Adaptec ServeRAID 7k controllers. # The ipssend version was v7.12.14. -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -1391,7 +1652,7 @@ next unless $this->valid($n); next unless (my($s, $c) = /Status .*: (\S+)\s+(\S+)/); - if ($c =~ /SYN|RBL/i ) { # resynching + if ($c =~ /SYN|RBL/i) { # resynching $this->resync; } elsif ($c !~ /OKY/i) { # not OK $this->critical; @@ -1408,7 +1669,7 @@ package aaccli; # Adaptec ServeRAID -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -1486,7 +1747,7 @@ package afacli; # Adaptec AACRAID -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -1540,7 +1801,7 @@ } package mpt; -use base 'plugin'; +use parent -norequire, 'plugin'; # LSILogic MPT ServeRAID @@ -1553,8 +1814,8 @@ sub commands { { - 'status' => ['-|', '@CMD', '-i', '$id'], 'get_controller_no' => ['-|', '@CMD', '-p'], + 'status' => ['-|', '@CMD', '-i', '$id'], 'sync status' => ['-|', '@CMD', '-n'], } } @@ -1573,22 +1834,43 @@ ); } -sub parse { +sub active { + my ($this) = @_; + + # return if parent said NO + my $res = $this->SUPER::active(@_); + return $res unless $res; + + # there should be a controller. #95 + my $id = $this->get_controller; + return defined($id); +} + +# get controller from mpt-status -p +# FIXME: could there be multiple controllers? +sub get_controller { my $this = shift; - my (%ld, %pd); my $fh = $this->cmd('get_controller_no'); my $id; while (<$fh>) { chomp; - if ( /^Found.*id=(\d{1,2}),.*/ ) { + if (/^Found.*id=(\d{1,2}),.*/) { $id = $1; last; } } close $fh; - $fh = $this->cmd('status',{ '$id' => $id }); + return $id; +} + +sub parse { + my ($this, $id) = @_; + + my (%ld, %pd); + + my $fh = $this->cmd('status', { '$id' => $id }); my %VolumeTypesHuman = ( IS => 'RAID-0', @@ -1684,7 +1966,8 @@ # status messages pushed here my @status; - my $status = $this->parse; + my $id = $this->get_controller; + my $status = $this->parse($id); # process logical units while (my($d, $u) = each %{$status->{logical}}) { @@ -1733,14 +2016,15 @@ package megaraid; # MegaRAID -use base 'plugin'; +use parent -norequire, 'plugin'; # register # Status: BROKEN: no test data #push(@utils::plugins, __PACKAGE__); sub sudo { - my $cat = utils::which('cat'); + my ($this) = @_; + my $cat = $this->which('cat'); my @sudo; foreach my $mr () { @@ -1786,7 +2070,7 @@ package gdth; # Linux gdth RAID -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -1798,7 +2082,7 @@ } } -sub active ($) { +sub active { my ($this) = @_; return -d $this->{commands}{proc}[1]; } @@ -2014,7 +2298,7 @@ } package dpt_i2o; -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -2026,7 +2310,7 @@ } } -sub active ($) { +sub active { my ($this) = @_; return -d $this->{commands}{proc}[1]; } @@ -2069,7 +2353,7 @@ # Owned by LSI currently: https://en.wikipedia.org/wiki/3ware # # http://www.cyberciti.biz/files/tw_cli.8.html -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -2117,7 +2401,7 @@ (\d+)\s+ # Drives (\d+)\s+ # Units (\d+)\s+ # NotOpt: Not Optional - # Not Optimal refers to any state except OK and VERIFYING. + # Not Optimal refers to any state except OK and VERIFYING. # Other states include INITIALIZING, INIT-PAUSED, # REBUILDING, REBUILD-PAUSED, DEGRADED, MIGRATING, # MIGRATE-PAUSED, RECOVERY, INOPERABLE, and UNKNOWN. @@ -2151,9 +2435,9 @@ (\S+)\s+ # UnitType (\S+)\s+ # Status (\S+)\s+ # %RCmpl: The %RCompl reports the percent completion - # of the unit's Rebuild, if this task is in progress. + # of the unit's Rebuild, if this task is in progress. (\S+)\s+ # %V/I/M: The %V/I/M reports the percent completion - # of the unit's Verify, Initialize, or Migrate, + # of the unit's Verify, Initialize, or Migrate, # if one of these are in progress. (\S+)\s+ # Strip (\S+)\s+ # Size(GB) @@ -2269,10 +2553,12 @@ } # process each controller - while (my($cid, $c) = each %$c) { + for my $cid (sort keys %$c) { + my $c = $c->{$cid}; my @cstatus; - while (my($uid, $u) = each %{$c->{unitstatus}}) { + for my $uid (sort keys %{$c->{unitstatus}}) { + my $u = $c->{unitstatus}->{$uid}; my $s = $u->{status}; if ($s =~ /INITIALIZING|MIGRATING/) { @@ -2280,11 +2566,11 @@ $s .= " $u->{vim_percent}"; } elsif ($s eq 'VERIFYING') { - $this->resync; + $this->check_status; $s .= " $u->{vim_percent}"; } elsif ($s eq 'REBUILDING') { - $this->warning; + $this->resync; $s .= " $u->{rebuild_percent}"; } elsif ($s eq 'DEGRADED') { @@ -2298,7 +2584,7 @@ my @ustatus = $s; # report cache, no checking - if ($u->{cache} && $u->{cache} ne '-') { + if ($u->{cache} && $u->{cache} ne '-') { push(@ustatus, "Cache:$u->{cache}"); } @@ -2310,7 +2596,11 @@ foreach my $p (sort { $a cmp $b } keys %{$c->{drivestatus}}) { my $d = $c->{drivestatus}->{$p}; my $ds = $d->{status}; - $this->critical unless $ds eq 'OK'; + if ($ds eq 'VERIFYING') { + $this->check_status; + } elsif ($ds ne 'OK') { + $this->critical; + } if ($d->{unit} eq '-') { $ds = 'SPARE'; @@ -2321,7 +2611,7 @@ push(@status, "Drives($c->{drives}): ".$this->join_status(\%ds)) if %ds; # check BBU - if ($c->{bbu} && $c->{bbu} ne '-') { + if ($this->bbu_monitoring && $c->{bbu} && $c->{bbu} ne '-') { $this->critical if $c->{bbu} ne 'OK'; push(@status, "BBU: $c->{bbu}"); } @@ -2337,7 +2627,7 @@ # check designed from check-aacraid.py, Anchor System - # Oliver Hookins, Paul De Audney, Barney Desmond. # Perl port (check_raid) by Elan Ruusamäe. -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -2349,7 +2639,8 @@ sub commands { { 'getstatus' => ['-|', '@CMD', 'GETSTATUS', '1'], - 'getconfig' => ['-|', '@CMD', 'GETCONFIG', '1', 'AL'], + # 'nologs' does not exist in arcconf 6.50. #118 + 'getconfig' => ['-|', '@CMD', 'GETCONFIG', '$ctrl', 'AL'], } } @@ -2361,7 +2652,7 @@ my $cmd = $this->{program}; ( "CHECK_RAID ALL=(root) NOPASSWD: $cmd GETSTATUS 1", - "CHECK_RAID ALL=(root) NOPASSWD: $cmd GETCONFIG 1 AL", + "CHECK_RAID ALL=(root) NOPASSWD: $cmd GETCONFIG * AL", ); } @@ -2431,12 +2722,6 @@ # Tasks seem to be Controller specific, but as we don't support over one controller, let it be global $s{tasks} = { %task } if %task; - if ($count > 1) { - # don't know how to handle this, so better just fail - $this->unknown->message("More than one Controller found, this is not yet supported due lack of input data."); - return undef; - } - if ($count == 0) { # if command completed, but no controllers, # assume no hardware present @@ -2446,21 +2731,31 @@ return undef; } - $s{controllers} = $count; + $s{ctrl_count} = $count; return \%s; } -# parse GETCONFIG command -# parses -# - ... +# parse GETCONFIG for all controllers sub parse_config { my ($this, $status) = @_; + my %c; + for (my $i = 1; $i <= $status->{ctrl_count}; $i++) { + $c{$i} = $this->parse_ctrl_config($i, $status->{ctrl_count}); + } + + return { controllers => \%c }; +} + +# parse GETCONFIG command for specific controller +sub parse_ctrl_config { + my ($this, $ctrl, $ctrl_count) = @_; + # Controller information, Logical/Physical device info my (%c, @ld, $ld, @pd, $ch, $pd); - my $fh = $this->cmd('getconfig'); + my $fh = $this->cmd('getconfig', { '$ctrl' => $ctrl }); my ($section, $subsection, $ok); while (<$fh>) { chomp; @@ -2475,7 +2770,7 @@ } if (my($c) = /^Controllers found: (\d+)/) { - if ($c != $status->{controllers}) { + if ($c != $ctrl_count) { # internal error?! $this->unknown->message("Controller count mismatch"); } @@ -2571,6 +2866,10 @@ # not parsed yet } elsif ($subsection eq 'Controller Vital Product Data') { # not parsed yet + } elsif ($subsection eq 'RAID Properties') { + # not parsed yet + } elsif ($subsection eq 'Controller BIOS Setting Information') { + # not parsed yet } else { warn "SUBSECTION of [$section] NOT PARSED: [$subsection] [$_]"; } @@ -2625,16 +2924,16 @@ $pd[$ch][$pd]{ncq} = $ncq; } elsif (my($pfa) = /PFA\s+:\s+(.+)/) { $pd[$ch][$pd]{pfa} = $pfa; - } elsif (my($e) = /Enclosure ID\s+:\s+(.+)/) { - $pd[$ch][$pd]{enclosure} = $e; + } elsif (my($eid) = /Enclosure ID\s+:\s+(.+)/) { + $pd[$ch][$pd]{enclosure} = $eid; } elsif (my($t) = /Type\s+:\s+(.+)/) { $pd[$ch][$pd]{type} = $t; } elsif (my($smart) = /S\.M\.A\.R\.T\.(?:\s+warnings)?\s+:\s+(.+)/) { $pd[$ch][$pd]{smart} = $smart; } elsif (my($speed) = /Transfer Speed\s+:\s+(.+)/) { $pd[$ch][$pd]{speed} = $speed; - } elsif (my($l) = /Reported Location\s+:\s+(.+)/) { - $pd[$ch][$pd]{location} = $l; + } elsif (my($e, $s) = /Reported Location\s+:\s+(?:Enclosure|Connector) (\d+), (?:Slot|Device) (\d+)/) { + $pd[$ch][$pd]{location} = "$e:$s"; } elsif (my($sps) = /Supported Power States\s+:\s+(.+)/) { $pd[$ch][$pd]{power_states} = $sps; } elsif (my($cd) = /Reported Channel,Device(?:\(.+\))?\s+:\s+(.+)/) { @@ -2653,7 +2952,7 @@ # not parsed yet } elsif (/Expander SAS Address\s+:/) { # not parsed yet - } elsif (/MaxCache (Capable|Assigned)\s+:\s+(.+)/) { + } elsif (/[Mm]axCache (Capable|Assigned)\s+:\s+(.+)/) { # not parsed yet } elsif (/Power supply \d+ status/) { # not parsed yet @@ -2710,6 +3009,7 @@ my ($this) = @_; # we chdir to /var/log, as tool is creating 'UcliEvt.log' + # this can be disabled with 'nologs' parameter, but not sure do all versions support it chdir('/var/log') || chdir('/'); my ($status, $config); @@ -2719,106 +3019,74 @@ return { %$status, %$config }; } -sub check { - my $this = shift; +# check for controller status +sub check_controller { + my ($this, $c) = @_; - my $data = $this->parse; - $this->unknown,return unless $data; - - # status messages pushed here my @status; - # check for controller status - for my $c ($data->{controller}) { - $this->critical if $c->{status} !~ /Optimal|Okay/; - push(@status, "Controller:$c->{status}"); - - if ($c->{defunct_count} > 0) { - $this->critical; - push(@status, "Defunct drives:$c->{defunct_count}"); - } - - if (defined $c->{logical_failed} && $c->{logical_failed} > 0) { - $this->critical; - push(@status, "Failed drives:$c->{logical_failed}"); - } - - if (defined $c->{logical_degraded} && $c->{logical_degraded} > 0) { - $this->critical; - push(@status, "Degraded drives:$c->{logical_degraded}"); - } + $this->critical if $c->{status} !~ /Optimal|Okay/; + push(@status, "Controller:$c->{status}"); - if (defined $c->{logical_offline} && $c->{logical_offline} > 0) { - $this->critical; - push(@status, "Offline drives:$c->{logical_offline}"); - } + if ($c->{defunct_count} > 0) { + $this->critical; + push(@status, "Defunct drives:$c->{defunct_count}"); + } - if (defined $c->{logical_critical} && $c->{logical_critical} > 0) { - $this->critical; - push(@status, "Critical drives:$c->{logical_critical}"); - } + if (defined $c->{logical_failed} && $c->{logical_failed} > 0) { + $this->critical; + push(@status, "Failed drives:$c->{logical_failed}"); + } - if (defined $c->{logical_degraded} && $c->{logical_degraded} > 0) { - $this->critical; - push(@status, "Degraded drives:$c->{logical_degraded}"); - } + if (defined $c->{logical_degraded} && $c->{logical_degraded} > 0) { + $this->critical; + push(@status, "Degraded drives:$c->{logical_degraded}"); + } - # current (logical device) tasks - if ($data->{tasks}->{operation} ne 'None') { - # just print it. no status change - my $task = $data->{tasks}; - push(@status, "$task->{type} #$task->{device}: $task->{operation}: $task->{status} $task->{percent}%"); - } + if (defined $c->{logical_offline} && $c->{logical_offline} > 0) { + $this->critical; + push(@status, "Offline drives:$c->{logical_offline}"); + } - # ZMM (Zero-Maintenance Module) status - if (defined($c->{zmm_status})) { - push(@status, "ZMM Status: $c->{zmm_status}"); - } + if (defined $c->{logical_critical} && $c->{logical_critical} > 0) { + $this->critical; + push(@status, "Critical drives:$c->{logical_critical}"); + } - # Battery status - if (defined($c->{battery_status}) and $c->{battery_status} ne "Not Installed") { - push(@status, "Battery Status: $c->{battery_status}"); + if (defined $c->{logical_degraded} && $c->{logical_degraded} > 0) { + $this->critical; + push(@status, "Degraded drives:$c->{logical_degraded}"); + } - if ($c->{battery_overtemp} ne "No") { - $this->critical; - push(@status, "Battery Overtemp: $c->{battery_overtemp}"); - } + # ZMM (Zero-Maintenance Module) status + if (defined($c->{zmm_status})) { + push(@status, "ZMM Status: $c->{zmm_status}"); + } - push(@status, "Battery Capacity Remaining: $c->{battery_capacity}%"); - if ($c->{battery_capacity} < 50) { - $this->critical; - } - if ($c->{battery_capacity} < 25) { - $this->warning; - } + # Battery status + if ($this->bbu_monitoring) { + my @s = $this->battery_status($c); + push(@status, @s) if @s; + } - if ($c->{battery_time} < 1440) { - $this->warning; - } - if ($c->{battery_time} < 720) { - $this->critical; - } + return @status; +} - if ($c->{battery_time} < 60) { - push(@status, "Battery Time: $c->{battery_time}m"); - } else { - push(@status, "Battery Time: $c->{battery_time_full}"); - } - } - } +# check for physical devices +sub check_physical { + my ($this, $p) = @_; - # check for physical devices my %pd; - my $pd_resync = 0; - for my $ch (@{$data->{physical}}) { + $this->{pd_resync} = 0; + for my $ch (@$p) { for my $pd (@{$ch}) { # skip not disks next if not defined $pd; - next if $pd->{devtype} =~ 'Enclosure'; + next if $pd->{devtype} =~ m/Enclosure/; if ($pd->{status} eq 'Rebuilding') { $this->resync; - $pd_resync++; + $this->{pd_resync}++; } elsif ($pd->{status} eq 'Dedicated Hot-Spare') { $this->spare; @@ -2828,16 +3096,23 @@ $this->critical; } - my $id = $pd->{serial} || $pd->{wwn}; + my $id = $pd->{serial} || $pd->{wwn} || $pd->{location}; push(@{$pd{$pd->{status}}}, $id); } } - # check for logical devices - for my $ld (@{$data->{logical}}) { + return \%pd; +} + +# check for logical devices +sub check_logical { + my ($this, $l) = @_; + + my @status; + for my $ld (@$l) { next unless $ld; # FIXME: fix that script assumes controllers start from '0' - if ($ld->{status} eq 'Degraded' && $pd_resync) { + if ($ld->{status} eq 'Degraded' && $this->{pd_resync}) { $this->warning; } elsif ($ld->{status} !~ /Optimal|Okay/) { $this->critical; @@ -2857,11 +3132,89 @@ } } - push(@status, "Drives: ".$this->join_status(\%pd)) if %pd; + return @status; +} + +sub check { + my $this = shift; + + my $data = $this->parse; + $this->unknown,return unless $data; + + my @status; + + for my $i (sort {$a cmp $b} keys %{$data->{controllers}}) { + my $c = $data->{controllers}->{$i}; + + push(@status, $this->check_controller($c->{controller})); + + # current (logical device) tasks + if ($data->{tasks}->{operation} ne 'None') { + # just print it. no status change + my $task = $data->{tasks}; + push(@status, "$task->{type} #$task->{device}: $task->{operation}: $task->{status} $task->{percent}%"); + } + + # check physical first, as it setups pd_resync flag + my $pd = $this->check_physical($c->{physical}); + + push(@status, $this->check_logical($c->{logical})); + + # but report after logical devices + push(@status, "Drives: ".$this->join_status($pd)) if $pd; + } $this->ok->message(join(', ', @status)); } +# check battery status in $c +sub battery_status { + my ($this, $c) = @_; + + my @status; + + if (!defined($c->{battery_status}) || $c->{battery_status} eq 'Not Installed') { + return; + } + + push(@status, "Battery Status: $c->{battery_status}"); + + # if battery status is 'Failed', none of the details below are available. #105 + if ($c->{battery_status} eq 'Failed') { + $this->critical; + return @status; + } + + # detailed battery checks + if ($c->{battery_overtemp} ne 'No') { + $this->critical; + push(@status, "Battery Overtemp: $c->{battery_overtemp}"); + } + + push(@status, "Battery Capacity Remaining: $c->{battery_capacity}%"); + if ($c->{battery_capacity} < 50) { + $this->critical; + } + if ($c->{battery_capacity} < 25) { + $this->warning; + } + + if ($c->{battery_time} < 1440) { + $this->warning; + } + if ($c->{battery_time} < 720) { + $this->critical; + } + + if ($c->{battery_time} < 60) { + push(@status, "Battery Time: $c->{battery_time}m"); + } else { + push(@status, "Battery Time: $c->{battery_time_full}"); + } + + return @status; +} + package megarc; # LSI MegaRaid or Dell Perc arrays # Check the status of all arrays on all Lsi MegaRaid controllers on the local @@ -2871,7 +3224,7 @@ # check designed from check_lsi_megaraid: # http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed/2416.html;d=1 # Perl port (check_raid) by Elan Ruusamäe. -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -2975,7 +3328,7 @@ } package cmdtool2; -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -3054,7 +3407,7 @@ } package cciss; -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -3072,6 +3425,9 @@ 'detect hpsa' => ['<', '/sys/module/hpsa/refcnt'], 'detect cciss' => ['<', '/proc/driver/cciss'], 'cciss proc' => ['<', '/proc/driver/cciss/$controller'], + + # for lsscsi, issue #109 + 'lsscsi list' => ['-|', '@CMD', '-g'], } } @@ -3120,9 +3476,10 @@ my ($fh, @devs); - # try lsscsi first - my $lsscsi = lsscsi->new(); - if ($lsscsi->active) { + # try lsscsi first if enabled and allowed + my $lsscsi = lsscsi->new('commands' => $this->{commands}); + my $use_lsscsi = defined($this->{use_lsscsi}) ? $this->{use_lsscsi} : $lsscsi->active; + if ($use_lsscsi) { # for cciss_vol_status < 1.10 we need /dev/sgX nodes, columns which are type storage @devs = $lsscsi->list_sg; @@ -3234,7 +3591,7 @@ # we process until we find end of sentence (dot at the end of the line) sub consume_diagnostic { - my ($this, $fh, $s) = @_; + my ($this, $fh) = @_; my $diagnostic = ''; while (1) { @@ -3247,6 +3604,18 @@ return trim($diagnostic); } +# process to skip lines with physical location: +# " connector 1I box 1 bay 4 ..." +sub consume_disk_map { + my ($this, $fh) = @_; + + while (my $s = <$fh>) { + chomp $s; + # connector 1I box 1 bay 4 + last unless $s =~ /^\s+connector\s/; + } +} + sub parse { my $this = shift; my @devs = @_; @@ -3296,13 +3665,15 @@ # volume status, print_volume_status() # /dev/cciss/c0d0: (Smart Array P400i) RAID 1 Volume 0 status: OK # /dev/sda: (Smart Array P410i) RAID 1 Volume 0 status: OK. - if (my($file, $board_name, $raid_level, $volume_number, $certain, $status) = m{ + # /dev/sda: (Smart Array P410i) RAID 5 Volume 0 status: OK. At least one spare drive designated. At least one spare drive has failed. + if (my($file, $board_name, $raid_level, $volume_number, $certain, $status, $spare_drive_status) = m{ ^(/dev/[^:]+):\s # File \(([^)]+)\)\s # Board Name (RAID\s\d+|\([^)]+\))\s # RAID level Volume\s(\d+) # Volume number (\(\?\))?\s # certain? status:\s(.*?)\. # status (without a dot) + (.*)? # spare drive status messages }x) { $cdev = $file; $c{$file}{volumes}{$volume_number} = { @@ -3311,6 +3682,7 @@ volume_number => $volume_number, certain => int(not defined $certain), status => $status, + spare_drive_status => trim($spare_drive_status), }; $c{$file}{board_name} = $board_name; @@ -3393,6 +3765,23 @@ next if $got; } + # show_disk_map(" Failed drives:", file, fd, id, controller_lun, ctlrtype, + # show_disk_map(" 'Replacement' drives:", file, fd, id, controller_lun, ctlrtype, + # show_disk_map(" Drives currently substituted for by spares:", file, fd, id, controller_lun, ctlrtype, + if (/^ Failed drives:/ || + /^ 'Replacement' drives:/ || + /^ Drives currently substituted for by spares:/ + ) { + # could store this somewhere, ignore for now + $this->consume_disk_map($fh); + next; + } + + if (my($total_failed) = /Total of (\d+) failed physical drives detected on this logical drive\./) { + $c{$cdev}{phys_failed} = $total_failed; + next; + } + warn "Unparsed[$_]"; } close($fh); @@ -3524,15 +3913,10 @@ } package hp_msa; -use base 'plugin'; +use parent -norequire, 'plugin'; # do not register, better use hpacucli -#push(@utils::plugins, __PACKAGE__); - -sub new { - my $self = shift; - $self->SUPER::new(tty_device => "/dev/ttyS0", @_); -} +push(@utils::plugins, __PACKAGE__); sub active { my $this = shift; @@ -3543,6 +3927,9 @@ sub detect { my $this = shift; + # allow --plugin-option=hp_msa-enabled to force this plugin to be enabled + return 1 if exists $this->{options}{'hp_msa-enabled'}; + for my $file () { open my $fh, '<', $file or next; my $model = <$fh>; @@ -3555,7 +3942,8 @@ sub check { my $this = shift; - my $ctldevice = $this->{tty_device}; + # allow --plugin-option=hp_msa-serial=/dev/ttyS2 to specify serial line + my $ctldevice = $this->{options}{'hp_msa-serial'} || '/dev/ttyS0'; # status messages pushed here my @status; @@ -3600,7 +3988,7 @@ $c{$c} = []; next; } - # Surface Scan: Running, LUN 10 (68% Complete) + # Surface Scan: Running, LUN 10 (68% Complete) if (my($s, $m) = /Surface Scan:\s+(\S+)[,.]\s*(.*)/) { if ($s eq 'Running') { my ($l, $p) = $m =~ m{(LUN \d+) \((\d+)% Complete\)}; @@ -3624,7 +4012,7 @@ } next; } - # Expansion: Complete. + # Expansion: Complete. if (my($s, $m) = /Expansion:\s+(\S+)[.,]\s*(.*)/) { if ($s eq 'Running') { my ($l, $p) = $m =~ m{(LUN \d+) \((\d+)% Complete\)}; @@ -3668,7 +4056,7 @@ # LSI SAS-2 controllers using the SAS-2 Integrated RAID Configuration Utility (SAS2IRCU) # Based on the SAS-2 Integrated RAID Configuration Utility (SAS2IRCU) User Guide # http://www.lsi.com/downloads/Public/Host%20Bus%20Adapters/Host%20Bus%20Adapters%20Common%20Files/SAS_SATA_6G_P12/SAS2IRCU_User_Guide.pdf -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -3731,7 +4119,7 @@ # root@i41:/tmp$ echo $? # 1 - if ( /SAS2IRCU: MPTLib2 Error 1/ ) { + if (/SAS2IRCU: MPTLib2 Error 1/) { $state = $noctrlstate; $success = 1 ; } @@ -3740,7 +4128,7 @@ unless (close $fh) { #sas2ircu exits 1 (but close exits 256) when we close fh if we have no controller, so handle that, too - if ( $? != 256 && $state eq $noctrlstate ) { + if ($? != 256 && $state eq $noctrlstate) { $this->critical; } } @@ -3786,10 +4174,11 @@ # # SAS2IRCU: there are no IR volumes on the controller! # SAS2IRCU: Error executing command STATUS. - # - if ( /SAS2IRCU: there are no IR volumes on the controller!/ ) { - #even though this isn't the last line, go ahead and set success. + if (/SAS2IRCU: there are no IR volumes on the controller/ + or /The STATUS command is not supported by the firmware currently loaded on controller/ + ) { + # even though this isn't the last line, go ahead and set success. $success = 1; $state = $novolsstate; } @@ -3798,7 +4187,7 @@ unless (close $fh) { #sas2ircu exits 256 when we close fh if we have no volumes, so handle that, too - if ( $? != 256 && $state eq $novolsstate ) { + if ($? != 256 && $state eq $novolsstate) { $this->critical; $state = $!; } @@ -3843,23 +4232,23 @@ my $finalstate; my $finalerrors=""; - while ( my $line = <$fh> ) { + while (my $line = <$fh>) { chomp $line; # Device is a Hard disk # Device is a Hard disk # Device is a Enclosure services device # #lets make sure we're only checking disks. we dont support other devices right now - if ( "$line" eq 'Device is a Hard disk' ) { + if ("$line" eq 'Device is a Hard disk') { $device='disk'; - } elsif ( $line =~ /^Device/ ) { + } elsif ($line =~ /^Device/) { $device='other'; } - if ( "$device" eq 'disk' ) { - if ( $line =~ /Enclosure #|Slot #|State / ) { + if ("$device" eq 'disk') { + if ($line =~ /Enclosure #|Slot #|State /) { #find our enclosure # - if ( $line =~ /^ Enclosure # / ) { + if ($line =~ /^ Enclosure # /) { @data = split /:/, $line; $enc=trim($data[1]); #every time we hit a new enclosure line, reset our state and slot @@ -3867,13 +4256,13 @@ undef $slot; } #find our slot # - if ( $line =~ /^ Slot # / ) { + if ($line =~ /^ Slot # /) { @data = split /:/, $line; $slot=trim($data[1]); $numslots++ } #find our state - if ( $line =~ /^ State / ) { + if ($line =~ /^ State /) { @data = split /:/, $line; $state=ltrim($data[1]); @@ -3881,7 +4270,7 @@ #if ($numslots == 10 ) { $state='FREDFISH';} #when we get a state, test on it and report it.. - if ( $state =~ /Optimal|Ready/ ) { + if ($state =~ /Optimal|Ready/) { #do nothing at the moment. } else { $this->critical; @@ -3892,7 +4281,7 @@ } } - if ( $line =~ /SAS2IRCU: Utility Completed Successfully/) { + if ($line =~ /SAS2IRCU: Utility Completed Successfully/) { $success = 1; } @@ -3934,7 +4323,7 @@ } package smartctl; -use base 'plugin'; +use parent -norequire, 'plugin'; # no registering as standalone plugin #push(@utils::plugins, __PACKAGE__); @@ -4009,13 +4398,13 @@ } package hpacucli; -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); sub program_names { - __PACKAGE__; + qw(hpacucli); } sub commands { @@ -4037,12 +4426,9 @@ ); } -sub check { +sub scan_targets { my $this = shift; - # status messages pushed here - my @status; - # TODO: allow target customize: # hpacucli is of format: # [controller all|slot=#|wwn=#|chassisname="AAA"|serialnumber=#|chassisserialnumber=#|ctrlpath=#:# ] @@ -4058,6 +4444,7 @@ while (<$fh>) { # Numeric slot if (my($model, $slot) = /^(\S.+) in Slot (.+)/) { + $slot =~ s/ \(RAID Mode\)//; $slot =~ s/ \(Embedded\)//; $targets{"slot=$slot"} = $model; $this->unknown if $slot !~ /^\d+$/; @@ -4071,16 +4458,16 @@ } close $fh; - unless (%targets) { - $this->warning; - $this->message("No Controllers were found on this machine"); - return; - } + return \%targets; +} + +# Scan logical drives +sub scan_luns { + my ($this, $targets) = @_; - # Scan logical drives - for my $target (sort {$a cmp $b} keys %targets) { - my $model = $targets{$target}; - # check each controllers + my %luns; + while (my($target, $model) = each %$targets) { + # check each controller my $fh = $this->cmd('logicaldrive status', { '$target' => $target }); my ($array, %array); @@ -4113,9 +4500,47 @@ } $this->unknown unless close $fh; + $luns{$target} = { %array }; + } + + return \%luns; +} + +# parse hpacucli output into logical structure +sub parse { + my $this = shift; + + my $targets = $this->scan_targets; + if (!$targets) { + return $targets; + } + my $luns = $this->scan_luns($targets); + return { 'targets' => $targets, 'luns' => $luns }; +} + +sub check { + my $this = shift; + + my $ctrl = $this->parse; + unless ($ctrl) { + $this->warning->message("No Controllers were found on this machine"); + return; + } + + # status messages pushed here + my @status; + + for my $target (sort {$a cmp $b} keys %{$ctrl->{targets}}) { + my $model = $ctrl->{targets}->{$target}; + my @cstatus; - while (my($array, $d) = each %array) { - my ($astatus, $ld) = @$d; + foreach my $array (sort { $a cmp $b } keys %{$ctrl->{luns}->{$target}}) { + my ($astatus, $ld) = @{$ctrl->{luns}->{$target}{$array}}; + + # check array status + if ($astatus ne 'OK') { + $this->critical; + } my @astatus; # extra details for non-normal arrays @@ -4132,6 +4557,7 @@ } push(@cstatus, "Array $array($astatus)[". join(',', @astatus). "]"); } + push(@status, "$model: ".join(', ', @cstatus)); } @@ -4140,12 +4566,23 @@ $this->ok->message(join(', ', @status)); } +package hpssacli; +# extend hpacucli, +# with the only difference that different program name is used +use parent -norequire, 'hpacucli'; + +push(@utils::plugins, __PACKAGE__); + +sub program_names { + qw(hpssacli); +} + package areca; ## Areca SATA RAID Support ## requires cli64 or cli32 binaries ## For links to manuals and binaries, see this issue: ## https://github.com/glensc/nagios-plugin-check_raid/issues/10 -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -4289,7 +4726,7 @@ } package dmraid; -use base 'plugin'; +use parent -norequire, 'plugin'; # register push(@utils::plugins, __PACKAGE__); @@ -4304,7 +4741,7 @@ } } -sub active ($) { +sub active { my ($this) = @_; # easy way out. no executable @@ -4390,6 +4827,134 @@ $this->ok->message(join(' ', @status)); } +package mvcli; +use parent -norequire, 'plugin'; + +#push(@utils::plugins, __PACKAGE__); + +sub program_names { + qw(mvcli); +} + +sub commands { + { + 'mvcli blk' => ['-|', '@CMD'], + 'mvcli smart' => ['-|', '@CMD'], + } +} + +sub sudo { + my ($this, $deep) = @_; + # quick check when running check + return 1 unless $deep; + + my $cmd = $this->{program}; + "CHECK_RAID ALL=(root) NOPASSWD: $cmd" +} + +sub parse_blk { + my $this = shift; + + my (@blk, %blk); + + my $fh = $this->cmd('mvcli blk'); + while (<$fh>) { + chomp; + + if (my ($blk_id) = /Block id:\s+(\d+)/) { + # block id is first item, so push previous item to list + if (%blk) { + push(@blk, { %blk }); + %blk = (); + } + $blk{blk_id} = int($blk_id); + } elsif (my($pd_id) = /PD id:\s+(\d+)/) { + $blk{pd_id} = int($pd_id); + } elsif (my($vd_id) = /VD id:\s+(\d+)/) { + $blk{vd_id} = int($vd_id); + } elsif (my($bstatus) = /Block status:\s+(.+)/) { + $blk{block_status} = $bstatus; + } elsif (my($size) = /Size:\s+(\d+) K/) { + $blk{size} = int($size); + } elsif (my($offset) = /Starting offset:\s+(\d+) K/) { + $blk{offset} = int($offset); + } else { +# warn "[$_]\n"; + } + } + close $fh; + + if (%blk) { + push(@blk, { %blk }); + } + + return wantarray ? @blk : \@blk; +} + +sub parse_smart { + my ($this, $blk) = @_; + + # collect pd numbers + my @pd = map { $_->{pd_id} } @$blk; + + my %smart; + foreach my $pd (@pd) { + my $fh = $this->cmd('mvcli smart', { '$pd' => $pd }); + my %attrs = (); + while (<$fh>) { + chomp; + + if (my($id, $name, $current, $worst, $treshold, $raw) = / + ([\dA-F]{2})\s+ # attr + (.*?)\s+ # name + (\d+)\s+ # current + (\d+)\s+ # worst + (\d+)\s+ # treshold + ([\dA-F]+) # raw + /x) { + my %attr = (); + $attr{id} = $id; + $attr{name} = $name; + $attr{current} = int($current); + $attr{worst} = int($worst); + $attr{treshold} = int($treshold); + $attr{raw} = $raw; + $attrs{$id} = { %attr }; + } else { +# warn "[$_]\n"; + } + } + + $smart{$pd} = { %attrs }; + } + + return \%smart; +} + +sub parse { + my $this = shift; + + my $blk = $this->parse_blk; + my $smart = $this->parse_smart($blk); + + return { + blk => $blk, + smart => $smart, + }; +} + +sub check { + my $this = shift; + + my (@status); + my @d = $this->parse; + + # not implemented yet + $this->unknown; + + $this->message(join('; ', @status)); +} + { package main; @@ -4400,25 +4965,19 @@ use warnings; use Getopt::Long; +utils->import; +sudoers->import; + my ($opt_V, $opt_d, $opt_h, $opt_W, $opt_S, $opt_p, $opt_l); my (%ERRORS) = (OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3); -my ($VERSION) = "3.2.1"; -my ($message, $status, $perfdata, $longoutput); -my ($noraid_state) = $ERRORS{UNKNOWN}; +my ($VERSION) = "3.2.5"; +my ($message, $status); ##################################################################### $ENV{'BASH_ENV'} = ''; $ENV{'ENV'} = ''; -# find first existing file from list of file paths -sub find_file { - for my $file (@_) { - return $file if -f $file; - } - return undef; -} - -sub print_usage() { +sub print_usage { print join "\n", "Usage: check_raid [-h] [-V] [-S] [list of devices to ignore]", "", @@ -4450,10 +5009,10 @@ ""; } -sub print_help() { +sub print_help { print "check_raid, v$VERSION\n"; print "Copyright (c) 2004-2006 Steve Shipway, -Copyright (c) 2009-2014, Elan Ruusamäe +Copyright (c) 2009-2015, Elan Ruusamäe This plugin reports the current server's RAID status https://github.com/glensc/nagios-plugin-check_raid @@ -4462,161 +5021,6 @@ print_usage(); } -# return first "#includedir" directive from $sudoers file -sub parse_sudoers_includedir { - my ($sudoers) = @_; - - open my $fh, '<', $sudoers or die "Can't open: $sudoers: $!"; - while (<$fh>) { - if (my ($dir) = /^#includedir\s+(.+)$/) { - return $dir; - } - } - close $fh or die $!; - - return undef; -} - -# return size of file -# does not check for errors -sub filesize { - my ($file) = @_; - return (stat($file))[7]; -} - -# get contents of a file -sub cat { - my ($file) = @_; - open(my $fh, '<', $file) or die "Can't open $file: $!"; - local $/ = undef; - local $_ = <$fh>; - close($fh) or die $!; - - return $_; -} - -# return FALSE if files are identical -# return TRUE if files are different -# return TRUE if any of the files is missing -sub filediff { - my ($file1, $file2) = @_; - - # return TRUE if neither of them exist - return 1 unless -f $file1; - return 1 unless -f $file2; - - my $f1 = cat($file1); - my $f2 = cat($file2); - - # wipe comments - $f1 =~ s/^#.+$//m; - $f2 =~ s/^#.+$//m; - - # return TRUE if they differ - return $f1 ne $f2; -} - -# update sudoers file -# -# if sudoers config has "#includedir" directive, add file to that dir -# otherwise update main sudoers file -sub sudoers { - my ($dry_run) = @_; - - # build values to be added - # go over all registered plugins - my @sudo; - foreach my $pn (@utils::plugins) { - my $plugin = $pn->new; - - # skip inactive plugins (disabled or no tools available) - next unless $plugin->active; - - # collect sudo rules - my @rules = $plugin->sudo(1) or next; - - push(@sudo, @rules); - } - - unless (@sudo) { - warn "Your configuration does not need to use sudo, sudoers not updated\n"; - return; - } - - my @rules = join "\n", ( - "", - # setup alias, so we could easily remove these later by matching lines with 'CHECK_RAID' - # also this avoids installing ourselves twice. - "# Lines matching CHECK_RAID added by $0 -S on ". scalar localtime, - "User_Alias CHECK_RAID=nagios", - "Defaults:CHECK_RAID !requiretty", - - # actual rules from plugins - join("\n", @sudo), - "", - ); - - if ($dry_run) { - warn "Content to be inserted to sudo rules:\n"; - warn "--- sudoers ---\n"; - print @rules; - warn "--- sudoers ---\n"; - return; - } - - my $sudoers = find_file('/usr/local/etc/sudoers', '/etc/sudoers'); - my $visudo = utils::which('visudo'); - - die "Unable to find sudoers file.\n" unless -f $sudoers; - die "Unable to write to sudoers file '$sudoers'.\n" unless -w $sudoers; - die "visudo program not found\n" unless -x $visudo; - - # parse sudoers file for "#includedir" directive - my $sudodir = parse_sudoers_includedir($sudoers); - if ($sudodir) { - # sudo will read each file in /etc/sudoers.d, skipping file names that - # end in ~ or contain a . character to avoid causing problems with - # package manager or editor temporary/backup files - $sudoers = "$sudodir/check_raid"; - } - - warn "Updating file $sudoers\n"; - - # NOTE: secure as visudo itself: /etc is root owned - my $new = $sudoers.".new.".$$; - - # setup to have sane perm for new sudoers file - umask(0227); - - open my $fh, '>', $new or die $!; - - # insert old sudoers - if (!$sudodir) { - open my $old, '<', $sudoers or die $!; - while (<$old>) { - print $fh $_; - } - close $old or die $!; - } - - # insert the rules - print $fh @rules; - close $fh; - - # validate sudoers - system($visudo, '-c', '-f', $new) == 0 or unlink($new),exit $? >> 8; - - # check if they differ - if (filediff($sudoers, $new)) { - # use the new file - rename($new, $sudoers) or die $!; - warn "$sudoers file updated.\n"; - } else { - warn "$sudoers file not changed.\n"; - unlink($new); - } -} - # Print active plugins sub print_active_plugins { @@ -4641,6 +5045,36 @@ $$key = $ERRORS{$value}; } +# obtain git hash of check_raid.pl +# http://stackoverflow.com/questions/460297/git-finding-the-sha1-of-an-individual-file-in-the-index#comment26055597_460315 +sub git_hash_object { + my $content = "blob "; + $content .= -s $0; + $content .= "\0"; + open my $fh, '<', $0 or die $!; + local $/ = undef; + $content .= <$fh>; + close($fh) or die $!; + + # try Digest::SHA1 + my $digest; + eval { + require Digest::SHA1; + $digest = Digest::SHA1::sha1_hex($content); + }; + + return $digest; +} + +# plugin options (key=>value pairs) passed as 'options' key to each plugin constructor. +# the options are global, not plugin specific, but it's recommended to prefix option with plugin name. +# the convention is to have PLUGIN_NAME-OPTION_NAME=OPTION_VALUE syntax to namespace each plugin option. +# +# so "--plugin-option=hp_msa-serial=/dev/ttyS2" would define option 'serial' +# for 'hp_msa' plugin with value '/dev/ttyS2'. +# +my %plugin_options; + Getopt::Long::Configure('bundling'); GetOptions( 'V' => \$opt_V, 'version' => \$opt_V, @@ -4648,12 +5082,13 @@ 'h' => \$opt_h, 'help' => \$opt_h, 'S' => \$opt_S, 'sudoers' => \$opt_S, 'W' => \$opt_W, 'warnonly' => \$opt_W, - 'resync=s' => sub { setstate(\$plugin::resync_status, @_); }, - 'check=s' => sub { setstate(\$plugin::check_status, @_); }, - 'noraid=s' => sub { setstate(\$noraid_state, @_); }, - 'bbulearn=s' => sub { setstate(\$plugin::bbulearn_status, @_); }, - 'cache-fail=s' => sub { setstate(\$plugin::cache_fail_status, @_); }, - 'bbu-monitoring' => \$plugin::bbu_monitoring, + 'resync=s' => sub { setstate(\$plugin_options{resync_status}, @_); }, + 'check=s' => sub { setstate(\$plugin_options{check_status}, @_); }, + 'noraid=s' => sub { setstate(\$plugin_options{noraid_state}, @_); }, + 'bbulearn=s' => sub { setstate(\$plugin_options{bbulearn_status}, @_); }, + 'cache-fail=s' => sub { setstate(\$plugin_options{cache_fail_status}, @_); }, + 'plugin-option=s' => sub { my($k, $v) = split(/=/, $_[1], 2); $plugin_options{$k} = $v; }, + 'bbu-monitoring' => \$plugin_options{bbu_monitoring}, 'p=s' => \$opt_p, 'plugin=s' => \$opt_p, 'l' => \$opt_l, 'list-plugins' => \$opt_l, ) or exit($ERRORS{UNKNOWN}); @@ -4669,6 +5104,21 @@ print "check_raid Version $VERSION\n"; exit $ERRORS{'OK'}; } + +if ($opt_d) { + print "check_raid Version $VERSION\n"; + my $git_ver = `git describe --tags 2>/dev/null`; + if ($git_ver) { + print "Using git: $git_ver"; + } + my $hash = git_hash_object(); + if ($hash) { + print "git hash object: $hash\n"; + } + print "See CONTRIBUTING.md how to report bugs with debug data:\n"; + print "https://github.com/glensc/nagios-plugin-check_raid/blob/master/CONTRIBUTING.md\n\n"; +} + if ($opt_h) { print_help(); exit $ERRORS{'OK'}; @@ -4690,7 +5140,7 @@ my @plugins = $opt_p ? grep { my $p = $_; grep { /^$p$/ } split(/,/, $opt_p) } @utils::plugins : @utils::plugins; foreach my $pn (@plugins) { - my $plugin = $pn->new; + my $plugin = $pn->new(options => \%plugin_options); # skip inactive plugins (disabled or no tools available) next unless $plugin->active; @@ -4707,10 +5157,10 @@ $message .= "$pn:[Plugin error]"; next; } - if ($plugin->message or $noraid_state == $ERRORS{UNKNOWN}) { + if ($plugin->message or $plugin->{options}{noraid_state} == $ERRORS{UNKNOWN}) { $status = $plugin->status if $plugin->status > $status; } else { - $status = $noraid_state if $noraid_state > $status; + $status = $plugin->{options}{noraid_state} if $plugin->{options}{noraid_state} > $status; } $message .= '; ' if $message; $message .= "$pn:[".$plugin->message."]"; @@ -4729,8 +5179,8 @@ print "UNKNOWN: "; } print "$message\n"; -} elsif ($noraid_state != $ERRORS{UNKNOWN}) { - $status = $noraid_state; +} elsif ($plugin::options{noraid_state} != $ERRORS{UNKNOWN}) { + $status = $plugin::options{noraid_state}; print "No RAID configuration found\n"; } else { $status = $ERRORS{UNKNOWN}; diff -Nru nagios-plugins-contrib-14.20141104/check_raid/control nagios-plugins-contrib-16.20151226/check_raid/control --- nagios-plugins-contrib-14.20141104/check_raid/control 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_raid/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ Homepage: https://github.com/glensc/nagios-plugin-check_raid Watch: https://github.com/glensc/nagios-plugin-check_raid "/glensc/nagios-plugin-check_raid/tree/([0-9.]+)" Suggests: cciss-vol-status (>= 1.10), mpt-status -Version: 3.2.1+47b33d53db +Version: 3.2.5 Uploaders: Bernd Zeimetz Description: plugin to check sw/hw RAID status The plugin looks for any known types of RAID configurations, @@ -28,3 +28,4 @@ - Serveraid IPS via ipssend - Solaris software RAID via metastat - Areca SATA RAID Support via cli64/cli32 + - Detecting SCSI devices or hosts with lsscsi diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/AUTHORS nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/AUTHORS --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/AUTHORS 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/AUTHORS 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -Matteo Corti -Elan Ruusamäe (improved parallel support and several fixes) -Victor V Kudlak (parallel support) -Jan Kantert for the whitelisting support - -Please report any bugs or feature requests to matteo.corti@id.ethz.ch, or through the -web interface at -https://trac.id.ethz.ch/projects/nagios_plugins/newticket?component=check_rbl - -# File version information: -# $Id: AUTHORS 1264 2011-07-11 05:45:43Z corti $ -# $Revision: 1264 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/AUTHORS $ -# $Date: 2011-07-11 07:45:43 +0200 (Mon, 11 Jul 2011) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/Changes nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/Changes --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/Changes 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/Changes 1970-01-01 00:00:00.000000000 +0000 @@ -1,84 +0,0 @@ -2014-09-20 Matteo Corti - - * Version 1.3.5 - * check_rbl: fixed the default critical and warning range - -2014-09-19 Matteo Corti - - * Version 1.3.4 - * check_rbl: removed wrong test on the DNS servers - * check_rbl: fixed the threshold range - -2014-08-09 Matteo Corti - - * Version 1.3.3 - * More argument validation - -2014-01-30 Matteo Corti - - * Version 1.3.2 - * Documentation and dependencies update - -2013-09-26 Matteo Corti - - * Version 1.3.1 - * check_rbl: disabled embedded Perl - -2012-08-31 Matteo Corti - - * check_rbl: fixed a possible variable name conflict - -2012-01-25 Matteo Corti - - * Added a note on public DNS resolvers (as Google) by being banned - from Spamhaus - -2011-07-11 Matteo Corti - - * Version 1.3.0 - * check_rbl: applied patch from Jan Kantert to support whitelists - * added support for unit tests - -2011-03-22 Matteo Corti - - * Version 1.2.2 - * check_rbl: specified the dependency on Nagios::Plugin > 0.31 - (earlier versions caused parameter parsing errors, - thanks to Elan Ruusamäe) - -2010-07-05 Matteo Corti - - * Version 1.2.1 - * check_rbl: fixed a problem with operator precedence that made some - checks fail - -2010-04-07 Matteo Corti - - * Version 1.2.0 - * check_rbl: applied patch to report the hostname being checked - and increase the verbosity (#66) - * check_rbl.ini: sample configuration file - * check_rbl: removed unnecessary dependencies - * check_rbl: applied the patch from #69 (improved parallelism) - -2009-10-27 Matteo Corti - - * check_rbl: applied patch to parallelize the checks - -2009-01-22 Matteo Corti - - * check_rbl: command line argument to set the numer of tries in DNS queries - -2009-01-06 Matteo Corti - - * check_rbl: execution time in the performace data - -2008-12-29 Matteo Corti - - * check_rbl: Initial release - -# File version information: -# $Id: Changes 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/Changes $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/check_rbl nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/check_rbl --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/check_rbl 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/check_rbl 1970-01-01 00:00:00.000000000 +0000 @@ -1,551 +0,0 @@ -#!perl - -# nagios: -epn - -package main; - -# check_rbl is a Nagios plugin to check if an SMTP server is black- or -# white- listed -# -# See the INSTALL file for installation instructions -# -# Copyright (c) 2014, Matteo Corti -# Copyright (c) 2007, ETH Zurich. -# Copyright (c) 2010, Elan Ruusamae . -# -# This module is free software; you can redistribute it and/or modify it -# under the terms of GNU general public license (gpl) version 3. -# See the LICENSE file for details. -# -# RCS information -# enable substitution with: -# $ svn propset svn:keywords "Id Revision HeadURL Source Date" -# -# $Id: check_rbl 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ - -use strict; -use warnings; - -use 5.00800; - -use Data::Dumper; -use Data::Validate::Domain qw(is_hostname); -use Data::Validate::IP qw(is_ipv4 is_ipv6); -use IO::Select; -use Nagios::Plugin 0.31; -use Nagios::Plugin::Getopt; -use Nagios::Plugin::Threshold; -use Net::DNS; -use Readonly; - -our $VERSION = '1.3.5'; - -Readonly our $DEFAULT_TIMEOUT => 15; -Readonly our $DEFAULT_RETRIES => 4; -Readonly our $DEFAULT_WORKERS => 20; -Readonly our $DEFAULT_QUERY_TIMEOUT => 15; - -# IMPORTANT: Nagios plugins could be executed using embedded perl in this case -# the main routine would be executed as a subroutine and all the -# declared subroutines would therefore be inner subroutines -# This will cause all the global lexical variables not to stay shared -# in the subroutines! -# -# All variables are therefore declared as package variables... -# - -## no critic (ProhibitPackageVars) -our ( @listed, @timeouts, $options, $plugin, $threshold, $timeouts_string, ); - -# the script is declared as a package so that it can be unit tested -# but it should not be used as a module -if ( !caller ) { - run(); -} - -############################################################################## -# Usage : verbose("some message string", $optional_verbosity_level); -# Purpose : write a message if the verbosity level is high enough -# Returns : n/a -# Arguments : message : message string -# level : options verbosity level -# Throws : n/a -# Comments : n/a -# See also : n/a -sub verbose { - - # arguments - my $message = shift; - my $level = shift; - - if ( !defined $message ) { - $plugin->nagios_exit( UNKNOWN, - q{Internal error: not enough parameters for 'verbose'} ); - } - - if ( !defined $level ) { - $level = 0; - } - - if ( $level < $options->verbose ) { - if ( !print $message ) { - $plugin->nagios_exit( UNKNOWN, 'Error: cannot write to STDOUT' ); - } - } - - return; - -} - -############################################################################## -# Usage : my $res = init_dns_resolver( $retries ) -# Purpose : Initializes a new DNS resolver -# Arguments : retries : number of retries -# Returns : The newly created resolver -# See also : Perl Net::DNS -sub init_dns_resolver { - - my $retries = shift; - - my $res = Net::DNS::Resolver->new(); - if ( $res->can('force_v4') ) { - $res->force_v4(1); - } - - if ($retries) { - $res->retry($retries); - } - - return $res; -} - -############################################################################## -# Usage : mdns(\@addresses, $callback) -# Purpose : Perform multiple DNS lookups in parallel -# Returns : n/a -# See also : Perl Net::DNS module mresolv in examples -# -# Resolves all IPs in C<@addresses> in parallel. -# If answer is found C<$callback> is called with arguments as: $name, $host. -# -# Author: Elan Ruusamae , (c) 1999-2010 -## no critic (ProhibitExcessComplexity) -sub mdns { - - my ( $data, $callback ) = @_; - - # number of requests to have outstanding at any time - my $workers = $options ? $options->workers() : 1; - - # timeout per query (seconds) - my $timeout = $options ? $options->get('query-timeout') : $DEFAULT_TIMEOUT; - my $debug = $options ? $options->debug() : 0; - my $res = init_dns_resolver( $options ? $options->retry() : 0 ); - - my $sel = IO::Select->new(); - my $eof = 0; - - my @addrs = @{$data}; - - my %addrs; - while (1) { - - #---------------------------------------------------------------------- - # Read names until we've filled our quota of outstanding requests. - #---------------------------------------------------------------------- - - while ( !$eof && $sel->count() < $workers ) { - - if ($debug) { - ## no critic (RequireCheckedSyscall) - print 'DEBUG: reading...'; - } - my $name = shift @addrs; - - if ( !defined $name ) { - if ($debug) { - ## no critic (RequireCheckedSyscall) - print "EOF.\n"; - } - $eof = 1; - last; - } - if ($debug) { - ## no critic (RequireCheckedSyscall) - print "NAME: $name\n"; - } - - my $sock = $res->bgsend($name); - - if ( !defined $sock ) { - verbose 'DNS query error: ' . $res->errorstring; - verbose "Skipping $name"; - } - else { - - # we store in a hash the query we made, as parsing it back from - # response gives different ip for ips with multiple hosts - $addrs{$sock} = $name; - $sel->add($sock); - if ($debug) { - ## no critic (RequireCheckedSyscall) - print "DEBUG: name = $name, outstanding = ", $sel->count(), - "\n"; - } - - } - - } - - #---------------------------------------------------------------------- - # Wait for any replies. Remove any replies from the outstanding pool. - #---------------------------------------------------------------------- - - my @ready; - my $timed_out = 1; - - if ($debug) { - ## no critic (RequireCheckedSyscall) - print "DEBUG: waiting for replies\n"; - } - - @ready = $sel->can_read($timeout); - - while (@ready) { - - $timed_out = 0; - - if ($debug) { - ## no critic (RequireCheckedSyscall) - print 'DEBUG: replies received: ', scalar @ready, "\n"; - } - - foreach my $sock (@ready) { - if ($debug) { - ## no critic (RequireCheckedSyscall) - print "DEBUG: handling a reply\n"; - } - my $addr = $addrs{$sock}; - delete $addrs{$sock}; - $sel->remove($sock); - - my $ans = $res->bgread($sock); - - my $host; - if ($ans) { - - foreach my $rr ( $ans->answer ) { - - ## no critic(ProhibitDeepNests) - if ( !( $rr->type eq 'A' ) ) { - next; - } - - $host = $rr->address; - - # take just the first answer - last; - } - } - else { - if ($debug) { - ## no critic (RequireCheckedSyscall) - print 'DEBUG: no answer: ' . $res->errorstring() . "\n"; - } - } - &{$callback}( $addr, $host ); - } - - @ready = $sel->can_read(0); - - } - - #---------------------------------------------------------------------- - # If we timed out waiting for replies, remove all entries from the - # outstanding pool. - #---------------------------------------------------------------------- - - if ($timed_out) { - if ($debug) { - ## no critic (RequireCheckedSyscall) - print "DEBUG: timeout: clearing the outstanding pool.\n"; - } - foreach my $sock ( $sel->handles() ) { - my $addr = $addrs{$sock}; - delete $addrs{$sock}; - $sel->remove($sock); - - # callback for hosts that timed out - &{$callback}( $addr, q{} ); - } - } - - if ($debug) { - ## no critic (RequireCheckedSyscall) - print 'DEBUG: outstanding = ', $sel->count(), ", eof = $eof\n"; - } - - #---------------------------------------------------------------------- - # We're done if there are no outstanding queries and we've read EOF. - #---------------------------------------------------------------------- - - last if ( $sel->count() == 0 ) && $eof; - } - - return; - -} - -############################################################################## -# Usage : validate( $hostname ); -# Purpose : check if an IP address or host name is valid -# Returns : the IP address corresponding to $hostname -# Arguments : n/a -# Throws : an UNKNOWN error if the argument is not valid -# Comments : n/a -# See also : n/a -sub validate { - - my $hostname = shift; - my $ip = $hostname; - - if ( !is_ipv4($hostname) && !is_ipv6($hostname) ) { - - if ( is_hostname($hostname) ) { - - mdns( - [$hostname], - sub { - my ( $addr, $host ) = @_; - $ip = $host; - } - ); - - if ( !$ip ) { - $plugin->nagios_exit( UNKNOWN, 'Cannot resolve ' . $hostname ); - } - - } - - if ( !$ip ) { - $plugin->nagios_exit( UNKNOWN, 'Cannot resolve ' . $options->host ); - } - - } - - return $ip; - -} - -############################################################################## -# Usage : run(); -# Purpose : main method -# Returns : n/a -# Arguments : n/a -# Throws : n/a -# Comments : n/a -# See also : n/a -sub run { - - ################################################################################ - # Initialization - - $plugin = Nagios::Plugin->new( shortname => 'CHECK_RBL' ); - - my $time = time; - - ######################## - # Command line arguments - - $options = Nagios::Plugin::Getopt->new( - usage => 'Usage: %s [OPTIONS]', - version => $VERSION, - url => 'https://trac.id.ethz.ch/projects/nagios_plugins', - blurb => 'Check SMTP black- or white- listing status', - ); - - $options->arg( - spec => 'critical|c=i', - help => 'Number of blacklisting servers for a critical warning', - required => 0, - default => 1, - ); - - $options->arg( - spec => 'warning|w=i', - help => 'Number of blacklisting servers for a warning', - required => 0, - default => 1, - ); - - $options->arg( - spec => 'debug|d', - help => 'Prints debugging information', - required => 0, - default => 0, - ); - - $options->arg( - spec => 'server|s=s@', - help => 'RBL server', - required => 1, - ); - - $options->arg( - spec => 'host|H=s', - help => 'SMTP server to check', - required => 1, - ); - - $options->arg( - spec => 'retry|r=i', - help => 'Number of times to try a DNS query (default is 4) ', - required => 0, - default => $DEFAULT_RETRIES, - ); - - $options->arg( - spec => 'workers=i', - help => 'Number of parallel checks', - required => 0, - default => $DEFAULT_WORKERS, - ); - - $options->arg( - spec => 'whitelistings|wl', - help => 'Check whitelistings instead of blacklistings', - required => 0, - default => 0, - ); - - $options->arg( - spec => 'query-timeout=i', - help => 'Timeout of the RBL queries', - required => 0, - default => $DEFAULT_QUERY_TIMEOUT, - ); - - $options->getopts(); - - ############### - # Sanity checks - - if ( $options->critical < $options->warning ) { - $plugin->nagios_exit( UNKNOWN, - 'critical has to be greater or equal warning' ); - } - - my $ip = validate( $options->host ); - - my @servers = @{ $options->server }; - - verbose 'Using ' . $options->timeout . " as global script timeout\n"; - alarm $options->timeout; - - ################ - # Set the limits - - # see https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT - $threshold = Nagios::Plugin::Threshold->set_thresholds( - warning => $options->warning - 1, - critical => $options->critical - 1, - ); - - ################################################################################ - - my $nservers = scalar @servers; - - verbose 'Checking ' . $options->host . " ($ip) on $nservers server(s)\n"; - - # build address lists - my @addrs; - foreach my $server (@servers) { - ( my $local_ip = $ip ) =~ -s/(\d{1,3}) [.] (\d{1,3}) [.] (\d{1,3}) [.] (\d{1,3})/$4.$3.$2.$1.$server/mxs; - push @addrs, $local_ip; - } - - mdns( - \@addrs, - sub { - my ( $addr, $host ) = @_; - - # extract RBL we checked - $addr =~ s/^(?:\d+[.]){4}//mxs; - if ( defined $host ) { - if ( $host eq q{} ) { - push @timeouts, $addr; - } - else { - verbose "listed in $addr as $host\n"; - if ( !$options->get('whitelistings') ) { - push @listed, $addr; - } - } - } - else { - verbose "not listed in $addr\n"; - if ( $options->get('whitelistings') ) { - push @listed, $addr; - } - } - } - ); - - my $total = scalar @listed; - - my $status; - if ( $options->get('whitelistings') ) { - - $status = - $options->host - . " NOT WHITELISTED on $total " - . ( ( $total == 1 ) ? 'server' : 'servers' ) - . " of $nservers"; - } - else { - $status = - $options->host - . " BLACKLISTED on $total " - . ( ( $total == 1 ) ? 'server' : 'servers' ) - . " of $nservers"; - - } - - # append timeout info, but do not account these in status - if (@timeouts) { - $timeouts_string = scalar @timeouts; - $status = - " ($timeouts_string server" - . ( ( $timeouts_string > 1 ) ? 's' : q{} ) - . ' timed out: ' - . join( ', ', @timeouts ) . ')'; - } - - if ( $total > 0 ) { - $status .= " (@listed)"; - } - - $plugin->add_perfdata( - label => 'servers', - value => $total, - uom => q{}, - threshold => $threshold, - ); - - $plugin->add_perfdata( - label => 'time', - value => time - $time, - uom => q{s}, - ); - - $plugin->nagios_exit( $threshold->get_status($total), $status ); - - return; - -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/check_rbl.ini nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/check_rbl.ini --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/check_rbl.ini 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/check_rbl.ini 1970-01-01 00:00:00.000000000 +0000 @@ -1,49 +0,0 @@ -[rbl] -server=dnsbl.ahbl.org -server=cbl.abuseat.org -server=dnsbl.cyberlogic.net -server=bl.deadbeef.com -server=spamtrap.drbl.drand.net -server=spamsources.fabel.dk -server=0spam.fusionzero.com -server=mail-abuse.blacklist.jippg.org -server=korea.services.net -server=spamguard.leadmon.net -server=ix.dnsbl.manitu.net -server=relays.nether.net -server=dnsbl.njabl.org -server=bhnc.njabl.org -server=no-more-funn.moensted.dk -server=rbl.orbitrbl.com -server=psbl.surriel.com -server=dyna.spamrats.com -server=noptr.spamrats.com -server=spam.spamrats.com -; this keeps all zones of sorbs excl. spam -server=dnsbl.sorbs.net -server=spam.dnsbl.sorbs.net -server=bl.spamcannibal.org -server=bl.spamcop.net -server=pbl.spamhaus.org -server=sbl.spamhaus.org -server=xbl.spamhaus.org -server=ubl.unsubscore.com -server=dnsbl-1.uceprotect.net -server=dnsbl-2.uceprotect.net -server=dnsbl-3.uceprotect.net -server=db.wpbl.info -server=access.redhawk.org -server=blacklist.sci.kun.nl -server=bl.technovision.dk -server=dnsbl.kempt.net -server=dnsbl.solid.net -server=dul.ru -server=forbidden.icm.edu.pl -server=hil.habeas.com -server=rbl.schulte.org -server=sbl-xbl.spamhaus.org - -; these are rather slow -;server=bl.csma.biz -;server=sbl.csma.biz - diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/check_rbl.pod nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/check_rbl.pod --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/check_rbl.pod 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/check_rbl.pod 1970-01-01 00:00:00.000000000 +0000 @@ -1,152 +0,0 @@ -# File version information: -# $Id: check_rbl.pod 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl.pod $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ - -=pod - -=head1 NAME - -C - a Nagios plugin to check if an SMTP server is blacklisted - -=head1 DESCRIPTION - -check_rbl is a Nagios plugin to check if an SMTP server is blacklisted - -=head1 VERSION - -Version 1.3.5 - -=head1 SYNOPSIS - -check_rbl [--help] [--verbose] [--version] [--timeout t] - -H hostname --server servername - [--critical n] [--warning n] [--workers n] - -=head1 REQUIRED ARGUMENTS - - -s, --server=STRING RBL server (may be repeated) - -H, --host=STRING SMTP server to check - -=head1 OPTIONS - - -?, --usage Print usage information - -h, --help Print detailed help screen - -V, --version Print version information - --extra-opts=[
[@]] Section and/or config_file from which to load extra options (may repeat) - -c, --critical=INTEGER Number of blacklisting servers for a critical warning - -w, --warning=INTEGER Number of blacklisting servers for a warning - -d, --debug Prints debugging information - -r, --retry=INTEGER Number of times to try a DNS query (default is 4) - --workers=INTEGER Number of parallel checks - --whitelistings, --wl Check whitelistings instead of blacklistings - --query-timeout=INTEGER Timeout of the RBL queries - -t, --timeout=INTEGER Seconds before plugin times out (default: 15) - -v, --verbose Show details for command-line debugging (can repeat up to 3 times) - -=head1 EXAMPLE - - check_rbl -t 30 -H matteocorti.ch -s zen.spamhaus.org -s bl.spamcop.net - -=head1 DIAGNOSTICS - -You can specify multiple --verbose options to increase the program -verbosity. --debug can be used to display the process and internals of -the querying mechanism. - -=head1 EXIT STATUS - -0 if OK, 1 in case of a warning, 2 in case of a critical status and 3 -in case of an unkown problem - -=head1 DEPENDENCIES - -check_updates depends on - -=over 4 - -=item * Data::Validate::Domain - -=item * Data::Validate::IP - -=item * Getopt::Long - -=item * IO::Select - -=item * Nagios::Plugin - -=item * Nagios::Plugin::Threshold - -=item * Number::Format - -=item * Net::DNS - -=item * Readonly - -=back - -=head1 CONFIGURATION - -=head1 INCOMPATIBILITIES - -None reported. - -=head1 SEE ALSO - -Nagios documentation - -=head1 BUGS AND LIMITATIONS - -No bugs have been reported. - -Please report any bugs or feature requests to matteo.corti@id.ethz.ch, -or through the web interface at -https://trac.id.ethz.ch/projects/nagios_plugins/newticket?component=check_rbl - -=head1 AUTHOR - -Matteo Corti - -=head1 LICENSE AND COPYRIGHT - -Copyright (c) 2010, Elan Ruusamae - -Copyright (c) 2008-2011, Matteo Corti - -This module is free software; you can redistribute it and/or modify it -under the terms of GNU general public license (gpl) version 3. -See the LICENSE file for details. - -=head1 DISCLAIMER OF WARRANTY - -BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT -WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER -PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, -EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. - -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE -TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - -=head1 ACKNOWLEDGMENTS - -=encoding iso-8859-1 - -Elan Ruusamäe for the improved parallel support and several fixes - -Victor V Kudlak for parallel support - -Jan Kantert for whitelistings support diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/check_rbl.spec nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/check_rbl.spec --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/check_rbl.spec 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/check_rbl.spec 1970-01-01 00:00:00.000000000 +0000 @@ -1,100 +0,0 @@ -################################################################################ -# File version information: -# $Id: check_rbl.spec 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl.spec $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ -################################################################################ - -%define version 1.3.5 -%define release 0 -%define sourcename check_rbl -%define packagename nagios-plugins-check-rbl -%define nagiospluginsdir %{_libdir}/nagios/plugins - -# No binaries in this package -%define debug_package %{nil} - -Summary: check_rbl is a Nagios plugin to check if an SMTP server is blacklisted -Name: %{packagename} -Obsoletes: check_rbl -Version: %{version} -Release: %{release}%{?dist} -License: GPLv3+ -Packager: Matteo Corti -Group: Applications/System -BuildRoot: %{_tmppath}/%{packagename}-%{version}-%{release}-root-%(%{__id_u} -n) -URL: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_rbl -Source: http://www.id.ethz.ch/people/allid_list/corti/%{sourcename}-%{version}.tar.gz - -# Fedora build requirement (not needed for EPEL{4,5}) -BuildRequires: perl(ExtUtils::MakeMaker) - -Requires: nagios-plugins - -%description -check_rbl is a Nagios plugin to check if an SMTP server is blacklisted - -%prep -%setup -q -n %{sourcename}-%{version} - -%build -%{__perl} Makefile.PL INSTALLDIRS=vendor \ - INSTALLSCRIPT=%{nagiospluginsdir} \ - INSTALLVENDORSCRIPT=%{nagiospluginsdir} -make %{?_smp_mflags} - -%install -rm -rf %{buildroot} -make pure_install PERL_INSTALL_ROOT=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} \; -find %{buildroot} -type f -name "*.pod" -exec rm -f {} \; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; -%{_fixperms} %{buildroot}/* - -%clean -rm -rf %{buildroot} - -%files -%defattr(-,root,root,-) -%doc AUTHORS Changes NEWS README TODO COPYING COPYRIGHT -%{nagiospluginsdir}/%{sourcename} -%{_mandir}/man1/%{sourcename}.1* - -%changelog -* Sat Sep 20 2014 Matteo Corti - 1.3.5-0 -- Updated to 1.3.5 - -* Fri Sep 19 2014 Matteo Corti - 1.3.4-0 -- Updated to 1.3.4 - -* Sat Aug 9 2014 Matteo Corti - 1.3.3-0 -- updated to 1.3.3 - -* Thu Jan 30 2014 Matteo Corti - 1.3.2-0 -- Dependencies and documentation update - -* Mon Jul 11 2011 Matteo Corti - 1.3.0-0 -- Updated to 1.3.0 (whitelistings support) - -* Tue Mar 22 2011 Matteo Corti - 1.2.2-0 -- Updated to 1.2.2 (bug fix) and renamed the package - -* Mon Jul 5 2010 Matteo Corti - 1.2.1-0 -- Updated to 1.2.1 (bug fix) - -* Thu Apr 8 2010 Matteo Corti - 1.2.0-0 -- Updated to 1.2.0 and imprved the SPEC file - -* Tue Oct 27 2009 Matteo Corti - 1.1.0-0 -- Updated to 1.1.0 (parallel checks) - -* Thu Jan 22 2009 Matteo Corti - 1.0.2-0 -- --retry command line argument - -* Tue Jan 6 2009 Matteo Corti - 1.0.1-0 -- Execution time in the performance data - -* Mon Dec 29 2008 Matteo Corti - 1.0.0-0 -- Initial release - diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/COPYING nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/COPYING --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/COPYING 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/COPYING 1970-01-01 00:00:00.000000000 +0000 @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/COPYRIGHT nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/COPYRIGHT --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/COPYRIGHT 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/COPYRIGHT 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -Copyright (c) 2013 Matteo Corti -Copyright (c) 2010 Elan Ruusamae -Copyright (c) 2009 ETH Zurich - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at -your option) any later version. - -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Base.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Base.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Base.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Base.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,83 +0,0 @@ -#line 1 -package Module::Install::Base; - -use strict 'vars'; -use vars qw{$VERSION}; -BEGIN { - $VERSION = '1.12'; -} - -# Suspend handler for "redefined" warnings -BEGIN { - my $w = $SIG{__WARN__}; - $SIG{__WARN__} = sub { $w }; -} - -#line 42 - -sub new { - my $class = shift; - unless ( defined &{"${class}::call"} ) { - *{"${class}::call"} = sub { shift->_top->call(@_) }; - } - unless ( defined &{"${class}::load"} ) { - *{"${class}::load"} = sub { shift->_top->load(@_) }; - } - bless { @_ }, $class; -} - -#line 61 - -sub AUTOLOAD { - local $@; - my $func = eval { shift->_top->autoload } or return; - goto &$func; -} - -#line 75 - -sub _top { - $_[0]->{_top}; -} - -#line 90 - -sub admin { - $_[0]->_top->{admin} - or - Module::Install::Base::FakeAdmin->new; -} - -#line 106 - -sub is_admin { - ! $_[0]->admin->isa('Module::Install::Base::FakeAdmin'); -} - -sub DESTROY {} - -package Module::Install::Base::FakeAdmin; - -use vars qw{$VERSION}; -BEGIN { - $VERSION = $Module::Install::Base::VERSION; -} - -my $fake; - -sub new { - $fake ||= bless(\@_, $_[0]); -} - -sub AUTOLOAD {} - -sub DESTROY {} - -# Restore warning handler -BEGIN { - $SIG{__WARN__} = $SIG{__WARN__}->(); -} - -1; - -#line 159 diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Include.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Include.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Include.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Include.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ -#line 1 -package Module::Install::Include; - -use strict; -use Module::Install::Base (); - -use vars qw{$VERSION @ISA $ISCORE}; -BEGIN { - $VERSION = '1.12'; - @ISA = 'Module::Install::Base'; - $ISCORE = 1; -} - -sub include { - shift()->admin->include(@_); -} - -sub include_deps { - shift()->admin->include_deps(@_); -} - -sub auto_include { - shift()->admin->auto_include(@_); -} - -sub auto_include_deps { - shift()->admin->auto_include_deps(@_); -} - -sub auto_include_dependent_dists { - shift()->admin->auto_include_dependent_dists(@_); -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Makefile.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Makefile.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Makefile.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Makefile.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,418 +0,0 @@ -#line 1 -package Module::Install::Makefile; - -use strict 'vars'; -use ExtUtils::MakeMaker (); -use Module::Install::Base (); -use Fcntl qw/:flock :seek/; - -use vars qw{$VERSION @ISA $ISCORE}; -BEGIN { - $VERSION = '1.12'; - @ISA = 'Module::Install::Base'; - $ISCORE = 1; -} - -sub Makefile { $_[0] } - -my %seen = (); - -sub prompt { - shift; - - # Infinite loop protection - my @c = caller(); - if ( ++$seen{"$c[1]|$c[2]|$_[0]"} > 3 ) { - die "Caught an potential prompt infinite loop ($c[1]|$c[2]|$_[0])"; - } - - # In automated testing or non-interactive session, always use defaults - if ( ($ENV{AUTOMATED_TESTING} or -! -t STDIN) and ! $ENV{PERL_MM_USE_DEFAULT} ) { - local $ENV{PERL_MM_USE_DEFAULT} = 1; - goto &ExtUtils::MakeMaker::prompt; - } else { - goto &ExtUtils::MakeMaker::prompt; - } -} - -# Store a cleaned up version of the MakeMaker version, -# since we need to behave differently in a variety of -# ways based on the MM version. -my $makemaker = eval $ExtUtils::MakeMaker::VERSION; - -# If we are passed a param, do a "newer than" comparison. -# Otherwise, just return the MakeMaker version. -sub makemaker { - ( @_ < 2 or $makemaker >= eval($_[1]) ) ? $makemaker : 0 -} - -# Ripped from ExtUtils::MakeMaker 6.56, and slightly modified -# as we only need to know here whether the attribute is an array -# or a hash or something else (which may or may not be appendable). -my %makemaker_argtype = ( - C => 'ARRAY', - CONFIG => 'ARRAY', -# CONFIGURE => 'CODE', # ignore - DIR => 'ARRAY', - DL_FUNCS => 'HASH', - DL_VARS => 'ARRAY', - EXCLUDE_EXT => 'ARRAY', - EXE_FILES => 'ARRAY', - FUNCLIST => 'ARRAY', - H => 'ARRAY', - IMPORTS => 'HASH', - INCLUDE_EXT => 'ARRAY', - LIBS => 'ARRAY', # ignore '' - MAN1PODS => 'HASH', - MAN3PODS => 'HASH', - META_ADD => 'HASH', - META_MERGE => 'HASH', - PL_FILES => 'HASH', - PM => 'HASH', - PMLIBDIRS => 'ARRAY', - PMLIBPARENTDIRS => 'ARRAY', - PREREQ_PM => 'HASH', - CONFIGURE_REQUIRES => 'HASH', - SKIP => 'ARRAY', - TYPEMAPS => 'ARRAY', - XS => 'HASH', -# VERSION => ['version',''], # ignore -# _KEEP_AFTER_FLUSH => '', - - clean => 'HASH', - depend => 'HASH', - dist => 'HASH', - dynamic_lib=> 'HASH', - linkext => 'HASH', - macro => 'HASH', - postamble => 'HASH', - realclean => 'HASH', - test => 'HASH', - tool_autosplit => 'HASH', - - # special cases where you can use makemaker_append - CCFLAGS => 'APPENDABLE', - DEFINE => 'APPENDABLE', - INC => 'APPENDABLE', - LDDLFLAGS => 'APPENDABLE', - LDFROM => 'APPENDABLE', -); - -sub makemaker_args { - my ($self, %new_args) = @_; - my $args = ( $self->{makemaker_args} ||= {} ); - foreach my $key (keys %new_args) { - if ($makemaker_argtype{$key}) { - if ($makemaker_argtype{$key} eq 'ARRAY') { - $args->{$key} = [] unless defined $args->{$key}; - unless (ref $args->{$key} eq 'ARRAY') { - $args->{$key} = [$args->{$key}] - } - push @{$args->{$key}}, - ref $new_args{$key} eq 'ARRAY' - ? @{$new_args{$key}} - : $new_args{$key}; - } - elsif ($makemaker_argtype{$key} eq 'HASH') { - $args->{$key} = {} unless defined $args->{$key}; - foreach my $skey (keys %{ $new_args{$key} }) { - $args->{$key}{$skey} = $new_args{$key}{$skey}; - } - } - elsif ($makemaker_argtype{$key} eq 'APPENDABLE') { - $self->makemaker_append($key => $new_args{$key}); - } - } - else { - if (defined $args->{$key}) { - warn qq{MakeMaker attribute "$key" is overriden; use "makemaker_append" to append values\n}; - } - $args->{$key} = $new_args{$key}; - } - } - return $args; -} - -# For mm args that take multiple space-separated args, -# append an argument to the current list. -sub makemaker_append { - my $self = shift; - my $name = shift; - my $args = $self->makemaker_args; - $args->{$name} = defined $args->{$name} - ? join( ' ', $args->{$name}, @_ ) - : join( ' ', @_ ); -} - -sub build_subdirs { - my $self = shift; - my $subdirs = $self->makemaker_args->{DIR} ||= []; - for my $subdir (@_) { - push @$subdirs, $subdir; - } -} - -sub clean_files { - my $self = shift; - my $clean = $self->makemaker_args->{clean} ||= {}; - %$clean = ( - %$clean, - FILES => join ' ', grep { length $_ } ($clean->{FILES} || (), @_), - ); -} - -sub realclean_files { - my $self = shift; - my $realclean = $self->makemaker_args->{realclean} ||= {}; - %$realclean = ( - %$realclean, - FILES => join ' ', grep { length $_ } ($realclean->{FILES} || (), @_), - ); -} - -sub libs { - my $self = shift; - my $libs = ref $_[0] ? shift : [ shift ]; - $self->makemaker_args( LIBS => $libs ); -} - -sub inc { - my $self = shift; - $self->makemaker_args( INC => shift ); -} - -sub _wanted_t { -} - -sub tests_recursive { - my $self = shift; - my $dir = shift || 't'; - unless ( -d $dir ) { - die "tests_recursive dir '$dir' does not exist"; - } - my %tests = map { $_ => 1 } split / /, ($self->tests || ''); - require File::Find; - File::Find::find( - sub { /\.t$/ and -f $_ and $tests{"$File::Find::dir/*.t"} = 1 }, - $dir - ); - $self->tests( join ' ', sort keys %tests ); -} - -sub write { - my $self = shift; - die "&Makefile->write() takes no arguments\n" if @_; - - # Check the current Perl version - my $perl_version = $self->perl_version; - if ( $perl_version ) { - eval "use $perl_version; 1" - or die "ERROR: perl: Version $] is installed, " - . "but we need version >= $perl_version"; - } - - # Make sure we have a new enough MakeMaker - require ExtUtils::MakeMaker; - - if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) { - # This previous attempted to inherit the version of - # ExtUtils::MakeMaker in use by the module author, but this - # was found to be untenable as some authors build releases - # using future dev versions of EU:MM that nobody else has. - # Instead, #toolchain suggests we use 6.59 which is the most - # stable version on CPAN at time of writing and is, to quote - # ribasushi, "not terminally fucked, > and tested enough". - # TODO: We will now need to maintain this over time to push - # the version up as new versions are released. - $self->build_requires( 'ExtUtils::MakeMaker' => 6.59 ); - $self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 ); - } else { - # Allow legacy-compatibility with 5.005 by depending on the - # most recent EU:MM that supported 5.005. - $self->build_requires( 'ExtUtils::MakeMaker' => 6.36 ); - $self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 ); - } - - # Generate the MakeMaker params - my $args = $self->makemaker_args; - $args->{DISTNAME} = $self->name; - $args->{NAME} = $self->module_name || $self->name; - $args->{NAME} =~ s/-/::/g; - $args->{VERSION} = $self->version or die <<'EOT'; -ERROR: Can't determine distribution version. Please specify it -explicitly via 'version' in Makefile.PL, or set a valid $VERSION -in a module, and provide its file path via 'version_from' (or -'all_from' if you prefer) in Makefile.PL. -EOT - - if ( $self->tests ) { - my @tests = split ' ', $self->tests; - my %seen; - $args->{test} = { - TESTS => (join ' ', grep {!$seen{$_}++} @tests), - }; - } elsif ( $Module::Install::ExtraTests::use_extratests ) { - # Module::Install::ExtraTests doesn't set $self->tests and does its own tests via harness. - # So, just ignore our xt tests here. - } elsif ( -d 'xt' and ($Module::Install::AUTHOR or $ENV{RELEASE_TESTING}) ) { - $args->{test} = { - TESTS => join( ' ', map { "$_/*.t" } grep { -d $_ } qw{ t xt } ), - }; - } - if ( $] >= 5.005 ) { - $args->{ABSTRACT} = $self->abstract; - $args->{AUTHOR} = join ', ', @{$self->author || []}; - } - if ( $self->makemaker(6.10) ) { - $args->{NO_META} = 1; - #$args->{NO_MYMETA} = 1; - } - if ( $self->makemaker(6.17) and $self->sign ) { - $args->{SIGN} = 1; - } - unless ( $self->is_admin ) { - delete $args->{SIGN}; - } - if ( $self->makemaker(6.31) and $self->license ) { - $args->{LICENSE} = $self->license; - } - - my $prereq = ($args->{PREREQ_PM} ||= {}); - %$prereq = ( %$prereq, - map { @$_ } # flatten [module => version] - map { @$_ } - grep $_, - ($self->requires) - ); - - # Remove any reference to perl, PREREQ_PM doesn't support it - delete $args->{PREREQ_PM}->{perl}; - - # Merge both kinds of requires into BUILD_REQUIRES - my $build_prereq = ($args->{BUILD_REQUIRES} ||= {}); - %$build_prereq = ( %$build_prereq, - map { @$_ } # flatten [module => version] - map { @$_ } - grep $_, - ($self->configure_requires, $self->build_requires) - ); - - # Remove any reference to perl, BUILD_REQUIRES doesn't support it - delete $args->{BUILD_REQUIRES}->{perl}; - - # Delete bundled dists from prereq_pm, add it to Makefile DIR - my $subdirs = ($args->{DIR} || []); - if ($self->bundles) { - my %processed; - foreach my $bundle (@{ $self->bundles }) { - my ($mod_name, $dist_dir) = @$bundle; - delete $prereq->{$mod_name}; - $dist_dir = File::Basename::basename($dist_dir); # dir for building this module - if (not exists $processed{$dist_dir}) { - if (-d $dist_dir) { - # List as sub-directory to be processed by make - push @$subdirs, $dist_dir; - } - # Else do nothing: the module is already present on the system - $processed{$dist_dir} = undef; - } - } - } - - unless ( $self->makemaker('6.55_03') ) { - %$prereq = (%$prereq,%$build_prereq); - delete $args->{BUILD_REQUIRES}; - } - - if ( my $perl_version = $self->perl_version ) { - eval "use $perl_version; 1" - or die "ERROR: perl: Version $] is installed, " - . "but we need version >= $perl_version"; - - if ( $self->makemaker(6.48) ) { - $args->{MIN_PERL_VERSION} = $perl_version; - } - } - - if ($self->installdirs) { - warn qq{old INSTALLDIRS (probably set by makemaker_args) is overriden by installdirs\n} if $args->{INSTALLDIRS}; - $args->{INSTALLDIRS} = $self->installdirs; - } - - my %args = map { - ( $_ => $args->{$_} ) } grep {defined($args->{$_} ) - } keys %$args; - - my $user_preop = delete $args{dist}->{PREOP}; - if ( my $preop = $self->admin->preop($user_preop) ) { - foreach my $key ( keys %$preop ) { - $args{dist}->{$key} = $preop->{$key}; - } - } - - my $mm = ExtUtils::MakeMaker::WriteMakefile(%args); - $self->fix_up_makefile($mm->{FIRST_MAKEFILE} || 'Makefile'); -} - -sub fix_up_makefile { - my $self = shift; - my $makefile_name = shift; - my $top_class = ref($self->_top) || ''; - my $top_version = $self->_top->VERSION || ''; - - my $preamble = $self->preamble - ? "# Preamble by $top_class $top_version\n" - . $self->preamble - : ''; - my $postamble = "# Postamble by $top_class $top_version\n" - . ($self->postamble || ''); - - local *MAKEFILE; - open MAKEFILE, "+< $makefile_name" or die "fix_up_makefile: Couldn't open $makefile_name: $!"; - eval { flock MAKEFILE, LOCK_EX }; - my $makefile = do { local $/; }; - - $makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/$1'inc', /; - $makefile =~ s/( -I\$\(INST_ARCHLIB\))/ -Iinc$1/g; - $makefile =~ s/( "-I\$\(INST_LIB\)")/ "-Iinc"$1/g; - $makefile =~ s/^(FULLPERL = .*)/$1 "-Iinc"/m; - $makefile =~ s/^(PERL = .*)/$1 "-Iinc"/m; - - # Module::Install will never be used to build the Core Perl - # Sometimes PERL_LIB and PERL_ARCHLIB get written anyway, which breaks - # PREFIX/PERL5LIB, and thus, install_share. Blank them if they exist - $makefile =~ s/^PERL_LIB = .+/PERL_LIB =/m; - #$makefile =~ s/^PERL_ARCHLIB = .+/PERL_ARCHLIB =/m; - - # Perl 5.005 mentions PERL_LIB explicitly, so we have to remove that as well. - $makefile =~ s/(\"?)-I\$\(PERL_LIB\)\1//g; - - # XXX - This is currently unused; not sure if it breaks other MM-users - # $makefile =~ s/^pm_to_blib\s+:\s+/pm_to_blib :: /mg; - - seek MAKEFILE, 0, SEEK_SET; - truncate MAKEFILE, 0; - print MAKEFILE "$preamble$makefile$postamble" or die $!; - close MAKEFILE or die $!; - - 1; -} - -sub preamble { - my ($self, $text) = @_; - $self->{preamble} = $text . $self->{preamble} if defined $text; - $self->{preamble}; -} - -sub postamble { - my ($self, $text) = @_; - $self->{postamble} ||= $self->admin->postamble; - $self->{postamble} .= $text if defined $text; - $self->{postamble} -} - -1; - -__END__ - -#line 544 diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/MakeMaker.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/MakeMaker.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/MakeMaker.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/MakeMaker.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,56 +0,0 @@ -#line 1 -package Module::Install::MakeMaker; - -use strict; -use ExtUtils::MakeMaker (); -use Module::Install::Base (); - -use vars qw{$VERSION @ISA $ISCORE}; -BEGIN { - $VERSION = '1.12'; - @ISA = 'Module::Install::Base'; - $ISCORE = 1; -} - -my $makefile = undef; - -sub WriteMakefile { - my ($self, %args) = @_; - $makefile = $self->load('Makefile'); - - # mapping between MakeMaker and META.yml keys - $args{MODULE_NAME} = $args{NAME}; - unless ( $args{NAME} = $args{DISTNAME} or ! $args{MODULE_NAME} ) { - $args{NAME} = $args{MODULE_NAME}; - $args{NAME} =~ s/::/-/g; - } - - foreach my $key ( qw{name module_name version version_from abstract author installdirs} ) { - my $value = delete($args{uc($key)}) or next; - $self->$key($value); - } - - if (my $prereq = delete($args{PREREQ_PM})) { - while (my($k,$v) = each %$prereq) { - $self->requires($k,$v); - } - } - - if (my $prereq = delete($args{BUILD_REQUIRES})) { - while (my($k,$v) = each %$prereq) { - $self->build_requires($k,$v); - } - } - - # put the remaining args to makemaker_args - $self->makemaker_args(%args); -} - -END { - if ( $makefile ) { - $makefile->write; - $makefile->Meta->write; - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Metadata.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Metadata.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Metadata.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Metadata.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,722 +0,0 @@ -#line 1 -package Module::Install::Metadata; - -use strict 'vars'; -use Module::Install::Base (); - -use vars qw{$VERSION @ISA $ISCORE}; -BEGIN { - $VERSION = '1.12'; - @ISA = 'Module::Install::Base'; - $ISCORE = 1; -} - -my @boolean_keys = qw{ - sign -}; - -my @scalar_keys = qw{ - name - module_name - abstract - version - distribution_type - tests - installdirs -}; - -my @tuple_keys = qw{ - configure_requires - build_requires - requires - recommends - bundles - resources -}; - -my @resource_keys = qw{ - homepage - bugtracker - repository -}; - -my @array_keys = qw{ - keywords - author -}; - -*authors = \&author; - -sub Meta { shift } -sub Meta_BooleanKeys { @boolean_keys } -sub Meta_ScalarKeys { @scalar_keys } -sub Meta_TupleKeys { @tuple_keys } -sub Meta_ResourceKeys { @resource_keys } -sub Meta_ArrayKeys { @array_keys } - -foreach my $key ( @boolean_keys ) { - *$key = sub { - my $self = shift; - if ( defined wantarray and not @_ ) { - return $self->{values}->{$key}; - } - $self->{values}->{$key} = ( @_ ? $_[0] : 1 ); - return $self; - }; -} - -foreach my $key ( @scalar_keys ) { - *$key = sub { - my $self = shift; - return $self->{values}->{$key} if defined wantarray and !@_; - $self->{values}->{$key} = shift; - return $self; - }; -} - -foreach my $key ( @array_keys ) { - *$key = sub { - my $self = shift; - return $self->{values}->{$key} if defined wantarray and !@_; - $self->{values}->{$key} ||= []; - push @{$self->{values}->{$key}}, @_; - return $self; - }; -} - -foreach my $key ( @resource_keys ) { - *$key = sub { - my $self = shift; - unless ( @_ ) { - return () unless $self->{values}->{resources}; - return map { $_->[1] } - grep { $_->[0] eq $key } - @{ $self->{values}->{resources} }; - } - return $self->{values}->{resources}->{$key} unless @_; - my $uri = shift or die( - "Did not provide a value to $key()" - ); - $self->resources( $key => $uri ); - return 1; - }; -} - -foreach my $key ( grep { $_ ne "resources" } @tuple_keys) { - *$key = sub { - my $self = shift; - return $self->{values}->{$key} unless @_; - my @added; - while ( @_ ) { - my $module = shift or last; - my $version = shift || 0; - push @added, [ $module, $version ]; - } - push @{ $self->{values}->{$key} }, @added; - return map {@$_} @added; - }; -} - -# Resource handling -my %lc_resource = map { $_ => 1 } qw{ - homepage - license - bugtracker - repository -}; - -sub resources { - my $self = shift; - while ( @_ ) { - my $name = shift or last; - my $value = shift or next; - if ( $name eq lc $name and ! $lc_resource{$name} ) { - die("Unsupported reserved lowercase resource '$name'"); - } - $self->{values}->{resources} ||= []; - push @{ $self->{values}->{resources} }, [ $name, $value ]; - } - $self->{values}->{resources}; -} - -# Aliases for build_requires that will have alternative -# meanings in some future version of META.yml. -sub test_requires { shift->build_requires(@_) } -sub install_requires { shift->build_requires(@_) } - -# Aliases for installdirs options -sub install_as_core { $_[0]->installdirs('perl') } -sub install_as_cpan { $_[0]->installdirs('site') } -sub install_as_site { $_[0]->installdirs('site') } -sub install_as_vendor { $_[0]->installdirs('vendor') } - -sub dynamic_config { - my $self = shift; - my $value = @_ ? shift : 1; - if ( $self->{values}->{dynamic_config} ) { - # Once dynamic we never change to static, for safety - return 0; - } - $self->{values}->{dynamic_config} = $value ? 1 : 0; - return 1; -} - -# Convenience command -sub static_config { - shift->dynamic_config(0); -} - -sub perl_version { - my $self = shift; - return $self->{values}->{perl_version} unless @_; - my $version = shift or die( - "Did not provide a value to perl_version()" - ); - - # Normalize the version - $version = $self->_perl_version($version); - - # We don't support the really old versions - unless ( $version >= 5.005 ) { - die "Module::Install only supports 5.005 or newer (use ExtUtils::MakeMaker)\n"; - } - - $self->{values}->{perl_version} = $version; -} - -sub all_from { - my ( $self, $file ) = @_; - - unless ( defined($file) ) { - my $name = $self->name or die( - "all_from called with no args without setting name() first" - ); - $file = join('/', 'lib', split(/-/, $name)) . '.pm'; - $file =~ s{.*/}{} unless -e $file; - unless ( -e $file ) { - die("all_from cannot find $file from $name"); - } - } - unless ( -f $file ) { - die("The path '$file' does not exist, or is not a file"); - } - - $self->{values}{all_from} = $file; - - # Some methods pull from POD instead of code. - # If there is a matching .pod, use that instead - my $pod = $file; - $pod =~ s/\.pm$/.pod/i; - $pod = $file unless -e $pod; - - # Pull the different values - $self->name_from($file) unless $self->name; - $self->version_from($file) unless $self->version; - $self->perl_version_from($file) unless $self->perl_version; - $self->author_from($pod) unless @{$self->author || []}; - $self->license_from($pod) unless $self->license; - $self->abstract_from($pod) unless $self->abstract; - - return 1; -} - -sub provides { - my $self = shift; - my $provides = ( $self->{values}->{provides} ||= {} ); - %$provides = (%$provides, @_) if @_; - return $provides; -} - -sub auto_provides { - my $self = shift; - return $self unless $self->is_admin; - unless (-e 'MANIFEST') { - warn "Cannot deduce auto_provides without a MANIFEST, skipping\n"; - return $self; - } - # Avoid spurious warnings as we are not checking manifest here. - local $SIG{__WARN__} = sub {1}; - require ExtUtils::Manifest; - local *ExtUtils::Manifest::manicheck = sub { return }; - - require Module::Build; - my $build = Module::Build->new( - dist_name => $self->name, - dist_version => $self->version, - license => $self->license, - ); - $self->provides( %{ $build->find_dist_packages || {} } ); -} - -sub feature { - my $self = shift; - my $name = shift; - my $features = ( $self->{values}->{features} ||= [] ); - my $mods; - - if ( @_ == 1 and ref( $_[0] ) ) { - # The user used ->feature like ->features by passing in the second - # argument as a reference. Accomodate for that. - $mods = $_[0]; - } else { - $mods = \@_; - } - - my $count = 0; - push @$features, ( - $name => [ - map { - ref($_) ? ( ref($_) eq 'HASH' ) ? %$_ : @$_ : $_ - } @$mods - ] - ); - - return @$features; -} - -sub features { - my $self = shift; - while ( my ( $name, $mods ) = splice( @_, 0, 2 ) ) { - $self->feature( $name, @$mods ); - } - return $self->{values}->{features} - ? @{ $self->{values}->{features} } - : (); -} - -sub no_index { - my $self = shift; - my $type = shift; - push @{ $self->{values}->{no_index}->{$type} }, @_ if $type; - return $self->{values}->{no_index}; -} - -sub read { - my $self = shift; - $self->include_deps( 'YAML::Tiny', 0 ); - - require YAML::Tiny; - my $data = YAML::Tiny::LoadFile('META.yml'); - - # Call methods explicitly in case user has already set some values. - while ( my ( $key, $value ) = each %$data ) { - next unless $self->can($key); - if ( ref $value eq 'HASH' ) { - while ( my ( $module, $version ) = each %$value ) { - $self->can($key)->($self, $module => $version ); - } - } else { - $self->can($key)->($self, $value); - } - } - return $self; -} - -sub write { - my $self = shift; - return $self unless $self->is_admin; - $self->admin->write_meta; - return $self; -} - -sub version_from { - require ExtUtils::MM_Unix; - my ( $self, $file ) = @_; - $self->version( ExtUtils::MM_Unix->parse_version($file) ); - - # for version integrity check - $self->makemaker_args( VERSION_FROM => $file ); -} - -sub abstract_from { - require ExtUtils::MM_Unix; - my ( $self, $file ) = @_; - $self->abstract( - bless( - { DISTNAME => $self->name }, - 'ExtUtils::MM_Unix' - )->parse_abstract($file) - ); -} - -# Add both distribution and module name -sub name_from { - my ($self, $file) = @_; - if ( - Module::Install::_read($file) =~ m/ - ^ \s* - package \s* - ([\w:]+) - [\s|;]* - /ixms - ) { - my ($name, $module_name) = ($1, $1); - $name =~ s{::}{-}g; - $self->name($name); - unless ( $self->module_name ) { - $self->module_name($module_name); - } - } else { - die("Cannot determine name from $file\n"); - } -} - -sub _extract_perl_version { - if ( - $_[0] =~ m/ - ^\s* - (?:use|require) \s* - v? - ([\d_\.]+) - \s* ; - /ixms - ) { - my $perl_version = $1; - $perl_version =~ s{_}{}g; - return $perl_version; - } else { - return; - } -} - -sub perl_version_from { - my $self = shift; - my $perl_version=_extract_perl_version(Module::Install::_read($_[0])); - if ($perl_version) { - $self->perl_version($perl_version); - } else { - warn "Cannot determine perl version info from $_[0]\n"; - return; - } -} - -sub author_from { - my $self = shift; - my $content = Module::Install::_read($_[0]); - if ($content =~ m/ - =head \d \s+ (?:authors?)\b \s* - ([^\n]*) - | - =head \d \s+ (?:licen[cs]e|licensing|copyright|legal)\b \s* - .*? copyright .*? \d\d\d[\d.]+ \s* (?:\bby\b)? \s* - ([^\n]*) - /ixms) { - my $author = $1 || $2; - - # XXX: ugly but should work anyway... - if (eval "require Pod::Escapes; 1") { - # Pod::Escapes has a mapping table. - # It's in core of perl >= 5.9.3, and should be installed - # as one of the Pod::Simple's prereqs, which is a prereq - # of Pod::Text 3.x (see also below). - $author =~ s{ E<( (\d+) | ([A-Za-z]+) )> } - { - defined $2 - ? chr($2) - : defined $Pod::Escapes::Name2character_number{$1} - ? chr($Pod::Escapes::Name2character_number{$1}) - : do { - warn "Unknown escape: E<$1>"; - "E<$1>"; - }; - }gex; - } - elsif (eval "require Pod::Text; 1" && $Pod::Text::VERSION < 3) { - # Pod::Text < 3.0 has yet another mapping table, - # though the table name of 2.x and 1.x are different. - # (1.x is in core of Perl < 5.6, 2.x is in core of - # Perl < 5.9.3) - my $mapping = ($Pod::Text::VERSION < 2) - ? \%Pod::Text::HTML_Escapes - : \%Pod::Text::ESCAPES; - $author =~ s{ E<( (\d+) | ([A-Za-z]+) )> } - { - defined $2 - ? chr($2) - : defined $mapping->{$1} - ? $mapping->{$1} - : do { - warn "Unknown escape: E<$1>"; - "E<$1>"; - }; - }gex; - } - else { - $author =~ s{E}{<}g; - $author =~ s{E}{>}g; - } - $self->author($author); - } else { - warn "Cannot determine author info from $_[0]\n"; - } -} - -#Stolen from M::B -my %license_urls = ( - perl => 'http://dev.perl.org/licenses/', - apache => 'http://apache.org/licenses/LICENSE-2.0', - apache_1_1 => 'http://apache.org/licenses/LICENSE-1.1', - artistic => 'http://opensource.org/licenses/artistic-license.php', - artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php', - lgpl => 'http://opensource.org/licenses/lgpl-license.php', - lgpl2 => 'http://opensource.org/licenses/lgpl-2.1.php', - lgpl3 => 'http://opensource.org/licenses/lgpl-3.0.html', - bsd => 'http://opensource.org/licenses/bsd-license.php', - gpl => 'http://opensource.org/licenses/gpl-license.php', - gpl2 => 'http://opensource.org/licenses/gpl-2.0.php', - gpl3 => 'http://opensource.org/licenses/gpl-3.0.html', - mit => 'http://opensource.org/licenses/mit-license.php', - mozilla => 'http://opensource.org/licenses/mozilla1.1.php', - open_source => undef, - unrestricted => undef, - restrictive => undef, - unknown => undef, -); - -sub license { - my $self = shift; - return $self->{values}->{license} unless @_; - my $license = shift or die( - 'Did not provide a value to license()' - ); - $license = __extract_license($license) || lc $license; - $self->{values}->{license} = $license; - - # Automatically fill in license URLs - if ( $license_urls{$license} ) { - $self->resources( license => $license_urls{$license} ); - } - - return 1; -} - -sub _extract_license { - my $pod = shift; - my $matched; - return __extract_license( - ($matched) = $pod =~ m/ - (=head \d \s+ L(?i:ICEN[CS]E|ICENSING)\b.*?) - (=head \d.*|=cut.*|)\z - /xms - ) || __extract_license( - ($matched) = $pod =~ m/ - (=head \d \s+ (?:C(?i:OPYRIGHTS?)|L(?i:EGAL))\b.*?) - (=head \d.*|=cut.*|)\z - /xms - ); -} - -sub __extract_license { - my $license_text = shift or return; - my @phrases = ( - '(?:under )?the same (?:terms|license) as (?:perl|the perl (?:\d )?programming language)' => 'perl', 1, - '(?:under )?the terms of (?:perl|the perl programming language) itself' => 'perl', 1, - 'Artistic and GPL' => 'perl', 1, - 'GNU general public license' => 'gpl', 1, - 'GNU public license' => 'gpl', 1, - 'GNU lesser general public license' => 'lgpl', 1, - 'GNU lesser public license' => 'lgpl', 1, - 'GNU library general public license' => 'lgpl', 1, - 'GNU library public license' => 'lgpl', 1, - 'GNU Free Documentation license' => 'unrestricted', 1, - 'GNU Affero General Public License' => 'open_source', 1, - '(?:Free)?BSD license' => 'bsd', 1, - 'Artistic license 2\.0' => 'artistic_2', 1, - 'Artistic license' => 'artistic', 1, - 'Apache (?:Software )?license' => 'apache', 1, - 'GPL' => 'gpl', 1, - 'LGPL' => 'lgpl', 1, - 'BSD' => 'bsd', 1, - 'Artistic' => 'artistic', 1, - 'MIT' => 'mit', 1, - 'Mozilla Public License' => 'mozilla', 1, - 'Q Public License' => 'open_source', 1, - 'OpenSSL License' => 'unrestricted', 1, - 'SSLeay License' => 'unrestricted', 1, - 'zlib License' => 'open_source', 1, - 'proprietary' => 'proprietary', 0, - ); - while ( my ($pattern, $license, $osi) = splice(@phrases, 0, 3) ) { - $pattern =~ s#\s+#\\s+#gs; - if ( $license_text =~ /\b$pattern\b/i ) { - return $license; - } - } - return ''; -} - -sub license_from { - my $self = shift; - if (my $license=_extract_license(Module::Install::_read($_[0]))) { - $self->license($license); - } else { - warn "Cannot determine license info from $_[0]\n"; - return 'unknown'; - } -} - -sub _extract_bugtracker { - my @links = $_[0] =~ m#L<( - https?\Q://rt.cpan.org/\E[^>]+| - https?\Q://github.com/\E[\w_]+/[\w_]+/issues| - https?\Q://code.google.com/p/\E[\w_\-]+/issues/list - )>#gx; - my %links; - @links{@links}=(); - @links=keys %links; - return @links; -} - -sub bugtracker_from { - my $self = shift; - my $content = Module::Install::_read($_[0]); - my @links = _extract_bugtracker($content); - unless ( @links ) { - warn "Cannot determine bugtracker info from $_[0]\n"; - return 0; - } - if ( @links > 1 ) { - warn "Found more than one bugtracker link in $_[0]\n"; - return 0; - } - - # Set the bugtracker - bugtracker( $links[0] ); - return 1; -} - -sub requires_from { - my $self = shift; - my $content = Module::Install::_readperl($_[0]); - my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+(v?[\d\.]+)/mg; - while ( @requires ) { - my $module = shift @requires; - my $version = shift @requires; - $self->requires( $module => $version ); - } -} - -sub test_requires_from { - my $self = shift; - my $content = Module::Install::_readperl($_[0]); - my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg; - while ( @requires ) { - my $module = shift @requires; - my $version = shift @requires; - $self->test_requires( $module => $version ); - } -} - -# Convert triple-part versions (eg, 5.6.1 or 5.8.9) to -# numbers (eg, 5.006001 or 5.008009). -# Also, convert double-part versions (eg, 5.8) -sub _perl_version { - my $v = $_[-1]; - $v =~ s/^([1-9])\.([1-9]\d?\d?)$/sprintf("%d.%03d",$1,$2)/e; - $v =~ s/^([1-9])\.([1-9]\d?\d?)\.(0|[1-9]\d?\d?)$/sprintf("%d.%03d%03d",$1,$2,$3 || 0)/e; - $v =~ s/(\.\d\d\d)000$/$1/; - $v =~ s/_.+$//; - if ( ref($v) ) { - # Numify - $v = $v + 0; - } - return $v; -} - -sub add_metadata { - my $self = shift; - my %hash = @_; - for my $key (keys %hash) { - warn "add_metadata: $key is not prefixed with 'x_'.\n" . - "Use appopriate function to add non-private metadata.\n" unless $key =~ /^x_/; - $self->{values}->{$key} = $hash{$key}; - } -} - - -###################################################################### -# MYMETA Support - -sub WriteMyMeta { - die "WriteMyMeta has been deprecated"; -} - -sub write_mymeta_yaml { - my $self = shift; - - # We need YAML::Tiny to write the MYMETA.yml file - unless ( eval { require YAML::Tiny; 1; } ) { - return 1; - } - - # Generate the data - my $meta = $self->_write_mymeta_data or return 1; - - # Save as the MYMETA.yml file - print "Writing MYMETA.yml\n"; - YAML::Tiny::DumpFile('MYMETA.yml', $meta); -} - -sub write_mymeta_json { - my $self = shift; - - # We need JSON to write the MYMETA.json file - unless ( eval { require JSON; 1; } ) { - return 1; - } - - # Generate the data - my $meta = $self->_write_mymeta_data or return 1; - - # Save as the MYMETA.yml file - print "Writing MYMETA.json\n"; - Module::Install::_write( - 'MYMETA.json', - JSON->new->pretty(1)->canonical->encode($meta), - ); -} - -sub _write_mymeta_data { - my $self = shift; - - # If there's no existing META.yml there is nothing we can do - return undef unless -f 'META.yml'; - - # We need Parse::CPAN::Meta to load the file - unless ( eval { require Parse::CPAN::Meta; 1; } ) { - return undef; - } - - # Merge the perl version into the dependencies - my $val = $self->Meta->{values}; - my $perl = delete $val->{perl_version}; - if ( $perl ) { - $val->{requires} ||= []; - my $requires = $val->{requires}; - - # Canonize to three-dot version after Perl 5.6 - if ( $perl >= 5.006 ) { - $perl =~ s{^(\d+)\.(\d\d\d)(\d*)}{join('.', $1, int($2||0), int($3||0))}e - } - unshift @$requires, [ perl => $perl ]; - } - - # Load the advisory META.yml file - my @yaml = Parse::CPAN::Meta::LoadFile('META.yml'); - my $meta = $yaml[0]; - - # Overwrite the non-configure dependency hashes - delete $meta->{requires}; - delete $meta->{build_requires}; - delete $meta->{recommends}; - if ( exists $val->{requires} ) { - $meta->{requires} = { map { @$_ } @{ $val->{requires} } }; - } - if ( exists $val->{build_requires} ) { - $meta->{build_requires} = { map { @$_ } @{ $val->{build_requires} } }; - } - - return $meta; -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Scripts.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Scripts.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install/Scripts.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install/Scripts.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,29 +0,0 @@ -#line 1 -package Module::Install::Scripts; - -use strict 'vars'; -use Module::Install::Base (); - -use vars qw{$VERSION @ISA $ISCORE}; -BEGIN { - $VERSION = '1.12'; - @ISA = 'Module::Install::Base'; - $ISCORE = 1; -} - -sub install_script { - my $self = shift; - my $args = $self->makemaker_args; - my $exe = $args->{EXE_FILES} ||= []; - foreach ( @_ ) { - if ( -f $_ ) { - push @$exe, $_; - } elsif ( -d 'script' and -f "script/$_" ) { - push @$exe, "script/$_"; - } else { - die("Cannot find script '$_'"); - } - } -} - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/Module/Install.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/Module/Install.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,470 +0,0 @@ -#line 1 -package Module::Install; - -# For any maintainers: -# The load order for Module::Install is a bit magic. -# It goes something like this... -# -# IF ( host has Module::Install installed, creating author mode ) { -# 1. Makefile.PL calls "use inc::Module::Install" -# 2. $INC{inc/Module/Install.pm} set to installed version of inc::Module::Install -# 3. The installed version of inc::Module::Install loads -# 4. inc::Module::Install calls "require Module::Install" -# 5. The ./inc/ version of Module::Install loads -# } ELSE { -# 1. Makefile.PL calls "use inc::Module::Install" -# 2. $INC{inc/Module/Install.pm} set to ./inc/ version of Module::Install -# 3. The ./inc/ version of Module::Install loads -# } - -use 5.006; -use strict 'vars'; -use Cwd (); -use File::Find (); -use File::Path (); - -use vars qw{$VERSION $MAIN}; -BEGIN { - # All Module::Install core packages now require synchronised versions. - # This will be used to ensure we don't accidentally load old or - # different versions of modules. - # This is not enforced yet, but will be some time in the next few - # releases once we can make sure it won't clash with custom - # Module::Install extensions. - $VERSION = '1.12'; - - # Storage for the pseudo-singleton - $MAIN = undef; - - *inc::Module::Install::VERSION = *VERSION; - @inc::Module::Install::ISA = __PACKAGE__; - -} - -sub import { - my $class = shift; - my $self = $class->new(@_); - my $who = $self->_caller; - - #------------------------------------------------------------- - # all of the following checks should be included in import(), - # to allow "eval 'require Module::Install; 1' to test - # installation of Module::Install. (RT #51267) - #------------------------------------------------------------- - - # Whether or not inc::Module::Install is actually loaded, the - # $INC{inc/Module/Install.pm} is what will still get set as long as - # the caller loaded module this in the documented manner. - # If not set, the caller may NOT have loaded the bundled version, and thus - # they may not have a MI version that works with the Makefile.PL. This would - # result in false errors or unexpected behaviour. And we don't want that. - my $file = join( '/', 'inc', split /::/, __PACKAGE__ ) . '.pm'; - unless ( $INC{$file} ) { die <<"END_DIE" } - -Please invoke ${\__PACKAGE__} with: - - use inc::${\__PACKAGE__}; - -not: - - use ${\__PACKAGE__}; - -END_DIE - - # This reportedly fixes a rare Win32 UTC file time issue, but - # as this is a non-cross-platform XS module not in the core, - # we shouldn't really depend on it. See RT #24194 for detail. - # (Also, this module only supports Perl 5.6 and above). - eval "use Win32::UTCFileTime" if $^O eq 'MSWin32' && $] >= 5.006; - - # If the script that is loading Module::Install is from the future, - # then make will detect this and cause it to re-run over and over - # again. This is bad. Rather than taking action to touch it (which - # is unreliable on some platforms and requires write permissions) - # for now we should catch this and refuse to run. - if ( -f $0 ) { - my $s = (stat($0))[9]; - - # If the modification time is only slightly in the future, - # sleep briefly to remove the problem. - my $a = $s - time; - if ( $a > 0 and $a < 5 ) { sleep 5 } - - # Too far in the future, throw an error. - my $t = time; - if ( $s > $t ) { die <<"END_DIE" } - -Your installer $0 has a modification time in the future ($s > $t). - -This is known to create infinite loops in make. - -Please correct this, then run $0 again. - -END_DIE - } - - - # Build.PL was formerly supported, but no longer is due to excessive - # difficulty in implementing every single feature twice. - if ( $0 =~ /Build.PL$/i ) { die <<"END_DIE" } - -Module::Install no longer supports Build.PL. - -It was impossible to maintain duel backends, and has been deprecated. - -Please remove all Build.PL files and only use the Makefile.PL installer. - -END_DIE - - #------------------------------------------------------------- - - # To save some more typing in Module::Install installers, every... - # use inc::Module::Install - # ...also acts as an implicit use strict. - $^H |= strict::bits(qw(refs subs vars)); - - #------------------------------------------------------------- - - unless ( -f $self->{file} ) { - foreach my $key (keys %INC) { - delete $INC{$key} if $key =~ /Module\/Install/; - } - - local $^W; - require "$self->{path}/$self->{dispatch}.pm"; - File::Path::mkpath("$self->{prefix}/$self->{author}"); - $self->{admin} = "$self->{name}::$self->{dispatch}"->new( _top => $self ); - $self->{admin}->init; - @_ = ($class, _self => $self); - goto &{"$self->{name}::import"}; - } - - local $^W; - *{"${who}::AUTOLOAD"} = $self->autoload; - $self->preload; - - # Unregister loader and worker packages so subdirs can use them again - delete $INC{'inc/Module/Install.pm'}; - delete $INC{'Module/Install.pm'}; - - # Save to the singleton - $MAIN = $self; - - return 1; -} - -sub autoload { - my $self = shift; - my $who = $self->_caller; - my $cwd = Cwd::getcwd(); - my $sym = "${who}::AUTOLOAD"; - $sym->{$cwd} = sub { - my $pwd = Cwd::getcwd(); - if ( my $code = $sym->{$pwd} ) { - # Delegate back to parent dirs - goto &$code unless $cwd eq $pwd; - } - unless ($$sym =~ s/([^:]+)$//) { - # XXX: it looks like we can't retrieve the missing function - # via $$sym (usually $main::AUTOLOAD) in this case. - # I'm still wondering if we should slurp Makefile.PL to - # get some context or not ... - my ($package, $file, $line) = caller; - die <<"EOT"; -Unknown function is found at $file line $line. -Execution of $file aborted due to runtime errors. - -If you're a contributor to a project, you may need to install -some Module::Install extensions from CPAN (or other repository). -If you're a user of a module, please contact the author. -EOT - } - my $method = $1; - if ( uc($method) eq $method ) { - # Do nothing - return; - } elsif ( $method =~ /^_/ and $self->can($method) ) { - # Dispatch to the root M:I class - return $self->$method(@_); - } - - # Dispatch to the appropriate plugin - unshift @_, ( $self, $1 ); - goto &{$self->can('call')}; - }; -} - -sub preload { - my $self = shift; - unless ( $self->{extensions} ) { - $self->load_extensions( - "$self->{prefix}/$self->{path}", $self - ); - } - - my @exts = @{$self->{extensions}}; - unless ( @exts ) { - @exts = $self->{admin}->load_all_extensions; - } - - my %seen; - foreach my $obj ( @exts ) { - while (my ($method, $glob) = each %{ref($obj) . '::'}) { - next unless $obj->can($method); - next if $method =~ /^_/; - next if $method eq uc($method); - $seen{$method}++; - } - } - - my $who = $self->_caller; - foreach my $name ( sort keys %seen ) { - local $^W; - *{"${who}::$name"} = sub { - ${"${who}::AUTOLOAD"} = "${who}::$name"; - goto &{"${who}::AUTOLOAD"}; - }; - } -} - -sub new { - my ($class, %args) = @_; - - delete $INC{'FindBin.pm'}; - { - # to suppress the redefine warning - local $SIG{__WARN__} = sub {}; - require FindBin; - } - - # ignore the prefix on extension modules built from top level. - my $base_path = Cwd::abs_path($FindBin::Bin); - unless ( Cwd::abs_path(Cwd::getcwd()) eq $base_path ) { - delete $args{prefix}; - } - return $args{_self} if $args{_self}; - - $args{dispatch} ||= 'Admin'; - $args{prefix} ||= 'inc'; - $args{author} ||= ($^O eq 'VMS' ? '_author' : '.author'); - $args{bundle} ||= 'inc/BUNDLES'; - $args{base} ||= $base_path; - $class =~ s/^\Q$args{prefix}\E:://; - $args{name} ||= $class; - $args{version} ||= $class->VERSION; - unless ( $args{path} ) { - $args{path} = $args{name}; - $args{path} =~ s!::!/!g; - } - $args{file} ||= "$args{base}/$args{prefix}/$args{path}.pm"; - $args{wrote} = 0; - - bless( \%args, $class ); -} - -sub call { - my ($self, $method) = @_; - my $obj = $self->load($method) or return; - splice(@_, 0, 2, $obj); - goto &{$obj->can($method)}; -} - -sub load { - my ($self, $method) = @_; - - $self->load_extensions( - "$self->{prefix}/$self->{path}", $self - ) unless $self->{extensions}; - - foreach my $obj (@{$self->{extensions}}) { - return $obj if $obj->can($method); - } - - my $admin = $self->{admin} or die <<"END_DIE"; -The '$method' method does not exist in the '$self->{prefix}' path! -Please remove the '$self->{prefix}' directory and run $0 again to load it. -END_DIE - - my $obj = $admin->load($method, 1); - push @{$self->{extensions}}, $obj; - - $obj; -} - -sub load_extensions { - my ($self, $path, $top) = @_; - - my $should_reload = 0; - unless ( grep { ! ref $_ and lc $_ eq lc $self->{prefix} } @INC ) { - unshift @INC, $self->{prefix}; - $should_reload = 1; - } - - foreach my $rv ( $self->find_extensions($path) ) { - my ($file, $pkg) = @{$rv}; - next if $self->{pathnames}{$pkg}; - - local $@; - my $new = eval { local $^W; require $file; $pkg->can('new') }; - unless ( $new ) { - warn $@ if $@; - next; - } - $self->{pathnames}{$pkg} = - $should_reload ? delete $INC{$file} : $INC{$file}; - push @{$self->{extensions}}, &{$new}($pkg, _top => $top ); - } - - $self->{extensions} ||= []; -} - -sub find_extensions { - my ($self, $path) = @_; - - my @found; - File::Find::find( sub { - my $file = $File::Find::name; - return unless $file =~ m!^\Q$path\E/(.+)\.pm\Z!is; - my $subpath = $1; - return if lc($subpath) eq lc($self->{dispatch}); - - $file = "$self->{path}/$subpath.pm"; - my $pkg = "$self->{name}::$subpath"; - $pkg =~ s!/!::!g; - - # If we have a mixed-case package name, assume case has been preserved - # correctly. Otherwise, root through the file to locate the case-preserved - # version of the package name. - if ( $subpath eq lc($subpath) || $subpath eq uc($subpath) ) { - my $content = Module::Install::_read($subpath . '.pm'); - my $in_pod = 0; - foreach ( split /\n/, $content ) { - $in_pod = 1 if /^=\w/; - $in_pod = 0 if /^=cut/; - next if ($in_pod || /^=cut/); # skip pod text - next if /^\s*#/; # and comments - if ( m/^\s*package\s+($pkg)\s*;/i ) { - $pkg = $1; - last; - } - } - } - - push @found, [ $file, $pkg ]; - }, $path ) if -d $path; - - @found; -} - - - - - -##################################################################### -# Common Utility Functions - -sub _caller { - my $depth = 0; - my $call = caller($depth); - while ( $call eq __PACKAGE__ ) { - $depth++; - $call = caller($depth); - } - return $call; -} - -# Done in evals to avoid confusing Perl::MinimumVersion -eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; -sub _read { - local *FH; - open( FH, '<', $_[0] ) or die "open($_[0]): $!"; - my $string = do { local $/; }; - close FH or die "close($_[0]): $!"; - return $string; -} -END_NEW -sub _read { - local *FH; - open( FH, "< $_[0]" ) or die "open($_[0]): $!"; - my $string = do { local $/; }; - close FH or die "close($_[0]): $!"; - return $string; -} -END_OLD - -sub _readperl { - my $string = Module::Install::_read($_[0]); - $string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg; - $string =~ s/(\n)\n*__(?:DATA|END)__\b.*\z/$1/s; - $string =~ s/\n\n=\w+.+?\n\n=cut\b.+?\n+/\n\n/sg; - return $string; -} - -sub _readpod { - my $string = Module::Install::_read($_[0]); - $string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg; - return $string if $_[0] =~ /\.pod\z/; - $string =~ s/(^|\n=cut\b.+?\n+)[^=\s].+?\n(\n=\w+|\z)/$1$2/sg; - $string =~ s/\n*=pod\b[^\n]*\n+/\n\n/sg; - $string =~ s/\n*=cut\b[^\n]*\n+/\n\n/sg; - $string =~ s/^\n+//s; - return $string; -} - -# Done in evals to avoid confusing Perl::MinimumVersion -eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; -sub _write { - local *FH; - open( FH, '>', $_[0] ) or die "open($_[0]): $!"; - foreach ( 1 .. $#_ ) { - print FH $_[$_] or die "print($_[0]): $!"; - } - close FH or die "close($_[0]): $!"; -} -END_NEW -sub _write { - local *FH; - open( FH, "> $_[0]" ) or die "open($_[0]): $!"; - foreach ( 1 .. $#_ ) { - print FH $_[$_] or die "print($_[0]): $!"; - } - close FH or die "close($_[0]): $!"; -} -END_OLD - -# _version is for processing module versions (eg, 1.03_05) not -# Perl versions (eg, 5.8.1). -sub _version { - my $s = shift || 0; - my $d =()= $s =~ /(\.)/g; - if ( $d >= 2 ) { - # Normalise multipart versions - $s =~ s/(\.)(\d{1,3})/sprintf("$1%03d",$2)/eg; - } - $s =~ s/^(\d+)\.?//; - my $l = $1 || 0; - my @v = map { - $_ . '0' x (3 - length $_) - } $s =~ /(\d{1,3})\D?/g; - $l = $l . '.' . join '', @v if @v; - return $l + 0; -} - -sub _cmp { - _version($_[1]) <=> _version($_[2]); -} - -# Cloned from Params::Util::_CLASS -sub _CLASS { - ( - defined $_[0] - and - ! ref $_[0] - and - $_[0] =~ m/^[^\W\d]\w*(?:::\w+)*\z/s - ) ? $_[0] : undef; -} - -1; - -# Copyright 2008 - 2012 Adam Kennedy. diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/version.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/version.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/inc/version.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/inc/version.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,79 +0,0 @@ -#line 1 -#!perl -w -package version; - -use 5.006002; -use strict; - -use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv); - -$VERSION = 0.9909; -$CLASS = 'version'; - -# avoid using Exporter -require version::regex; -*version::is_lax = \&version::regex::is_lax; -*version::is_strict = \&version::regex::is_strict; -*LAX = \$version::regex::LAX; -*STRICT = \$version::regex::STRICT; - -sub import { - no strict 'refs'; - my ($class) = shift; - - # Set up any derived class - unless ($class eq $CLASS) { - local $^W; - *{$class.'::declare'} = \&{$CLASS.'::declare'}; - *{$class.'::qv'} = \&{$CLASS.'::qv'}; - } - - my %args; - if (@_) { # any remaining terms are arguments - map { $args{$_} = 1 } @_ - } - else { # no parameters at all on use line - %args = - ( - qv => 1, - 'UNIVERSAL::VERSION' => 1, - ); - } - - my $callpkg = caller(); - - if (exists($args{declare})) { - *{$callpkg.'::declare'} = - sub {return $class->declare(shift) } - unless defined(&{$callpkg.'::declare'}); - } - - if (exists($args{qv})) { - *{$callpkg.'::qv'} = - sub {return $class->qv(shift) } - unless defined(&{$callpkg.'::qv'}); - } - - if (exists($args{'UNIVERSAL::VERSION'})) { - local $^W; - *UNIVERSAL::VERSION - = \&{$CLASS.'::_VERSION'}; - } - - if (exists($args{'VERSION'})) { - *{$callpkg.'::VERSION'} = \&{$CLASS.'::_VERSION'}; - } - - if (exists($args{'is_strict'})) { - *{$callpkg.'::is_strict'} = \&{$CLASS.'::is_strict'} - unless defined(&{$callpkg.'::is_strict'}); - } - - if (exists($args{'is_lax'})) { - *{$callpkg.'::is_lax'} = \&{$CLASS.'::is_lax'} - unless defined(&{$callpkg.'::is_lax'}); - } -} - - -1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/INSTALL nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/INSTALL --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/INSTALL 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/INSTALL 1970-01-01 00:00:00.000000000 +0000 @@ -1,73 +0,0 @@ -Build and install check_rbl - -Dependences -=========== - -check_rbl depends on several Perl modules: - - * IO::Select - * Nagios::Plugin - * Nagios::Plugin::Getopt - * Nagios::Plugin::Threshold - * Net::DNS - * Readonly - -Perl modules can be found on the "Comprehensive Perl Archive Network" -(CPAN). The "How to install CPAN modules" guide summarizes how these -can be installed - - http://www.cpan.org/modules/INSTALL.html - -On many systems Perl modules are also available as installation -packages (refer to your system documentation on how to install them). - -The 'perl Makefile.PL' command (see below) will list the missing -packages the you will need to install. - -Install to /usr/lib/nagios/plugins/contrib -========================================== - -In the source directory run: - - perl Makefile.PL - make - make install - -Install to a custom directory (CUSTOM_DIR) -========================================= - -In the source directory run: - - perl Makefile.PL INSTALLSITESCRIPT=CUSTOM_DIR - make - make install - -You can override the INSTALLSCRIPT, INSTALLNBIN or INSTALLSITESCRIPT -variable depending on your perl installation. - -The man page is installed to /usr/share/man/man1/check_rbl.1 -you can customize the path by setting INSTALLMAN1DIR as follows - - perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR INSTALLMAN1DIR=CUSTOM_MAN_DIR - make - make install - -Manual installation -=================== - -Substitute #!perl at the beginning of the script with the location of -your Perl interpreter and copy it to the desired location - -Generate the man page with pod2man - - pod2man check_rbl.pod > CUSTOM_MAN_FILE - -Please report any installation problem to or -open a ticket at -https://trac.id.ethz.ch/projects/nagios_plugins/newticket - -# File version information: -# $Id: INSTALL 1349 2014-01-30 11:18:43Z corti $ -# $Revision: 1349 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/INSTALL $ -# $Date: 2014-01-30 12:18:43 +0100 (Thu, 30 Jan 2014) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/Makefile.PL nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/Makefile.PL --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/Makefile.PL 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/Makefile.PL 1970-01-01 00:00:00.000000000 +0000 @@ -1,42 +0,0 @@ -# Load the Module::Install bundled in ./inc/ -use inc::Module::Install; - -# File version information: -# $Id: Makefile.PL 1361 2014-08-09 09:41:30Z corti $ -# $Revision: 1361 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/Makefile.PL $ -# $Date: 2014-08-09 11:41:30 +0200 (Sat, 09 Aug 2014) $ - -############################################################################## -# Define metadata (we read it from the binary) - -name 'check_rbl'; -version_from 'check_rbl'; -perl_version_from 'check_rbl'; -all_from 'check_rbl.pod'; - -############################################################################## -# Specific dependencies - -include 'version'; - -requires 'Data::Validate::Domain' => 0; -requires 'Data::Validate::IP' => 0; -requires 'Nagios::Plugin' => 0.31; -requires 'Nagios::Plugin::Getopt' => 0; -requires 'Nagios::Plugin::Threshold' => 0; -requires 'Net::DNS' => 0; -requires 'Readonly' => 0; -requires 'IO::Select' => 0; - -install_script 'check_rbl'; - -tests 't/*.t'; - -WriteMakefile( - INSTALLSCRIPT => '/usr/lib/nagios/plugins/contrib', - INSTALLSITESCRIPT => '/usr/lib/nagios/plugins/contrib', - MAN1PODS => { 'check_rbl.pod' =>'blib/man1/check_rbl.1', }, - MAN3PODS => { }, -); - diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/MANIFEST nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/MANIFEST --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/MANIFEST 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/MANIFEST 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -AUTHORS -Changes -check_rbl -check_rbl.ini -check_rbl.pod -check_rbl.spec -COPYING -COPYRIGHT -inc/Module/Install.pm -inc/Module/Install/Base.pm -inc/Module/Install/Include.pm -inc/Module/Install/Makefile.pm -inc/Module/Install/MakeMaker.pm -inc/Module/Install/Metadata.pm -inc/Module/Install/Scripts.pm -inc/version.pm -INSTALL -Makefile.PL -MANIFEST This list of files -MANIFEST.SKIP -META.yml -NEWS -README -t/00_modules.t -TODO -VERSION diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/MANIFEST.SKIP nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/MANIFEST.SKIP --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/MANIFEST.SKIP 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/MANIFEST.SKIP 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -\.DS_Store$ -^_build -^Build$ -^blib -~$ -\.bak$ -\.sw.$ -\.svn -^cover_db -^Makefile$ -^Makefile.old$ -^pm_to_blib$ -^.# -^# -^check_rbl- -notes.txt diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/META.yml nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/META.yml --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/META.yml 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/META.yml 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ ---- -abstract: ~ -author: - - 'Matteo Corti ' -build_requires: - ExtUtils::MakeMaker: 6.59 -configure_requires: - ExtUtils::MakeMaker: 6.59 -distribution_type: module -dynamic_config: 1 -generated_by: 'Module::Install version 1.12' -license: gpl -meta-spec: - url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 -name: check_rbl -no_index: - directory: - - inc - - t -requires: - Data::Validate::Domain: 0 - Data::Validate::IP: 0 - IO::Select: 0 - Nagios::Plugin: 0.31 - Nagios::Plugin::Getopt: 0 - Nagios::Plugin::Threshold: 0 - Net::DNS: 0 - Readonly: 0 - perl: 5.8.0 -resources: - license: http://opensource.org/licenses/gpl-license.php -version: 1.3.5 diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/NEWS nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/NEWS --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/NEWS 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/NEWS 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -2014-09-21: 1.3.5 - fixed the default critical and warning range -2014-09-20: 1.3.4 - parameter validation fix -2014-08-09: 1.3.3 - parameter validation -2014-01-30: 1.3.2 - documentation and dependecies update -2013-09-26: 1.3.1 - disabled embedded Perl -2011-07-11: 1.3.0 - whitelistings support -2011-03-22: 1.2.2 - bug fix release (dependencies fixed) -2010-07-05: 1.2.1 - bug fix release (see Changes) -2010-04-08: 1.2.0 - improved parallel checks and several fixes -2009-10-27: 1.1.0 - parallel checks -2009- : 1.0.2 - --retry command line argument to specify DNS retries -2009-01-06: 1.0.1 - Execution time in the performance data -2008-12-29: 1.0.0 - Initial release - -# File version information: -# $Id: NEWS 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/NEWS $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/README nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/README --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/README 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,19 +0,0 @@ -check_rbl is a Nagios plugin to check if an SMTP server is blacklisted - -Note: some blacklister as Spamhaus ban DNS queries from public DNS resolvers as Google resulting in no host being listed. If you are experiencing problems with the plugin just try the DNS query with a tool as nslookup to check your DNS configuration. - -Example: - -check_rbl -H example.org -t 60 -c 1 -w 1 -s dnsbl.ahbl.org -s cbl.anti-spam.org.cn -s cblplus.anti-spam.org.cn -s cblless.anti-spam.org.cn -s cdl.anti-spam.org.cn -s cbl.abuseat.org -s dnsbl.cyberlogic.net -s bl.deadbeef.com -s t1.dnsbl.net.au -s spamtrap.drbl.drand.net -s spamsources.fabel.dk -s 0spam.fusionzero.com -s dnsbl.isoc.bg -s mail-abuse.blacklist.jippg.org -s korea.services.net -s spamguard.leadmon.net -s ix.dnsbl.manitu.net -s relays.nether.net -s dnsbl.njabl.org -s bhnc.njabl.org -s no-more-funn.moensted.dk -s rbl.orbitrbl.com -s psbl.surriel.com -s dyna.spamrats.com -s noptr.spamrats.com -s spam.spamrats.com -s dnsbl.sorbs.net -s dul.dnsbl.sorbs.net -s old.spam.dnsbl.sorbs.net -s problems.dnsbl.sorbs.net -s safe.dnsbl.sorbs.net -s spam.dnsbl.sorbs.net -s bl.spamcannibal.org -s bl.spamcop.net -s pbl.spamhaus.org -s sbl.spamhaus.org -s xbl.spamhaus.org -s ubl.unsubscore.com -s dnsbl-1.uceprotect.net -s dnsbl-2.uceprotect.net -s dnsbl-3.uceprotect.net -s db.wpbl.info - - -Please report any bugs or feature requests to matteo.corti@id.ethz.ch, or through the -web interface at -https://trac.id.ethz.ch/projects/nagios_plugins/newticket?component=check_rbl - - -# File version information: -# $Id: README 1310 2012-08-17 05:09:32Z corti $ -# $Revision: 1310 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/README $ -# $Date: 2012-08-17 07:09:32 +0200 (Fri, 17 Aug 2012) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/t/00_modules.t nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/t/00_modules.t --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/t/00_modules.t 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/t/00_modules.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,43 +0,0 @@ -#!perl - -# $Id: README 1103 2009-12-07 07:49:19Z corti $ -# $Revision: 1103 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/README $ -# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ - -use 5.00800; - -use strict; -use warnings; - -use Test::More tests => 23; - -our $VERSION = '1.3.3'; - -use_ok('Nagios::Plugin'); -can_ok( 'Nagios::Plugin', 'new' ); -can_ok( 'Nagios::Plugin', 'nagios_exit' ); -can_ok( 'Nagios::Plugin', 'add_perfdata' ); - -use_ok('Nagios::Plugin::Getopt'); -can_ok( 'Nagios::Plugin::Getopt', 'new' ); -can_ok( 'Nagios::Plugin::Getopt', 'arg' ); -can_ok( 'Nagios::Plugin::Getopt', 'getopts' ); -can_ok( 'Nagios::Plugin::Getopt', 'get' ); - -use_ok('Nagios::Plugin::Threshold'); -can_ok( 'Nagios::Plugin::Threshold', 'new' ); -can_ok( 'Nagios::Plugin::Threshold', 'set_thresholds' ); - -use_ok('IO::Select'); -can_ok( 'IO::Select', 'new' ); -can_ok( 'IO::Select', 'count' ); -can_ok( 'IO::Select', 'can_read' ); -can_ok( 'IO::Select', 'remove' ); -can_ok( 'IO::Select', 'handles' ); - -use_ok('Net::DNS::Resolver'); -can_ok( 'Net::DNS::Resolver', 'new' ); -can_ok( 'Net::DNS::Resolver', 'can' ); -can_ok( 'Net::DNS::Resolver', 'bgsend' ); -can_ok( 'Net::DNS::Resolver', 'bgread' ); diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/TODO nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/TODO --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/TODO 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/TODO 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -* refactor mdns to reduce code complexity -* unit tests - -# File version information: -# $Id: TODO 1230 2011-03-22 06:41:47Z corti $ -# $Revision: 1230 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/TODO $ -# $Date: 2011-03-22 07:41:47 +0100 (Tue, 22 Mar 2011) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/VERSION nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/VERSION --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.5/VERSION 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.5/VERSION 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -1.3.5 - diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/AUTHORS nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/AUTHORS --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/AUTHORS 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/AUTHORS 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,14 @@ +Matteo Corti +Elan Ruusamäe (improved parallel support and several fixes) +Victor V Kudlak (parallel support) +Jan Kantert for the whitelisting support + +Please report any bugs or feature requests to matteo.corti@id.ethz.ch, or through the +web interface at +https://trac.id.ethz.ch/projects/nagios_plugins/newticket?component=check_rbl + +# File version information: +# $Id: AUTHORS 1264 2011-07-11 05:45:43Z corti $ +# $Revision: 1264 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/AUTHORS $ +# $Date: 2011-07-11 07:45:43 +0200 (Mon, 11 Jul 2011) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/Changes nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/Changes --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/Changes 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/Changes 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,95 @@ +2015-02-01 Matteo Corti + + * Version 1.3.7 + * check_rbl: switching to Monitoring::Plugin + (as Nagios::Plugin is deprecated) + +2014-12-05 Matteo Corti + + * Version 1.3.6 + * example.pl: removed unnecessary dependency on Data::Dumper + +2014-09-20 Matteo Corti + + * Version 1.3.5 + * check_rbl: fixed the default critical and warning range + +2014-09-19 Matteo Corti + + * Version 1.3.4 + * check_rbl: removed wrong test on the DNS servers + * check_rbl: fixed the threshold range + +2014-08-09 Matteo Corti + + * Version 1.3.3 + * More argument validation + +2014-01-30 Matteo Corti + + * Version 1.3.2 + * Documentation and dependencies update + +2013-09-26 Matteo Corti + + * Version 1.3.1 + * check_rbl: disabled embedded Perl + +2012-08-31 Matteo Corti + + * check_rbl: fixed a possible variable name conflict + +2012-01-25 Matteo Corti + + * Added a note on public DNS resolvers (as Google) by being banned + from Spamhaus + +2011-07-11 Matteo Corti + + * Version 1.3.0 + * check_rbl: applied patch from Jan Kantert to support whitelists + * added support for unit tests + +2011-03-22 Matteo Corti + + * Version 1.2.2 + * check_rbl: specified the dependency on Nagios::Plugin > 0.31 + (earlier versions caused parameter parsing errors, + thanks to Elan Ruusamäe) + +2010-07-05 Matteo Corti + + * Version 1.2.1 + * check_rbl: fixed a problem with operator precedence that made some + checks fail + +2010-04-07 Matteo Corti + + * Version 1.2.0 + * check_rbl: applied patch to report the hostname being checked + and increase the verbosity (#66) + * check_rbl.ini: sample configuration file + * check_rbl: removed unnecessary dependencies + * check_rbl: applied the patch from #69 (improved parallelism) + +2009-10-27 Matteo Corti + + * check_rbl: applied patch to parallelize the checks + +2009-01-22 Matteo Corti + + * check_rbl: command line argument to set the numer of tries in DNS queries + +2009-01-06 Matteo Corti + + * check_rbl: execution time in the performace data + +2008-12-29 Matteo Corti + + * check_rbl: Initial release + +# File version information: +# $Id: Changes 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/Changes $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/check_rbl nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/check_rbl --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/check_rbl 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/check_rbl 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,550 @@ +#!perl + +# nagios: -epn + +package main; + +# check_rbl is a Nagios plugin to check if an SMTP server is black- or +# white- listed +# +# See the INSTALL file for installation instructions +# +# Copyright (c) 2014, Matteo Corti +# Copyright (c) 2007, ETH Zurich. +# Copyright (c) 2010, Elan Ruusamae . +# +# This module is free software; you can redistribute it and/or modify it +# under the terms of GNU general public license (gpl) version 3. +# See the LICENSE file for details. +# +# RCS information +# enable substitution with: +# $ svn propset svn:keywords "Id Revision HeadURL Source Date" +# +# $Id: check_rbl 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ + +use strict; +use warnings; + +use 5.00800; + +use Data::Validate::Domain qw(is_hostname); +use Data::Validate::IP qw(is_ipv4 is_ipv6); +use IO::Select; +use Monitoring::Plugin; +use Monitoring::Plugin::Getopt; +use Monitoring::Plugin::Threshold; +use Net::DNS; +use Readonly; + +our $VERSION = '1.3.7'; + +Readonly our $DEFAULT_TIMEOUT => 15; +Readonly our $DEFAULT_RETRIES => 4; +Readonly our $DEFAULT_WORKERS => 20; +Readonly our $DEFAULT_QUERY_TIMEOUT => 15; + +# IMPORTANT: Nagios plugins could be executed using embedded perl in this case +# the main routine would be executed as a subroutine and all the +# declared subroutines would therefore be inner subroutines +# This will cause all the global lexical variables not to stay shared +# in the subroutines! +# +# All variables are therefore declared as package variables... +# + +## no critic (ProhibitPackageVars) +our ( @listed, @timeouts, $options, $plugin, $threshold, $timeouts_string, ); + +# the script is declared as a package so that it can be unit tested +# but it should not be used as a module +if ( !caller ) { + run(); +} + +############################################################################## +# Usage : verbose("some message string", $optional_verbosity_level); +# Purpose : write a message if the verbosity level is high enough +# Returns : n/a +# Arguments : message : message string +# level : options verbosity level +# Throws : n/a +# Comments : n/a +# See also : n/a +sub verbose { + + # arguments + my $message = shift; + my $level = shift; + + if ( !defined $message ) { + $plugin->nagios_exit( UNKNOWN, + q{Internal error: not enough parameters for 'verbose'} ); + } + + if ( !defined $level ) { + $level = 0; + } + + if ( $level < $options->verbose ) { + if ( !print $message ) { + $plugin->nagios_exit( UNKNOWN, 'Error: cannot write to STDOUT' ); + } + } + + return; + +} + +############################################################################## +# Usage : my $res = init_dns_resolver( $retries ) +# Purpose : Initializes a new DNS resolver +# Arguments : retries : number of retries +# Returns : The newly created resolver +# See also : Perl Net::DNS +sub init_dns_resolver { + + my $retries = shift; + + my $res = Net::DNS::Resolver->new(); + if ( $res->can('force_v4') ) { + $res->force_v4(1); + } + + if ($retries) { + $res->retry($retries); + } + + return $res; +} + +############################################################################## +# Usage : mdns(\@addresses, $callback) +# Purpose : Perform multiple DNS lookups in parallel +# Returns : n/a +# See also : Perl Net::DNS module mresolv in examples +# +# Resolves all IPs in C<@addresses> in parallel. +# If answer is found C<$callback> is called with arguments as: $name, $host. +# +# Author: Elan Ruusamae , (c) 1999-2010 +## no critic (ProhibitExcessComplexity) +sub mdns { + + my ( $data, $callback ) = @_; + + # number of requests to have outstanding at any time + my $workers = $options ? $options->workers() : 1; + + # timeout per query (seconds) + my $timeout = $options ? $options->get('query-timeout') : $DEFAULT_TIMEOUT; + my $debug = $options ? $options->debug() : 0; + my $res = init_dns_resolver( $options ? $options->retry() : 0 ); + + my $sel = IO::Select->new(); + my $eof = 0; + + my @addrs = @{$data}; + + my %addrs; + while (1) { + + #---------------------------------------------------------------------- + # Read names until we've filled our quota of outstanding requests. + #---------------------------------------------------------------------- + + while ( !$eof && $sel->count() < $workers ) { + + if ($debug) { + ## no critic (RequireCheckedSyscall) + print 'DEBUG: reading...'; + } + my $name = shift @addrs; + + if ( !defined $name ) { + if ($debug) { + ## no critic (RequireCheckedSyscall) + print "EOF.\n"; + } + $eof = 1; + last; + } + if ($debug) { + ## no critic (RequireCheckedSyscall) + print "NAME: $name\n"; + } + + my $sock = $res->bgsend($name); + + if ( !defined $sock ) { + verbose 'DNS query error: ' . $res->errorstring; + verbose "Skipping $name"; + } + else { + + # we store in a hash the query we made, as parsing it back from + # response gives different ip for ips with multiple hosts + $addrs{$sock} = $name; + $sel->add($sock); + if ($debug) { + ## no critic (RequireCheckedSyscall) + print "DEBUG: name = $name, outstanding = ", $sel->count(), + "\n"; + } + + } + + } + + #---------------------------------------------------------------------- + # Wait for any replies. Remove any replies from the outstanding pool. + #---------------------------------------------------------------------- + + my @ready; + my $timed_out = 1; + + if ($debug) { + ## no critic (RequireCheckedSyscall) + print "DEBUG: waiting for replies\n"; + } + + @ready = $sel->can_read($timeout); + + while (@ready) { + + $timed_out = 0; + + if ($debug) { + ## no critic (RequireCheckedSyscall) + print 'DEBUG: replies received: ', scalar @ready, "\n"; + } + + foreach my $sock (@ready) { + if ($debug) { + ## no critic (RequireCheckedSyscall) + print "DEBUG: handling a reply\n"; + } + my $addr = $addrs{$sock}; + delete $addrs{$sock}; + $sel->remove($sock); + + my $ans = $res->bgread($sock); + + my $host; + if ($ans) { + + foreach my $rr ( $ans->answer ) { + + ## no critic(ProhibitDeepNests) + if ( !( $rr->type eq 'A' ) ) { + next; + } + + $host = $rr->address; + + # take just the first answer + last; + } + } + else { + if ($debug) { + ## no critic (RequireCheckedSyscall) + print 'DEBUG: no answer: ' . $res->errorstring() . "\n"; + } + } + &{$callback}( $addr, $host ); + } + + @ready = $sel->can_read(0); + + } + + #---------------------------------------------------------------------- + # If we timed out waiting for replies, remove all entries from the + # outstanding pool. + #---------------------------------------------------------------------- + + if ($timed_out) { + if ($debug) { + ## no critic (RequireCheckedSyscall) + print "DEBUG: timeout: clearing the outstanding pool.\n"; + } + foreach my $sock ( $sel->handles() ) { + my $addr = $addrs{$sock}; + delete $addrs{$sock}; + $sel->remove($sock); + + # callback for hosts that timed out + &{$callback}( $addr, q{} ); + } + } + + if ($debug) { + ## no critic (RequireCheckedSyscall) + print 'DEBUG: outstanding = ', $sel->count(), ", eof = $eof\n"; + } + + #---------------------------------------------------------------------- + # We're done if there are no outstanding queries and we've read EOF. + #---------------------------------------------------------------------- + + last if ( $sel->count() == 0 ) && $eof; + } + + return; + +} + +############################################################################## +# Usage : validate( $hostname ); +# Purpose : check if an IP address or host name is valid +# Returns : the IP address corresponding to $hostname +# Arguments : n/a +# Throws : an UNKNOWN error if the argument is not valid +# Comments : n/a +# See also : n/a +sub validate { + + my $hostname = shift; + my $ip = $hostname; + + if ( !is_ipv4($hostname) && !is_ipv6($hostname) ) { + + if ( is_hostname($hostname) ) { + + mdns( + [$hostname], + sub { + my ( $addr, $host ) = @_; + $ip = $host; + } + ); + + if ( !$ip ) { + $plugin->nagios_exit( UNKNOWN, 'Cannot resolve ' . $hostname ); + } + + } + + if ( !$ip ) { + $plugin->nagios_exit( UNKNOWN, 'Cannot resolve ' . $options->host ); + } + + } + + return $ip; + +} + +############################################################################## +# Usage : run(); +# Purpose : main method +# Returns : n/a +# Arguments : n/a +# Throws : n/a +# Comments : n/a +# See also : n/a +sub run { + + ################################################################################ + # Initialization + + $plugin = Monitoring::Plugin->new( shortname => 'CHECK_RBL' ); + + my $time = time; + + ######################## + # Command line arguments + + $options = Monitoring::Plugin::Getopt->new( + usage => 'Usage: %s [OPTIONS]', + version => $VERSION, + url => 'https://trac.id.ethz.ch/projects/nagios_plugins', + blurb => 'Check SMTP black- or white- listing status', + ); + + $options->arg( + spec => 'critical|c=i', + help => 'Number of blacklisting servers for a critical warning', + required => 0, + default => 1, + ); + + $options->arg( + spec => 'warning|w=i', + help => 'Number of blacklisting servers for a warning', + required => 0, + default => 1, + ); + + $options->arg( + spec => 'debug|d', + help => 'Prints debugging information', + required => 0, + default => 0, + ); + + $options->arg( + spec => 'server|s=s@', + help => 'RBL server', + required => 1, + ); + + $options->arg( + spec => 'host|H=s', + help => 'SMTP server to check', + required => 1, + ); + + $options->arg( + spec => 'retry|r=i', + help => 'Number of times to try a DNS query (default is 4) ', + required => 0, + default => $DEFAULT_RETRIES, + ); + + $options->arg( + spec => 'workers=i', + help => 'Number of parallel checks', + required => 0, + default => $DEFAULT_WORKERS, + ); + + $options->arg( + spec => 'whitelistings|wl', + help => 'Check whitelistings instead of blacklistings', + required => 0, + default => 0, + ); + + $options->arg( + spec => 'query-timeout=i', + help => 'Timeout of the RBL queries', + required => 0, + default => $DEFAULT_QUERY_TIMEOUT, + ); + + $options->getopts(); + + ############### + # Sanity checks + + if ( $options->critical < $options->warning ) { + $plugin->nagios_exit( UNKNOWN, + 'critical has to be greater or equal warning' ); + } + + my $ip = validate( $options->host ); + + my @servers = @{ $options->server }; + + verbose 'Using ' . $options->timeout . " as global script timeout\n"; + alarm $options->timeout; + + ################ + # Set the limits + + # see https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT + $threshold = Monitoring::Plugin::Threshold->set_thresholds( + warning => $options->warning - 1, + critical => $options->critical - 1, + ); + + ################################################################################ + + my $nservers = scalar @servers; + + verbose 'Checking ' . $options->host . " ($ip) on $nservers server(s)\n"; + + # build address lists + my @addrs; + foreach my $server (@servers) { + ( my $local_ip = $ip ) =~ +s/(\d{1,3}) [.] (\d{1,3}) [.] (\d{1,3}) [.] (\d{1,3})/$4.$3.$2.$1.$server/mxs; + push @addrs, $local_ip; + } + + mdns( + \@addrs, + sub { + my ( $addr, $host ) = @_; + + # extract RBL we checked + $addr =~ s/^(?:\d+[.]){4}//mxs; + if ( defined $host ) { + if ( $host eq q{} ) { + push @timeouts, $addr; + } + else { + verbose "listed in $addr as $host\n"; + if ( !$options->get('whitelistings') ) { + push @listed, $addr; + } + } + } + else { + verbose "not listed in $addr\n"; + if ( $options->get('whitelistings') ) { + push @listed, $addr; + } + } + } + ); + + my $total = scalar @listed; + + my $status; + if ( $options->get('whitelistings') ) { + + $status = + $options->host + . " NOT WHITELISTED on $total " + . ( ( $total == 1 ) ? 'server' : 'servers' ) + . " of $nservers"; + } + else { + $status = + $options->host + . " BLACKLISTED on $total " + . ( ( $total == 1 ) ? 'server' : 'servers' ) + . " of $nservers"; + + } + + # append timeout info, but do not account these in status + if (@timeouts) { + $timeouts_string = scalar @timeouts; + $status = + " ($timeouts_string server" + . ( ( $timeouts_string > 1 ) ? 's' : q{} ) + . ' timed out: ' + . join( ', ', @timeouts ) . ')'; + } + + if ( $total > 0 ) { + $status .= " (@listed)"; + } + + $plugin->add_perfdata( + label => 'servers', + value => $total, + uom => q{}, + threshold => $threshold, + ); + + $plugin->add_perfdata( + label => 'time', + value => time - $time, + uom => q{s}, + ); + + $plugin->nagios_exit( $threshold->get_status($total), $status ); + + return; + +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/check_rbl.ini nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/check_rbl.ini --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/check_rbl.ini 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/check_rbl.ini 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,45 @@ +[rbl] +server=cbl.abuseat.org +server=dnsbl.cyberlogic.net +server=bl.deadbeef.com +server=spamtrap.drbl.drand.net +server=spamsources.fabel.dk +server=0spam.fusionzero.com +server=mail-abuse.blacklist.jippg.org +server=korea.services.net +server=spamguard.leadmon.net +server=ix.dnsbl.manitu.net +server=relays.nether.net +server=no-more-funn.moensted.dk +server=psbl.surriel.com +server=dyna.spamrats.com +server=noptr.spamrats.com +server=spam.spamrats.com +; this keeps all zones of sorbs excl. spam +server=dnsbl.sorbs.net +server=spam.dnsbl.sorbs.net +server=bl.spamcannibal.org +server=bl.spamcop.net +server=pbl.spamhaus.org +server=sbl.spamhaus.org +server=xbl.spamhaus.org +server=ubl.unsubscore.com +server=dnsbl-1.uceprotect.net +server=dnsbl-2.uceprotect.net +server=dnsbl-3.uceprotect.net +server=db.wpbl.info +server=access.redhawk.org +server=blacklist.sci.kun.nl +server=bl.technovision.dk +server=dnsbl.kempt.net +server=dnsbl.solid.net +server=dul.ru +server=forbidden.icm.edu.pl +server=hil.habeas.com +server=rbl.schulte.org +server=sbl-xbl.spamhaus.org + +; these are rather slow +;server=bl.csma.biz +;server=sbl.csma.biz + diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/check_rbl.pod nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/check_rbl.pod --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/check_rbl.pod 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/check_rbl.pod 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,152 @@ +# File version information: +# $Id: check_rbl.pod 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl.pod $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ + +=pod + +=head1 NAME + +C - a Nagios plugin to check if an SMTP server is blacklisted + +=head1 DESCRIPTION + +check_rbl is a Nagios plugin to check if an SMTP server is blacklisted + +=head1 VERSION + +Version 1.3.7 + +=head1 SYNOPSIS + +check_rbl [--help] [--verbose] [--version] [--timeout t] + -H hostname --server servername + [--critical n] [--warning n] [--workers n] + +=head1 REQUIRED ARGUMENTS + + -s, --server=STRING RBL server (may be repeated) + -H, --host=STRING SMTP server to check + +=head1 OPTIONS + + -?, --usage Print usage information + -h, --help Print detailed help screen + -V, --version Print version information + --extra-opts=[
[@]] Section and/or config_file from which to load extra options (may repeat) + -c, --critical=INTEGER Number of blacklisting servers for a critical warning + -w, --warning=INTEGER Number of blacklisting servers for a warning + -d, --debug Prints debugging information + -r, --retry=INTEGER Number of times to try a DNS query (default is 4) + --workers=INTEGER Number of parallel checks + --whitelistings, --wl Check whitelistings instead of blacklistings + --query-timeout=INTEGER Timeout of the RBL queries + -t, --timeout=INTEGER Seconds before plugin times out (default: 15) + -v, --verbose Show details for command-line debugging (can repeat up to 3 times) + +=head1 EXAMPLE + + check_rbl -t 30 -H matteocorti.ch -s zen.spamhaus.org -s bl.spamcop.net + +=head1 DIAGNOSTICS + +You can specify multiple --verbose options to increase the program +verbosity. --debug can be used to display the process and internals of +the querying mechanism. + +=head1 EXIT STATUS + +0 if OK, 1 in case of a warning, 2 in case of a critical status and 3 +in case of an unkown problem + +=head1 DEPENDENCIES + +check_updates depends on + +=over 4 + +=item * Data::Validate::Domain + +=item * Data::Validate::IP + +=item * Getopt::Long + +=item * IO::Select + +=item * Monitoring::Plugin + +=item * Monitoring::Plugin::Threshold + +=item * Number::Format + +=item * Net::DNS + +=item * Readonly + +=back + +=head1 CONFIGURATION + +=head1 INCOMPATIBILITIES + +None reported. + +=head1 SEE ALSO + +Nagios documentation + +=head1 BUGS AND LIMITATIONS + +No bugs have been reported. + +Please report any bugs or feature requests to matteo.corti@id.ethz.ch, +or through the web interface at +https://trac.id.ethz.ch/projects/nagios_plugins/newticket?component=check_rbl + +=head1 AUTHOR + +Matteo Corti + +=head1 LICENSE AND COPYRIGHT + +Copyright (c) 2010, Elan Ruusamae + +Copyright (c) 2008-2011, Matteo Corti + +This module is free software; you can redistribute it and/or modify it +under the terms of GNU general public license (gpl) version 3. +See the LICENSE file for details. + +=head1 DISCLAIMER OF WARRANTY + +BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT +WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER +PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE +TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + +=head1 ACKNOWLEDGMENTS + +=encoding iso-8859-1 + +Elan Ruusamäe for the improved parallel support and several fixes + +Victor V Kudlak for parallel support + +Jan Kantert for whitelistings support diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/check_rbl.spec nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/check_rbl.spec --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/check_rbl.spec 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/check_rbl.spec 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,106 @@ +################################################################################ +# File version information: +# $Id: check_rbl.spec 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl.spec $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ +################################################################################ + +%define version 1.3.7 +%define release 0 +%define sourcename check_rbl +%define packagename nagios-plugins-check-rbl +%define nagiospluginsdir %{_libdir}/nagios/plugins + +# No binaries in this package +%define debug_package %{nil} + +Summary: check_rbl is a Nagios plugin to check if an SMTP server is blacklisted +Name: %{packagename} +Obsoletes: check_rbl +Version: %{version} +Release: %{release}%{?dist} +License: GPLv3+ +Packager: Matteo Corti +Group: Applications/System +BuildRoot: %{_tmppath}/%{packagename}-%{version}-%{release}-root-%(%{__id_u} -n) +URL: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_rbl +Source: http://www.id.ethz.ch/people/allid_list/corti/%{sourcename}-%{version}.tar.gz + +# Fedora build requirement (not needed for EPEL{4,5}) +BuildRequires: perl(ExtUtils::MakeMaker) + +Requires: nagios-plugins + +%description +check_rbl is a Nagios plugin to check if an SMTP server is blacklisted + +%prep +%setup -q -n %{sourcename}-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor \ + INSTALLSCRIPT=%{nagiospluginsdir} \ + INSTALLVENDORSCRIPT=%{nagiospluginsdir} +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name "*.pod" -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} %{buildroot}/* + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc AUTHORS Changes NEWS README TODO COPYING COPYRIGHT +%{nagiospluginsdir}/%{sourcename} +%{_mandir}/man1/%{sourcename}.1* + +%changelog +* Sun Feb 1 2015 Matteo Corti - 1.3.7-0 +- Update to 1.3.7 (using Monitoring::Plugins) + +* Fri Dec 5 2014 Matteo Corti - 1.3.6-0 +- Updated to 1.3.6 (removed dependency on Data::Dumper) + +* Sat Sep 20 2014 Matteo Corti - 1.3.5-0 +- Updated to 1.3.5 + +* Fri Sep 19 2014 Matteo Corti - 1.3.4-0 +- Updated to 1.3.4 + +* Sat Aug 9 2014 Matteo Corti - 1.3.3-0 +- updated to 1.3.3 + +* Thu Jan 30 2014 Matteo Corti - 1.3.2-0 +- Dependencies and documentation update + +* Mon Jul 11 2011 Matteo Corti - 1.3.0-0 +- Updated to 1.3.0 (whitelistings support) + +* Tue Mar 22 2011 Matteo Corti - 1.2.2-0 +- Updated to 1.2.2 (bug fix) and renamed the package + +* Mon Jul 5 2010 Matteo Corti - 1.2.1-0 +- Updated to 1.2.1 (bug fix) + +* Thu Apr 8 2010 Matteo Corti - 1.2.0-0 +- Updated to 1.2.0 and imprved the SPEC file + +* Tue Oct 27 2009 Matteo Corti - 1.1.0-0 +- Updated to 1.1.0 (parallel checks) + +* Thu Jan 22 2009 Matteo Corti - 1.0.2-0 +- --retry command line argument + +* Tue Jan 6 2009 Matteo Corti - 1.0.1-0 +- Execution time in the performance data + +* Mon Dec 29 2008 Matteo Corti - 1.0.0-0 +- Initial release + diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/COPYING nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/COPYING --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/COPYING 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/COPYING 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/COPYRIGHT nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/COPYRIGHT --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/COPYRIGHT 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/COPYRIGHT 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,17 @@ +Copyright (c) 2013 Matteo Corti +Copyright (c) 2010 Elan Ruusamae +Copyright (c) 2009 ETH Zurich + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Base.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Base.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Base.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Base.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,83 @@ +#line 1 +package Module::Install::Base; + +use strict 'vars'; +use vars qw{$VERSION}; +BEGIN { + $VERSION = '1.14'; +} + +# Suspend handler for "redefined" warnings +BEGIN { + my $w = $SIG{__WARN__}; + $SIG{__WARN__} = sub { $w }; +} + +#line 42 + +sub new { + my $class = shift; + unless ( defined &{"${class}::call"} ) { + *{"${class}::call"} = sub { shift->_top->call(@_) }; + } + unless ( defined &{"${class}::load"} ) { + *{"${class}::load"} = sub { shift->_top->load(@_) }; + } + bless { @_ }, $class; +} + +#line 61 + +sub AUTOLOAD { + local $@; + my $func = eval { shift->_top->autoload } or return; + goto &$func; +} + +#line 75 + +sub _top { + $_[0]->{_top}; +} + +#line 90 + +sub admin { + $_[0]->_top->{admin} + or + Module::Install::Base::FakeAdmin->new; +} + +#line 106 + +sub is_admin { + ! $_[0]->admin->isa('Module::Install::Base::FakeAdmin'); +} + +sub DESTROY {} + +package Module::Install::Base::FakeAdmin; + +use vars qw{$VERSION}; +BEGIN { + $VERSION = $Module::Install::Base::VERSION; +} + +my $fake; + +sub new { + $fake ||= bless(\@_, $_[0]); +} + +sub AUTOLOAD {} + +sub DESTROY {} + +# Restore warning handler +BEGIN { + $SIG{__WARN__} = $SIG{__WARN__}->(); +} + +1; + +#line 159 diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Include.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Include.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Include.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Include.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,34 @@ +#line 1 +package Module::Install::Include; + +use strict; +use Module::Install::Base (); + +use vars qw{$VERSION @ISA $ISCORE}; +BEGIN { + $VERSION = '1.14'; + @ISA = 'Module::Install::Base'; + $ISCORE = 1; +} + +sub include { + shift()->admin->include(@_); +} + +sub include_deps { + shift()->admin->include_deps(@_); +} + +sub auto_include { + shift()->admin->auto_include(@_); +} + +sub auto_include_deps { + shift()->admin->auto_include_deps(@_); +} + +sub auto_include_dependent_dists { + shift()->admin->auto_include_dependent_dists(@_); +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Makefile.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Makefile.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Makefile.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Makefile.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,418 @@ +#line 1 +package Module::Install::Makefile; + +use strict 'vars'; +use ExtUtils::MakeMaker (); +use Module::Install::Base (); +use Fcntl qw/:flock :seek/; + +use vars qw{$VERSION @ISA $ISCORE}; +BEGIN { + $VERSION = '1.14'; + @ISA = 'Module::Install::Base'; + $ISCORE = 1; +} + +sub Makefile { $_[0] } + +my %seen = (); + +sub prompt { + shift; + + # Infinite loop protection + my @c = caller(); + if ( ++$seen{"$c[1]|$c[2]|$_[0]"} > 3 ) { + die "Caught an potential prompt infinite loop ($c[1]|$c[2]|$_[0])"; + } + + # In automated testing or non-interactive session, always use defaults + if ( ($ENV{AUTOMATED_TESTING} or -! -t STDIN) and ! $ENV{PERL_MM_USE_DEFAULT} ) { + local $ENV{PERL_MM_USE_DEFAULT} = 1; + goto &ExtUtils::MakeMaker::prompt; + } else { + goto &ExtUtils::MakeMaker::prompt; + } +} + +# Store a cleaned up version of the MakeMaker version, +# since we need to behave differently in a variety of +# ways based on the MM version. +my $makemaker = eval $ExtUtils::MakeMaker::VERSION; + +# If we are passed a param, do a "newer than" comparison. +# Otherwise, just return the MakeMaker version. +sub makemaker { + ( @_ < 2 or $makemaker >= eval($_[1]) ) ? $makemaker : 0 +} + +# Ripped from ExtUtils::MakeMaker 6.56, and slightly modified +# as we only need to know here whether the attribute is an array +# or a hash or something else (which may or may not be appendable). +my %makemaker_argtype = ( + C => 'ARRAY', + CONFIG => 'ARRAY', +# CONFIGURE => 'CODE', # ignore + DIR => 'ARRAY', + DL_FUNCS => 'HASH', + DL_VARS => 'ARRAY', + EXCLUDE_EXT => 'ARRAY', + EXE_FILES => 'ARRAY', + FUNCLIST => 'ARRAY', + H => 'ARRAY', + IMPORTS => 'HASH', + INCLUDE_EXT => 'ARRAY', + LIBS => 'ARRAY', # ignore '' + MAN1PODS => 'HASH', + MAN3PODS => 'HASH', + META_ADD => 'HASH', + META_MERGE => 'HASH', + PL_FILES => 'HASH', + PM => 'HASH', + PMLIBDIRS => 'ARRAY', + PMLIBPARENTDIRS => 'ARRAY', + PREREQ_PM => 'HASH', + CONFIGURE_REQUIRES => 'HASH', + SKIP => 'ARRAY', + TYPEMAPS => 'ARRAY', + XS => 'HASH', +# VERSION => ['version',''], # ignore +# _KEEP_AFTER_FLUSH => '', + + clean => 'HASH', + depend => 'HASH', + dist => 'HASH', + dynamic_lib=> 'HASH', + linkext => 'HASH', + macro => 'HASH', + postamble => 'HASH', + realclean => 'HASH', + test => 'HASH', + tool_autosplit => 'HASH', + + # special cases where you can use makemaker_append + CCFLAGS => 'APPENDABLE', + DEFINE => 'APPENDABLE', + INC => 'APPENDABLE', + LDDLFLAGS => 'APPENDABLE', + LDFROM => 'APPENDABLE', +); + +sub makemaker_args { + my ($self, %new_args) = @_; + my $args = ( $self->{makemaker_args} ||= {} ); + foreach my $key (keys %new_args) { + if ($makemaker_argtype{$key}) { + if ($makemaker_argtype{$key} eq 'ARRAY') { + $args->{$key} = [] unless defined $args->{$key}; + unless (ref $args->{$key} eq 'ARRAY') { + $args->{$key} = [$args->{$key}] + } + push @{$args->{$key}}, + ref $new_args{$key} eq 'ARRAY' + ? @{$new_args{$key}} + : $new_args{$key}; + } + elsif ($makemaker_argtype{$key} eq 'HASH') { + $args->{$key} = {} unless defined $args->{$key}; + foreach my $skey (keys %{ $new_args{$key} }) { + $args->{$key}{$skey} = $new_args{$key}{$skey}; + } + } + elsif ($makemaker_argtype{$key} eq 'APPENDABLE') { + $self->makemaker_append($key => $new_args{$key}); + } + } + else { + if (defined $args->{$key}) { + warn qq{MakeMaker attribute "$key" is overriden; use "makemaker_append" to append values\n}; + } + $args->{$key} = $new_args{$key}; + } + } + return $args; +} + +# For mm args that take multiple space-separated args, +# append an argument to the current list. +sub makemaker_append { + my $self = shift; + my $name = shift; + my $args = $self->makemaker_args; + $args->{$name} = defined $args->{$name} + ? join( ' ', $args->{$name}, @_ ) + : join( ' ', @_ ); +} + +sub build_subdirs { + my $self = shift; + my $subdirs = $self->makemaker_args->{DIR} ||= []; + for my $subdir (@_) { + push @$subdirs, $subdir; + } +} + +sub clean_files { + my $self = shift; + my $clean = $self->makemaker_args->{clean} ||= {}; + %$clean = ( + %$clean, + FILES => join ' ', grep { length $_ } ($clean->{FILES} || (), @_), + ); +} + +sub realclean_files { + my $self = shift; + my $realclean = $self->makemaker_args->{realclean} ||= {}; + %$realclean = ( + %$realclean, + FILES => join ' ', grep { length $_ } ($realclean->{FILES} || (), @_), + ); +} + +sub libs { + my $self = shift; + my $libs = ref $_[0] ? shift : [ shift ]; + $self->makemaker_args( LIBS => $libs ); +} + +sub inc { + my $self = shift; + $self->makemaker_args( INC => shift ); +} + +sub _wanted_t { +} + +sub tests_recursive { + my $self = shift; + my $dir = shift || 't'; + unless ( -d $dir ) { + die "tests_recursive dir '$dir' does not exist"; + } + my %tests = map { $_ => 1 } split / /, ($self->tests || ''); + require File::Find; + File::Find::find( + sub { /\.t$/ and -f $_ and $tests{"$File::Find::dir/*.t"} = 1 }, + $dir + ); + $self->tests( join ' ', sort keys %tests ); +} + +sub write { + my $self = shift; + die "&Makefile->write() takes no arguments\n" if @_; + + # Check the current Perl version + my $perl_version = $self->perl_version; + if ( $perl_version ) { + eval "use $perl_version; 1" + or die "ERROR: perl: Version $] is installed, " + . "but we need version >= $perl_version"; + } + + # Make sure we have a new enough MakeMaker + require ExtUtils::MakeMaker; + + if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) { + # This previous attempted to inherit the version of + # ExtUtils::MakeMaker in use by the module author, but this + # was found to be untenable as some authors build releases + # using future dev versions of EU:MM that nobody else has. + # Instead, #toolchain suggests we use 6.59 which is the most + # stable version on CPAN at time of writing and is, to quote + # ribasushi, "not terminally fucked, > and tested enough". + # TODO: We will now need to maintain this over time to push + # the version up as new versions are released. + $self->build_requires( 'ExtUtils::MakeMaker' => 6.59 ); + $self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 ); + } else { + # Allow legacy-compatibility with 5.005 by depending on the + # most recent EU:MM that supported 5.005. + $self->build_requires( 'ExtUtils::MakeMaker' => 6.36 ); + $self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 ); + } + + # Generate the MakeMaker params + my $args = $self->makemaker_args; + $args->{DISTNAME} = $self->name; + $args->{NAME} = $self->module_name || $self->name; + $args->{NAME} =~ s/-/::/g; + $args->{VERSION} = $self->version or die <<'EOT'; +ERROR: Can't determine distribution version. Please specify it +explicitly via 'version' in Makefile.PL, or set a valid $VERSION +in a module, and provide its file path via 'version_from' (or +'all_from' if you prefer) in Makefile.PL. +EOT + + if ( $self->tests ) { + my @tests = split ' ', $self->tests; + my %seen; + $args->{test} = { + TESTS => (join ' ', grep {!$seen{$_}++} @tests), + }; + } elsif ( $Module::Install::ExtraTests::use_extratests ) { + # Module::Install::ExtraTests doesn't set $self->tests and does its own tests via harness. + # So, just ignore our xt tests here. + } elsif ( -d 'xt' and ($Module::Install::AUTHOR or $ENV{RELEASE_TESTING}) ) { + $args->{test} = { + TESTS => join( ' ', map { "$_/*.t" } grep { -d $_ } qw{ t xt } ), + }; + } + if ( $] >= 5.005 ) { + $args->{ABSTRACT} = $self->abstract; + $args->{AUTHOR} = join ', ', @{$self->author || []}; + } + if ( $self->makemaker(6.10) ) { + $args->{NO_META} = 1; + #$args->{NO_MYMETA} = 1; + } + if ( $self->makemaker(6.17) and $self->sign ) { + $args->{SIGN} = 1; + } + unless ( $self->is_admin ) { + delete $args->{SIGN}; + } + if ( $self->makemaker(6.31) and $self->license ) { + $args->{LICENSE} = $self->license; + } + + my $prereq = ($args->{PREREQ_PM} ||= {}); + %$prereq = ( %$prereq, + map { @$_ } # flatten [module => version] + map { @$_ } + grep $_, + ($self->requires) + ); + + # Remove any reference to perl, PREREQ_PM doesn't support it + delete $args->{PREREQ_PM}->{perl}; + + # Merge both kinds of requires into BUILD_REQUIRES + my $build_prereq = ($args->{BUILD_REQUIRES} ||= {}); + %$build_prereq = ( %$build_prereq, + map { @$_ } # flatten [module => version] + map { @$_ } + grep $_, + ($self->configure_requires, $self->build_requires) + ); + + # Remove any reference to perl, BUILD_REQUIRES doesn't support it + delete $args->{BUILD_REQUIRES}->{perl}; + + # Delete bundled dists from prereq_pm, add it to Makefile DIR + my $subdirs = ($args->{DIR} || []); + if ($self->bundles) { + my %processed; + foreach my $bundle (@{ $self->bundles }) { + my ($mod_name, $dist_dir) = @$bundle; + delete $prereq->{$mod_name}; + $dist_dir = File::Basename::basename($dist_dir); # dir for building this module + if (not exists $processed{$dist_dir}) { + if (-d $dist_dir) { + # List as sub-directory to be processed by make + push @$subdirs, $dist_dir; + } + # Else do nothing: the module is already present on the system + $processed{$dist_dir} = undef; + } + } + } + + unless ( $self->makemaker('6.55_03') ) { + %$prereq = (%$prereq,%$build_prereq); + delete $args->{BUILD_REQUIRES}; + } + + if ( my $perl_version = $self->perl_version ) { + eval "use $perl_version; 1" + or die "ERROR: perl: Version $] is installed, " + . "but we need version >= $perl_version"; + + if ( $self->makemaker(6.48) ) { + $args->{MIN_PERL_VERSION} = $perl_version; + } + } + + if ($self->installdirs) { + warn qq{old INSTALLDIRS (probably set by makemaker_args) is overriden by installdirs\n} if $args->{INSTALLDIRS}; + $args->{INSTALLDIRS} = $self->installdirs; + } + + my %args = map { + ( $_ => $args->{$_} ) } grep {defined($args->{$_} ) + } keys %$args; + + my $user_preop = delete $args{dist}->{PREOP}; + if ( my $preop = $self->admin->preop($user_preop) ) { + foreach my $key ( keys %$preop ) { + $args{dist}->{$key} = $preop->{$key}; + } + } + + my $mm = ExtUtils::MakeMaker::WriteMakefile(%args); + $self->fix_up_makefile($mm->{FIRST_MAKEFILE} || 'Makefile'); +} + +sub fix_up_makefile { + my $self = shift; + my $makefile_name = shift; + my $top_class = ref($self->_top) || ''; + my $top_version = $self->_top->VERSION || ''; + + my $preamble = $self->preamble + ? "# Preamble by $top_class $top_version\n" + . $self->preamble + : ''; + my $postamble = "# Postamble by $top_class $top_version\n" + . ($self->postamble || ''); + + local *MAKEFILE; + open MAKEFILE, "+< $makefile_name" or die "fix_up_makefile: Couldn't open $makefile_name: $!"; + eval { flock MAKEFILE, LOCK_EX }; + my $makefile = do { local $/; }; + + $makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/$1'inc', /; + $makefile =~ s/( -I\$\(INST_ARCHLIB\))/ -Iinc$1/g; + $makefile =~ s/( "-I\$\(INST_LIB\)")/ "-Iinc"$1/g; + $makefile =~ s/^(FULLPERL = .*)/$1 "-Iinc"/m; + $makefile =~ s/^(PERL = .*)/$1 "-Iinc"/m; + + # Module::Install will never be used to build the Core Perl + # Sometimes PERL_LIB and PERL_ARCHLIB get written anyway, which breaks + # PREFIX/PERL5LIB, and thus, install_share. Blank them if they exist + $makefile =~ s/^PERL_LIB = .+/PERL_LIB =/m; + #$makefile =~ s/^PERL_ARCHLIB = .+/PERL_ARCHLIB =/m; + + # Perl 5.005 mentions PERL_LIB explicitly, so we have to remove that as well. + $makefile =~ s/(\"?)-I\$\(PERL_LIB\)\1//g; + + # XXX - This is currently unused; not sure if it breaks other MM-users + # $makefile =~ s/^pm_to_blib\s+:\s+/pm_to_blib :: /mg; + + seek MAKEFILE, 0, SEEK_SET; + truncate MAKEFILE, 0; + print MAKEFILE "$preamble$makefile$postamble" or die $!; + close MAKEFILE or die $!; + + 1; +} + +sub preamble { + my ($self, $text) = @_; + $self->{preamble} = $text . $self->{preamble} if defined $text; + $self->{preamble}; +} + +sub postamble { + my ($self, $text) = @_; + $self->{postamble} ||= $self->admin->postamble; + $self->{postamble} .= $text if defined $text; + $self->{postamble} +} + +1; + +__END__ + +#line 544 diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/MakeMaker.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/MakeMaker.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/MakeMaker.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/MakeMaker.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,56 @@ +#line 1 +package Module::Install::MakeMaker; + +use strict; +use ExtUtils::MakeMaker (); +use Module::Install::Base (); + +use vars qw{$VERSION @ISA $ISCORE}; +BEGIN { + $VERSION = '1.14'; + @ISA = 'Module::Install::Base'; + $ISCORE = 1; +} + +my $makefile = undef; + +sub WriteMakefile { + my ($self, %args) = @_; + $makefile = $self->load('Makefile'); + + # mapping between MakeMaker and META.yml keys + $args{MODULE_NAME} = $args{NAME}; + unless ( $args{NAME} = $args{DISTNAME} or ! $args{MODULE_NAME} ) { + $args{NAME} = $args{MODULE_NAME}; + $args{NAME} =~ s/::/-/g; + } + + foreach my $key ( qw{name module_name version version_from abstract author installdirs} ) { + my $value = delete($args{uc($key)}) or next; + $self->$key($value); + } + + if (my $prereq = delete($args{PREREQ_PM})) { + while (my($k,$v) = each %$prereq) { + $self->requires($k,$v); + } + } + + if (my $prereq = delete($args{BUILD_REQUIRES})) { + while (my($k,$v) = each %$prereq) { + $self->build_requires($k,$v); + } + } + + # put the remaining args to makemaker_args + $self->makemaker_args(%args); +} + +END { + if ( $makefile ) { + $makefile->write; + $makefile->Meta->write; + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Metadata.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Metadata.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Metadata.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Metadata.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,722 @@ +#line 1 +package Module::Install::Metadata; + +use strict 'vars'; +use Module::Install::Base (); + +use vars qw{$VERSION @ISA $ISCORE}; +BEGIN { + $VERSION = '1.14'; + @ISA = 'Module::Install::Base'; + $ISCORE = 1; +} + +my @boolean_keys = qw{ + sign +}; + +my @scalar_keys = qw{ + name + module_name + abstract + version + distribution_type + tests + installdirs +}; + +my @tuple_keys = qw{ + configure_requires + build_requires + requires + recommends + bundles + resources +}; + +my @resource_keys = qw{ + homepage + bugtracker + repository +}; + +my @array_keys = qw{ + keywords + author +}; + +*authors = \&author; + +sub Meta { shift } +sub Meta_BooleanKeys { @boolean_keys } +sub Meta_ScalarKeys { @scalar_keys } +sub Meta_TupleKeys { @tuple_keys } +sub Meta_ResourceKeys { @resource_keys } +sub Meta_ArrayKeys { @array_keys } + +foreach my $key ( @boolean_keys ) { + *$key = sub { + my $self = shift; + if ( defined wantarray and not @_ ) { + return $self->{values}->{$key}; + } + $self->{values}->{$key} = ( @_ ? $_[0] : 1 ); + return $self; + }; +} + +foreach my $key ( @scalar_keys ) { + *$key = sub { + my $self = shift; + return $self->{values}->{$key} if defined wantarray and !@_; + $self->{values}->{$key} = shift; + return $self; + }; +} + +foreach my $key ( @array_keys ) { + *$key = sub { + my $self = shift; + return $self->{values}->{$key} if defined wantarray and !@_; + $self->{values}->{$key} ||= []; + push @{$self->{values}->{$key}}, @_; + return $self; + }; +} + +foreach my $key ( @resource_keys ) { + *$key = sub { + my $self = shift; + unless ( @_ ) { + return () unless $self->{values}->{resources}; + return map { $_->[1] } + grep { $_->[0] eq $key } + @{ $self->{values}->{resources} }; + } + return $self->{values}->{resources}->{$key} unless @_; + my $uri = shift or die( + "Did not provide a value to $key()" + ); + $self->resources( $key => $uri ); + return 1; + }; +} + +foreach my $key ( grep { $_ ne "resources" } @tuple_keys) { + *$key = sub { + my $self = shift; + return $self->{values}->{$key} unless @_; + my @added; + while ( @_ ) { + my $module = shift or last; + my $version = shift || 0; + push @added, [ $module, $version ]; + } + push @{ $self->{values}->{$key} }, @added; + return map {@$_} @added; + }; +} + +# Resource handling +my %lc_resource = map { $_ => 1 } qw{ + homepage + license + bugtracker + repository +}; + +sub resources { + my $self = shift; + while ( @_ ) { + my $name = shift or last; + my $value = shift or next; + if ( $name eq lc $name and ! $lc_resource{$name} ) { + die("Unsupported reserved lowercase resource '$name'"); + } + $self->{values}->{resources} ||= []; + push @{ $self->{values}->{resources} }, [ $name, $value ]; + } + $self->{values}->{resources}; +} + +# Aliases for build_requires that will have alternative +# meanings in some future version of META.yml. +sub test_requires { shift->build_requires(@_) } +sub install_requires { shift->build_requires(@_) } + +# Aliases for installdirs options +sub install_as_core { $_[0]->installdirs('perl') } +sub install_as_cpan { $_[0]->installdirs('site') } +sub install_as_site { $_[0]->installdirs('site') } +sub install_as_vendor { $_[0]->installdirs('vendor') } + +sub dynamic_config { + my $self = shift; + my $value = @_ ? shift : 1; + if ( $self->{values}->{dynamic_config} ) { + # Once dynamic we never change to static, for safety + return 0; + } + $self->{values}->{dynamic_config} = $value ? 1 : 0; + return 1; +} + +# Convenience command +sub static_config { + shift->dynamic_config(0); +} + +sub perl_version { + my $self = shift; + return $self->{values}->{perl_version} unless @_; + my $version = shift or die( + "Did not provide a value to perl_version()" + ); + + # Normalize the version + $version = $self->_perl_version($version); + + # We don't support the really old versions + unless ( $version >= 5.005 ) { + die "Module::Install only supports 5.005 or newer (use ExtUtils::MakeMaker)\n"; + } + + $self->{values}->{perl_version} = $version; +} + +sub all_from { + my ( $self, $file ) = @_; + + unless ( defined($file) ) { + my $name = $self->name or die( + "all_from called with no args without setting name() first" + ); + $file = join('/', 'lib', split(/-/, $name)) . '.pm'; + $file =~ s{.*/}{} unless -e $file; + unless ( -e $file ) { + die("all_from cannot find $file from $name"); + } + } + unless ( -f $file ) { + die("The path '$file' does not exist, or is not a file"); + } + + $self->{values}{all_from} = $file; + + # Some methods pull from POD instead of code. + # If there is a matching .pod, use that instead + my $pod = $file; + $pod =~ s/\.pm$/.pod/i; + $pod = $file unless -e $pod; + + # Pull the different values + $self->name_from($file) unless $self->name; + $self->version_from($file) unless $self->version; + $self->perl_version_from($file) unless $self->perl_version; + $self->author_from($pod) unless @{$self->author || []}; + $self->license_from($pod) unless $self->license; + $self->abstract_from($pod) unless $self->abstract; + + return 1; +} + +sub provides { + my $self = shift; + my $provides = ( $self->{values}->{provides} ||= {} ); + %$provides = (%$provides, @_) if @_; + return $provides; +} + +sub auto_provides { + my $self = shift; + return $self unless $self->is_admin; + unless (-e 'MANIFEST') { + warn "Cannot deduce auto_provides without a MANIFEST, skipping\n"; + return $self; + } + # Avoid spurious warnings as we are not checking manifest here. + local $SIG{__WARN__} = sub {1}; + require ExtUtils::Manifest; + local *ExtUtils::Manifest::manicheck = sub { return }; + + require Module::Build; + my $build = Module::Build->new( + dist_name => $self->name, + dist_version => $self->version, + license => $self->license, + ); + $self->provides( %{ $build->find_dist_packages || {} } ); +} + +sub feature { + my $self = shift; + my $name = shift; + my $features = ( $self->{values}->{features} ||= [] ); + my $mods; + + if ( @_ == 1 and ref( $_[0] ) ) { + # The user used ->feature like ->features by passing in the second + # argument as a reference. Accomodate for that. + $mods = $_[0]; + } else { + $mods = \@_; + } + + my $count = 0; + push @$features, ( + $name => [ + map { + ref($_) ? ( ref($_) eq 'HASH' ) ? %$_ : @$_ : $_ + } @$mods + ] + ); + + return @$features; +} + +sub features { + my $self = shift; + while ( my ( $name, $mods ) = splice( @_, 0, 2 ) ) { + $self->feature( $name, @$mods ); + } + return $self->{values}->{features} + ? @{ $self->{values}->{features} } + : (); +} + +sub no_index { + my $self = shift; + my $type = shift; + push @{ $self->{values}->{no_index}->{$type} }, @_ if $type; + return $self->{values}->{no_index}; +} + +sub read { + my $self = shift; + $self->include_deps( 'YAML::Tiny', 0 ); + + require YAML::Tiny; + my $data = YAML::Tiny::LoadFile('META.yml'); + + # Call methods explicitly in case user has already set some values. + while ( my ( $key, $value ) = each %$data ) { + next unless $self->can($key); + if ( ref $value eq 'HASH' ) { + while ( my ( $module, $version ) = each %$value ) { + $self->can($key)->($self, $module => $version ); + } + } else { + $self->can($key)->($self, $value); + } + } + return $self; +} + +sub write { + my $self = shift; + return $self unless $self->is_admin; + $self->admin->write_meta; + return $self; +} + +sub version_from { + require ExtUtils::MM_Unix; + my ( $self, $file ) = @_; + $self->version( ExtUtils::MM_Unix->parse_version($file) ); + + # for version integrity check + $self->makemaker_args( VERSION_FROM => $file ); +} + +sub abstract_from { + require ExtUtils::MM_Unix; + my ( $self, $file ) = @_; + $self->abstract( + bless( + { DISTNAME => $self->name }, + 'ExtUtils::MM_Unix' + )->parse_abstract($file) + ); +} + +# Add both distribution and module name +sub name_from { + my ($self, $file) = @_; + if ( + Module::Install::_read($file) =~ m/ + ^ \s* + package \s* + ([\w:]+) + [\s|;]* + /ixms + ) { + my ($name, $module_name) = ($1, $1); + $name =~ s{::}{-}g; + $self->name($name); + unless ( $self->module_name ) { + $self->module_name($module_name); + } + } else { + die("Cannot determine name from $file\n"); + } +} + +sub _extract_perl_version { + if ( + $_[0] =~ m/ + ^\s* + (?:use|require) \s* + v? + ([\d_\.]+) + \s* ; + /ixms + ) { + my $perl_version = $1; + $perl_version =~ s{_}{}g; + return $perl_version; + } else { + return; + } +} + +sub perl_version_from { + my $self = shift; + my $perl_version=_extract_perl_version(Module::Install::_read($_[0])); + if ($perl_version) { + $self->perl_version($perl_version); + } else { + warn "Cannot determine perl version info from $_[0]\n"; + return; + } +} + +sub author_from { + my $self = shift; + my $content = Module::Install::_read($_[0]); + if ($content =~ m/ + =head \d \s+ (?:authors?)\b \s* + ([^\n]*) + | + =head \d \s+ (?:licen[cs]e|licensing|copyright|legal)\b \s* + .*? copyright .*? \d\d\d[\d.]+ \s* (?:\bby\b)? \s* + ([^\n]*) + /ixms) { + my $author = $1 || $2; + + # XXX: ugly but should work anyway... + if (eval "require Pod::Escapes; 1") { + # Pod::Escapes has a mapping table. + # It's in core of perl >= 5.9.3, and should be installed + # as one of the Pod::Simple's prereqs, which is a prereq + # of Pod::Text 3.x (see also below). + $author =~ s{ E<( (\d+) | ([A-Za-z]+) )> } + { + defined $2 + ? chr($2) + : defined $Pod::Escapes::Name2character_number{$1} + ? chr($Pod::Escapes::Name2character_number{$1}) + : do { + warn "Unknown escape: E<$1>"; + "E<$1>"; + }; + }gex; + } + elsif (eval "require Pod::Text; 1" && $Pod::Text::VERSION < 3) { + # Pod::Text < 3.0 has yet another mapping table, + # though the table name of 2.x and 1.x are different. + # (1.x is in core of Perl < 5.6, 2.x is in core of + # Perl < 5.9.3) + my $mapping = ($Pod::Text::VERSION < 2) + ? \%Pod::Text::HTML_Escapes + : \%Pod::Text::ESCAPES; + $author =~ s{ E<( (\d+) | ([A-Za-z]+) )> } + { + defined $2 + ? chr($2) + : defined $mapping->{$1} + ? $mapping->{$1} + : do { + warn "Unknown escape: E<$1>"; + "E<$1>"; + }; + }gex; + } + else { + $author =~ s{E}{<}g; + $author =~ s{E}{>}g; + } + $self->author($author); + } else { + warn "Cannot determine author info from $_[0]\n"; + } +} + +#Stolen from M::B +my %license_urls = ( + perl => 'http://dev.perl.org/licenses/', + apache => 'http://apache.org/licenses/LICENSE-2.0', + apache_1_1 => 'http://apache.org/licenses/LICENSE-1.1', + artistic => 'http://opensource.org/licenses/artistic-license.php', + artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php', + lgpl => 'http://opensource.org/licenses/lgpl-license.php', + lgpl2 => 'http://opensource.org/licenses/lgpl-2.1.php', + lgpl3 => 'http://opensource.org/licenses/lgpl-3.0.html', + bsd => 'http://opensource.org/licenses/bsd-license.php', + gpl => 'http://opensource.org/licenses/gpl-license.php', + gpl2 => 'http://opensource.org/licenses/gpl-2.0.php', + gpl3 => 'http://opensource.org/licenses/gpl-3.0.html', + mit => 'http://opensource.org/licenses/mit-license.php', + mozilla => 'http://opensource.org/licenses/mozilla1.1.php', + open_source => undef, + unrestricted => undef, + restrictive => undef, + unknown => undef, +); + +sub license { + my $self = shift; + return $self->{values}->{license} unless @_; + my $license = shift or die( + 'Did not provide a value to license()' + ); + $license = __extract_license($license) || lc $license; + $self->{values}->{license} = $license; + + # Automatically fill in license URLs + if ( $license_urls{$license} ) { + $self->resources( license => $license_urls{$license} ); + } + + return 1; +} + +sub _extract_license { + my $pod = shift; + my $matched; + return __extract_license( + ($matched) = $pod =~ m/ + (=head \d \s+ L(?i:ICEN[CS]E|ICENSING)\b.*?) + (=head \d.*|=cut.*|)\z + /xms + ) || __extract_license( + ($matched) = $pod =~ m/ + (=head \d \s+ (?:C(?i:OPYRIGHTS?)|L(?i:EGAL))\b.*?) + (=head \d.*|=cut.*|)\z + /xms + ); +} + +sub __extract_license { + my $license_text = shift or return; + my @phrases = ( + '(?:under )?the same (?:terms|license) as (?:perl|the perl (?:\d )?programming language)' => 'perl', 1, + '(?:under )?the terms of (?:perl|the perl programming language) itself' => 'perl', 1, + 'Artistic and GPL' => 'perl', 1, + 'GNU general public license' => 'gpl', 1, + 'GNU public license' => 'gpl', 1, + 'GNU lesser general public license' => 'lgpl', 1, + 'GNU lesser public license' => 'lgpl', 1, + 'GNU library general public license' => 'lgpl', 1, + 'GNU library public license' => 'lgpl', 1, + 'GNU Free Documentation license' => 'unrestricted', 1, + 'GNU Affero General Public License' => 'open_source', 1, + '(?:Free)?BSD license' => 'bsd', 1, + 'Artistic license 2\.0' => 'artistic_2', 1, + 'Artistic license' => 'artistic', 1, + 'Apache (?:Software )?license' => 'apache', 1, + 'GPL' => 'gpl', 1, + 'LGPL' => 'lgpl', 1, + 'BSD' => 'bsd', 1, + 'Artistic' => 'artistic', 1, + 'MIT' => 'mit', 1, + 'Mozilla Public License' => 'mozilla', 1, + 'Q Public License' => 'open_source', 1, + 'OpenSSL License' => 'unrestricted', 1, + 'SSLeay License' => 'unrestricted', 1, + 'zlib License' => 'open_source', 1, + 'proprietary' => 'proprietary', 0, + ); + while ( my ($pattern, $license, $osi) = splice(@phrases, 0, 3) ) { + $pattern =~ s#\s+#\\s+#gs; + if ( $license_text =~ /\b$pattern\b/i ) { + return $license; + } + } + return ''; +} + +sub license_from { + my $self = shift; + if (my $license=_extract_license(Module::Install::_read($_[0]))) { + $self->license($license); + } else { + warn "Cannot determine license info from $_[0]\n"; + return 'unknown'; + } +} + +sub _extract_bugtracker { + my @links = $_[0] =~ m#L<( + https?\Q://rt.cpan.org/\E[^>]+| + https?\Q://github.com/\E[\w_]+/[\w_]+/issues| + https?\Q://code.google.com/p/\E[\w_\-]+/issues/list + )>#gx; + my %links; + @links{@links}=(); + @links=keys %links; + return @links; +} + +sub bugtracker_from { + my $self = shift; + my $content = Module::Install::_read($_[0]); + my @links = _extract_bugtracker($content); + unless ( @links ) { + warn "Cannot determine bugtracker info from $_[0]\n"; + return 0; + } + if ( @links > 1 ) { + warn "Found more than one bugtracker link in $_[0]\n"; + return 0; + } + + # Set the bugtracker + bugtracker( $links[0] ); + return 1; +} + +sub requires_from { + my $self = shift; + my $content = Module::Install::_readperl($_[0]); + my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+(v?[\d\.]+)/mg; + while ( @requires ) { + my $module = shift @requires; + my $version = shift @requires; + $self->requires( $module => $version ); + } +} + +sub test_requires_from { + my $self = shift; + my $content = Module::Install::_readperl($_[0]); + my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg; + while ( @requires ) { + my $module = shift @requires; + my $version = shift @requires; + $self->test_requires( $module => $version ); + } +} + +# Convert triple-part versions (eg, 5.6.1 or 5.8.9) to +# numbers (eg, 5.006001 or 5.008009). +# Also, convert double-part versions (eg, 5.8) +sub _perl_version { + my $v = $_[-1]; + $v =~ s/^([1-9])\.([1-9]\d?\d?)$/sprintf("%d.%03d",$1,$2)/e; + $v =~ s/^([1-9])\.([1-9]\d?\d?)\.(0|[1-9]\d?\d?)$/sprintf("%d.%03d%03d",$1,$2,$3 || 0)/e; + $v =~ s/(\.\d\d\d)000$/$1/; + $v =~ s/_.+$//; + if ( ref($v) ) { + # Numify + $v = $v + 0; + } + return $v; +} + +sub add_metadata { + my $self = shift; + my %hash = @_; + for my $key (keys %hash) { + warn "add_metadata: $key is not prefixed with 'x_'.\n" . + "Use appopriate function to add non-private metadata.\n" unless $key =~ /^x_/; + $self->{values}->{$key} = $hash{$key}; + } +} + + +###################################################################### +# MYMETA Support + +sub WriteMyMeta { + die "WriteMyMeta has been deprecated"; +} + +sub write_mymeta_yaml { + my $self = shift; + + # We need YAML::Tiny to write the MYMETA.yml file + unless ( eval { require YAML::Tiny; 1; } ) { + return 1; + } + + # Generate the data + my $meta = $self->_write_mymeta_data or return 1; + + # Save as the MYMETA.yml file + print "Writing MYMETA.yml\n"; + YAML::Tiny::DumpFile('MYMETA.yml', $meta); +} + +sub write_mymeta_json { + my $self = shift; + + # We need JSON to write the MYMETA.json file + unless ( eval { require JSON; 1; } ) { + return 1; + } + + # Generate the data + my $meta = $self->_write_mymeta_data or return 1; + + # Save as the MYMETA.yml file + print "Writing MYMETA.json\n"; + Module::Install::_write( + 'MYMETA.json', + JSON->new->pretty(1)->canonical->encode($meta), + ); +} + +sub _write_mymeta_data { + my $self = shift; + + # If there's no existing META.yml there is nothing we can do + return undef unless -f 'META.yml'; + + # We need Parse::CPAN::Meta to load the file + unless ( eval { require Parse::CPAN::Meta; 1; } ) { + return undef; + } + + # Merge the perl version into the dependencies + my $val = $self->Meta->{values}; + my $perl = delete $val->{perl_version}; + if ( $perl ) { + $val->{requires} ||= []; + my $requires = $val->{requires}; + + # Canonize to three-dot version after Perl 5.6 + if ( $perl >= 5.006 ) { + $perl =~ s{^(\d+)\.(\d\d\d)(\d*)}{join('.', $1, int($2||0), int($3||0))}e + } + unshift @$requires, [ perl => $perl ]; + } + + # Load the advisory META.yml file + my @yaml = Parse::CPAN::Meta::LoadFile('META.yml'); + my $meta = $yaml[0]; + + # Overwrite the non-configure dependency hashes + delete $meta->{requires}; + delete $meta->{build_requires}; + delete $meta->{recommends}; + if ( exists $val->{requires} ) { + $meta->{requires} = { map { @$_ } @{ $val->{requires} } }; + } + if ( exists $val->{build_requires} ) { + $meta->{build_requires} = { map { @$_ } @{ $val->{build_requires} } }; + } + + return $meta; +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Scripts.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Scripts.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install/Scripts.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install/Scripts.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,29 @@ +#line 1 +package Module::Install::Scripts; + +use strict 'vars'; +use Module::Install::Base (); + +use vars qw{$VERSION @ISA $ISCORE}; +BEGIN { + $VERSION = '1.14'; + @ISA = 'Module::Install::Base'; + $ISCORE = 1; +} + +sub install_script { + my $self = shift; + my $args = $self->makemaker_args; + my $exe = $args->{EXE_FILES} ||= []; + foreach ( @_ ) { + if ( -f $_ ) { + push @$exe, $_; + } elsif ( -d 'script' and -f "script/$_" ) { + push @$exe, "script/$_"; + } else { + die("Cannot find script '$_'"); + } + } +} + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/Module/Install.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/Module/Install.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,474 @@ +#line 1 +package Module::Install; + +# For any maintainers: +# The load order for Module::Install is a bit magic. +# It goes something like this... +# +# IF ( host has Module::Install installed, creating author mode ) { +# 1. Makefile.PL calls "use inc::Module::Install" +# 2. $INC{inc/Module/Install.pm} set to installed version of inc::Module::Install +# 3. The installed version of inc::Module::Install loads +# 4. inc::Module::Install calls "require Module::Install" +# 5. The ./inc/ version of Module::Install loads +# } ELSE { +# 1. Makefile.PL calls "use inc::Module::Install" +# 2. $INC{inc/Module/Install.pm} set to ./inc/ version of Module::Install +# 3. The ./inc/ version of Module::Install loads +# } + +use 5.006; +use strict 'vars'; +use Cwd (); +use File::Find (); +use File::Path (); + +use vars qw{$VERSION $MAIN}; +BEGIN { + # All Module::Install core packages now require synchronised versions. + # This will be used to ensure we don't accidentally load old or + # different versions of modules. + # This is not enforced yet, but will be some time in the next few + # releases once we can make sure it won't clash with custom + # Module::Install extensions. + $VERSION = '1.14'; + + # Storage for the pseudo-singleton + $MAIN = undef; + + *inc::Module::Install::VERSION = *VERSION; + @inc::Module::Install::ISA = __PACKAGE__; + +} + +sub import { + my $class = shift; + my $self = $class->new(@_); + my $who = $self->_caller; + + #------------------------------------------------------------- + # all of the following checks should be included in import(), + # to allow "eval 'require Module::Install; 1' to test + # installation of Module::Install. (RT #51267) + #------------------------------------------------------------- + + # Whether or not inc::Module::Install is actually loaded, the + # $INC{inc/Module/Install.pm} is what will still get set as long as + # the caller loaded module this in the documented manner. + # If not set, the caller may NOT have loaded the bundled version, and thus + # they may not have a MI version that works with the Makefile.PL. This would + # result in false errors or unexpected behaviour. And we don't want that. + my $file = join( '/', 'inc', split /::/, __PACKAGE__ ) . '.pm'; + unless ( $INC{$file} ) { die <<"END_DIE" } + +Please invoke ${\__PACKAGE__} with: + + use inc::${\__PACKAGE__}; + +not: + + use ${\__PACKAGE__}; + +END_DIE + + # This reportedly fixes a rare Win32 UTC file time issue, but + # as this is a non-cross-platform XS module not in the core, + # we shouldn't really depend on it. See RT #24194 for detail. + # (Also, this module only supports Perl 5.6 and above). + eval "use Win32::UTCFileTime" if $^O eq 'MSWin32' && $] >= 5.006; + + # If the script that is loading Module::Install is from the future, + # then make will detect this and cause it to re-run over and over + # again. This is bad. Rather than taking action to touch it (which + # is unreliable on some platforms and requires write permissions) + # for now we should catch this and refuse to run. + if ( -f $0 ) { + my $s = (stat($0))[9]; + + # If the modification time is only slightly in the future, + # sleep briefly to remove the problem. + my $a = $s - time; + if ( $a > 0 and $a < 5 ) { sleep 5 } + + # Too far in the future, throw an error. + my $t = time; + if ( $s > $t ) { die <<"END_DIE" } + +Your installer $0 has a modification time in the future ($s > $t). + +This is known to create infinite loops in make. + +Please correct this, then run $0 again. + +END_DIE + } + + + # Build.PL was formerly supported, but no longer is due to excessive + # difficulty in implementing every single feature twice. + if ( $0 =~ /Build.PL$/i ) { die <<"END_DIE" } + +Module::Install no longer supports Build.PL. + +It was impossible to maintain duel backends, and has been deprecated. + +Please remove all Build.PL files and only use the Makefile.PL installer. + +END_DIE + + #------------------------------------------------------------- + + # To save some more typing in Module::Install installers, every... + # use inc::Module::Install + # ...also acts as an implicit use strict. + $^H |= strict::bits(qw(refs subs vars)); + + #------------------------------------------------------------- + + unless ( -f $self->{file} ) { + foreach my $key (keys %INC) { + delete $INC{$key} if $key =~ /Module\/Install/; + } + + local $^W; + require "$self->{path}/$self->{dispatch}.pm"; + File::Path::mkpath("$self->{prefix}/$self->{author}"); + $self->{admin} = "$self->{name}::$self->{dispatch}"->new( _top => $self ); + $self->{admin}->init; + @_ = ($class, _self => $self); + goto &{"$self->{name}::import"}; + } + + local $^W; + *{"${who}::AUTOLOAD"} = $self->autoload; + $self->preload; + + # Unregister loader and worker packages so subdirs can use them again + delete $INC{'inc/Module/Install.pm'}; + delete $INC{'Module/Install.pm'}; + + # Save to the singleton + $MAIN = $self; + + return 1; +} + +sub autoload { + my $self = shift; + my $who = $self->_caller; + my $cwd = Cwd::getcwd(); + my $sym = "${who}::AUTOLOAD"; + $sym->{$cwd} = sub { + my $pwd = Cwd::getcwd(); + if ( my $code = $sym->{$pwd} ) { + # Delegate back to parent dirs + goto &$code unless $cwd eq $pwd; + } + unless ($$sym =~ s/([^:]+)$//) { + # XXX: it looks like we can't retrieve the missing function + # via $$sym (usually $main::AUTOLOAD) in this case. + # I'm still wondering if we should slurp Makefile.PL to + # get some context or not ... + my ($package, $file, $line) = caller; + die <<"EOT"; +Unknown function is found at $file line $line. +Execution of $file aborted due to runtime errors. + +If you're a contributor to a project, you may need to install +some Module::Install extensions from CPAN (or other repository). +If you're a user of a module, please contact the author. +EOT + } + my $method = $1; + if ( uc($method) eq $method ) { + # Do nothing + return; + } elsif ( $method =~ /^_/ and $self->can($method) ) { + # Dispatch to the root M:I class + return $self->$method(@_); + } + + # Dispatch to the appropriate plugin + unshift @_, ( $self, $1 ); + goto &{$self->can('call')}; + }; +} + +sub preload { + my $self = shift; + unless ( $self->{extensions} ) { + $self->load_extensions( + "$self->{prefix}/$self->{path}", $self + ); + } + + my @exts = @{$self->{extensions}}; + unless ( @exts ) { + @exts = $self->{admin}->load_all_extensions; + } + + my %seen; + foreach my $obj ( @exts ) { + while (my ($method, $glob) = each %{ref($obj) . '::'}) { + next unless $obj->can($method); + next if $method =~ /^_/; + next if $method eq uc($method); + $seen{$method}++; + } + } + + my $who = $self->_caller; + foreach my $name ( sort keys %seen ) { + local $^W; + *{"${who}::$name"} = sub { + ${"${who}::AUTOLOAD"} = "${who}::$name"; + goto &{"${who}::AUTOLOAD"}; + }; + } +} + +sub new { + my ($class, %args) = @_; + + delete $INC{'FindBin.pm'}; + { + # to suppress the redefine warning + local $SIG{__WARN__} = sub {}; + require FindBin; + } + + # ignore the prefix on extension modules built from top level. + my $base_path = Cwd::abs_path($FindBin::Bin); + unless ( Cwd::abs_path(Cwd::getcwd()) eq $base_path ) { + delete $args{prefix}; + } + return $args{_self} if $args{_self}; + + $args{dispatch} ||= 'Admin'; + $args{prefix} ||= 'inc'; + $args{author} ||= ($^O eq 'VMS' ? '_author' : '.author'); + $args{bundle} ||= 'inc/BUNDLES'; + $args{base} ||= $base_path; + $class =~ s/^\Q$args{prefix}\E:://; + $args{name} ||= $class; + $args{version} ||= $class->VERSION; + unless ( $args{path} ) { + $args{path} = $args{name}; + $args{path} =~ s!::!/!g; + } + $args{file} ||= "$args{base}/$args{prefix}/$args{path}.pm"; + $args{wrote} = 0; + + bless( \%args, $class ); +} + +sub call { + my ($self, $method) = @_; + my $obj = $self->load($method) or return; + splice(@_, 0, 2, $obj); + goto &{$obj->can($method)}; +} + +sub load { + my ($self, $method) = @_; + + $self->load_extensions( + "$self->{prefix}/$self->{path}", $self + ) unless $self->{extensions}; + + foreach my $obj (@{$self->{extensions}}) { + return $obj if $obj->can($method); + } + + my $admin = $self->{admin} or die <<"END_DIE"; +The '$method' method does not exist in the '$self->{prefix}' path! +Please remove the '$self->{prefix}' directory and run $0 again to load it. +END_DIE + + my $obj = $admin->load($method, 1); + push @{$self->{extensions}}, $obj; + + $obj; +} + +sub load_extensions { + my ($self, $path, $top) = @_; + + my $should_reload = 0; + unless ( grep { ! ref $_ and lc $_ eq lc $self->{prefix} } @INC ) { + unshift @INC, $self->{prefix}; + $should_reload = 1; + } + + foreach my $rv ( $self->find_extensions($path) ) { + my ($file, $pkg) = @{$rv}; + next if $self->{pathnames}{$pkg}; + + local $@; + my $new = eval { local $^W; require $file; $pkg->can('new') }; + unless ( $new ) { + warn $@ if $@; + next; + } + $self->{pathnames}{$pkg} = + $should_reload ? delete $INC{$file} : $INC{$file}; + push @{$self->{extensions}}, &{$new}($pkg, _top => $top ); + } + + $self->{extensions} ||= []; +} + +sub find_extensions { + my ($self, $path) = @_; + + my @found; + File::Find::find( sub { + my $file = $File::Find::name; + return unless $file =~ m!^\Q$path\E/(.+)\.pm\Z!is; + my $subpath = $1; + return if lc($subpath) eq lc($self->{dispatch}); + + $file = "$self->{path}/$subpath.pm"; + my $pkg = "$self->{name}::$subpath"; + $pkg =~ s!/!::!g; + + # If we have a mixed-case package name, assume case has been preserved + # correctly. Otherwise, root through the file to locate the case-preserved + # version of the package name. + if ( $subpath eq lc($subpath) || $subpath eq uc($subpath) ) { + my $content = Module::Install::_read($subpath . '.pm'); + my $in_pod = 0; + foreach ( split /\n/, $content ) { + $in_pod = 1 if /^=\w/; + $in_pod = 0 if /^=cut/; + next if ($in_pod || /^=cut/); # skip pod text + next if /^\s*#/; # and comments + if ( m/^\s*package\s+($pkg)\s*;/i ) { + $pkg = $1; + last; + } + } + } + + push @found, [ $file, $pkg ]; + }, $path ) if -d $path; + + @found; +} + + + + + +##################################################################### +# Common Utility Functions + +sub _caller { + my $depth = 0; + my $call = caller($depth); + while ( $call eq __PACKAGE__ ) { + $depth++; + $call = caller($depth); + } + return $call; +} + +# Done in evals to avoid confusing Perl::MinimumVersion +eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; +sub _read { + local *FH; + open( FH, '<', $_[0] ) or die "open($_[0]): $!"; + binmode FH; + my $string = do { local $/; }; + close FH or die "close($_[0]): $!"; + return $string; +} +END_NEW +sub _read { + local *FH; + open( FH, "< $_[0]" ) or die "open($_[0]): $!"; + binmode FH; + my $string = do { local $/; }; + close FH or die "close($_[0]): $!"; + return $string; +} +END_OLD + +sub _readperl { + my $string = Module::Install::_read($_[0]); + $string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg; + $string =~ s/(\n)\n*__(?:DATA|END)__\b.*\z/$1/s; + $string =~ s/\n\n=\w+.+?\n\n=cut\b.+?\n+/\n\n/sg; + return $string; +} + +sub _readpod { + my $string = Module::Install::_read($_[0]); + $string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg; + return $string if $_[0] =~ /\.pod\z/; + $string =~ s/(^|\n=cut\b.+?\n+)[^=\s].+?\n(\n=\w+|\z)/$1$2/sg; + $string =~ s/\n*=pod\b[^\n]*\n+/\n\n/sg; + $string =~ s/\n*=cut\b[^\n]*\n+/\n\n/sg; + $string =~ s/^\n+//s; + return $string; +} + +# Done in evals to avoid confusing Perl::MinimumVersion +eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; +sub _write { + local *FH; + open( FH, '>', $_[0] ) or die "open($_[0]): $!"; + binmode FH; + foreach ( 1 .. $#_ ) { + print FH $_[$_] or die "print($_[0]): $!"; + } + close FH or die "close($_[0]): $!"; +} +END_NEW +sub _write { + local *FH; + open( FH, "> $_[0]" ) or die "open($_[0]): $!"; + binmode FH; + foreach ( 1 .. $#_ ) { + print FH $_[$_] or die "print($_[0]): $!"; + } + close FH or die "close($_[0]): $!"; +} +END_OLD + +# _version is for processing module versions (eg, 1.03_05) not +# Perl versions (eg, 5.8.1). +sub _version { + my $s = shift || 0; + my $d =()= $s =~ /(\.)/g; + if ( $d >= 2 ) { + # Normalise multipart versions + $s =~ s/(\.)(\d{1,3})/sprintf("$1%03d",$2)/eg; + } + $s =~ s/^(\d+)\.?//; + my $l = $1 || 0; + my @v = map { + $_ . '0' x (3 - length $_) + } $s =~ /(\d{1,3})\D?/g; + $l = $l . '.' . join '', @v if @v; + return $l + 0; +} + +sub _cmp { + _version($_[1]) <=> _version($_[2]); +} + +# Cloned from Params::Util::_CLASS +sub _CLASS { + ( + defined $_[0] + and + ! ref $_[0] + and + $_[0] =~ m/^[^\W\d]\w*(?:::\w+)*\z/s + ) ? $_[0] : undef; +} + +1; + +# Copyright 2008 - 2012 Adam Kennedy. diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/version.pm nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/version.pm --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/inc/version.pm 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/inc/version.pm 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,127 @@ +#line 1 +#!perl -w +package version; + +use 5.006002; +use strict; +use warnings::register; +if ($] >= 5.015) { + warnings::register_categories(qw/version/); +} + +use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv); + +$VERSION = 0.9912; +$CLASS = 'version'; + +# !!!!Delete this next block completely when adding to Perl core!!!! +{ + local $SIG{'__DIE__'}; + eval "use version::vxs $VERSION"; + if ( $@ ) { # don't have the XS version installed + eval "use version::vpp $VERSION"; # don't tempt fate + die "$@" if ( $@ ); + push @ISA, "version::vpp"; + local $^W; + *version::qv = \&version::vpp::qv; + *version::declare = \&version::vpp::declare; + *version::_VERSION = \&version::vpp::_VERSION; + *version::vcmp = \&version::vpp::vcmp; + *version::new = \&version::vpp::new; + *version::numify = \&version::vpp::numify; + *version::normal = \&version::vpp::normal; + if ($] >= 5.009000) { + no strict 'refs'; + *version::stringify = \&version::vpp::stringify; + *{'version::(""'} = \&version::vpp::stringify; + *{'version::(<=>'} = \&version::vpp::vcmp; + *version::parse = \&version::vpp::parse; + } + } + else { # use XS module + push @ISA, "version::vxs"; + local $^W; + *version::declare = \&version::vxs::declare; + *version::qv = \&version::vxs::qv; + *version::_VERSION = \&version::vxs::_VERSION; + *version::vcmp = \&version::vxs::VCMP; + *version::new = \&version::vxs::new; + *version::numify = \&version::vxs::numify; + *version::normal = \&version::vxs::normal; + if ($] >= 5.009000) { + no strict 'refs'; + *version::stringify = \&version::vxs::stringify; + *{'version::(""'} = \&version::vxs::stringify; + *{'version::(<=>'} = \&version::vxs::VCMP; + *version::parse = \&version::vxs::parse; + } + } +} + +# avoid using Exporter +require version::regex; +*version::is_lax = \&version::regex::is_lax; +*version::is_strict = \&version::regex::is_strict; +*LAX = \$version::regex::LAX; +*STRICT = \$version::regex::STRICT; + +sub import { + no strict 'refs'; + my ($class) = shift; + + # Set up any derived class + unless ($class eq $CLASS) { + local $^W; + *{$class.'::declare'} = \&{$CLASS.'::declare'}; + *{$class.'::qv'} = \&{$CLASS.'::qv'}; + } + + my %args; + if (@_) { # any remaining terms are arguments + map { $args{$_} = 1 } @_ + } + else { # no parameters at all on use line + %args = + ( + qv => 1, + 'UNIVERSAL::VERSION' => 1, + ); + } + + my $callpkg = caller(); + + if (exists($args{declare})) { + *{$callpkg.'::declare'} = + sub {return $class->declare(shift) } + unless defined(&{$callpkg.'::declare'}); + } + + if (exists($args{qv})) { + *{$callpkg.'::qv'} = + sub {return $class->qv(shift) } + unless defined(&{$callpkg.'::qv'}); + } + + if (exists($args{'UNIVERSAL::VERSION'})) { + local $^W; + *UNIVERSAL::VERSION + = \&{$CLASS.'::_VERSION'}; + } + + if (exists($args{'VERSION'})) { + *{$callpkg.'::VERSION'} = \&{$CLASS.'::_VERSION'}; + } + + if (exists($args{'is_strict'})) { + *{$callpkg.'::is_strict'} = \&{$CLASS.'::is_strict'} + unless defined(&{$callpkg.'::is_strict'}); + } + + if (exists($args{'is_lax'})) { + *{$callpkg.'::is_lax'} = \&{$CLASS.'::is_lax'} + unless defined(&{$callpkg.'::is_lax'}); + } +} + + +1; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/INSTALL nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/INSTALL --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/INSTALL 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/INSTALL 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,73 @@ +Build and install check_rbl + +Dependences +=========== + +check_rbl depends on several Perl modules: + + * IO::Select + * Monitoring::Plugin + * Monitoring::Plugin::Getopt + * Monitoring::Plugin::Threshold + * Net::DNS + * Readonly + +Perl modules can be found on the "Comprehensive Perl Archive Network" +(CPAN). The "How to install CPAN modules" guide summarizes how these +can be installed + + http://www.cpan.org/modules/INSTALL.html + +On many systems Perl modules are also available as installation +packages (refer to your system documentation on how to install them). + +The 'perl Makefile.PL' command (see below) will list the missing +packages the you will need to install. + +Install to /usr/lib/nagios/plugins/contrib +========================================== + +In the source directory run: + + perl Makefile.PL + make + make install + +Install to a custom directory (CUSTOM_DIR) +========================================= + +In the source directory run: + + perl Makefile.PL INSTALLSITESCRIPT=CUSTOM_DIR + make + make install + +You can override the INSTALLSCRIPT, INSTALLNBIN or INSTALLSITESCRIPT +variable depending on your perl installation. + +The man page is installed to /usr/share/man/man1/check_rbl.1 +you can customize the path by setting INSTALLMAN1DIR as follows + + perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR INSTALLMAN1DIR=CUSTOM_MAN_DIR + make + make install + +Manual installation +=================== + +Substitute #!perl at the beginning of the script with the location of +your Perl interpreter and copy it to the desired location + +Generate the man page with pod2man + + pod2man check_rbl.pod > CUSTOM_MAN_FILE + +Please report any installation problem to or +open a ticket at +https://trac.id.ethz.ch/projects/nagios_plugins/newticket + +# File version information: +# $Id: INSTALL 1404 2015-01-09 16:56:58Z corti $ +# $Revision: 1404 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/INSTALL $ +# $Date: 2015-01-09 17:56:58 +0100 (Fri, 09 Jan 2015) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/Makefile.PL nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/Makefile.PL --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/Makefile.PL 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/Makefile.PL 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,42 @@ +# Load the Module::Install bundled in ./inc/ +use inc::Module::Install; + +# File version information: +# $Id: Makefile.PL 1404 2015-01-09 16:56:58Z corti $ +# $Revision: 1404 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/Makefile.PL $ +# $Date: 2015-01-09 17:56:58 +0100 (Fri, 09 Jan 2015) $ + +############################################################################## +# Define metadata (we read it from the binary) + +name 'check_rbl'; +version_from 'check_rbl'; +perl_version_from 'check_rbl'; +all_from 'check_rbl.pod'; + +############################################################################## +# Specific dependencies + +include 'version'; + +requires 'Data::Validate::Domain' => 0; +requires 'Data::Validate::IP' => 0; +requires 'Monitoring::Plugin' => 0; +requires 'Monitoring::Plugin::Getopt' => 0; +requires 'Monitoring::Plugin::Threshold' => 0; +requires 'Net::DNS' => 0; +requires 'Readonly' => 0; +requires 'IO::Select' => 0; + +install_script 'check_rbl'; + +tests 't/*.t'; + +WriteMakefile( + INSTALLSCRIPT => '/usr/lib/nagios/plugins/contrib', + INSTALLSITESCRIPT => '/usr/lib/nagios/plugins/contrib', + MAN1PODS => { 'check_rbl.pod' =>'blib/man1/check_rbl.1', }, + MAN3PODS => { }, +); + diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/MANIFEST nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/MANIFEST --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/MANIFEST 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/MANIFEST 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,26 @@ +AUTHORS +Changes +check_rbl +check_rbl.ini +check_rbl.pod +check_rbl.spec +COPYING +COPYRIGHT +inc/Module/Install.pm +inc/Module/Install/Base.pm +inc/Module/Install/Include.pm +inc/Module/Install/Makefile.pm +inc/Module/Install/MakeMaker.pm +inc/Module/Install/Metadata.pm +inc/Module/Install/Scripts.pm +inc/version.pm +INSTALL +Makefile.PL +MANIFEST This list of files +MANIFEST.SKIP +META.yml +NEWS +README +t/00_modules.t +TODO +VERSION diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/MANIFEST.SKIP nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/MANIFEST.SKIP --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/MANIFEST.SKIP 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/MANIFEST.SKIP 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,16 @@ +\.DS_Store$ +^_build +^Build$ +^blib +~$ +\.bak$ +\.sw.$ +\.svn +^cover_db +^Makefile$ +^Makefile.old$ +^pm_to_blib$ +^.# +^# +^check_rbl- +notes.txt diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/META.yml nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/META.yml --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/META.yml 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/META.yml 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,33 @@ +--- +abstract: ~ +author: + - 'Matteo Corti ' +build_requires: + ExtUtils::MakeMaker: 6.59 +configure_requires: + ExtUtils::MakeMaker: 6.59 +distribution_type: module +dynamic_config: 1 +generated_by: 'Module::Install version 1.14' +license: gpl +meta-spec: + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 +name: check_rbl +no_index: + directory: + - inc + - t +requires: + Data::Validate::Domain: 0 + Data::Validate::IP: 0 + IO::Select: 0 + Monitoring::Plugin: 0 + Monitoring::Plugin::Getopt: 0 + Monitoring::Plugin::Threshold: 0 + Net::DNS: 0 + Readonly: 0 + perl: 5.8.0 +resources: + license: http://opensource.org/licenses/gpl-license.php +version: 1.3.7 diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/NEWS nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/NEWS --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/NEWS 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/NEWS 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,22 @@ +2015-02-01: 1.3.7 - now depends on Monitoring::Plugins (Nagios::Plugins + is deprecated) +2014-12-05: 1.3.6 - removed dependency on Data::Dumper +2014-09-21: 1.3.5 - fixed the default critical and warning range +2014-09-20: 1.3.4 - parameter validation fix +2014-08-09: 1.3.3 - parameter validation +2014-01-30: 1.3.2 - documentation and dependecies update +2013-09-26: 1.3.1 - disabled embedded Perl +2011-07-11: 1.3.0 - whitelistings support +2011-03-22: 1.2.2 - bug fix release (dependencies fixed) +2010-07-05: 1.2.1 - bug fix release (see Changes) +2010-04-08: 1.2.0 - improved parallel checks and several fixes +2009-10-27: 1.1.0 - parallel checks +2009- : 1.0.2 - --retry command line argument to specify DNS retries +2009-01-06: 1.0.1 - Execution time in the performance data +2008-12-29: 1.0.0 - Initial release + +# File version information: +# $Id: NEWS 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/NEWS $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/README nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/README --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/README 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/README 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,19 @@ +check_rbl is a Nagios plugin to check if an SMTP server is blacklisted + +Note: some blacklister as Spamhaus ban DNS queries from public DNS resolvers as Google resulting in no host being listed. If you are experiencing problems with the plugin just try the DNS query with a tool as nslookup to check your DNS configuration. + +Example: + +check_rbl -H example.org -t 60 -c 1 -w 1 -s cbl.anti-spam.org.cn -s cblplus.anti-spam.org.cn -s cblless.anti-spam.org.cn -s cdl.anti-spam.org.cn -s cbl.abuseat.org -s dnsbl.cyberlogic.net -s bl.deadbeef.com -s t1.dnsbl.net.au -s spamtrap.drbl.drand.net -s spamsources.fabel.dk -s 0spam.fusionzero.com -s mail-abuse.blacklist.jippg.org -s korea.services.net -s spamguard.leadmon.net -s ix.dnsbl.manitu.net -s relays.nether.net -s no-more-funn.moensted.dk -s psbl.surriel.com -s dyna.spamrats.com -s noptr.spamrats.com -s spam.spamrats.com -s dnsbl.sorbs.net -s dul.dnsbl.sorbs.net -s old.spam.dnsbl.sorbs.net -s problems.dnsbl.sorbs.net -s safe.dnsbl.sorbs.net -s spam.dnsbl.sorbs.net -s bl.spamcannibal.org -s bl.spamcop.net -s pbl.spamhaus.org -s sbl.spamhaus.org -s xbl.spamhaus.org -s ubl.unsubscore.com -s dnsbl-1.uceprotect.net -s dnsbl-2.uceprotect.net -s dnsbl-3.uceprotect.net -s db.wpbl.info + + +Please report any bugs or feature requests to matteo.corti@id.ethz.ch, or through the +web interface at +https://trac.id.ethz.ch/projects/nagios_plugins/newticket?component=check_rbl + + +# File version information: +# $Id: README 1426 2015-01-12 09:06:32Z corti $ +# $Revision: 1426 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/README $ +# $Date: 2015-01-12 10:06:32 +0100 (Mon, 12 Jan 2015) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/t/00_modules.t nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/t/00_modules.t --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/t/00_modules.t 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/t/00_modules.t 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,43 @@ +#!perl + +# $Id: README 1103 2009-12-07 07:49:19Z corti $ +# $Revision: 1103 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/README $ +# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ + +use 5.00800; + +use strict; +use warnings; + +use Test::More tests => 23; + +our $VERSION = '1.3.7'; + +use_ok('Monitoring::Plugin'); +can_ok( 'Monitoring::Plugin', 'new' ); +can_ok( 'Monitoring::Plugin', 'nagios_exit' ); +can_ok( 'Monitoring::Plugin', 'add_perfdata' ); + +use_ok('Monitoring::Plugin::Getopt'); +can_ok( 'Monitoring::Plugin::Getopt', 'new' ); +can_ok( 'Monitoring::Plugin::Getopt', 'arg' ); +can_ok( 'Monitoring::Plugin::Getopt', 'getopts' ); +can_ok( 'Monitoring::Plugin::Getopt', 'get' ); + +use_ok('Monitoring::Plugin::Threshold'); +can_ok( 'Monitoring::Plugin::Threshold', 'new' ); +can_ok( 'Monitoring::Plugin::Threshold', 'set_thresholds' ); + +use_ok('IO::Select'); +can_ok( 'IO::Select', 'new' ); +can_ok( 'IO::Select', 'count' ); +can_ok( 'IO::Select', 'can_read' ); +can_ok( 'IO::Select', 'remove' ); +can_ok( 'IO::Select', 'handles' ); + +use_ok('Net::DNS::Resolver'); +can_ok( 'Net::DNS::Resolver', 'new' ); +can_ok( 'Net::DNS::Resolver', 'can' ); +can_ok( 'Net::DNS::Resolver', 'bgsend' ); +can_ok( 'Net::DNS::Resolver', 'bgread' ); diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/TODO nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/TODO --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/TODO 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/TODO 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,8 @@ +* refactor mdns to reduce code complexity +* unit tests + +# File version information: +# $Id: TODO 1230 2011-03-22 06:41:47Z corti $ +# $Revision: 1230 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/TODO $ +# $Date: 2011-03-22 07:41:47 +0100 (Tue, 22 Mar 2011) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/VERSION nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/VERSION --- nagios-plugins-contrib-14.20141104/check_rbl/check_rbl-1.3.7/VERSION 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/check_rbl-1.3.7/VERSION 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,2 @@ +1.3.7 + diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/control nagios-plugins-contrib-16.20151226/check_rbl/control --- nagios-plugins-contrib-14.20141104/check_rbl/control 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,6 +1,6 @@ Uploaders: Bernd Zeimetz Recommends: libnagios-plugin-perl (>= 0.31), libreadonly-perl, libnet-dns-perl, libdata-validate-domain-perl, libdata-validate-ip-perl -Version: 1.3.5 +Version: 1.3.7 Homepage: https://svn.id.ethz.ch/projects/nagios_plugins/wiki/check_rbl Watch: https://svn.id.ethz.ch/projects/nagios_plugins/wiki/check_rbl check_rbl-([0-9.]+)\.tar\.gz Description: plugin to check if a server is blacklisted diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/Changes nagios-plugins-contrib-16.20151226/check_rbl/src/Changes --- nagios-plugins-contrib-14.20141104/check_rbl/src/Changes 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/Changes 2015-12-26 17:20:34.000000000 +0000 @@ -1,3 +1,14 @@ +2015-02-01 Matteo Corti + + * Version 1.3.7 + * check_rbl: switching to Monitoring::Plugin + (as Nagios::Plugin is deprecated) + +2014-12-05 Matteo Corti + + * Version 1.3.6 + * example.pl: removed unnecessary dependency on Data::Dumper + 2014-09-20 Matteo Corti * Version 1.3.5 @@ -78,7 +89,7 @@ * check_rbl: Initial release # File version information: -# $Id: Changes 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ +# $Id: Changes 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/Changes $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/check_rbl nagios-plugins-contrib-16.20151226/check_rbl/src/check_rbl --- nagios-plugins-contrib-14.20141104/check_rbl/src/check_rbl 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/check_rbl 2015-12-26 17:20:34.000000000 +0000 @@ -21,27 +21,26 @@ # enable substitution with: # $ svn propset svn:keywords "Id Revision HeadURL Source Date" # -# $Id: check_rbl 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ +# $Id: check_rbl 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ use strict; use warnings; use 5.00800; -use Data::Dumper; use Data::Validate::Domain qw(is_hostname); use Data::Validate::IP qw(is_ipv4 is_ipv6); use IO::Select; -use Nagios::Plugin 0.31; -use Nagios::Plugin::Getopt; -use Nagios::Plugin::Threshold; +use Monitoring::Plugin; +use Monitoring::Plugin::Getopt; +use Monitoring::Plugin::Threshold; use Net::DNS; use Readonly; -our $VERSION = '1.3.5'; +our $VERSION = '1.3.7'; Readonly our $DEFAULT_TIMEOUT => 15; Readonly our $DEFAULT_RETRIES => 4; @@ -353,14 +352,14 @@ ################################################################################ # Initialization - $plugin = Nagios::Plugin->new( shortname => 'CHECK_RBL' ); + $plugin = Monitoring::Plugin->new( shortname => 'CHECK_RBL' ); my $time = time; ######################## # Command line arguments - $options = Nagios::Plugin::Getopt->new( + $options = Monitoring::Plugin::Getopt->new( usage => 'Usage: %s [OPTIONS]', version => $VERSION, url => 'https://trac.id.ethz.ch/projects/nagios_plugins', @@ -449,7 +448,7 @@ # Set the limits # see https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT - $threshold = Nagios::Plugin::Threshold->set_thresholds( + $threshold = Monitoring::Plugin::Threshold->set_thresholds( warning => $options->warning - 1, critical => $options->critical - 1, ); diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/check_rbl.ini nagios-plugins-contrib-16.20151226/check_rbl/src/check_rbl.ini --- nagios-plugins-contrib-14.20141104/check_rbl/src/check_rbl.ini 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/check_rbl.ini 2015-12-26 17:20:34.000000000 +0000 @@ -1,5 +1,4 @@ [rbl] -server=dnsbl.ahbl.org server=cbl.abuseat.org server=dnsbl.cyberlogic.net server=bl.deadbeef.com @@ -11,10 +10,7 @@ server=spamguard.leadmon.net server=ix.dnsbl.manitu.net server=relays.nether.net -server=dnsbl.njabl.org -server=bhnc.njabl.org server=no-more-funn.moensted.dk -server=rbl.orbitrbl.com server=psbl.surriel.com server=dyna.spamrats.com server=noptr.spamrats.com diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/check_rbl.pod nagios-plugins-contrib-16.20151226/check_rbl/src/check_rbl.pod --- nagios-plugins-contrib-14.20141104/check_rbl/src/check_rbl.pod 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/check_rbl.pod 2015-12-26 17:20:34.000000000 +0000 @@ -1,8 +1,8 @@ # File version information: -# $Id: check_rbl.pod 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ +# $Id: check_rbl.pod 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl.pod $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ =pod @@ -16,7 +16,7 @@ =head1 VERSION -Version 1.3.5 +Version 1.3.7 =head1 SYNOPSIS @@ -74,9 +74,9 @@ =item * IO::Select -=item * Nagios::Plugin +=item * Monitoring::Plugin -=item * Nagios::Plugin::Threshold +=item * Monitoring::Plugin::Threshold =item * Number::Format diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/check_rbl.spec nagios-plugins-contrib-16.20151226/check_rbl/src/check_rbl.spec --- nagios-plugins-contrib-14.20141104/check_rbl/src/check_rbl.spec 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/check_rbl.spec 2015-12-26 17:20:34.000000000 +0000 @@ -1,12 +1,12 @@ ################################################################################ # File version information: -# $Id: check_rbl.spec 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ +# $Id: check_rbl.spec 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/check_rbl.spec $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ ################################################################################ -%define version 1.3.5 +%define version 1.3.7 %define release 0 %define sourcename check_rbl %define packagename nagios-plugins-check-rbl @@ -62,6 +62,12 @@ %{_mandir}/man1/%{sourcename}.1* %changelog +* Sun Feb 1 2015 Matteo Corti - 1.3.7-0 +- Update to 1.3.7 (using Monitoring::Plugins) + +* Fri Dec 5 2014 Matteo Corti - 1.3.6-0 +- Updated to 1.3.6 (removed dependency on Data::Dumper) + * Sat Sep 20 2014 Matteo Corti - 1.3.5-0 - Updated to 1.3.5 diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Base.pm nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Base.pm --- nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Base.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Base.pm 2015-12-26 17:20:34.000000000 +0000 @@ -4,7 +4,7 @@ use strict 'vars'; use vars qw{$VERSION}; BEGIN { - $VERSION = '1.12'; + $VERSION = '1.14'; } # Suspend handler for "redefined" warnings diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Include.pm nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Include.pm --- nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Include.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Include.pm 2015-12-26 17:20:34.000000000 +0000 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.12'; + $VERSION = '1.14'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Makefile.pm nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Makefile.pm --- nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Makefile.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Makefile.pm 2015-12-26 17:20:34.000000000 +0000 @@ -8,7 +8,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.12'; + $VERSION = '1.14'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/MakeMaker.pm nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/MakeMaker.pm --- nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/MakeMaker.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/MakeMaker.pm 2015-12-26 17:20:34.000000000 +0000 @@ -7,7 +7,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.12'; + $VERSION = '1.14'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Metadata.pm nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Metadata.pm --- nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Metadata.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Metadata.pm 2015-12-26 17:20:34.000000000 +0000 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.12'; + $VERSION = '1.14'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Scripts.pm nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Scripts.pm --- nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install/Scripts.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install/Scripts.pm 2015-12-26 17:20:34.000000000 +0000 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.12'; + $VERSION = '1.14'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install.pm nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install.pm --- nagios-plugins-contrib-14.20141104/check_rbl/src/inc/Module/Install.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/inc/Module/Install.pm 2015-12-26 17:20:34.000000000 +0000 @@ -31,7 +31,7 @@ # This is not enforced yet, but will be some time in the next few # releases once we can make sure it won't clash with custom # Module::Install extensions. - $VERSION = '1.12'; + $VERSION = '1.14'; # Storage for the pseudo-singleton $MAIN = undef; @@ -378,6 +378,7 @@ sub _read { local *FH; open( FH, '<', $_[0] ) or die "open($_[0]): $!"; + binmode FH; my $string = do { local $/; }; close FH or die "close($_[0]): $!"; return $string; @@ -386,6 +387,7 @@ sub _read { local *FH; open( FH, "< $_[0]" ) or die "open($_[0]): $!"; + binmode FH; my $string = do { local $/; }; close FH or die "close($_[0]): $!"; return $string; @@ -416,6 +418,7 @@ sub _write { local *FH; open( FH, '>', $_[0] ) or die "open($_[0]): $!"; + binmode FH; foreach ( 1 .. $#_ ) { print FH $_[$_] or die "print($_[0]): $!"; } @@ -425,6 +428,7 @@ sub _write { local *FH; open( FH, "> $_[0]" ) or die "open($_[0]): $!"; + binmode FH; foreach ( 1 .. $#_ ) { print FH $_[$_] or die "print($_[0]): $!"; } diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/inc/version.pm nagios-plugins-contrib-16.20151226/check_rbl/src/inc/version.pm --- nagios-plugins-contrib-14.20141104/check_rbl/src/inc/version.pm 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/inc/version.pm 2015-12-26 17:20:34.000000000 +0000 @@ -4,12 +4,60 @@ use 5.006002; use strict; +use warnings::register; +if ($] >= 5.015) { + warnings::register_categories(qw/version/); +} use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv); -$VERSION = 0.9909; +$VERSION = 0.9912; $CLASS = 'version'; +# !!!!Delete this next block completely when adding to Perl core!!!! +{ + local $SIG{'__DIE__'}; + eval "use version::vxs $VERSION"; + if ( $@ ) { # don't have the XS version installed + eval "use version::vpp $VERSION"; # don't tempt fate + die "$@" if ( $@ ); + push @ISA, "version::vpp"; + local $^W; + *version::qv = \&version::vpp::qv; + *version::declare = \&version::vpp::declare; + *version::_VERSION = \&version::vpp::_VERSION; + *version::vcmp = \&version::vpp::vcmp; + *version::new = \&version::vpp::new; + *version::numify = \&version::vpp::numify; + *version::normal = \&version::vpp::normal; + if ($] >= 5.009000) { + no strict 'refs'; + *version::stringify = \&version::vpp::stringify; + *{'version::(""'} = \&version::vpp::stringify; + *{'version::(<=>'} = \&version::vpp::vcmp; + *version::parse = \&version::vpp::parse; + } + } + else { # use XS module + push @ISA, "version::vxs"; + local $^W; + *version::declare = \&version::vxs::declare; + *version::qv = \&version::vxs::qv; + *version::_VERSION = \&version::vxs::_VERSION; + *version::vcmp = \&version::vxs::VCMP; + *version::new = \&version::vxs::new; + *version::numify = \&version::vxs::numify; + *version::normal = \&version::vxs::normal; + if ($] >= 5.009000) { + no strict 'refs'; + *version::stringify = \&version::vxs::stringify; + *{'version::(""'} = \&version::vxs::stringify; + *{'version::(<=>'} = \&version::vxs::VCMP; + *version::parse = \&version::vxs::parse; + } + } +} + # avoid using Exporter require version::regex; *version::is_lax = \&version::regex::is_lax; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/INSTALL nagios-plugins-contrib-16.20151226/check_rbl/src/INSTALL --- nagios-plugins-contrib-14.20141104/check_rbl/src/INSTALL 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/INSTALL 2015-12-26 17:20:34.000000000 +0000 @@ -6,9 +6,9 @@ check_rbl depends on several Perl modules: * IO::Select - * Nagios::Plugin - * Nagios::Plugin::Getopt - * Nagios::Plugin::Threshold + * Monitoring::Plugin + * Monitoring::Plugin::Getopt + * Monitoring::Plugin::Threshold * Net::DNS * Readonly @@ -67,7 +67,7 @@ https://trac.id.ethz.ch/projects/nagios_plugins/newticket # File version information: -# $Id: INSTALL 1349 2014-01-30 11:18:43Z corti $ -# $Revision: 1349 $ +# $Id: INSTALL 1404 2015-01-09 16:56:58Z corti $ +# $Revision: 1404 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/INSTALL $ -# $Date: 2014-01-30 12:18:43 +0100 (Thu, 30 Jan 2014) $ +# $Date: 2015-01-09 17:56:58 +0100 (Fri, 09 Jan 2015) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/Makefile.PL nagios-plugins-contrib-16.20151226/check_rbl/src/Makefile.PL --- nagios-plugins-contrib-14.20141104/check_rbl/src/Makefile.PL 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/Makefile.PL 2015-12-26 17:20:34.000000000 +0000 @@ -2,10 +2,10 @@ use inc::Module::Install; # File version information: -# $Id: Makefile.PL 1361 2014-08-09 09:41:30Z corti $ -# $Revision: 1361 $ +# $Id: Makefile.PL 1404 2015-01-09 16:56:58Z corti $ +# $Revision: 1404 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/Makefile.PL $ -# $Date: 2014-08-09 11:41:30 +0200 (Sat, 09 Aug 2014) $ +# $Date: 2015-01-09 17:56:58 +0100 (Fri, 09 Jan 2015) $ ############################################################################## # Define metadata (we read it from the binary) @@ -20,14 +20,14 @@ include 'version'; -requires 'Data::Validate::Domain' => 0; -requires 'Data::Validate::IP' => 0; -requires 'Nagios::Plugin' => 0.31; -requires 'Nagios::Plugin::Getopt' => 0; -requires 'Nagios::Plugin::Threshold' => 0; -requires 'Net::DNS' => 0; -requires 'Readonly' => 0; -requires 'IO::Select' => 0; +requires 'Data::Validate::Domain' => 0; +requires 'Data::Validate::IP' => 0; +requires 'Monitoring::Plugin' => 0; +requires 'Monitoring::Plugin::Getopt' => 0; +requires 'Monitoring::Plugin::Threshold' => 0; +requires 'Net::DNS' => 0; +requires 'Readonly' => 0; +requires 'IO::Select' => 0; install_script 'check_rbl'; diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/META.yml nagios-plugins-contrib-16.20151226/check_rbl/src/META.yml --- nagios-plugins-contrib-14.20141104/check_rbl/src/META.yml 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/META.yml 2015-12-26 17:20:34.000000000 +0000 @@ -8,7 +8,7 @@ ExtUtils::MakeMaker: 6.59 distribution_type: module dynamic_config: 1 -generated_by: 'Module::Install version 1.12' +generated_by: 'Module::Install version 1.14' license: gpl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -22,12 +22,12 @@ Data::Validate::Domain: 0 Data::Validate::IP: 0 IO::Select: 0 - Nagios::Plugin: 0.31 - Nagios::Plugin::Getopt: 0 - Nagios::Plugin::Threshold: 0 + Monitoring::Plugin: 0 + Monitoring::Plugin::Getopt: 0 + Monitoring::Plugin::Threshold: 0 Net::DNS: 0 Readonly: 0 perl: 5.8.0 resources: license: http://opensource.org/licenses/gpl-license.php -version: 1.3.5 +version: 1.3.7 diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/NEWS nagios-plugins-contrib-16.20151226/check_rbl/src/NEWS --- nagios-plugins-contrib-14.20141104/check_rbl/src/NEWS 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/NEWS 2015-12-26 17:20:34.000000000 +0000 @@ -1,3 +1,6 @@ +2015-02-01: 1.3.7 - now depends on Monitoring::Plugins (Nagios::Plugins + is deprecated) +2014-12-05: 1.3.6 - removed dependency on Data::Dumper 2014-09-21: 1.3.5 - fixed the default critical and warning range 2014-09-20: 1.3.4 - parameter validation fix 2014-08-09: 1.3.3 - parameter validation @@ -13,7 +16,7 @@ 2008-12-29: 1.0.0 - Initial release # File version information: -# $Id: NEWS 1369 2014-09-20 17:40:12Z corti $ -# $Revision: 1369 $ +# $Id: NEWS 1428 2015-02-01 12:22:40Z corti $ +# $Revision: 1428 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/NEWS $ -# $Date: 2014-09-20 19:40:12 +0200 (Sat, 20 Sep 2014) $ +# $Date: 2015-02-01 13:22:40 +0100 (Sun, 01 Feb 2015) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/README nagios-plugins-contrib-16.20151226/check_rbl/src/README --- nagios-plugins-contrib-14.20141104/check_rbl/src/README 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/README 2015-12-26 17:20:34.000000000 +0000 @@ -4,7 +4,7 @@ Example: -check_rbl -H example.org -t 60 -c 1 -w 1 -s dnsbl.ahbl.org -s cbl.anti-spam.org.cn -s cblplus.anti-spam.org.cn -s cblless.anti-spam.org.cn -s cdl.anti-spam.org.cn -s cbl.abuseat.org -s dnsbl.cyberlogic.net -s bl.deadbeef.com -s t1.dnsbl.net.au -s spamtrap.drbl.drand.net -s spamsources.fabel.dk -s 0spam.fusionzero.com -s dnsbl.isoc.bg -s mail-abuse.blacklist.jippg.org -s korea.services.net -s spamguard.leadmon.net -s ix.dnsbl.manitu.net -s relays.nether.net -s dnsbl.njabl.org -s bhnc.njabl.org -s no-more-funn.moensted.dk -s rbl.orbitrbl.com -s psbl.surriel.com -s dyna.spamrats.com -s noptr.spamrats.com -s spam.spamrats.com -s dnsbl.sorbs.net -s dul.dnsbl.sorbs.net -s old.spam.dnsbl.sorbs.net -s problems.dnsbl.sorbs.net -s safe.dnsbl.sorbs.net -s spam.dnsbl.sorbs.net -s bl.spamcannibal.org -s bl.spamcop.net -s pbl.spamhaus.org -s sbl.spamhaus.org -s xbl.spamhaus.org -s ubl.unsubscore.com -s dnsbl-1.uceprotect.net -s dnsbl-2.uceprotect.net -s dnsbl-3.uceprotect.net -s db.wpbl.info +check_rbl -H example.org -t 60 -c 1 -w 1 -s cbl.anti-spam.org.cn -s cblplus.anti-spam.org.cn -s cblless.anti-spam.org.cn -s cdl.anti-spam.org.cn -s cbl.abuseat.org -s dnsbl.cyberlogic.net -s bl.deadbeef.com -s t1.dnsbl.net.au -s spamtrap.drbl.drand.net -s spamsources.fabel.dk -s 0spam.fusionzero.com -s mail-abuse.blacklist.jippg.org -s korea.services.net -s spamguard.leadmon.net -s ix.dnsbl.manitu.net -s relays.nether.net -s no-more-funn.moensted.dk -s psbl.surriel.com -s dyna.spamrats.com -s noptr.spamrats.com -s spam.spamrats.com -s dnsbl.sorbs.net -s dul.dnsbl.sorbs.net -s old.spam.dnsbl.sorbs.net -s problems.dnsbl.sorbs.net -s safe.dnsbl.sorbs.net -s spam.dnsbl.sorbs.net -s bl.spamcannibal.org -s bl.spamcop.net -s pbl.spamhaus.org -s sbl.spamhaus.org -s xbl.spamhaus.org -s ubl.unsubscore.com -s dnsbl-1.uceprotect.net -s dnsbl-2.uceprotect.net -s dnsbl-3.uceprotect.net -s db.wpbl.info Please report any bugs or feature requests to matteo.corti@id.ethz.ch, or through the @@ -13,7 +13,7 @@ # File version information: -# $Id: README 1310 2012-08-17 05:09:32Z corti $ -# $Revision: 1310 $ +# $Id: README 1426 2015-01-12 09:06:32Z corti $ +# $Revision: 1426 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_rbl/README $ -# $Date: 2012-08-17 07:09:32 +0200 (Fri, 17 Aug 2012) $ +# $Date: 2015-01-12 10:06:32 +0100 (Mon, 12 Jan 2015) $ diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/t/00_modules.t nagios-plugins-contrib-16.20151226/check_rbl/src/t/00_modules.t --- nagios-plugins-contrib-14.20141104/check_rbl/src/t/00_modules.t 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/t/00_modules.t 2015-12-26 17:20:34.000000000 +0000 @@ -12,22 +12,22 @@ use Test::More tests => 23; -our $VERSION = '1.3.3'; +our $VERSION = '1.3.7'; -use_ok('Nagios::Plugin'); -can_ok( 'Nagios::Plugin', 'new' ); -can_ok( 'Nagios::Plugin', 'nagios_exit' ); -can_ok( 'Nagios::Plugin', 'add_perfdata' ); - -use_ok('Nagios::Plugin::Getopt'); -can_ok( 'Nagios::Plugin::Getopt', 'new' ); -can_ok( 'Nagios::Plugin::Getopt', 'arg' ); -can_ok( 'Nagios::Plugin::Getopt', 'getopts' ); -can_ok( 'Nagios::Plugin::Getopt', 'get' ); - -use_ok('Nagios::Plugin::Threshold'); -can_ok( 'Nagios::Plugin::Threshold', 'new' ); -can_ok( 'Nagios::Plugin::Threshold', 'set_thresholds' ); +use_ok('Monitoring::Plugin'); +can_ok( 'Monitoring::Plugin', 'new' ); +can_ok( 'Monitoring::Plugin', 'nagios_exit' ); +can_ok( 'Monitoring::Plugin', 'add_perfdata' ); + +use_ok('Monitoring::Plugin::Getopt'); +can_ok( 'Monitoring::Plugin::Getopt', 'new' ); +can_ok( 'Monitoring::Plugin::Getopt', 'arg' ); +can_ok( 'Monitoring::Plugin::Getopt', 'getopts' ); +can_ok( 'Monitoring::Plugin::Getopt', 'get' ); + +use_ok('Monitoring::Plugin::Threshold'); +can_ok( 'Monitoring::Plugin::Threshold', 'new' ); +can_ok( 'Monitoring::Plugin::Threshold', 'set_thresholds' ); use_ok('IO::Select'); can_ok( 'IO::Select', 'new' ); diff -Nru nagios-plugins-contrib-14.20141104/check_rbl/src/VERSION nagios-plugins-contrib-16.20151226/check_rbl/src/VERSION --- nagios-plugins-contrib-14.20141104/check_rbl/src/VERSION 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_rbl/src/VERSION 2015-12-26 17:20:34.000000000 +0000 @@ -1,2 +1,2 @@ -1.3.5 +1.3.7 diff -Nru nagios-plugins-contrib-14.20141104/check_redis/check_redis.php nagios-plugins-contrib-16.20151226/check_redis/check_redis.php --- nagios-plugins-contrib-14.20141104/check_redis/check_redis.php 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_redis/check_redis.php 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,300 @@ + -1, # Connections Graph: connections/sec + 'used_memory_rss' => -1, # Memory Graph: Current memory RSS + 'used_cpu_sys' => -1, # CPU Load Graph: System, Main Thread + 'connected_clients' => -1, # Connections Graph: connections now + 'keyspace_hits' => -1, # Hits and Misses Graph: hits + 'used_cpu_user_children' => -1, # CPU Load Graph: User, Child Threads + 'keyspace_misses' => -1, # Hits and Misses graph: misses + 'used_cpu_user' => -1, # CPU Load Graph: User, Main Thread + 'total_commands_processed' => -1, # Commands Processed Graph ? + 'mem_fragmentation_ratio' => -1, # Memory Fragmentation Graph ? + 'used_memory' => -1, # Memory Graph: Used Memory + 'blocked_clients' => -1, # Connections Graph: blocked clients + 'expired_keys' => -1, # Keys Graph: expired keys + 'used_memory_peak' => -1, # Memory Graph: Memory Peak + 'used_cpu_sys_children' => -1, # CPU Load Graph: System, Child Threads + 'evicted_keys' => -1, # Keys Graphs: evicted keys + 'response_time' => -1, # Respose Time Graph + 'total_keys' => -1, # Keys Graph: total Keys + 'total_expires' => -1, # Keys Graph: total_expires + 'memory_utilization' => -1 # Memory Graph: %mem_use + ); + +foreach ($this->DS as $KEY=>$VAL) { + if (isset($VAR[$VAL['LABEL']])) { + $VAR[$VAL['LABEL']] = $VAL['DS']; + } +} + +$gindex=0; + +if ($VAR['response_time'] != -1) { + $vindex=$VAR['response_time']; + $unit=$UNIT[$vindex]; + $ds_name[$gindex] = "Redis Response Time"; + $opt[$gindex] = "--vertical-label \"$unit\" --title \"$servicedesc Response Time on $hostname \" --slope-mode --color=BACK#000000 --color=FONT#F7F7F7 --color=SHADEA#ffffff --color=SHADEB#ffffff --color=CANVAS#000000 --color=GRID#00991A --color=MGRID#00991A --color=ARROW#FF0000 "; + $def[$gindex] = rrd::def("var1", $RRDFILE[$vindex], $DS[$vindex], "AVERAGE"); + $def[$gindex] .= "VDEF:slope=var1,LSLSLOPE " ; + $def[$gindex] .= "VDEF:int=var1,LSLINT " ; + $def[$gindex] .= "CDEF:proj=var1,POP,slope,COUNT,*,int,+ " ; + $def[$gindex] .= "LINE2:proj#ff00ff:\"Projection \" " ; + $def[$gindex] .= "GPRINT:var1:LAST:\"%6.2lf$unit last\" " ; + $def[$gindex] .= "GPRINT:var1:AVERAGE:\"%6.2lf$unit avg\" " ; + $def[$gindex] .= "GPRINT:var1:MAX:\"%6.2lf$unit max\\n\" "; + $def[$gindex] .= "CDEF:sp1=var1,100,/,10,* " ; + $def[$gindex] .= "CDEF:sp2=var1,100,/,20,* " ; + $def[$gindex] .= "CDEF:sp3=var1,100,/,30,* " ; + $def[$gindex] .= "CDEF:sp4=var1,100,/,40,* " ; + $def[$gindex] .= "CDEF:sp5=var1,100,/,50,* " ; + $def[$gindex] .= "CDEF:sp6=var1,100,/,60,* " ; + $def[$gindex] .= "CDEF:sp7=var1,100,/,70,* " ; + $def[$gindex] .= "CDEF:sp8=var1,100,/,80,* " ; + $def[$gindex] .= "CDEF:sp9=var1,100,/,90,* " ; + $def[$gindex] .= "AREA:var1#0000A0:\"Response Time \" " ; + $def[$gindex] .= "AREA:sp9#0000A0: " ; + $def[$gindex] .= "AREA:sp8#0000C0: " ; + $def[$gindex] .= "AREA:sp7#0010F0: " ; + $def[$gindex] .= "AREA:sp6#0040F0: " ; + $def[$gindex] .= "AREA:sp5#0070F0: " ; + $def[$gindex] .= "AREA:sp4#00A0F0: " ; + $def[$gindex] .= "AREA:sp3#00D0F0: " ; + $def[$gindex] .= "AREA:sp2#A0F0F0: " ; + $def[$gindex] .= "AREA:sp1#F0F0F0: " ; + $gindex++; +} + +if ($VAR['total_connections_received'] != -1 || + $VAR['connected_clients'] != -1 || + $VAR['blocked_clients'] != -1) { + $vindex_totalconnections=$VAR['total_connections_received']; + $vindex_connectedclients=$VAR['connected_clients']; + $vindex_blockedclients=$VAR['blocked_clients']; + $ds_name[$gindex] = "Redis Client Connections"; + $opt[$gindex] = "--lower-limit=0 --vertical-label \"connections\" --title \"$servicedesc Connections to $hostname\" "; + $def[$gindex] = ""; + if ($vindex_connectedclients!=-1) { + $def[$gindex] .= rrd::def("curr_conn", $RRDFILE[$vindex_connectedclients], $DS[$vindex_connectedclients], "AVERAGE"); + $def[$gindex] .= rrd::area("curr_conn", "#00FF00", "Current Number of Connections"); + $def[$gindex] .= rrd::gprint("curr_conn", array("LAST", "MAX", "AVERAGE"), "%3.0lf "); + } + if ($vindex_totalconnections!=-1) { + $def[$gindex] .= rrd::def("conn_rate", $RRDFILE[$vindex_totalconnections], $DS[$vindex_totalconnections], "AVERAGE"); + $def[$gindex] .= rrd::line1("conn_rate", "#0000FF", "New Connnections Per Second "); + $def[$gindex] .= rrd::gprint("conn_rate", array("LAST", "MAX", "AVERAGE"), "%3.0lf "); + } + if ($vindex_blockedclients!=-1) { + $def[$gindex] .= rrd::def("blocked_clients", $RRDFILE[$vindex_blockedclients], $DS[$vindex_blockedclients], "AVERAGE"); + $def[$gindex] .= rrd::line1("blocked_clients", "#FF0000", "Blocked Client Connections "); + $def[$gindex] .= rrd::gprint("blocked_clients", array("LAST","MAX","AVERAGE"), "%3.0lf "); + } + $gindex++; +} + +if ($VAR['keyspace_hits'] != -1 && $VAR['keyspace_misses'] != -1) { + $vindex_hits=$VAR['keyspace_hits']; + $vindex_misses=$VAR['keyspace_misses']; + $ds_name[$gindex] = "Redis Hits and Misses"; + $opt[$gindex] = "--lower-limit=0 --vertical-label \"hits and misses\" --title \"$servicedesc Hits and Misses on $hostname\" "; + $def[$gindex] = rrd::def("get_hits", $RRDFILE[$vindex_hits], $DS[$vindex_hits], "AVERAGE"); + $def[$gindex] .= rrd::def("get_misses", $RRDFILE[$vindex_misses], $DS[$vindex_misses], "AVERAGE"); + $def[$gindex] .= rrd::area("get_hits", "#00FF00", "Hits "); + $def[$gindex] .= rrd::gprint("get_hits", array("LAST", "MAX", "AVERAGE"), "%3.0lf "); + $def[$gindex] .= rrd::area("get_misses", "#FF0000", "Misses ", "STACK"); + $def[$gindex] .= rrd::gprint("get_misses", array("LAST", "MAX", "AVERAGE"), "%3.0lf "); + $def[$gindex] .= rrd::cdef("hitrate", "get_hits,get_hits,get_misses,+,/,100,*"); + $def[$gindex] .= rrd::comment("- Hit Rate "); + $def[$gindex] .= rrd::gprint("hitrate", array("LAST", "MAX", "AVERAGE"), "%.2lf%% "); + $gindex++; +} + +if ($VAR['total_keys'] != -1 && $VAR['total_expires'] != -1) { + $vindex_expiredkeys=$VAR['expired_keys']; + $vindex_evictedkeys=$VAR['evicted_keys']; + $vindex_totalkeys=$VAR['total_keys']; + $vindex_totalexpires=$VAR['total_expires']; + $ds_name[$gindex] = "Redis Keys Store"; + $opt[$gindex] = "--lower-limit=0 --vertical-label \"keys\" --title \"$servicedesc Keys on $hostname\" "; + $def[$gindex] = rrd::def("total_keys", $RRDFILE[$vindex_totalkeys], $DS[$vindex_totalkeys], "AVERAGE"); + $def[$gindex] .= rrd::def("total_expires", $RRDFILE[$vindex_totalexpires], $DS[$vindex_totalexpires], "AVERAGE"); + $def[$gindex] .= rrd::area("total_keys", "#6495ED", "Total Keys "); + $def[$gindex] .= rrd::gprint("total_keys", array("LAST", "MAX", "AVERAGE"), "%3.0lf "); + $def[$gindex] .= rrd::area("total_expires", "#00FFFF", "Will Expire", ""); + $def[$gindex] .= rrd::gprint("total_expires", array("LAST", "MAX", "AVERAGE"), "%3.0lf "); + if ($vindex_expiredkeys!=-1) { + $def[$gindex] .= rrd::def("expired_keys", $RRDFILE[$vindex_expiredkeys], $DS[$vindex_expiredkeys], "AVERAGE"); + $def[$gindex] .= rrd::line1("expired_keys", "#00FF00", "Expired ", ""); + $def[$gindex] .= rrd::gprint("expired_keys", array("LAST", "MAX", "AVERAGE"), "%3.0lf "); + } + if ($vindex_evictedkeys!=-1) { + $def[$gindex] .= rrd::def("evicted_keys", $RRDFILE[$vindex_evictedkeys], $DS[$vindex_evictedkeys], "AVERAGE"); + $def[$gindex] .= rrd::line1("evicted_keys", "#FF0000", "Evicted ", ""); + $def[$gindex] .= rrd::gprint("evicted_keys", array("LAST", "MAX", "AVERAGE"), "%3.0lf "); + } + $gindex++; +} + +if ($VAR['used_memory'] != -1 && $VAR['used_memory_peak']) { + $vindex_usedmemory=$VAR['used_memory']; + $vindex_memorypeak=$VAR['used_memory_peak']; + $vindex_memoryrss=$VAR['used_memory_rss']; + $vindex_fragmentation=$VAR['mem_fragmentation_ratio']; + $vindex_utilization=$VAR['memory_utilization']; + $ds_name[$gindex] = "Redis Memory"; + $opt[$gindex] = "--lower-limit=0 --vertical-label \"MB\" --title \"$servicedesc Memory Use on $hostname\" "; + $def[$gindex] = rrd::def("bytes", $RRDFILE[$vindex_usedmemory], $DS[$vindex_usedmemory], "AVERAGE"); + $def[$gindex] .= rrd::def("maxbytes", $RRDFILE[$vindex_memorypeak], $DS[$vindex_memorypeak], "AVERAGE"); + $def[$gindex] .= rrd::cdef("use_mb", "bytes,1024,/,1024,/"); + $def[$gindex] .= rrd::cdef("maxuse_mb", "maxbytes,1024,/,1024,/"); + $def[$gindex] .= rrd::cdef("mfree_mb", "maxbytes,bytes,-,1024,/,1024,/"); + $def[$gindex] .= rrd::area("use_mb", "#00FFFF", "Used Memory "); + $def[$gindex] .= "GPRINT:use_mb:LAST:\"%6.1lfMB Last \" " ; + $def[$gindex] .= "GPRINT:use_mb:MAX:\"%6.1lfMB Max \" " ; + $def[$gindex] .= "GPRINT:use_mb:AVERAGE:\"%6.1lfMB Avg \\n\" " ; + $def[$gindex] .= rrd::line1("maxuse_mb", "#0000FF", "Max Used Memory "); + $def[$gindex] .= "GPRINT:maxuse_mb:LAST:\"%6.1lfMB Last \" " ; + $def[$gindex] .= "GPRINT:maxuse_mb:MAX:\"%6.1lfMB Max \" " ; + $def[$gindex] .= "GPRINT:maxuse_mb:AVERAGE:\"%6.1lfMB Avg \\n\" " ; + if ($vindex_memoryrss!=-1) { + $def[$gindex] .= rrd::def("memoryrss", $RRDFILE[$vindex_memoryrss], $DS[$vindex_memoryrss], "AVERAGE"); + $def[$gindex] .= rrd::cdef("memrss_mb", "memoryrss,1024,/,1024,/"); + $def[$gindex] .= rrd::cdef("fragmented_mb", "memrss_mb,use_mb,-"); + $def[$gindex] .= rrd::area("fragmented_mb", "#FFD700", "Allocated Memory", "STACK"); + if ($vindex_utilization!=-1) { + $def[$gindex] .= rrd::def("use_perc", $RRDFILE[$vindex_utilization], $DS[$vindex_utilization], "AVERAGE"); + $def[$gindex] .= rrd::cdef("free_perc", "100,use_perc,-"); + $def[$gindex] .= rrd::cdef("total_mb", "memrss_mb,use_perc,/,100,*"); + $def[$gindex] .= rrd::cdef("free_mb", "total_mb,memrss_mb,-"); + $def[$gindex] .= "GPRINT:memrss_mb:LAST:\"%6.1lfMB \g\" " ; + $def[$gindex] .= "GPRINT:use_perc:LAST:\" (%2.1lf%%) Last\" " ; + $def[$gindex] .= "GPRINT:memrss_mb:MAX:\"%6.1lfMB \g\" " ; + $def[$gindex] .= "GPRINT:use_perc:MAX:\" (%2.1lf%%) Max\" " ; + $def[$gindex] .= "GPRINT:memrss_mb:AVERAGE:\"%6.1lfMB \g\" " ; + $def[$gindex] .= "GPRINT:use_perc:AVERAGE:\" (%2.1lf%%) Avg\\n\" " ; + $def[$gindex] .= rrd::cdef("fragmentation_calc", "memrss_mb,use_mb,/"); + $def[$gindex] .= rrd::comment("* Fragmentation Ratio (Allocated/Used) is \g"); + if ($vindex_fragmentation!=-1) { + $def[$gindex] .= rrd::def("fragmentation_data", $RRDFILE[$vindex_fragmentation], $DS[$vindex_fragmentation], "AVERAGE"); + $def[$gindex] .= "GPRINT:fragmentation_calc:LAST:\" %2.2lf \g\" "; + $def[$gindex] .= "GPRINT:fragmentation_data:LAST:\" (actual %2.2lf)\\n\" "; + } + else { + $def[$gindex] .= "GPRINT:fragmentation_calc:LAST:\"%2.2lf\\n\" "; + } + $def[$gindex] .= rrd::area("free_mb", "#00FF00", "Free Memory ", "STACK"); + $def[$gindex] .= "GPRINT:free_mb:LAST:\"%6.1lfMB \g\" " ; + $def[$gindex] .= "GPRINT:free_perc:LAST:\" (%2.1lf%%) Last\" " ; + $def[$gindex] .= "GPRINT:free_mb:MAX:\"%6.1lfMB \g\" " ; + $def[$gindex] .= "GPRINT:free_perc:MAX:\" (%2.1lf%%) Max\" " ; + $def[$gindex] .= "GPRINT:free_mb:AVERAGE:\"%6.1lfMB \g\" " ; + $def[$gindex] .= "GPRINT:free_perc:AVERAGE:\" (%2.1lf%%) Avg\\n\" " ; + $def[$gindex] .= rrd::comment("= Total Memory"); + $def[$gindex] .= "GPRINT:total_mb:LAST:\"%6.1lfMB\\n\" "; + } + else { + $def[$gindex] .= "GPRINT:memrss_mb:LAST:\"%6.1lfMB Last \" " ; + $def[$gindex] .= "GPRINT:memrss_mb:MAX:\"%6.1lfMB Max \" " ; + $def[$gindex] .= "GPRINT:memrss_mb:AVERAGE:\"%6.1lfMB Avg \\n\" " ; + } + } + $gindex++; +} + +if ($VAR['used_cpu_sys'] != -1) { + $vindex_cpumain_sys=$VAR['used_cpu_sys']; + $vindex_cpumain_user=$VAR['used_cpu_user']; + $vindex_cpuchild_sys=$VAR['used_cpu_sys_children']; + $vindex_cpuchild_user=$VAR['used_cpu_user_children']; + $ds_name[$gindex] ="CPU Use"; + $opt[$gindex] = "--vertical-label \"cpu time in msec\" --title \"$servicedesc CPU Use on $hostname\" "; + $def[$gindex] = rrd::def("cpu_main_sys", $RRDFILE[$vindex_cpumain_sys], $DS[$vindex_cpumain_sys], "AVERAGE"); + $def[$gindex] .= rrd::area("cpu_main_sys", "#FF6103", "System CPU - Main Thread"); + $def[$gindex] .= rrd::gprint("cpu_main_sys", array("LAST","MAX","AVERAGE"), "%6.2lf "); + if ($vindex_cpuchild_sys!=-1) { + $def[$gindex] .= rrd::def("cpu_child_sys", $RRDFILE[$vindex_cpuchild_sys], $DS[$vindex_cpuchild_sys], "AVERAGE"); + $def[$gindex] .= rrd::area("cpu_child_sys", "#FFD700", "System CPU - Children ", "STACK"); + $def[$gindex] .= rrd::gprint("cpu_child_sys", array("LAST","MAX","AVERAGE"), "%6.2lf "); + } + if ($vindex_cpumain_user!=-1) { + $def[$gindex] .= rrd::def("cpu_main_user", $RRDFILE[$vindex_cpumain_user], $DS[$vindex_cpumain_user], "AVERAGE"); + $def[$gindex] .= rrd::area("cpu_main_user", "#008000", "User CPU - Main Thread", "STACK"); + $def[$gindex] .= rrd::gprint("cpu_main_user", array("LAST","MAX","AVERAGE"), "%6.2lf "); + } + if ($vindex_cpuchild_user!=-1) { + $def[$gindex] .= rrd::def("cpu_child_user", $RRDFILE[$vindex_cpuchild_user], $DS[$vindex_cpuchild_user], "AVERAGE"); + $def[$gindex] .= rrd::area("cpu_child_user", "#00FF00", "User CPU - Children ", "STACK"); + $def[$gindex] .= rrd::gprint("cpu_child_user", array("LAST","MAX","AVERAGE"), "%6.2lf "); + } + $gindex++; +} + +?> diff -Nru nagios-plugins-contrib-14.20141104/check_redis/check_redis.pl nagios-plugins-contrib-16.20151226/check_redis/check_redis.pl --- nagios-plugins-contrib-14.20141104/check_redis/check_redis.pl 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_redis/check_redis.pl 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,2914 @@ +#!/usr/bin/perl -w +# +# ============================== SUMMARY ===================================== +# +# Program : check_redis.pl +# Version : 0.73 +# Date : Mar 23, 2013 +# Author : William Leibzon - william@leibzon.org +# Licence : GPL - summary below, full text at http://www.fsf.org/licenses/gpl.txt +# +# =========================== PROGRAM LICENSE ================================= +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# ===================== INFORMATION ABOUT THIS PLUGIN ========================= +# +# This is Redis Server Check plugin. It gets stats variables and allows to set +# thresholds on their value or their rate of change. It can measure response time, +# hitrate, memory utilization, check replication sync and more. It can also test +# data in a specified key (if necessary doing average or sum on range). +# +# Plugin returns stats variables as performance data for further nagios 2.0 +# post-processing, you can find graph templates for PNP4Nagios at: +# http://william.leibzon.org/nagios/ +# +# This program is written and maintained by: +# William Leibzon - william(at)leibzon.org +# +# ============================= SETUP NOTES ==================================== +# +# Make sure to install Redis perl library from CPAN first. +# +# Next for help and to see what parameters this plugin accepts do: +# ./check_redis.pl --help +# +# This plugin checks Redis NoSQL database status variables, measures its response +# time and if specified allows to set thresholds on one or more key data. You can +# set thresholds for data in stats variables and some of them are also conveniently +# available as long options with special threshold syntax. Plugin also calculates +# statistics such as Hitrate (calculated as rate of change of hits/misses) and +# memory use and can check replication delay. +# +# All variables can be returned as performance data for graphing and pnp4nagios +# template should be available with this plugin on the site you downloaded it from. + +# 1. Connection Parameters +# +# The connection parameters are "-H hostname", "-p port", "-D database" and +# "-C password_file" or "-x password". Specifying hostname is required, if you +# run locally specify it as -H 127.0.0.1. Everything else is optional and rarely +# needed. Default port is 6337. Database name (usually a numeric id) is probably +# only needed if you use --query option. Password can be passed on a command +# line with -x but its safer to read read it from a file or change in the code +# itself if you do use authentication. +# +# 2. Response Time, HitRate, Memory Utilization, Replication Delay +# +# To get response time you use "-T" or "--response_time=" option. By itself +# it will cause output of response time at the status line. You can also use +# it as "-T warn,crit" to specify warning and critical thresholds. +# +# To get hitrate the option is "-R" or "--hitrate=". If previous performance +# data is not feed to plugin (-P option, see below) the plugin calculates +# it as total hitrate over life of redis process. If -P is specified and +# previous performance data is fed back, the data is based on real hitrate +# (which can show spikes and downs) with lifelong info also given in paranthesis +# The data is based on keyspace_hits and keyspace_misses stats variables. +# As with -T you can specify -R by itself or with thresholds as -R warn,crit +# +# Memory utilization is percent of real memory used by Redis out of total +# memory on the system. To be able to calculate it plugin needs to known +# amount of memory your system has which you specify with "-M" or "--total_memory=" +# option. Memory utilization option itself is lower "-m" or "--memory_utilization=" +# and you can specify threshold for it as "-m warn,crit" +# +# Replication delay threshold option "-R" or "--replication_delay=" is used +# to check replication with data from "master_last_io_seconds_ago" stats and +# valid only on slave servers. Other variables maybe checked for this later +# with more complex functionality, so it was chosen to do this as separate +# option rather than directing people to check that variable. +# +# 3. Checks on Redis Status Variables +# +# All status variables from redis can be checked with the plugin. For some +# status variables separate long option is provided to specify threshold. +# i.e. --connected_clients= +# +# This is a new alternative to specifying all variables together with -a +# (--variables) option. For example: +# -a connected_clients,blocked_clients +# When you do above results are included in status output line and you +# are required to specify thresholds with -w or --warn and -c or --crit +# with exactly number of thresholds as a number of variables specified +# in -a. If you simply want variable values on status line without specifying +# any threshold, use ~ in place of threshold value or skip value but specify +# all appropriate commas. For example: +# -a connected_clients,blocked_clients -w ~,~ -c ~,~ +# OR -a connected_clients,blocked_clients -w , -c , +# +# If you use new syntax with a long option for specific stats variables, you +# can specify list of one or more threshold specifiers which can be any of: +# NAME: - Overrides name for this variable for use in status and PERF output +# PATTERN: - Regular Expression that allows to match multiple data results +# WARN:threshold - warning alert threshold +# CRIT:threshold - critical alert threshold +# Threshold is a value (usually numeric) which may have the following prefix: +# > - warn if data is above this value (default for numeric values) +# < - warn if data is below this value (must be followed by number) +# = - warn if data is equal to this value (default for non-numeric values) +# ! - warn if data is not equal to this value +# Threshold can also be specified as a range in two forms: +# num1:num2 - warn if data is outside range i.e. if datanum2 +# \@num1:num2 - warn if data is in range i.e. data>=num1 && data<=num2 +# ABSENT:OK|WARNING|CRITICAL|UNKNOWN - Nagios alert (or lock of thereof) if data is absent +# ZERO:OK|WARNING|CRITICAL|UNKNOWN - Nagios alert (or lock of thereof) if result is 0 +# DISPLAY:YES|NO - Specifies if data should be included in nagios status line output +# PERF:YES|NO - Output in performance data or not (always YES if -F option is used) +# UOM: - Unit Of Measurement symbol to add to perf data - 'c','%','s','B' +# This is used by programs that graph perf data such as PNP +# +# These can be specified in any order separated by ",". For example: +# --connected_clients=CRIT:>100,WARN:>50,ABSENT:CRITICAL,ZERO:OK,DISPLAY:YES,PERF:YES +# +# Variables that are not known to plugin and don't have specific long option (or even if +# they do) can be specified using general long option --check or --option or -o +# (all are aliases for same option): +# --check=NAME:connected_clients,CRIT:>100,WARN:>50,ABSENT:CRITICAL,DISPLAY:YES,PERF:YES +# +# Then NAME is used to specify what to match and multiple data vars maybe matched +# with PATTERN regex option (and please only use PATTERN with --check and not confuse +# plugin by using it in a named long option). Either NAME or PATTERN are required. +# +# 4. Calculating and using Rate of Change for Variables +# +# If you want to check rate of change rather than actual value you can do this +# by specifying it as '&variable' such as "&total_connections_received" or +# as "variable_rate" which is "total_connections_received_rate" and is similar +# to 'connected_clients' variable. By default it would be reported in the output +# as 'variable_rate' though '&variable' is a format used internally by plugin. +# +# As an alternative you can specify how to label these with --rate_label +# option where you can specify prefix and/or suffix. For example '--rate_label=dt_' +# would have the output being "dt_total_connections_received' where as +# '--rate_label=,_rate' is plugin default giving 'total_connections_received_rate'. +# You can use these names with -a and -A such as: +# --rate_label=,_rate -a total_connections_received_rate -w 1000 -c ~ +# Note that --rate_label will not work with new variable-named options, the +# only way to change default if you use that is to modify code and change +# $o_rprefix and $o_rsuffix variables default values. +# +# Now in order to be able to calculate rate of change, the plugin needs to +# know values of the variables from when it was run the last time. This +# is done by feeding it previous performance data with a -P option. +# In commands.cfg this would be specified as: +# -P "$SERVICEPERFDATA$" +# And don't forget the quotes, in this case they are not just for documentation. +# +# 5. Threshold Specification +# +# The plugin fully supports Nagios plug-in specification for specifying thresholds: +# http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT +# +# And it supports an easier format with the following one-letter prefix modifiers: +# >value : issue alert if data is above this value (default for numeric value) +# and < are interpreted by shell you may need to specify this in quotes) +# There are also two specifications of range formats as with other nagios plugins: +# number1:number2 issue alert if data is OUTSIDE of range [number1..number2] +# i.e. alert if data<$number1 or data>$number2 +# @number1:number2 issue alert if data is WITHIN range [number1..number2] +# i.e. alert if data>=$number and $data<=$number2 +# +# The plugin will attempt to check that WARNING value is less than CRITICAL +# (or greater for <). A special prefix modifier '^' can be used to disable these +# checks. A quick example of such special use is '--warn=^<100 --crit=>200' which +# means warning alert if value is < 100 and critical alert if its greater than 200. +# +# 6. Performance Data +# +# With '-f' option values of all variables you specified in -a as well as +# response time from -T (response time), +# hitrate from -R, +# memory utilization from -m +# and other data are reported back out as performance data for Nagios graphing programs. +# +# You may also directly specify which variables are to be return as performance data +# with '-A' option. If you use '-A' by itself and not specify any variables or use +# special value of '*' (as in '-A *') the plugin will output all variables which is useful +# for finding what data you can check with this plugin. +# +# The plugin will output threshold values as part of performance data as specified at +# http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN201 +# And don't worry about using non-standard >,<,=,~ prefixes, all of that would get +# converted into nagios threshold format for performance output +# +# The plugin is smart enough to add 'c' suffix for known COUNTER variables to +# values in performance data. Known variables are specified in an array you can +# find at the top of the code (further below) and plugin author does not claim +# to have identified all variables correctly. Please email if you find an error +# or want to add more variables. +# +# As noted above performance data is also used to calculate rate of change +# by feeding it back with -P option. In that regard even if you did not specify +# -f or -A but you have specified &variable, its actual data would be sent out +# in performance output. Additionally last time plugin was run is also in +# performance data as special _ptime variable. +# +# 7. Query Option and setting thresholds for data in Redis Database +# +# With -q (--query) option the plugin can retrieve data from Redis database +# which become new variables you can then check thresholds on. Currently it +# supports getting single key values with GET and getting range or values (or +# everything in list) with LRANGE and finding their Average or Min or Max or Sum. +# The option maybe repeated more than once. The format for this option is: +# +# -q, --query=query_type,key[:varname]<,list of threshold specifiers> +# +# query_type is one of: +# GET - get one string value +# LLEN - returns number of items in a list +# LRANGE:AVG:start:end - retrieve list and average results +# LRANGE:SUM:start:end - retrieve list and sum results +# LRANGE:MIN:start:end - retrieve list and return minimum +# LRANGE:MAX:start:end - retrieve list and return maximum +# HLEN - returns number of items in a hash [TODO] +# HGET:name - get specific hash key 'name' [TODO] +# HEXISTS:name - returns 0 or 1 depending on if specified hash key 'name' exists [TODO] +# SLEN - returns number of items in a set [TODO, SCARD redis opp] +# SEXISTS:name - returns 0 or 1 depending on if set member 'name' exists [SISMEMBER, TODO] +# ZLEN - returns number of items in a sorted set [TODO, ZCARD redis opp] +# ZCOUNT:min:max - counts number of items in sorted set with scores within the given values +# ZRANGE:AVG:min:max - retrieve sorted set members from min to max and average results +# ZRANGE:SUM:min:max - retrieve sorted set members from min to max and sum results +# ZRANGE:MIN:min:max - retrieve sorted set members from min to max list and return minimum +# ZRANGE:MAX:min:max- retrieve sorted set members from min to max and return maximum +# For LRANGE if you do not specify start and end, then start will be 0 and end +# is last value in the list pointed to by this key (found by using llen). +# +# Key is the Redis key name to be retrieved and optionally you can add ":varname" +# after it which specifies what to name plugin variable based on this data - +# based on what you specify here is how it will be displayed in the status +# line and performance data, default is same as Redis key name. +# +# After these key name you specify list of thresholds in the same format as +# variable-based long options described in section 3. Again the list of the +# possible specifiers are: +# WARN:threshold +# CRIT:threshold +# ABSENT:OK|WARNING|CRITICAL|UNKNOWN - what to do if data is not available +# ZERO:OK|WARNING|CRIICAL|UNKNOWN - what to do if data is 0 (rarely needed) +# DISPLAY:YES|NO - display on status line or not (default YES) +# PERF:YES|NO - output in perf data or not +# +# You can also optionally use -a, -w and -c to check data from the query instead +# of specifying thresholds as part of query option itself And remember that you if +# you need to check multiple keys you just repeat --query option more than once. +# +# 8. Example of Nagios Config Definitions +# +# Sample command and service definitions are below: +# +# define command { +# command_name check_redis_new +# command_line $USER1$/check_redis.pl -H $HOSTADDRESS$ -p $ARG1$ -T $ARG2$ -R -A -M $_HOSTSYSTEM_MEMORY$ -m $ARG3$ -a $ARG4$ -w $ARG5$ -c $ARG6$ -f -P "$SERVICEPERFDATA$" +# } +# +# Arguments and thresholds are: +# $ARG1 : Port +# $ARG2 : response time thresholds +# $ARG3 : memory utilization thresholds +# $ARG4 : additional variables to be checked +# $ARG5 : warning thresholds for those variables +# $ARG6 : critical thresholds for those variables +# +# define service { +# use prod-service +# hostgroups redishosts +# service_description Redis +# check_command check_redis_new!6379!"1,2"!"80,90"!blocked_clients,connected_clients!50,~!100,~ +# } +# +# define host { +# use prod-server +# host_name redis.mynetwork +# address redis.mynetwork +# alias Redis Stat Server +# hostgroups linux,redishosts +# _SYSTEM_MEMORY '8G' +# } +# +# Example of command-line use: +# /usr/lib/nagios/plugins/check_redis.pl -H localhost -a 'connected_clients,blocked_clients' -w ~,~ -c ~,~ -m -M 4G -A -R -T -f -v +# +# In above the -v option means "verbose" and with it plugin will output some debugging information +# about what it is doing. The option is not intended to be used when plugin is called from nagios itself. +# +# Example of using query and variable-based long options with debug enabled as well (-v): +# +# ./check_redis.pl -H localhost -p 6379 -D 1 --query LRANGE:AVG:0:,MyColumn1:Q1,ABSENT:WARNING,WARN:300,CRIT:500,DISPLAY:YES,PERF:NO +# --query GET,MyKey:K1,ABSENT:CRITICAL "--connected_clients=WARN:<2,CRIT:>100,ZERO:OK,ABSENT:WARNING,DISPLAY:YES,PERF:YES" +# +# ======================= VERSION HISTORY and TODO ================================ +# +# The plugins is written by reusing code my check_memcached.pl which itself is based +# on check_mysqld.pl. check_mysqld.pl has history going back to 2004. +# +# [0.4 - Mar 2012] First version of the code based on check_mysqld.pl 0.93 +# and check_memcached.pl 0.6. Internal work, not released. +# Version 0.4 because its based on a well developed code base +# [0.41 - Apr 15, 2012] Added list of variables array and perf_ok regex. +# Still testing internally and not released yet. +# [0.42 - Apr 28, 2012] Added total_keys, total_expires, nice uptime_info +# and memory utilization +# [0.43 - May 31, 2012] Release candidate. More documentation added +# replacing check_memcached examples. Bugs fixed. +# Made "_rate" as default rate variables suffix in +# place of &delta. Changed -D option to -r. +# +# [0.5 - Jun 01, 2012] First official release will start with version 0.5 +# Documentation changes, but no code updates. +# [0.51 - Jun 16, 2012] Added support to specify filename to '-v' option +# for debug output and '--debug' as alias to '--verbose' +# [0.52 - Jul 10, 2012] Patch by Jon Schulz to support credentials with -C +# (credentials file) and addition by me to support +# password as command argument. +# [0.53 - Jul 15, 2012] Adding special option to do query on one redis key and +# and do threshold checking of results if its numeric +# +# [0.6 - Jul 17, 2012] Rewrote parts of thresholds checking code and moved code +# that checks and parses thresholds from main into separate +# functions that are to become part of plugin library. +# Added support for variable thresholds specified as: +# option=WARN:threshold,CRIT:threshold,ABSENT:OK|WARNING|CRITICAL,ZERO:.. +# which are to be used for stats-variable based long options such as +# --connected_clients=WARN:threshold,CRIT:threshold +# and added DISPLAY:YES|NO and PERF specifiers for above too. +# Added -D option to specify database needed for --query +# [0.61 - Aug 03, 2012] Added more types of key query for lists, sets, hashes +# and options to find number of elements in a list/set/hash. +# New options added are: +# LLEN,HLEN,SLEN,ZLEN,HGET,HEXISTS,SEXISTS,ZRANGE +# +# [0.7 - Aug 28, 2012] A lot of internal rewrites in the library. Its now not just a +# a set of functions, but a proper object library with internal +# variables hidden from outside. Support has also been added for +# regex matching with PATTERN specifier and for generalized +# --check option that can be used where specific long option is +# not available. For use with that option also added UOM specifier. +# Also added checkin 'master_last_io_seconds_ago' (when link is down) +# for when replication_delay info is requested. +# [0.71 - Sep 03, 2012] Fixed bug in a new library related to when data is missing +# [0.72 - Oct 05, 2012] Fixed bug reported by Matt McMillan in specified memory size +# when KB are used. Fixed bugs in adding performance data that +# results in keyspace_hits, keyspace_misses, memory_utilization +# having double 'c' or '%' in perfdata. Added contributors section. +# [0.73 - Mar 23, 2013] Fixed bug in parse_threshold function of embedded library +# +# TODO or consider for future: +# +# 1. Library Enhancements (will apply to multiple plugins that share common code) +# (a) Add '--extra-opts' to allow to read options from a file as specified +# at http://nagiosplugins.org/extra-opts. This is TODO for all my plugins +# (b) [DONE] +# In plans are to allow long options to specify thresholds for known variables. +# These would mean you specify '--connected_clients' in similar way to '--hitrate' +# Internally these would be converged into -A, -w, -c as appropriate and used +# together with these options. So in practice it will now allow to get any data +# just a different way to specify options for this plugin. +# (c) Allow regex when selecting variable name(s) with -a, this will be enabled with +# a special option and not be default +# [DONE] +# +# 2. REDIS Specific +# (a) Add option to check from master that slave is connected and working. +# (b) Look into replication delay from master and how it can be done. Look +# for into on replication_delay from slave as well +# (c) How to better calculate memory utilization and get max memory available +# without directly specifying it +# (d) Maybe special options to measure cpu use and set thresholds +# +# Others are welcome recommend a new feature to be added here. If so please email to +# william@leibzon.org. +# And don't worry, I'm not a company with some hidden agenda to use your idea +# but an actual person who you can easily get hold of by email, find on forums +# and on Nagios conferences. More info on my nagios work is at: +# http://william.leibzon.org/nagios/ +# Above site should also have PNP4Nagios template for this and other plugins. +# +# ============================ LIST OF CONTRIBUTORS =============================== +# +# The following individuals have contributed code, patches, bug fixes and ideas to +# this plugin (listed in last-name alphabetical order): +# +# William Leibzon +# Matthew Litwin +# Matt McMillan +# Jon Schulz +# M Spiegle +# +# ============================ START OF PROGRAM CODE ============================= + +use strict; +use IO::Socket; +use Time::HiRes; +use Text::ParseWords; +use Getopt::Long qw(:config no_ignore_case); +use Redis; + +# default hostname, port, database, user and password, see NOTES above +my $HOSTNAME= 'localhost'; +my $PORT= 6379; +my $PASSWORD= undef; +my $DATABASE= undef; + +# Add path to additional libraries if necessary +use lib '/usr/lib/nagios/plugins'; +our $TIMEOUT; +our %ERRORS; +eval 'use utils qw(%ERRORS $TIMEOUT)'; +if ($@) { + $TIMEOUT = 20; + %ERRORS = ('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); +} + +my $Version='0.73'; + +# This is a list of known stat and info variables including variables added by plugin, +# used in order to designate COUNTER variables with 'c' in perfout for graphing programs +# The format is: +# VAR_NAME => [ TYPE, PerfSuffix, DESCRIPTION] +# If option has description, the variable will also become available as a long option so for example +# you can specify "--connected_clients=WARN,CRIT" instead of specifying "-a connected_clients -w WARN -c CRIT' +my %KNOWN_STATUS_VARS = ( + 'memory_utilization' => [ 'status', 'GAUGE', '%' ], # calculated by plugin + 'redis_version' => [ 'status', 'VERSION', '' ], # version string variable + 'response_time' => [ 'status','GAUGE', 's' ], # measured by plugin + 'hitrate' => [ 'status', 'GAUGE', '%' ], # calculated by plugin + 'total_keys' => [ 'status','GAUGE', '', 'Total Number of Keys on the Server' ], + 'total_expires' => [ 'status','GAUGE', '', 'Number of Expired Keys for All DBs' ], + 'last_save_time' => [ 'status', 'GAUGE', 's' ], + 'bgsave_in_progress' => [ 'status', 'BOOLEAN', '' ], + 'vm_enabled' => [ 'status', 'BOOLEAN', '' ], + 'uptime_in_seconds' => [ 'status', 'COUNTER', 'c' ], + 'total_connections_received' => [ 'status', 'COUNTER', 'c', 'Total Connections Received' ], + 'used_memory_rss' => [ 'status', 'GAUGE', 'B', 'Resident Set Size, Used Memory in Bytes' ], # RSS - Resident Set Size + 'used_cpu_sys' => [ 'status', 'GAUGE', '', 'Main Process Used System CPU' ], + 'redis_git_dirty' => [ 'status', 'BOOLEAN', '', 'Git Dirty Set Bit' ], + 'loading' => [ 'status', 'BOOLEAN', '' ], + 'latest_fork_usec' => [ 'status', 'GAUGE', '' ], + 'connected_clients' => [ 'status', 'GAUGE', '', 'Total Number of Connected Clients' ], + 'used_memory_peak_human' => [ 'status', 'GAUGE', '' ], + 'mem_allocator' => [ 'status', 'TEXTINFO', '' ], + 'uptime_in_days' => [ 'status', 'COUNTER', 'c', 'Total Uptime in Days' ], + 'keyspace_hits' => [ 'status', 'COUNTER', 'c', 'Total Keyspace Hits' ], + 'client_biggest_input_buf' => [ 'status', 'GAUGE', '' ], + 'gcc_version' => [ 'status', 'TEXTINFO', '' ], + 'changes_since_last_save' => [ 'status', 'COUNTER', 'c' ], + 'arch_bits' => [ 'status', 'TEXTINFO', '' ], + 'lru_clock' => [ 'status', 'GAUGE', '' ], # LRU is page replacement algorithm (least recently used), I'm unsure what this represents though + 'role' => [ 'status', 'SETTING', '' ], + 'multiplexing_api' => [ 'status', 'SETTING' , '' ], + 'slave' => [ 'status', 'TEXTDATA', '' ], + 'pubsub_channels' => [ 'status', 'GAUGE', '', 'Number of Pubsub Channels' ], + 'redis_git_sha1' => [ 'status', 'TEXTDATA', '' ], + 'used_cpu_user_children' => [ 'status', 'GAUGE', '', 'Child Processes Used User CPU' ], + 'process_id' => [ 'status', 'GAUGE', '' ], + 'used_memory_human' => [ 'status', 'GAUGE', '' ], + 'keyspace_misses' => [ 'status', 'COUNTER', 'c', 'Keyspace Misses' ], + 'used_cpu_user' => [ 'status', 'GAUGE', '', 'Main Process Used User CPU' ], + 'total_commands_processed' => [ 'status', 'COUNTER', 'c', 'Total Number of Commands Processed from Start' ], + 'mem_fragmentation_ratio' => [ 'status', 'GAUGE', '', 'Memory Fragmentation Ratio' ], + 'client_longest_output_list' => [ 'status', 'GAUGE', '' ], + 'blocked_clients' => [ 'status', 'GAUGE', '', 'Number of Currently Blocked Clients' ], + 'aof_enabled' => [ 'status', 'BOOLEAN', '' ], + 'evicted_keys' => [ 'status', 'COUNTER', 'c', 'Total Number of Evicted Keys' ], + 'bgrewriteaof_in_progress' => [ 'status','BOOLEAN', '' ], + 'expired_keys' => [ 'status', 'COUNTER', 'c', 'Total Number of Expired Keys' ], + 'used_memory_peak' => [ 'status', 'GAUGE', 'B' ], + 'connected_slaves' => [ 'status', 'GAUGE', '', 'Number of Connected Slaves' ], + 'used_cpu_sys_children' => [ 'status', 'GAUGE', '', 'Child Processed Used System CPU' ], + 'master_host' => [ 'status', 'TEXTINFO', '' ], + 'master_port' => [ 'status', 'TEXTINFO', '' ], + 'master_link_status' => [ 'status', 'TEXTINFO', '' ], + 'slave0' => [ 'status', 'TEXTINFO', '' ], + 'slave1' => [ 'status', 'TEXTINFO', '' ], + 'slave2' => [ 'status', 'TEXTINFO', '' ], + 'slave3' => [ 'status', 'TEXTINFO', '' ], + ); + +# Here you can also specify which variables should go into perf data, +# For right now it is 'GAUGE', 'COUNTER', 'DATA' (but not 'TEXTDATA'), and 'BOOLEAN' +# you may want to remove BOOLEAN if you don't want too much data +my $PERF_OK_STATUS_REGEX = 'GAUGE|COUNTER|^DATA$|BOOLEAN'; + +# ============= MAIN PROGRAM CODE - DO NOT MODIFY BELOW THIS LINE ============== + +my $o_host= undef; # hostname +my $o_port= undef; # port +my $o_pwfile= undef; # password file +my $o_password= undef; # password as parameter +my $o_database= undef; # database name (usually a number) +my $o_help= undef; # help option +my $o_verb= undef; # verbose mode +my $o_version= undef; # version info option +my $o_variables=undef; # list of variables for warn and critical +my $o_perfvars= undef; # list of variables to include in performance data +my $o_warn= undef; # warning level option +my $o_crit= undef; # Critical level option +my $o_perf= undef; # Performance data option +my @o_check= (); # General check option that maybe repeated more than once +my $o_timeout= undef; # Timeout to use - note that normally timeout is from nagios +my $o_timecheck=undef; # threshold spec for connection time +my $o_memutilization=undef; # threshold spec for memory utilization% +my $o_totalmemory=undef; # total memory on a system +my $o_hitrate= undef; # threshold spec for hitrate% +my $o_repdelay=undef; # replication delay time +my @o_querykey=(); # query this key, this option maybe repeated so its an array +my $o_prevperf= undef; # performance data given with $SERVICEPERFDATA$ macro +my $o_prevtime= undef; # previous time plugin was run $LASTSERVICECHECK$ macro +my $o_ratelabel=undef; # prefix and suffix for creating rate variables +my $o_rsuffix='_rate'; # default suffix +my $o_rprefix=''; + +## Additional global variables +my $redis= undef; # DB connection object +my @query=(); # array of queries with each entry being keyed hash of processedoption data on howto query + + +sub p_version { print "check_redis.pl version : $Version\n"; } + +sub print_usage_line { + print "Usage: $0 [-v [debugfilename]] -H [-p ] [-x password | -C credentials_file] [-D ] [-a -w -c ] [-A ] [-T [conntime_warn,conntime_crit]] [-R [hitrate_warn,hitrate_crit]] [-m [mem_utilization_warn,mem_utilization_crit] [-M [B|K|M|G]]] [-r replication_delay_time_warn,replication_delay_time_crit] [-f] [-T ] [-V] [-P ] [-q (GET|LLEN|HLEN|SLEN|ZLEN|HGET:name|HEXISTS:name|SEXISTS:name|LRANGE:(AVG|SUM|MIN|MAX):start:end|ZRANGE:(AVG|SUM|MIN|MAX):start:end),query_type,query_key_name[:data_name][,ABSENT:WARNING|CRITICAL][,WARN:threshold,CRIT:threshold]] [-o ]\n"; +} + +sub print_usage { + print_usage_line(); + print "For more details on options do: $0 --help\n"; +} + +sub help { + my $nlib = shift; + + print "Redis Check for Nagios version ",$Version,"\n"; + print " by William Leibzon - william(at)leibzon.org\n\n"; + print "This is redis monitoring plugin to check its stats variables, replication, response time\n"; + print "hitrate, memory utilization and other info. The plugin can also query and test key data\n"; + print "against specified thresholds. All data is available as performance output for graphing.\n\n"; + print_usage_line(); + print "\n"; + print < - warn if data is above this value (default for numeric values) + < - warn if data is below this value (must be followed by number) + = - warn if data is equal to this value (default for non-numeric values) + ! - warn if data is not equal to this value + ~ - do not check this data (must not be followed by number or ':') + ^ - for numeric values this disables check that warning < critical + Threshold values can also be specified as range in two forms: + num1:num2 - warn if data is outside range i.e. if datanum2 + \@num1:num2 - warn if data is in range i.e. data>=num1 && data<=num2 + -c, --crit=STR[,STR[,STR[..]]] + This option can only be used if '--variables' (or '-a') option above + is used and number of values listed here must exactly match number of + variables specified with '-a'. The values specify critical threshold + for when Nagios should send CRITICAL alert. The format is exactly same + as with -w option except no '^' prefix. + +Performance Data Processing Options: + -f, --perfparse + This should only be used with '-a' and causes variable data not only as part of + main status line but also as perfparse compatible output (for graphing, etc). + -A, --perfvars=[STRING[,STRING[,STRING...]]] + This allows to list variables which values will go only into perfparse + output (and not for threshold checking). The option by itself (emply value) + is same as a special value '*' and specify to output all variables. + -P, --prev_perfdata + Previous performance data (normally put '-P \$SERVICEPERFDATA\$' in nagios + command definition). This is used to calculate rate of change for counter + statistics variables and for proper calculation of hitrate. + --rate_label=[PREFIX_STRING[,SUFFIX_STRING]] + Prefix or Suffix label used to create a new variable which has rate of change + of another base variable. You can specify PREFIX or SUFFIX or both. Default + if not specified is suffix '_rate' i.e. --rate_label=,_rate + +Key Data Query Option (maybe repeated more than once): + -q, --query=query_type,key[:varname][,ABSENT:OK|WARNING|CRITICAL,WARN:threshold,CRIT:threshold] + query_type is one of: + GET - get one data value + LLEN - number of items in a list + LRANGE:AVG:start:end - retrieve list and average results + LRANGE:SUM:start:end - retrieve list and sum results + LRANGE:MIN:start:end - retrieve list and return minimum + LRANGE:MAX:start:end - retrieve list and return maximum + HLEN - returns number of items in a hash + HGET:name - get specific hash key 'name' + HEXISTS:name - returns 0 or 1 depending on if specified hash key 'name' exists + SLEN - returns number of items in a set + SEXISTS:name - returns 0 or 1 depending on if set member 'name' exists + ZLEN - returns number of items in a sorted set + ZCOUNT:min:max - counts items in sorted set with scores within the given values + ZRANGE:AVG:min:max - retrieve sorted set members from min to max and average results + ZRANGE:SUM:min:max - retrieve sorted set members from min to max and sum results + ZRANGE:MIN:min:max - retrieve sorted set members from min to max list and return minimum + ZRANGE:MAX:min:max - retrieve sorted set memers from min to max and return maximum + + Option specifies key to query and optional variable name to assign the results to after : + (if not specified it would be same as key). If key is not available the plugin can issue + either warning or critical alert depending on what you specified after ABSENT. + Numeric results are calculated for ranges and can be checked with specified thresholds + or you can do it together with standard with redis stats variables and -a option. + +General Check Option (all 3 forms equivalent, can be repated more than once): + -o , --option=, --check= + where specifiers are separated by , and must include NAME or PATTERN: + NAME: - Default name for this variable as you'd have specified with -v + PATTERN: - Regular Expression that allows to match multiple data results + WARN:threshold - warning alert threshold + CRIT:threshold - critical alert threshold + Threshold is a value (usually numeric) which may have the following prefix: + > - warn if data is above this value (default for numeric values) + < - warn if data is below this value (must be followed by number) + = - warn if data is equal to this value (default for non-numeric values) + ! - warn if data is not equal to this value + Threshold can also be specified as a range in two forms: + num1:num2 - warn if data is outside range i.e. if datanum2 + \@num1:num2 - warn if data is in range i.e. data>=num1 && data<=num2 + ABSENT:OK|WARNING|CRITICAL|UNKNOWN - Nagios alert (or lock of thereof) if data is absent + ZERO:OK|WARNING|CRITICAL|UNKNOWN - Nagios alert (or lock of thereof) if result is 0 + DISPLAY:YES|NO - Specifies if data should be included in nagios status line output + PERF:YES|NO - Output results as performance data or not (always YES if asked for rate) + UOM: - Unit Of Measurement symbol to add to perf data - 'c','%','s','B' + +Measured/Calculated Data: + -T, --response_time=[WARN,CRIT] + If this is used as just -T the plugin will measure and output connection + response time in seconds. With -f this would also be provided on perf variables. + You can also specify values for this parameter, these are interprted as + WARNING and CRITICAL thresholds (separated by ','). + -R, --hitrate=[WARN,CRIT] + Calculates Hitrate %: cache_miss/(cache_hits+cache_miss). If this is used + as just -R then this info just goes to output line. With '-R -f' these + go as performance data. You can also specify values for this parameter, + these are interprted as WARNING and CRITICAL thresholds (separated by ','). + The format for WARN and CRIT is same as what you would use in -w and -c. + -m, --memory_utilization=[WARN,CRIT] + This calculates percent of total memory on system used by redis, which is + utilization=redis_memory_rss/total_memory*100. + Total_memory on server must be specified with -M since Redis does not report + it and can use maximum memory unless you enabled virtual memory and set a limit + (I plan to test this case and see if it gets reported then). + If you specify -m by itself, the plugin will just output this info, + with '-f' it will also include this in performance data. You can also specify + parameter values which are interpreted as WARNING and CRITICAL thresholds. + -M, --total_memory=NUM[B|K|M|G] + Amount of memory on a system for memory utilization calculations above. + If it does not end with K,M,G then its assumed to be B (bytes) + -r, --replication_delay=WARN,CRIT + Allows to set threshold on replication delay info. Only valid if this is a slave! + The threshold value is in seconds and fractions are acceptable. + +EOT + + if (defined($nlib) && $nlib->{'enable_long_options'} == 1) { + my $long_opt_help = $nlib->additional_options_help(); + if ($long_opt_help) { + print "Stats Variable Options (this is alternative to specifying them as list with -a):\n"; + print $long_opt_help; + print "\n"; + } + } +} + +############################ START OF THE LIBRARY FUNCTIONS ##################################### +# +# THIS IS WORK IN PROGRESS, THE LIBRARY HAS NOT BEEN RELEASED YET AND INTERFACES MAY CHANGE +# +# ====================================== SUMMARY ================================================ +# +# Name : Naglio Perl Library For Developing Nagios Plugins +# Version : 0.2 +# Date : Aug 28, 2012 +# Author : William Leibzon - william@leibzon.org +# Licence : LGPL - full text at http://www.fsf.org/licenses/lgpl.txt +# +# ============================= LIBRARY HISTORY AND VERSIONS ==================================== +# +# Note: you may safely skip this section if you're looking at documentation about this library or plugin +# +# [2006-2008] The history of this library goes back to plugins such as check_snmp_temperature.pl, +# check_mysqld,pl and others released as early as 2006 with common functions to +# support prefixes "<,>,=,!" for specifying thresholds and checking data against +# these thresholds. Several of my plugins had common architecture supporting multiple +# variables or attributes to be checked using -a/--attributes/--variables option and +# --warn and --crit options with list of thresholds for these attributes and --perfvars +# specifying variables whose data would only go as PERFOUT for graphing. +# +# [2008-2011] Threshold parsing and check code had been rewritten and support added for specifying +# range per plugin guidelines: http://nagiosplug.sourceforge.net/developer-guidelines.html +# Internal structures had been changing and becoming more complex to various cases. +# In 2010-2012 plugins started to get support for ;warn;crit output of thresholds in perf, +# as specified in the guidelines. +# +# [Early 2012] Code from check_memcached had been used as a base for check_memcached and then +# check_redis plugins with some of the latest threshold code from check_netstat +# with more updates. Starting with check_redis the code from check_options() and +# from main part of plugin that was very similar across my plugins were separated +# into their own functions. KNOWN_STATS_VARS array was introduced as well to be +# able to properly add UOM symbol ('c', '%', 's', 'ms', 'B', 'KB') to perfout. +# check_memcached and check_redis also included support for calculating rate of +# variables in a similar way to how its been done in check_snmp_netint +# +# [0.1 - July 17, 2012] In 0.6 release of check_redis.pl support had been added for long options +# with special threshold line syntax: +# --option=WARN:threshold,CRIT:threshold,ABSENT:OK|WARNING|CRITICAL|UNKNOWN,DISPLAY:YES|NO,PERF:YES|NO +# This was extension from just doing --option=WARN,CRIT to have a more universal +# and extendable way to specify and alike parameters for checking. check_redis 0.6 +# also introduced support automatically adding long options with above syntax based +# on description in KNOWN_STATS_VARS. The functions for the library were all separated +# into their own section of the code. When inported to check_memcached global variables +# were added to that section and accessor functions written for some of them. +# This is considered 0.1 version of the library +# +# [0.2 - Aug 28, 2012] In August the library code in check_memcached had been re-written from +# just functions to object-oriented perl interface. All variables were hidden from +# direct access with accessor functions written. Documentation header had been added +# to each library function and the header for the library itself. This was major work +# taking over a week to do although functions and mainly sllllame as in 0.1. They are +# not stabilized and so library is only to be included within plugins. Support was +# also added for regex matching with PATTERN option spec. Also added NAME spec. +# License changed to LGPL from GPL for this code. +# [0.21 - Sep 3, 2012] Fix bug in handling absent data +# [0.22 - Mar 23, 2013] Fix bug in parse_threshold functon +# +# ================================== LIBRARY TODO ================================================= +# +# (a) Add library function to support '--extra-opts' to read plugin options from a file +# This is being to be compatible with http://nagiosplugins.org/extra-opts +# (b) Support regex matching and allowing multiple data for same threshold definition. +# [DONE] +# (c) Support for expressions in places of numeric values for thresholds. The idea is to allow +# to refer to another variable or to special macro. I know at least one person has extended +# my check_mysqld to support using mysql variables (not same as status data) for thresholds. +# I also previouslyhad planned such support with experimental check_snmp_attributes plugin +# library/base. The idea was also floated around on nagios-devel list. +# (d) Support specifying variables as expressions. This is straight out of check_snmp_atributes +# and maybe part of it can be reused for this +# (e) Add common SNMP functions into library as so many of my plugins use it# +# (f) Add more functions to make this library easier to use and stabilize its interfaces. +# Port my plugins to this library. +# (f) Add support for functions in Nagios-Plugins perl library. While its interfaces are +# different, I believe, it'd be possible to add "shim" code to support them too. +# (h) Write proper Perl-style documentation as well as web documentation (much of above maybe +# moved to web documentation) and move library to separate GITHUB project. Release it. +# (i) Port this library to Python and write one or two example plugins +# +# ================================================================================================ +{ +package Naglio; +use fields qw(); +use Text::ParseWords; + +my %ERRORS = ('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); +my $DEFAULT_PERF_OK_STATUS_REGEX = 'GAUGE|COUNTER|^DATA$|BOOLEAN'; + +# @DESCRIPTION : Library object constructor +# @LAST CHANGED : 08-27-12 by WL +# @INPUT : Hash array of named config settings. All parameters are optiona. Currently supported are: +# plugin_name => string - short name of the plugin +# plugin_description => string - plugin longer description +# plugin_authors => string - list of plugin authors +# knownStatsVars => reference to hash - hash array defining known variables, what type they are, their description +# usage_function => &ref - function that would display helpful text in case of error with options for this plugin +# verbose => 1 or "" or "filename" - set to 1 or "" if verbose/debug or to filename to send data to (may not be called "0" or "1") +# output_comparison_symbols => 0 or 1 - 1 means library output in case threshold is met can use "<", ">", "=" +# 0 means output is something like "less than or equal", "more than", etc. +# all_variables_perf => 0 or 1 - 1 means data for all variables would go to PERF. This is what '-A *' or just -A do +# enable_long_options => 0 or 1 - 1 enables long options generated based on knownStatsVars. This is automatically enabled (from 0 +# to 1) when plugin references additional_options_list() unless this is set to -1 at library init +# enable_rate_of_change => 0 or 1 - enables support for calculating rate of change based on previously saved data, default is 1 +# enable_regex_match => 0 or 1 - when set to 1 each threshold-specified var name is treated as regex and can match +# to multiple collected data. this can also be enabled per-variable with PATTERN spec +# @RETURNS : Reference representing object instance of this library +# @PRIVACY & USE : PUBLIC, To be used when initializing the library +sub lib_init { + my $invocant = shift; + my $class = ref($invocant) || $invocant; + my %other_args = @_; + + # These used to be global variables, now these are object local variables in self with accessor + my @allVars = (); # all variables after options processing + my @perfVars = (); # performance variables list [renamed from @o_perfVarsL in earlier code] + my %thresholds=(); # hash array of thresholds for above variables, [this replaced @o_warnL and @o_critL in earlier code] + my %dataresults= (); # This is where data is loaded. It is a hash with variable names as keys and array array for value: + # $dataresults{$var}[0] - undef of value of this variable + # $dataresults{$var}[1] - 0 if variable not printed out to status line yet, 1 or more otherwise + # $dataresults{$var}[2] - 0 if variable data not yet put into PERF output, -1 if PERF output is preset, 1 after output + # $dataresults{$var}[3] - string, '' to start with, holds ready performance data output for this variable + # $dataresults{$var}[4] - only for regex matches. name of match var (which should be key in thresholds), otherwise undef + my %dataVars = (); # keys are variables from allVars and perfVars, values is array of data that matched i.e. keys in dataresults + my @ar_warnLv = (); # used during options processing + my @ar_critLv = (); # used during options processing + my @ar_varsL= (); # used during options processing + my @prev_time= (); # timestamps if more then one set of previois performance data + + my $self = { # library and nagios versions + _NaglioLibraryVersion => 0.2, # this library's version + _NagiosVersion => 3, # assume nagios core 3.x unless known otherwise + # library internal data structures + _allVars => \@allVars, + _perfVars => \@perfVars, + _thresholds => \%thresholds, + _dataresults => \%dataresults, + _datavars => \%dataVars, + _ar_warnLv => \@ar_warnLv, + _ar_critLv => \@ar_critLv, + _ar_varsL => \@ar_varsL, + _prevTime => \@prev_time, + _prevPerf => {}, # array that is populated with previous performance data + _checkTime => undef, # time when data was last checked + _statuscode => "OK", # final status code + _statusinfo => "", # if there is an error, this has human info about what it is + _statusdata => "", # if there is no error but we want some data in status line, this var gets it + _perfdata => "", # this variable collects performance data line + _saveddata => "", # collects saved data (for next plugin re-run, not implimented yet) + _init_args => \%other_args, + # copy of data from plugin option variables + o_variables => undef, # List of variables for warn and critical checks + o_crit => undef, # Comma-separated list of critical thresholds for each checked variable + o_warn => undef, # Comma-separated list of warning thresholds for each checked variable + o_perf => undef, # defined or undef. perf option means all data from variables also goes as PERFDATA + o_perfvars => undef, # List of variables only for PERFDATA + o_prevperf => undef, # previously saved performance data coming from $SERVICEPERFDATA$ macro + # library special input variables (similar to options) + o_rprefix => '', # prefix used to distinguish rate variables + o_rsuffix => '_rate', # suffix used to distinguish rate variables + knownStatusVars => {}, # Special HASH ARRAY with names and description of known variables + perfOKStatusRegex => $DEFAULT_PERF_OK_STATUS_REGEX, + verbose => 0, # verbose, same as debug, same as o_verb + plugin_name => '', # next 3 parameters are variables are currently not used + plugin_description => '', # but its still better if these are provided + plugin_authors => '', # in the future these maybe used for help & usage functions + # library setting variables + debug_file => "", # instead of setting file name in verbose, can also set it here + output_comparison_symbols => 1, # should plugin output >,<.=,! for threshold match + # if 0, it will say it in human form, i.e. "less" + all_variables_perf => 0, # should we all variables go to PERF (even those not listed in o_variables and o_perfvars) + # this is the option set to 1 when --perfvars '*' is used + enable_long_options => 0, # enable support for long options generated based on knownStatusVars description + enable_rate_of_change => 1, # enables support for calculatin rate of chane and for rate of change long options + enable_regex_match => 0, # 0 is not enabled, 1 means variables in o_variables and o_perfvars are considered regex to match actual data + # a value of 2 means its enabled, but for options with PATTERN specifier (this is not configurale value) + }; + + # bless to create an object + bless $self, $class; + + # deal with arguments that maybe passed to library when initalizing + if (exists($other_args{'KNOWN_STATUS_VARS'})) { + $self->{'knownStatusVars'} = $other_args{'KNOWN_STATUS_VARS'}; + } + $self->{'plugin_name'} = $other_args{'plugin_name'} if exists($other_args{'plugin_name'}); + $self->{'plugin_description'} = $other_args{'plugin_description'} if exists($other_args{'plugin_description'}); + $self->{'plugin_authors'} = $other_args{'plugin_authors'} if exists($other_args{'plugin_authors'}); + $self->{'usage_function'} = $other_args{'usage_gunction'} if exists($other_args{'usage_function'}); + $self->configure(%other_args); + + # return self object + return $self; +} + +# This is just an alias for object constructor lib_init function +sub new { + return lib_init(@_); +} + +# @DESCRIPTION : Allows to confiure some settings after initialization (all these can also be done as part of lib_init) +# @LAST CHANGED : 08-27-12 by WL +# @INPUT : Hash array of named config settings. All parameters are optiona. Currently supported are: +# verbose => 1 or "" or "filename" - set to 1 or "" if verbose/debug or to filename to send data to (may not be called "0" or "1") +# output_comparison_symbols => 0 or 1 - 1 means library output in case threshold is met can use "<", ">", "=" +# 0 means output is something like "less than or equal", "more than", etc. +# all_variables_perf => 0 or 1 - 1 means data for all variables would go to PERF. This is what '-A *' or just -A do +# enable_long_options => 0 or 1 - 1 enables long options generated based on knownStatsVars. This is automatically enabled (from 0 +# to 1) when plugin references additional_options_list() unless this is set to -1 at library init +# enable_rate_of_change => 0 or 1 - enables support for calculating rate of change based on previously saved data, default is 1 +# enable_regex_match => 0 or 1 - when set to 1 each threshold-specified var name is treated as regex and can match +# to multiple collected data. this can also be enabled per-variable with PATTERN spec +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function. +sub configure { + my $self = shift; + my %args = @_; + + if (exists($args{'verbose'}) || exists($args{'debug'})) { + $self->{'verbose'} = 1; + if (exists($args{'verbose'}) && $args{'verbose'}) { + $self->{'debug_file'} = $args{'verbose'}; + } + if (exists($args{'debug_log_filename'})) { + $self->{'debug_file'} = $args{'debug_log_filename'}; + } + } + $self->{'all_variables_perf'} = $args{'all_variables_perf'} if exists($args{'all_variables_perf'}); + $self->{'enable_long_options'} = $args{'enable_long_options'} if exists($args{'enable_long_options'}); + $self->{'enable_rate_of_change'} = $args{'enable_rate_of_change'} if exists($args{'enable_rate_of_change'}); + $self->{'enable_regex_match'} = 1 if exists($args{'enable_regex_match'}) && $args{'enable_regex_match'}!=0; + $self->{'output_comparison_symbols'} = $args{'output_comparison_symbols'} if exists($args{'output_comparison_symbols'}); +} + +# @DESCRIPTION : Allows functions to take be used both directly and as object referenced functions +# In the 2nd case they get $self as 1st argument, in 1st they don't. this just adds +# $self if its if its not there so their argument list is known. +# Functions that allow both should still check if $self is defined +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : arbitrary list of arguments +# @RETURNS : arbitrary list of arguments with 1st being object hash or undef +# @PRIVACY & USE : PRIVATE +sub _self_args { + return @_ if ref($_[0]) && exists($_[0]->{'_NaglioLibraryVersion'}); + unshift @_,undef; + return @_; +} + +# @DESCRIPTION : Sets function to be called to display help text on using plugin in case of error +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : reference to usage function +# @RETURNS : nothing +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function : +sub set_usage_function { + my ($self, $usage_function) = @_; + $self->{'usage_function'} = $usage_function; +} + +# @DESCRIPTION : Usage function. For right now it just calls usage function given as a parameter +# In the future if it is not available, it'll print something standard. +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : none +# @RETURNS : nothing +# @PRIVACY & USE : PUBLIC, But primary for internal use. Must be used as an object instance function. +sub usage { + my $self = shift; + if (defined($self) && defined($self->{'usage_function'})) { &{$self->{'usage_function'}}(); } +} + +# @DESCRIPTION : This function converts uptime in seconds to nice & short output format +# @LAST_CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - uptime in seconds +# @RETURNS : string of uptime for human consumption +# @PRIVACY & USE : PUBLIC, Maybe used directly or as object instance function : +sub uptime_info { + my ($self,$uptime_seconds) = _self_args(@_); + my $upinfo = ""; + my ($secs,$mins,$hrs,$days) = (undef,undef,undef,undef); + + sub div_mod { return int( $_[0]/$_[1]) , ($_[0] % $_[1]); } + + ($mins,$secs) = div_mod($uptime_seconds,60); + ($hrs,$mins) = div_mod($mins,60); + ($days,$hrs) = div_mod($hrs,24); + $upinfo .= "$days days" if $days>0; + $upinfo .= (($upinfo ne '')?' ':'').$hrs." hours" if $hrs>0; + $upinfo .= (($upinfo ne '')?' ':'').$mins." minutes" if $mins>0 && ($days==0 || $hrs==0); + $upinfo .= (($upinfo ne '')?' ':'').$secs." seconds" if $secs>0 && $days==0 && $hrs==0; + return $upinfo; +} + +# @DESCRIPTION : If debug / verbose option is set, function prints its input out or to debug file +# @LAST_CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - string of debug text +# @RETURNS : nothing +# @PRIVACY & USE : PUBLIC, Maybe used directly or as object instance function +sub verb { + my ($self,$in) = _self_args(@_); + my $debug_file_name = ""; + + if (defined($o_verb) || (defined($self) && defined($self->{'verbose'}) && $self->{'verbose'} ne 0)) { + $debug_file_name = $self->{'debug_file'} if defined($self) && $self->{'debug_file'} ne ""; + $debug_file_name = $self->{'verbose'} if $debug_file_name ne "" && defined($self) && + ($self->{'verbose'} ne 0 && $self->{'verbose'} ne 1 && $self->{'verbose'} ne ''); + $debug_file_name = $o_verb if $debug_file_name ne "" && defined($o_verb) && $o_verb ne ""; + if ($debug_file_name ne "") { + if (!open (DEBUGFILE, ">>$debug_file_name")) { + print $in, "\n"; + } + else { + print DEBUGFILE $in,"\n"; + close DEBUGFILE; + } + } + else { + print $in, "\n"; + } + } +} + +# @DESCRIPTION : Check of string is a a number supporting integers, negative, decimal floats +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - string of text to be checked +# @RETURNS : 1 if its a number, 0 if its not a number +# @PRIVACY & USE : PUBLIC, To be used statically and not as an object instance reference +sub isnum { + my $num = shift; + if (defined($num) && $num =~ /^[-|+]?((\d+\.?\d*)|(^\.\d+))$/ ) { return 1 ;} + return 0; +} + +# @DESCRIPTION : Check of string is a a number supporting integers, negative, decimal floats +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - string of text to be checked +# @RETURNS : 1 if its a number, 0 if its not a number +# @PRIVACY & USE : PUBLIC, To be used statically and not as an object instance function +sub trim { + my $string = shift; + $string =~ s/^\s+//; + $string =~ s/\s+$//; + return $string; +} + +# @DESCRIPTION : Takes as input string from PERF or SAVED data from previous plugin invocation +# which should contain space-separated list of var=data pairs. The string is +# parsed and it returns back hash array of var=>data pairs. +# - Function written in 2007 for check_snmp_netint, first release 06/01/07 +# - Modified to use quotewords as suggested by Nicholas Scott, release of 05/20/12 +# @LAST CHANGED : 08-27-12 by WL +# @INPUT : ARG1 - string of text passed from SERVICEPERFDATA OR SERVICESAVEDDATA MACRO +# @RETURNS : hash array (see description) +# @PRIVACY & USE : PUBLIC, Maybe used directly or as object instance function +# TODO: double-check this works when there are no single quotes as check_snmp_netint always did quotes +sub process_perf { + my ($self,$in) = _self_args(@_); + my %pdh; + my ($nm,$dt); + use Text::ParseWords; + foreach (quotewords('\s+',1,$in)) { + if (/(.*)=(.*)/) { + ($nm,$dt)=($1,$2); + if (defined($self)) { $self->verb("prev_perf: $nm = $dt"); } + else { verb("prev_perf: $nm = $dt"); } + # in some of my plugins time_ is to profile execution time for part of plugin + # $pdh{$nm}=$dt if $nm !~ /^time_/; + $pdh{$nm}=$dt; + $pdh{$nm}=$1 if $dt =~ /(\d+)[csB%]/; # 'c' or 's' or B or % maybe have been added + # support for more than one set of previously cached performance data + # push @prev_time,$1 if $nm =~ /.*\.(\d+)/ && (!defined($prev_time[0]) || $prev_time[0] ne $1); + } + } + return %pdh; +} + +# @DESCRIPTION : Converts variables with white-spaces with per-name enclosed with '' +# @LAST CHANGED : 08-24-12 by WL +# @INPUT : ARG1 - varible name +# @RETURNS : name for perf-out output +# @PRIVACY & USE : PUBLIC, but its use should be limited. To be used statically and not as an object instance function +sub perf_name { + my $in = shift; + my $out = $in; + $out =~ s/'\/\(\)/_/g; #' get rid of special characters in performance description name + if ($in !~ /\s/ && $in eq $out) { + return $in; + } + return "'".$out."'"; +} + +# @DESCRIPTION : Determines appropriate output name (for STATUS and PERF) taking into account +# rate variales prefix/suffix and 'NAME' override in long thresholds line specification +# @LAST CHANGED : 08-26-12 by WL +# @INPUT : ARG1 - variable name (variable as found in dataresults) +# @RETURNS : name for output +# @PRIVACY & USE : PUBLIC, but its use should be limited. To be as an object instance function, +sub out_name { + my ($self,$dname) = @_; + my $thresholds = $self->{'_thresholds'}; + my $dataresults = $self-> {'_dataresults'}; + my $vr = $self->data2varname($dname,1); + my $name_out; + + if (defined($vr) && exists($thresholds->{$vr}{'NAME'})) { + if (exists($thresholds->{$vr}{'PATTERN'}) || $self->{'enable_regex_match'} == 1) { + $thresholds->{$vr}{'NAMES_INDEX'} = {} if !exists($thresholds->{$vr}{'NAMES_INDEX'}); + if (!exists($thresholds->{$vr}{'NAMES_INDEX'}{$dname})) { + my $ncount = scalar(keys %{$thresholds->{$vr}{'NAMES_INDEX'}}); + $ncount++; + $thresholds->{$vr}{'NAMES_INDEX'}{$dname} = $ncount; + } + $name_out = $thresholds->{$vr}{'NAME'} .'_'. $thresholds->{$vr}{'NAMES_INDEX'}{$dname}; + } + else { + $name_out = $thresholds->{$vr}{'NAME'}; + } + } + else { + # this is for output of rate variables which name internally start with & + if ($dname =~ /^&(.*)/) { + $name_out = $self->{'o_rprefix'}.$1.$self->{'o_rsuffix'}; + } + else { + $name_out = $dname; + } + } + return $name_out; +} + +# @DESCRIPTION : Builds statusline. Adds info on error conditions that would preceed status data. +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - variable name +# ARG2 - string argument for status info +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, but its direct use is discouraged. Must be used as an object instance function +sub addto_statusinfo_output { + my ($self, $var, $sline) = @_; + $self->{'_statusinfo'} .= ", " if $self->{'_statusinfo'}; + $self->{'_statusinfo'} .= trim($sline); + $self->{'_dataresults'}{$var}[1]++; +} + +# @DESCRIPTION : Accessor function for statusinfo +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : none +# @RETURNS : statusinfo (error conditions and messages) string +# @PRIVACY & USE : PUBLIC. Must be used as an object instance function +sub statusinfo { + my $self = shift; + if (defined($self) && defined($self->{'_statusinfo'})) { + return $self->{'_statusinfo'}; + } + return undef; +} + +# @DESCRIPTION : Builds Statuline. Adds variable data for status line output in non-error condition. +# @LAST CHANGED : 08-26-12 by WL +# @INPUT : ARG1 - variable name +# ARG2 - formatted for human consumption text of collected data for this variable +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, but its direct use is discouraged. Must be used as an object instance function +sub addto_statusdata_output { + my ($self,$dvar,$data) = @_; + my $thresholds = $self->{'_thresholds'}; + my $dataresults = $self -> {'_dataresults'}; + my $avar = $self->data2varname($dvar,1); + + # $self->verb("debug: addto_statusdata_output - dvar is $dvar and avar is $avar"); + if ((!exists($thresholds->{$avar}{'DISPLAY'}) || $thresholds->{$avar}{'DISPLAY'} eq 'YES') && + (!exists($dataresults->{$dvar}[1]) || $dataresults->{$dvar}[1] == 0)) { + $self->{'_statusdata'} .= ", " if $self->{'_statusdata'}; + if (defined($data)) { + $self->{'_statusdata'} .= trim($data); + } + elsif (exists($dataresults->{$dvar}[0])) { + $self->{'_statusdata'} .= $self->out_name($dvar) ." is ".$dataresults->{$dvar}[0]; + } + $dataresults->{$dvar}[1]++; + } +} + +# @DESCRIPTION : Accessor function for statusdata +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : none +# @RETURNS : statusdata string (non-error data from some variables) +# @PRIVACY & USE : PUBLIC. Must be used as an object instance function +sub statusdata { + my $self = shift; + if (defined($self) && defined($self->{'_statusdata'})) { + return $self->{'_statusdata'}; + } + return undef; +} + +# @DESCRIPTION : This function sets text or data for data variable PERFORMANCE output +# (;warn;crit would be added to it later if thresholds were set for this variable) +# @LAST CHANGED : 08-26-12 by WL +# @INPUT : ARG1 - variable name +# ARG2 - either "var=data" text or just "data" (in which case var= is prepended to it) +# ARG3 - UOM symol ('c' for continous, '%' for percent, 's' for seconds) to added after data +# if undef then it is looked up in known variables and if one is present there, its used +# ARG4 - one of: "REPLACE" - if existing preset perfdata is present, it would be replaced with ARG2 +# "ADD" - if existing preset perfdata is there, ARG2 string would be added to it (DEFAULT) +# "IFNOTSET - only set perfdata to ARG2 if it is empty, otherwise keep existing +# @RETURNS : nothing (future: 0 on success, -1 on error) +# @PRIVACY & USE : PUBLIC, but its use should be limited to custom variables added by plugins to data +# Must be used as an object instance function +sub set_perfdata { + my ($self,$avar,$adata,$unit,$opt) = @_; + my $dataresults = $self->{'_dataresults'}; + my $thresholds = $self->{'_thresholds'}; + my $known_vars = $self->{'knownStatusVars'}; + my $bdata = $adata; + my $vr = undef; + + # default operation is ADD + if (!defined($opt)) { + $opt = "ADD"; + } + else { + $opt = uc $opt; + } + if (defined($adata)) { + # if only data wthout "var=" create proper perf line + $bdata = perf_name($self->out_name($avar)).'='.$adata if $adata !~ /=/; + if (defined($unit)) { + $bdata .= $unit; + } + else { + # appending UOM is done here + $vr = $self->data2varname($avar,1); + if (defined($vr)) { + if (exists($thresholds->{$vr}{'UOM'})) { + $bdata .= $thresholds->{$vr}{'UOM'}; + } + elsif (exists($known_vars->{$vr}[2])) { + $bdata .= $known_vars->{$vr}[2]; + } + } + } + # preset perfdata in dataresults array + $dataresults->{$avar}=[undef,0,0,''] if !defined($dataresults->{$avar}); + $dataresults->{$avar}[2]=-1; + if ($opt eq "REPLACE" || !exists($dataresults->{$avar}[3]) || $dataresults->{$avar}[3] eq '') { + $dataresults->{$avar}[3]=$bdata; + } + elsif (exists($dataresults->{$avar}[3]) && $dataresults->{$avar}[3] ne '' && $opt eq "ADD") { + $dataresults->{$avar}[3].=$adata; + } + } +} + +# @DESCRIPTION : This function is used when building performance output +# @LAST CHANGED : 08-26-12 by WL +# @INPUT : ARG1 - variable name +# ARG2 - optional data argument, if not present variable's dataresults are used +# ARG3 - one of: "REPLACE" - if existing preset perfdata is present, it would be replaced with ARG2 +# "ADD" - if existing preset perfdata is there, ARG2 string would be added to it +# "IFNOTSET - only set perfdata to ARG2 if it is empty, otherwise keep existing (DEFAULT) +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, but its direct use is discouraged. Must be used as an object instance function +sub addto_perfdata_output { + my ($self,$avar,$adata, $opt) = @_; + my $thresholds = $self->{'_thresholds'}; + my $dataresults = $self-> {'_dataresults'}; + my $vr = undef; + + if (!defined($opt)) { + $opt = "IFNOTSET"; + } + else { + $opt = uc $opt; + } + $vr = $self->data2varname($avar,1); + if (defined($avar) && defined($vr) && + (!exists($thresholds->{$vr}{'PERF'}) || $thresholds->{$vr}{'PERF'} eq 'YES') && + (!defined($dataresults->{$avar}[2]) || $dataresults->{$avar}[2] < 1)) { + my $bdata = ''; + if (defined($adata)) { + $bdata .= trim($adata); + } + # this is how most perfdata gets added + elsif (defined($dataresults->{$avar}[0])) { + $bdata .= perf_name($self->out_name($avar)) .'='. $dataresults->{$avar}[0]; + } + # this would use existing preset data now if it was present due to default + # setting UOM from KNOWN_STATUS_VARS array is now in set_perfdata if 3rd arg is undef + $self->set_perfdata($avar,$bdata,undef,$opt); + # now we actually add to perfdata from [3] of dataresults + if (exists($dataresults->{$avar}[3]) && $dataresults->{$avar}[3] ne '') { + $bdata = trim($dataresults->{$avar}[3]); + $self->{'_perfdata'} .= " " if $self->{'_perfdata'}; + $self->{'_perfdata'} .= $bdata; + $dataresults->{$avar}[2]=0 if $dataresults->{$avar}[2] < 0; + $dataresults->{$avar}[2]++; + } + } +} + +# @DESCRIPTION : Accessor function for map from data collected to variable names specified in options and thresholds +# @LAST CHANGED : 08-22-13 by WL +# @INPUT : ARG1 - data variable name +# ARG2 - if undef or 0 return undef if no match for ARG1 found, if 1 return ARG1 +# @RETURNS : string of variable name as was specified with --variables or --thresholds +# @PRIVACY & USE : PUBLIC. Must be used as an object instance function +sub data2varname { + my ($self,$dname,$ropt) = @_; + my $dataresults = $self->{'_dataresults'}; + + return $dataresults->{$dname}[4] if defined($self) && defined($dataresults->{$dname}[4]); + return $dname if defined($ropt) && $ropt eq 1; + return undef; +} + +# @DESCRIPTION : Sets list and info on known variables and regex for acceptable data types. +# This function maybe called more than once. If called again, new vars in subsequent +# calls are added to existing ones and existing vars are replaced if they are there again. +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : ARG1 - ref to hash array of known vars. Keys are variable names. Data is an array. Example is: +# 'version' => [ 'misc', 'VERSION', '' ], +# 'utilization' => [ 'misc', 'GAUGE', '%' ], +# 'cmd_get' => [ 'misc', 'COUNTER', 'c', "Total Number of Get Commands from Start" ], +# The array elements are: +# 1st - string of source for this variable. not used by the library at all, but maybe used by code getting the data +# 2nd - type of data in a variable. May be "GAUGE", "VERSION", "COUNTER", "BOOLEAN", "TEXTINFO", "TEXTDATA", "SETTING" +# 3rd - either empty or one-character UOM to be added to perforance data - 'c' for continous, '%' percent, 's' seconds +# 4th - either empty or a description of this variable. If not empty, the variable becomes long-option and this is help text +# ARG2 - regex of acceptable types of data for performance output. Anything else is ignored (i.e. no no output to perf), but +# is still available for threshold checks. if this is undef, then default of 'GAUGE|COUNTER|^DATA$|BOOLEAN' is used +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, Must be used as object instance function +sub set_knownvars { + my ($self, $known_vars_in, $vartypes_regex_in) = @_; + my $known_vars = $self->{'knownStatusVars'}; + + if (defined($known_vars_in)) { + foreach (keys %{$known_vars_in}) { + $known_vars->{$_} = $known_vars_in->{$_}; + } + } + if (defined($vartypes_regex_in)) { + $self->{'perfOKStatusRegex'} = $vartypes_regex_in; + } + else { + $self->{'perfOKStatusRegex'} = $DEFAULT_PERF_OK_STATUS_REGEX; + } +} + +# @DESCRIPTION : Adds known variables definition one at a time +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : ARG1 - variable name +# ARG2 - string of source for this variable. not used by the library at all, but maybe used by code getting the data +# ARG3 - type of data in a variable. May be "GAUGE", "VERSION", "COUNTER", "BOOLEAN", "TEXTINFO", "TEXTDATA", "SETTING" +# ARG4 - either empty or one-character UOM symbol to be added to perforance data - 'c' for continous, '%' percent, 's' seconds +# ARG5 - either empty or a description of this variable. If not empty, the variable becomes long-option and this is help text +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, Must be used as object instance function +sub add_knownvar { + my ($self, $varname, $source, $type, $unit, $description) = @_; + my $temp = { $varname => [ $source, $type, $unit, $description] }; + $self->set_knownvars($temp,undef); +} + +# @DESCRIPTION : This function is used for checking data values against critical and warning thresholds +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - variable name (used for text output in case it falls within threshold) +# ARG2 - data to be checked +# ARG3 - threshold to be checked, internal structure returned by parse_threshold() +# @RETURNS : Returns "" (empty string) if data is not within threshold range +# and text message for status line out about how data is within range otherwise +# @PRIVACY & USE : PUBLIC. Maybe used directly or as an object instance function +sub check_threshold { + my ($self,$attrib,$data,$th_array) = _self_args(@_); + my $mod = $th_array->[0]; + my $lv1 = $th_array->[1]; + my $lv2 = $th_array->[2]; + my $issymb = 1; + $issymb = 0 if defined($self) && $self->{'output_comparison_symbols'} eq 0; + + # verb("debug check_threshold: $mod : ".(defined($lv1)?$lv1:'')." : ".(defined($lv2)?$lv2:'')); + return "" if !defined($lv1) || ($mod eq '' && $lv1 eq ''); + return " " . $attrib . " is " . $data . ( ($issymb==1)?' = ':' equal to ' ). $lv1 if $mod eq '=' && $data eq $lv1; + return " " . $attrib . " is " . $data . ( ($issymb==1)?' != ':' not equal to ' ). $lv1 if $mod eq '!' && $data ne $lv1; + return " " . $attrib . " is " . $data . ( ($issymb==1)?' > ':' more than ' ) . $lv1 if $mod eq '>' && $data>$lv1; + return " " . $attrib . " is " . $data . ( ($issymb==1)?' > ':' more than ' ) . $lv2 if $mod eq ':' && $data>$lv2; + return " " . $attrib . " is " . $data . ( ($issymb==1)?' >= ':' more than or equal to ' ) . $lv1 if $mod eq '>=' && $data>=$lv1; + return " " . $attrib . " is " . $data . ( ($issymb==1)?' < ':' less than ' ). $lv1 if ($mod eq '<' || $mod eq ':') && $data<$lv1; + return " " . $attrib . " is " . $data . ( ($issymb==1)?' <= ':' less than or equal to ' ) . $lv1 if $mod eq '<=' && $data<=$lv1; + return " " . $attrib . " is " . $data . " in range $lv1..$lv2" if $mod eq '@' && $data>=$lv1 && $data<=$lv2; + return ""; +} + +# @DESCRIPTION : This function is called to parse threshold string +# @LAST CHANGED : 03-23-13 by WL +# (the code in this function can be traced back to late 2006. It has not much changed from 2008) +# @INPUT : ARG1 - String for one variable WARN or CRIT threshold which can be as follows: +# data - warn if data is above this value if numeric data, or equal for non-numeric +# >data - warn if data is above this value (default for numeric values) +# num2 +# \@num1:num2 - warn if data is in range i.e. data>=num1 && data<=num2 +# @RETURNS : Returns reference to a hash array, this library's structure for holding processed threshold spec +# @PRIVACY & USE : PUBLIC. Maybe used directly or as an object instance function +sub parse_threshold { + my ($self,$thin) = _self_args(@_); + + # link to an array that holds processed threshold data + # array: 1st is type of check, 2nd is threshold value or value1 in range, 3rd is value2 in range, + # 4th is extra options such as ^, 5th is nagios spec string representation for perf out + my $th_array = [ '', undef, undef, '', '' ]; + my $th = $thin; + my $at = ''; + + $at = $1 if $th =~ s/^(\^?[@|>|<|=|!]?~?)//; # check mostly for my own threshold format + $th_array->[3]='^' if $at =~ s/\^//; # deal with ^ option + $at =~ s/~//; # ignore ~ if it was entered + if ($th =~ /^\:([-|+]?\d+\.?\d*)/) { # :number format per nagios spec + $th_array->[1]=$1; + $th_array->[0]=($at !~ /@/)?'>':'<='; + $th_array->[5]=($at !~ /@/)?('~:'.$th_array->[1]):($th_array->[1].':'); + } + elsif ($th =~ /([-|+]?\d+\.?\d*)\:$/) { # number: format per nagios spec + $th_array->[1]=$1; + $th_array->[0]=($at !~ /@/)?'<':'>='; + $th_array->[5]=($at !~ /@/)?'':'@'; + $th_array->[5].=$th_array->[1].':'; + } + elsif ($th =~ /([-|+]?\d+\.?\d*)\:([-|+]?\d+\.?\d*)/) { # nagios range format + $th_array->[1]=$1; + $th_array->[2]=$2; + if ($th_array->[1] > $th_array->[2]) { + print "Incorrect format in '$thin' - in range specification first number must be smaller then 2nd\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + $th_array->[0]=($at !~ /@/)?':':'@'; + $th_array->[5]=($at !~ /@/)?'':'@'; + $th_array->[5].=$th_array->[1].':'.$th_array->[2]; + } + if (!defined($th_array->[1])) { # my own format (<,>,=,!) + $th_array->[0] = ($at eq '@')?'<=':$at; + $th_array->[1] = $th; + $th_array->[5] = '~:'.$th_array->[1] if ($th_array->[0] eq '>' || $th_array->[0] eq '>='); + $th_array->[5] = $th_array->[1].':' if ($th_array->[0] eq '<' || $th_array->[0] eq '<='); + $th_array->[5] = '@'.$th_array->[1].':'.$th_array->[1] if $th_array->[0] eq '='; + $th_array->[5] = $th_array->[1].':'.$th_array->[1] if $th_array->[0] eq '!'; + } + if ($th_array->[0] =~ /[>|<]/ && !isnum($th_array->[1])) { + print "Numeric value required when '>' or '<' are used !\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + # verb("debug parse_threshold: $th_array->[0] and $th_array->[1]"); + $th_array->[0] = '=' if !$th_array->[0] && !isnum($th_array->[1]) && $th_array->[1] ne ''; + if (!$th_array->[0] && isnum($th_array->[1])) { # this is just the number by itself, becomes 0:number check per nagios guidelines + $th_array->[2]=$th_array->[1]; + $th_array->[1]=0; + $th_array->[0]=':'; + $th_array->[5]=$th_array->[2]; + } + return $th_array; +} + +# @DESCRIPTION : this function checks that for numeric data warn threshold is within range of critical +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - warhing threshold structure (reference to hash array) +# ARG2 - critical threshold structure (reference to hash array) +# @RETURNS : Returns 1 if warning does not fall within critical (there is an error) +# Returns 0 if everything is ok and warning is within critical +# @PRIVACY & USE : PUBLIC, but its use is discouraged. Maybe used directly or as an object instance function. +sub threshold_specok { + my ($self, $warn_thar,$crit_thar) = _self_args(@_); + + return 1 if defined($warn_thar) && defined($warn_thar->[1]) && + defined($crit_thar) && defined($crit_thar->[1]) && + isnum($warn_thar->[1]) && isnum($crit_thar->[1]) && + $warn_thar->[0] eq $crit_thar->[0] && + (!defined($warn_thar->[3]) || $warn_thar->[3] !~ /\^/) && + (!defined($crit_thar->[3]) || $crit_thar->[3] !~ /\^/) && + (($warn_thar->[1]>$crit_thar->[1] && ($warn_thar->[0] =~ />/ || $warn_thar->[0] eq '@')) || + ($warn_thar->[1]<$crit_thar->[1] && ($warn_thar->[0] =~ /[0] eq ':')) || + ($warn_thar->[0] eq ':' && $warn_thar->[2]>=$crit_thar->[2]) || + ($warn_thar->[0] eq '@' && $warn_thar->[2]<=$crit_thar->[2])); + return 0; # return with 0 means specs check out and are ok +} + +# @DESCRIPTION : this compares var names from data to names given as plugin options treating them regex +# @LAST CHANGED : 08-26-12 by WL +# @INPUT : ARG1 - the name to search for +# @RETURNS : Keyname for what first one that matched from _thresholds +# Undef if nothing matched +# @PRIVACY & USE : PUBLIC, but its direct use should be rare. Must be used as an object instance function. +sub var_pattern_match { + my ($self, $name) = @_; + my $thresholds = $self->{'_thresholds'}; + my $allvars = $self->{'_allVars'}; + my $is_regex_match = $self->{'enable_regex_match'}; + my $v; + my $pattern; + + foreach $v (@{$allvars}) { + $pattern=''; + if ($is_regex_match eq 1 && !defined($thresholds->{$v}{'PATTERN'})) { + $pattern=$v; + } + elsif ($is_regex_match ne 0 && defined($thresholds->{$v}{'PATTERN'})) { + $pattern = $thresholds->{$v}{'PATTERN'}; + } + if ($pattern ne '' && $name =~ /$pattern/) { + $self->verb("Data name '".$name."' matches pattern '".$pattern."'"); + return $v; + } + } + return undef; +} + +# @DESCRIPTION : This function adds data results +# @LAST CHANGED : 08-27-12 by WL +# @INPUT : ARG1 - name of data variable +# ARG2 - data for this variable +# ARG3 - name of checked variable/parameter corresponding to this data variable +# default undef, assumed to be same as ARG1 +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function +sub add_data { + my ($self, $dnam, $dval, $anam) = @_; + my $thresholds = $self->{'_thresholds'}; + my $dataresults = $self-> {'_dataresults'}; + my $datavars = $self -> {'_datavars'}; + my $perfVars = $self->{'_perfVars'}; + + # determine what plugin options-specified var & threshold this data corresponds to + if (!defined($anam)) { + if ($self->{'enable_regex_match'} == 0) { + $anam = $dnam; + } + else { + $anam = $self->var_pattern_match($dnam); + $anam = $dnam if !defined($anam); + } + } + # set dataresults + if (exists($dataresults->{$dnam})) { + $dataresults->{$dnam}[0] = $dval; + $dataresults->{$dnam}[4] = $anam if defined($anam); + } + else { + $dataresults->{$dnam} = [$dval, 0, 0, '', $anam]; + } + # reverse map array + $datavars->{$anam} = [] if !exists($datavars->{$anam}); + push @{$datavars->{$anam}}, $dnam; + # setperf if all variables go to perf + if ($self->{'all_variables_perf'} == 1) { + $thresholds->{$anam}={} if !exists($thresholds->{$anam}); + $thresholds->{$anam}{'PERF_DATALIST'} = [] if !exists($thresholds->{$anam}{'PERF_DATALIST'}); + push @{$thresholds->{$anam}{'PERF_DATALIST'}}, $dnam; + if (!defined($thresholds->{$anam}{'PERF'})) { + push @{$perfVars}, $anam; + $thresholds->{$anam}{'PERF'} = 'YES'; + } + } +} + +# @DESCRIPTION : Accessor function that gets variable data +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - name of data variable +# @RETURNS : undef if variable does not exist and data otherwise +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function +sub vardata { + my ($self,$dnam) = @_; + my $dataresults = $self->{'_dataresults'}; + return undef if !exists($dataresults->{$dnam}); + return $dataresults->{$dnam}[0]; +} + +# @DESCRIPTION : This function parses "WARN:threshold,CRIT:threshold,ABSENT:OK|WARNING|CRITICAL|UNKNOWN" combined threshold string +# Parsing of actual threshold i.e. what is after WARN, CRIT is done by parse_threshold() function +# @LAST CHANGED : 08-27-12 by WL +# @INPUT : ARG1 - String containing threshold line like "WARN:threshold,CRIT:threshold,ABSENT:OK|WARNING|CRITICAL|UNKNOWN" +# Acceptable comma-separated parts threshold specifiers are: +# WARN: - warning threshold +# CRIT: - critical threshold +# ABSENT:OK|WARNING|CRITICAL|UNKNOWN - nagios exit code if data for this variable is not found +# ZERO:OK|WARNING|CRITICAL|UNKNOWN - nagios exit code if data is 0 +# DISPLAY:YES|NO - output data in plugin status line +# PERF:YES|NO - output data as plugin performance data +# SAVED:YES|NO - put results in saved data (this really should not be set manually) +# PATTERN: - enables regex match allowing more than one real data name to match this threshold +# NAME: - overrides output status and perf name for this variable +# UOM: - unit of measurement symbol to add to perf +# @RETURNS : Returns reference to a hash array, a library's structure for holding processed MULTI-THRESHOLD spec +# Note that this is MULTI-THRESHOLD hash structure, it itself contains threshold hashes returned by parse_threshold() +# @PRIVACY & USE : PUBLIC, but its use is discouraged. Maybe used directly or as an object instance function. +sub parse_thresholds_list { + my ($self,$in) = _self_args(@_); + my $thres = {}; + my @tin = undef; + my $t = undef; + my $t2 = undef; + + @tin = split(',', $in); + $t = uc $tin[0] if exists($tin[0]); + # old format with =warn,crit thresolds without specifying which one + if (defined($t) && $t !~ /^WARN/ && $t !~ /^CRIT/ && $t !~ /^ABSENT/ && $t !~ /^ZERO/ && + $t !~ /^DISPLAY/ && $t !~ /^PERF/ && $t !~ /^SAVED/ && + $t !~ /^PATTERN/ && $t !~ /^NAME/ && $t !~ /^UOM/) { + if (scalar(@tin)==2) { + if (defined($self)) { + $thres->{'WARN'} = $self->parse_threshold($tin[0]); + $thres->{'CRIT'} = $self->parse_threshold($tin[1]); + } + else { + $thres->{'WARN'} = parse_threshold($tin[0]); + $thres->{'CRIT'} = parse_threshold($tin[1]); + } + } + else { + print "Can not parse. Unknown threshold specification: $in\n"; + print "Threshold line should be either both warning and critical thresholds separated by ',' or \n"; + print "new format of: WARN:threshold,CRIT:threshold,ABSENT:OK|WARNING|CRITICAL|UNKNOWN\n"; + print "which allows to specify all 3 (CRIT,WARN,ABSENT) or any one of them in any order\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + # new format with prefix specifying if its WARN or CRIT and support of ABSENT + else { + foreach $t (@tin) { + $t2 = uc $t; + if ($t2 =~ /^WARN\:(.*)/) { + if (defined($self)) { + $thres->{'WARN'} = $self->parse_threshold($1); + } + else { + $thres->{'WARN'} = parse_threshold($1); + } + } + elsif ($t2 =~ /^CRIT\:(.*)/) { + if (defined($self)) { + $thres->{'CRIT'} = $self->parse_threshold($1); + } + else { + $thres->{'CRIT'} = parse_threshold($1); + } + } + elsif ($t2 =~ /^ABSENT\:(.*)/) { + my $val = $1; + if (defined($ERRORS{$val})) { + $thres->{'ABSENT'} = $val; + } + else { + print "Invalid value $val after ABSENT. Acceptable values are: OK, WARNING, CRITICAL, UNKNOWN\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + elsif ($t2 =~ /^ZERO\:(.*)/) { + my $val = $1; + if (exists($ERRORS{$val})) { + $thres->{'ZERO'} = $val; + } + else { + print "Invalid value $val after ZERO. Acceptable values are: OK, WARNING, CRITICAL, UNKNOWN\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + elsif ($t2 =~ /^DISPLAY\:(.*)/) { + if ($1 eq 'YES' || $1 eq 'NO') { + $thres->{'DISPLAY'} = $1; + } + else { + print "Invalid value $1 after DISPLAY. Specify this as YES or NO.\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + elsif ($t2 =~ /^PERF\:(.*)/) { + if ($1 eq 'YES' || $1 eq 'NO') { + $thres->{'PERF'} = $1; + } + else { + print "Invalid value $1 after PERF. Specify this as YES or NO.\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + elsif ($t =~ /^PATTERN\:(.*)/i) { + $thres->{'PATTERN'} = $1; + $self->{'enable_regex_match'} = 2 if defined($self) && $self->{'enable_regex_match'} eq 0; + } + elsif ($t =~ /^NAME\:(.*)/i) { + $thres->{'NAME'} = $1; + } + elsif ($t =~ /^UOM\:(.*)/i) { + $thres->{'UOM'} = $1; + } + else { + print "Can not parse. Unknown threshold specification: $_\n"; + print "Threshold line should be WARN:threshold,CRIT:threshold,ABSENT:OK|WARNING|CRITICAL|UNKNOWN,ZERO:OK|WARNING|CRITICAL|UNKNOWN\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + } + if (exists($thres->{'WARN'}) && exists($thres->{'CRIT'})) { + my $check_warncrit = 0; + if (defined($self)) { + $check_warncrit = $self->threshold_specok($thres->{'WARN'},$thres->{'CRIT'}); + } + else { + $check_warncrit = threshold_specok($thres->{'WARN'},$thres->{'CRIT'}); + } + if ($check_warncrit) { + print "All numeric warning values must be less then critical (or greater then when '<' is used)\n"; + print "Note: to override this check prefix warning value with ^\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + return $thres; +} + +# @DESCRIPTION : Adds variable to those whose thresholds would be checked +# @LAST CHANGED : 08-27-12 by WL +# @INPUT : ARG1 - name of the data variable +# ARG2 - either: +# 1) ref to combined thresholds hash array i.e. { 'WARN' => threshold array, 'CRIT' => threshold array, ABSENT => ... } +# such hash array is returned by by parse_thresholds_list function +# -- OR -- +# 2) a tet string with a list of thresholds in the format +# WARN:threshold,CRIT:thresholod,ABSENT:OK|WARNING|CRITICAL|UNKNOWN,ZERO:WARNING|CRITICAL|UNKNOWN,PATTERN:pattern,NAME:name +# which would get parsed y parse_thresholds_list function into ref array +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, Recommend function for adding thresholds. Must be used as an object instance function +sub add_thresholds { + my ($self,$var,$th_in) = @_; + my $th; + if (ref($th_in) && (exists($th_in->{'WARN'}) || exists($th_in->{'CRIT'}) || exists($th_in->{'DISPLAY'}) || + exists($th_in->{'PERF'}) || exists($th_in->{'SAVED'}) || exists($th_in->{'ABSENT'}) || + exists($th_in->{'ZERO'}) || exists($th_in->{'PATTERN'}))) { + $th = $th_in; + } + else { + $th = $self->parse_thresholds_list($th_in); + } + if (!defined($var)) { + if (defined($th->{'NAME'})) { + $var = $th->{'NAME'}; + } + elsif (defined($th->{'PATTERN'})) { + $var = $th->{'PATTERN'}; + } + else { + print "Can not parse. No name or pattern in threshold: $th_in\n"; + print "Specify threshold line as: NAME:name,PATTERN:regex,WARN:threshold,CRIT:threshold,ABSENT:OK|WARNING|CRITICAL|UNKNOWN,ZERO:OK|WARNING|CRITICAL|UNKNOWN\n"; + $self->usage(); + exit $ERRORS{"UNKNOWN"}; + } + } + push @{$self->{'_allVars'}}, $var if !exists($self->{'_thresholds'}{$var}); + $self->{'_thresholds'}{$var}=$th; +} + +# @DESCRIPTION : Accessor function for thresholds and related variable settings on what and how to check +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - name of data variable +# ARG2 - name of the threshold or related data setting to return +# This can be: "WARN", "CRIT", "ABSENT", "ZERO", "DISPLAY", "PERF" +# @RETURNS : undef if variable does not exist +# if variable exists and "WARN" or "CRIT" thresholds are requested, it returns asociated +# threshold hash array structure for named threshold of the type returned by parse_threshold() +# for ABSENT, ZERO, DISPLAY, PERF and other, it returns a string for this check setting +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function +sub get_threshold { + my ($self,$var,$thname) = @_; + return undef if !exists($self->{'_thresholds'}{$var}) || !exists($self->{'_thresholds'}{$var}{$thname}); + return $self->{'_thresholds'}{$var}{$thname}; +} + +# @DESCRIPTION : Modifier function for thresholds and related variable settings on how to check and display results +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - name of data variable +# ARG2 - type of the threshold or related data setting +# This can be: "WARN", "CRIT", "ABSENT", "ZERO", "DISPLAY", "PERF" +# ARG3 - what to set this to, for "WARN" and "CRIT" this must be hash array returned by parse_threshold() +# @RETURNS : 0 if type you want to set is not one of "WARN", "CRIT", "ZERO" or other acceptable settings +# 1 on success +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function +sub set_threshold { + my ($self,$var,$thname,$thdata) = @_; + if ($thname ne 'WARN' && $thname ne 'CRIT' && $thname ne 'ZERO' && $thname ne 'PATTERN' && $thname ne 'NAME' && + $thname ne 'ABSENT' && $thname ne 'PERF' && $thname ne 'DISPLAY' && $thname ne 'SAVED' && $thname ne 'UOM') { + return 0; + } + $self->{'_thresholds'}{$var}={} if !exists($self->{'_thresholds'}{$var}); + $self->{'_thresholds'}{$var}{$thname}=$thdata; + return 1; +} + +# @DESCRIPTION : Returns list variables for GetOptions(..) that are long-options based on known/defined variable +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : none +# @RETURNS : Array of additional options based on KNOWN_STATS_VARS +# @PRIVACY & USE : PUBLIC, Special use case with GetOpt::Long. Must be used as an object instance function +sub additional_options_list { + my $self = shift; + + my $known_vars = $self->{'knownStatusVars'}; + my ($o_rprefix, $o_rsuffix, $v, $v2) = ('','','',''); + $o_rprefix = $self->{'o_rprefix'} if defined($self->{'o_rprefix'}); + $o_rsuffix = $self->{'o_rsuffix'} if defined($self->{'o_rsuffix'}); + my @VarOptions = (); + + if ($self->{'enable_long_options'} != -1) { + if (defined($self) && defined($known_vars)) { + foreach $v (keys %{$known_vars}) { + if (exists($known_vars->{$v}[3]) && $known_vars->{$v}[3] ne '') { + push @VarOptions,$v."=s"; + if ($self->{'enable_rate_of_change'} eq 1 && $known_vars->{$v}[1] eq 'COUNTER' && ($o_rprefix ne '' || $o_rsuffix ne '')) { + $v2 = $o_rprefix.$v.$o_rsuffix; + push @VarOptions,$v2."=s" + } + } + } + } + } + if (scalar(@VarOptions)>0) { + $self->{'enable_long_options'} = 1; + } + return @VarOptions; +} + +# @DESCRIPTION : Prints out help for generated long options +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : none +# @RETURNS : a string of text for help output +# @PRIVACY & USE : PUBLIC, Special use case with GetOpt::Long. Must be used as an object instance function +sub additional_options_help { + my $self = shift; + my $vname; + my $vname2; + my $counter = 0; + my $known_vars = $self->{'knownStatusVars'}; + + if ($self->{'enable_long_options'} != 1) { return ''; } + + my $out=" These options are all --long_name= + where specifiers are one or more of: + WARN:threshold - warning alert threshold + CRIT:threshold - critical alert threshold + Threshold is a value (usually numeric) which may have the following prefix: + > - warn if data is above this value (default for numeric values) + < - warn if data is below this value (must be followed by number) + = - warn if data is equal to this value (default for non-numeric values) + ! - warn if data is not equal to this value + Threshold can also be specified as a range in two forms: + num1:num2 - warn if data is outside range i.e. if datanum2 + \@num1:num2 - warn if data is in range i.e. data>=num1 && data<=num2 + ABSENT:OK|WARNING|CRITICAL|UNKNOWN - Nagios alert (or lock of thereof) if data is absent + ZERO:OK|WARNING|CRITICAL|UNKNOWN - Nagios alert (or lock of thereof) if result is 0 + DISPLAY:YES|NO - Specifies if data should be included in nagios status line output + PERF:YES|NO - Output results as performance data or not (always YES if asked for rate) + NAME: - Change the name to in status and PERF output\n\n"; + + # add more options based on KNOWN_STATUS_VARS array + foreach $vname (keys(%{$known_vars})) { + if (exists($known_vars->{$vname}[3])) { + $counter++; + $out .= ' --'.$vname."=WARN:threshold,CRIT:threshold,\n"; + $out .= " ".$known_vars->{$vname}[3]."\n"; + if ($known_vars->{$vname}[1] eq 'COUNTER' && $self->{'enable_rate_of_change'} eq 1) { + $vname2=$o_rprefix.$vname.$o_rsuffix; + $out .= ' --'.$vname2."=WARN:threshold,CRIT:threshold,\n"; + $out .= " Rate of Change of ".$known_vars->{$vname}[3]."\n"; + } + } + } + if ($counter>0) { return $out; } + return ""; +} + +# @DESCRIPTION : Processes standard options parsing out of them variables to be checked +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : ARG1 - Options data hash from GetOpt::Long +# ARG2 - option --verbose or -v or --debug : undef normally and "" or filename if debug enabled +# ARG3 - option --variables or -a in WL's plugins : comma-separated list of variables to check +# ARG4 - option --warn or -w : comma-separated warning thresholds for variables in ARG3 +# ARG5 - option --crit or -c : comma-separated critical thresholds for variables in ARG3 +# ARG6 - option --perf or -f in WL's plugin: all regular variables should also go to perf data +# ARG7 - option --perfvars or -A in WL's plugins: command-separated list of variables whose data goes to PERF output +# ARG8 - prefix to distinguish rate variables, maybe "" but usually this is "rate_" +# ARG9 - suffix to distinguish rate variables, only if ARG7 is "", otherwise optional and absent +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, To be used shortly after GetOptions. Must be used as an object instance function +sub options_startprocessing { + my ($self, $Options, $o_verb, $o_variables, $o_warn, $o_crit, $o_perf, $o_perfvars, $o_rprefix, $o_rsuffix) = @_; + + # Copy input parameters to object hash array, set them if not present + $o_rprefix="" if !defined($o_rprefix); + $o_rsuffix="" if !defined($o_rsuffix); + $o_crit="" if !defined($o_crit); + $o_warn="" if !defined($o_warn); + $o_variables="" if !defined($o_variables); + $self->{'o_variables'} = $o_variables; + $self->{'o_perfvars'} = $o_perfvars; + $self->{'o_crit'} = $o_crit; + $self->{'o_warn'} = $o_warn; + $self->{'o_perf'} = $o_perf; + $self->{'o_rprefix'} = $o_rprefix; + $self->{'o_rsuffix'} = $o_rsuffix; + $self->{'verbose'} = $o_verb if defined($o_verb); + # start processing + my $perfVars = $self->{'_perfVars'}; + my $ar_varsL = $self->{'_ar_varsL'}; + my $ar_critLv = $self->{'_ar_critLv'}; + my $ar_warnLv = $self->{'_ar_warnLv'}; + my $known_vars = $self->{'knownStatusVars'}; + $o_rprefix = lc $o_rprefix; + $o_rsuffix = lc $o_rsuffix; + # process o_perfvars option + if (defined($o_perfvars)) { + @{$perfVars} = split( /,/ , lc $o_perfvars ); + if (scalar(@{$perfVars})==0) { + $o_perfvars='*'; + $self->{'o_perfvars'}='*'; + } + if ($o_perfvars eq '*') { + $self->{'all_variables_perf'} = 1; + } + else { + # below loop converts rate variables to internal representation + for (my $i=0; $i[$i] = '&'.$1 if $perfVars->[$i] =~ /^$o_rprefix(.*)$o_rsuffix$/; + } + } + } + if (defined($o_warn) || defined($o_crit) || defined($o_variables)) { + if (defined($o_variables)) { + @{$ar_varsL}=split( /,/ , lc $o_variables ); + if (defined($o_warn)) { + $o_warn.="~" if $o_warn =~ /,$/; + @{$ar_warnLv}=split( /,/ , lc $o_warn ); + } + if (defined($o_crit)) { + $o_crit.="~" if $o_crit =~ /,$/; + @{$ar_critLv}=split( /,/ , lc $o_crit ); + } + } + else { + print "Specifying warning or critical thresholds requires specifying list of variables to be checked\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + # this is a special loop to check stats-variables options such as "connected_clients=WARN:warning,CRIT:critical" + # which are specified as long options (new extended threshold line spec introduced in check_redis and check_memcached) + my ($vname,$vname2) = (undef,undef); + foreach $vname (keys(%{$known_vars})) { + $vname2=$o_rprefix.$vname.$o_rsuffix; + if (exists($known_vars->{$vname}[3])) { + if (exists($Options->{$vname})) { + $self->verb("Option $vname found with spec parameter: ".$Options->{$vname}); + $self->add_thresholds($vname,$Options->{$vname}); + } + if (exists($Options->{$vname2})) { + $self->verb("Rate option $vname2 found with spec parameter: ".$Options->{$vname2}); + $self->add_thresholds('&'.$vname,$Options->{$vname2}); + } + } + } + $self->{'_called_options_startprocessing'}=1; +} + +# @DESCRIPTION : Internal function. Parses and sets thresholds for given list of variables after all options have been processed +# @LAST CHANGED : 08-20-12 by WL +# @INPUT : none +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PRIVATE, Must be used as an object instance function +sub _options_setthresholds { + my $self = shift; + + my $perfVars = $self->{'_perfVars'}; + my $ar_varsL = $self->{'_ar_varsL'}; + my $ar_critLv = $self->{'_ar_critLv'}; + my $ar_warnLv = $self->{'_ar_warnLv'}; + my $known_vars = $self->{'knownStatusVars'}; + my $thresholds = $self->{'_thresholds'}; + my ($o_rprefix, $o_rsuffix) = ("", ""); + $o_rprefix = $self->{'o_rprefix'} if exists($self->{'o_rprefix'}); + $o_rsuffix = $self->{'o_rsuffix'} if exists($self->{'o_rsuffix'}); + + if (scalar(@{$ar_warnLv})!=scalar(@{$ar_varsL}) || scalar(@{$ar_critLv})!=scalar(@{$ar_varsL})) { + printf "Number of specified warning levels (%d) and critical levels (%d) must be equal to the number of attributes specified at '-a' (%d). If you need to ignore some attribute do it as ',,'\n", scalar(@{$ar_warnLv}), scalar(@{$ar_critLv}), scalar(@{$ar_varsL}); + $self->verb("Warning Levels: ".join(",",@{$ar_warnLv})); + $self->verb("Critical Levels: ".join(",",@{$ar_critLv})); + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + for (my $i=0; $i[$i] = '&'.$1 if $ar_varsL->[$i] =~ /^$o_rprefix(.*)$o_rsuffix$/; + if ($ar_varsL->[$i] =~ /^&(.*)/) { + if (!defined($self->{'o_prevperf'})) { + print "Calculating rate variable such as ".$ar_varsL->[$i]." requires previous performance data. Please add '-P \$SERVICEPERFDATA\$' to your nagios command line.\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + if (defined($known_vars->{$1}) && $known_vars->{$1}[0] ne 'COUNTER') { + print "$1 is not a COUNTER variable for which rate of change should be calculated\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + if (!exists($thresholds->{$ar_varsL->[$i]})) { + my $warn = $self->parse_threshold($ar_warnLv->[$i]); + my $crit = $self->parse_threshold($ar_critLv->[$i]); + if ($self->threshold_specok($warn,$crit)) { + print "All numeric warning values must be less then critical (or greater then when '<' is used)\n"; + print "Note: to override this check prefix warning value with ^\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + $self->add_thresholds($ar_varsL->[$i], {'WARN'=>$warn,'CRIT'=>$crit} ); + } + } +} + +# @DESCRIPTION : Internal helper function. Finds time when previous performance data was calculated/saved at +# @DEVNOTE : Right now this library and function only supports one previous performance data set, +# but check_snmp_netint plugin supports multiple sets and there the code is more complex, +# As this function originated there, that code is commented out right now. +# @LAST CHANGED : 08-21-12 by WL +# @INPUT : ARG1 - reference to previous performance data hash array. It looks for _ptime variable there. +# ARG2 - string with previous performance time in unix seconds. This may come from separate plugin option. +# @RETURNS : Time in unix seconds frm 1970 or undef if it was not located +# @PRIVACY & USE : PRIVATE, Maybe used directly or as an object instance function. +sub _set_prevtime { + my ($self,$prevperf,$o_prevtime) = _self_args(@_); + my $perfcheck_time; + + if (defined($o_prevtime)) { + # push @prev_time, $o_prevtime; + # $prev_perf{ptime}=$o_prevtime; + $perfcheck_time=$o_prevtime; + } + elsif (defined($prevperf) && defined($prevperf->{'_ptime'})) { + # push @prev_time, $prev_perf{ptime}; + $perfcheck_time=$prevperf->{'_ptime'}; + } + else { + # @prev_time=(); + $perfcheck_time=undef; + } + # numeric sort for timestamp array (this is from lowest time to highiest, i.e. to latest) + # my %ptimes=(); + # $ptimes{$_}=$_ foreach @prev_time; + # @prev_time = sort { $a <=> $b } keys(%ptimes); + return $perfcheck_time; +} + +# @DESCRIPTION : Processes standard options, setting up thresholds based on options that are to be checked +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : none +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, To be called after plugin finished processing its own custom options. Must be used as an object instance function +sub options_finishprocessing { + my $self = shift; + + if (!exists($self->{'_called_options_finishprocessing'})) { + # process previous performance data + my $prevperf = $self->{'_prevPerf'}; + if (defined($self->{'o_prevperf'})) { + if (defined($self->{'o_perf'}) || defined($self->{'o_perfvars'})) { + %{$prevperf}=$self->process_perf($self->{'o_prevperf'}); + $self->{'_perfcheck_time'} = $self->_set_prevtime($prevperf,$self->{'o_prevtime'}); + } + else { + print "--prevperf can only be used with --perf or --perfvars options\n"; + if (defined($self)) { $self->usage(); } + exit $ERRORS{"UNKNOWN"}; + } + } + # set thresholds + $self->_options_setthresholds(); + # prepare data results arrays + my $dataresults = $self->{'_dataresults'}; + my $thresholds = $self->{'_thresholds'}; + $dataresults->{$_} = [undef, 0, 0] foreach(@{$self->{'_allVars'}}); + if (defined($self->{'_perfVars'})) { + foreach(@{$self->{'_perfVars'}}) { + $dataresults->{$_} = [undef, 0, 0] if !exists($dataresults->{$_}); + $thresholds->{$_} = {} if !exists($thresholds->{$_}); + $thresholds->{$_}{'PERF'} = 'YES'; + } + } + # mark as having finished + $self->{'_called_options_finishprocessing'}=1; + } +} + +# @DESCRIPTION : Accessor function for previously saved perfdata +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : ARG1 - varname +# @RETURNS : value of that variable on previous plugin run, undef if not known +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function +sub prev_perf { + my ($self,$var) = @_; + if (defined($self) && defined($self->{'_prevPerf'}{$var})) { + return $self->{'_prevPerf'}{$var}; + } + return undef; +} + +# @DESCRIPTION : Accessor function for exit status code +# @LAST CHANGED : 08-21-12 by WL +# @INPUT : none +# @RETURNS : current expected exit status code +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function +sub statuscode { + my $self = shift; + return $self->{'_statuscode'}; +} + +# @DESCRIPTION : Sets plugin exist status +# @LAST CHANGED : 08-21-12 by WL +# @INPUT : status code string - one of "WARNING", "CRITICAL", "UNKNOWN". +# @RETURNS : 0 on success, 1 if this status code is below level that plugin would exit with and as such it was not set +# @PRIVACY & USE : PUBLIC, Must be used as an object instance function +sub set_statuscode { + my ($self,$newcode) = @_; + + if ($newcode eq 'UNKNOWN') { + $self->{'_statuscode'} = 'UNKNOWN'; + return 0; + } + if ($self->{'_statuscode'} eq 'UNKNOWN') { return 1; } + elsif ($self->{'_statuscode'} eq 'CRITICAL') { + if ($newcode eq 'CRITICAL') { return 0;} + else { return 1; } + } + elsif ($self->{'_statuscode'} eq 'WARNING') { + if ($newcode eq 'CRITICAL') { + $self->{'_statuscode'} ='CRITICAL'; + return 0; + } + elsif ($newcode eq 'WARNING') { return 0; } + else { return 1; } + } + elsif ($self->{'_statuscode'} eq 'OK') { + if ($newcode eq 'CRITICAL' || $newcode eq 'WARNING') { + $self->{'_statuscode'} = $newcode; + return 0; + } + else { return 1; } + } + else { + printf "SYSTEM ERROR: status code $newcode not supported"; + exit $ERRORS{'UNKNOWN'}; + } + return 1; # should never get here +} + +# @DESCRIPTION : This function is called closer to end of the code after plugin retrieved data and +# assigned values to variables. This function checks variables against all thresholds. +# It prepares statusdata and statusinfo and exitcode. +# @LAST CHANGED : 09-03-12 by WL +# @INPUT : none +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, To be called after variables have values. Must be used as an object instance function +sub main_checkvars { + my $self = shift; + + $self->options_finishprocessing() if !exists($self->{'_called_options_finshprocessing'}); + if (exists($self->{'_called_main_checkvars'})) { return; } + + my $thresholds = $self->{'_thresholds'}; + my $dataresults = $self->{'_dataresults'}; + my $allVars = $self->{'_allVars'}; + my $datavars = $self->{'_datavars'}; + + my ($dvar,$avar,$aname,$perf_str,$chk)=(undef,undef,undef,undef,undef); + + # main loop to check for warning & critical thresholds + for (my $i=0;$i[$i]; + if (!defined($datavars->{$avar}) || scalar(@{$datavars->{$avar}})==0) { + if (defined($thresholds->{$avar}{'ABSENT'})) { + $self->set_statuscode($thresholds->{$avar}{'ABSENT'}); + } + else { + $self->set_statuscode("CRITICAL"); + } + $aname = $self->out_name($avar); + $self->addto_statusinfo_output($avar, "$aname data is missing"); + } + foreach $dvar (@{$datavars->{$avar}}) { + $aname = $self->out_name($dvar); + if (defined($dataresults->{$dvar}[0])) { + # main check + if (defined($avar)) { + if ($dataresults->{$dvar}[0] eq 0 && exists($thresholds->{$avar}{'ZERO'})) { + $self->set_statuscode($thresholds->{$avar}{'ZERO'}); + $self->addto_statusinfo_output($dvar, "$aname is zero") if $self->statuscode() ne 'OK'; + } + else { + $chk=undef; + if (exists($thresholds->{$avar}{'CRIT'})) { + $chk = $self->check_threshold($aname,lc $dataresults->{$dvar}[0], $thresholds->{$avar}{'CRIT'}); + if ($chk) { + $self->set_statuscode("CRITICAL"); + $self->addto_statusinfo_output($dvar,$chk); + } + } + if (exists($thresholds->{$avar}{'WARN'}) && (!defined($chk) || !$chk)) { + $chk = $self->check_threshold($aname,lc $dataresults->{$dvar}[0], $thresholds->{$avar}{'WARN'}); + if ($chk) { + $self->set_statuscode("WARNING"); + $self->addto_statusinfo_output($dvar,$chk); + } + } + } + } + # if we did not output to status line yet, do so + $self->addto_statusdata_output($dvar,$aname." is ".$dataresults->{$dvar}[0]); + + # if we were asked to output performance, prepare it but do not output until later + if ((defined($self->{'o_perf'}) && defined($avar) && !exists($thresholds->{$avar}{'PERF'})) || + (exists($thresholds->{$avar}{'PERF'}) && $thresholds->{$avar}{'PERF'} eq 'YES')) { + $perf_str = perf_name($aname).'='.$dataresults->{$dvar}[0]; + $self->set_perfdata($dvar, $perf_str, undef, "IFNOTSET"); # with undef UOM would get added + $dataresults->{$dvar}[2]=0; # this would clear -1 from preset perf data, making it ready for output + # below is where threshold info gets added to perfdata + if ((exists($thresholds->{$avar}{'WARN'}[5]) && $thresholds->{$avar}{'WARN'}[5] ne '') || + (exists($thresholds->{$avar}{'CRIT'}[5]) && $thresholds->{$avar}{'CRIT'}[5] ne '')) { + $perf_str = ';'; + $perf_str .= $thresholds->{$avar}{'WARN'}[5] if exists($thresholds->{$avar}{'WARN'}[5]) && $thresholds->{$avar}{'WARN'}[5] ne ''; + $perf_str .= ';'.$thresholds->{$avar}{'CRIT'}[5] if exists($thresholds->{$avar}{'CRIT'}[5]) && $thresholds->{$avar}{'CRIT'}[5] ne ''; + $self->set_perfdata($dvar, $perf_str, '', "ADD"); + } + } + } + } + } + $self->{'_called_main_checkvars'}=1; + # $statusinfo=trim($statusinfo); + # $statusdata=trim($statusdata); +} + +# @DESCRIPTION : This function is at the end. It prepares PERFOUT for output collecting all perf variables data +# @LAST CHANGED : 08-26-12 by WL +# @INPUT : none +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, To be called after variables have values. Must be used as an object instance function +# Calling this function direcly is optional, its automatically called on 1st call to perfdata() +sub main_perfvars { + my $self = shift; + + my $dataresults = $self->{'_dataresults'}; + my $PERF_OK_STATUS_REGEX = $self->{'perfOKStatusRegex'}; + my $perfVars = $self->{'_perfVars'}; + my $known_vars = $self->{'knownStatusVars'}; + my $datavars = $self->{'_datavars'}; + my $avar; + my $dvar; + + $self->main_checkvars() if !exists($self->{'_called_main_checkvars'}); + if (exists($self->{'_called_main_perfvars'})) { return; } + + for (my $i=0;$i[$i]; + if (!defined($datavars->{$avar}) || scalar(@{$datavars->{$avar}})==0) { + $self->verb("Perfvar: $avar selected for PERFOUT but data not available"); + } + else { + foreach $dvar (@{$datavars->{$avar}}) { + if (defined($dataresults->{$dvar}[0])) { + $self->verb("Perfvar: $dvar ($avar) = ".$dataresults->{$dvar}[0]); + if (!defined($known_vars->{$avar}[1]) || $known_vars->{$avar}[1] =~ /$PERF_OK_STATUS_REGEX/ ) { + $self->addto_perfdata_output($dvar); + } + else { + $self->verb(" -- not adding to perfdata because of it is '".$known_vars->{$avar}[1]."' type variable --"); + } + } + else { + $self->verb("Perfvar: $avar selected for PERFOUT but data not defined"); + } + } + } + } + if (defined($self->{'o_prevperf'})) { + $self->addto_perfdata_output('_ptime', "_ptime=".time(), "REPLACE"); + } + foreach $dvar (keys %{$dataresults}) { + if (defined($dataresults->{$dvar}[3]) && $dataresults->{$dvar}[3] ne '') { + $self->verb("Perfvar (Dataresults Loop): $dvar => ".$dataresults->{$dvar}[3]); + $self->addto_perfdata_output($dvar); + } + } + + $self->{'_called_main_perfvars'}=1; + # $perfdata = trim($perfdata); +} + +# @DESCRIPTION : This function should be called at the very very end, it returns perf data output +# @LAST CHANGED : 08-22-12 by WL +# @INPUT : none +# @RETURNS : string of perfdata starting with "|" +# @PRIVACY & USE : PUBLIC, To be called during plugin output. Must be used as an object instance function +sub perfdata { + my $self=shift; + + $self->main_perfvars() if !exists($self->{'_called_main_perfvars'}); + my $perfdata = trim($self->{'_perfdata'}); + if ($perfdata ne '') { + return " | " . $perfdata; + } + return ""; +} + +# @DESCRIPTION : This function is called after data is available and calculates rate variables +# based on current and previous (saved in perfdata) values. +# @LAST CHANGED : 08-27-12 by WL +# @INPUT : none +# @RETURNS : nothing (future: 1 on success, 0 on error) +# @PRIVACY & USE : PUBLIC, To be called after variables have values. Must be used as an object instance function +sub calculate_ratevars { + my $self = shift; + + my $prev_perf = $self->{'_prevPerf'}; + my $ptime = $self->{'_perfcheck_time'}; + my $thresholds = $self->{'_thresholds'}; + my $dataresults = $self->{'_dataresults'}; + my $datavars = $self->{'_datavars'}; + my $allVars = $self->{'_allVars'}; + + my ($avar,$dvar,$nvar) = (undef,undef,undef); + my $timenow=time(); + if (defined($self->{'o_prevperf'}) && (defined($self->{'o_perf'}) || defined($self->{'o_perfvars'}))) { + for (my $i=0;$i[$i] =~ /^&(.*)/) { + $avar = $1; + if (defined($datavars->{$avar}) && scalar(@{$datavars->{$avar}})>0) { + foreach $dvar (@{$datavars->{$avar}}) { + $nvar = '&'.$dvar; + # this forces perfdata output if it was not already + if (defined($dataresults->{$dvar}) && $dataresults->{$dvar}[2]<1 && + (!defined($dataresults->{$dvar}[3]) || $dataresults->{$dvar}[3] eq '')) { + $self->set_perfdata($dvar, perf_name($self->out_name($dvar)).'='.$dataresults->{$dvar}[0], undef, "IFNOTSET"); + $self->set_threshold($dvar,'PERF','YES'); + $self->set_threshold($dvar,'SAVED','YES'); # will replace PERF in the future + } + if (defined($prev_perf->{$dvar}) && defined($ptime)) { + $self->add_data($nvar, + sprintf("%.2f",($dataresults->{$dvar}[0]-$prev_perf->{$dvar})/($timenow-$ptime))); + $self->verb("Calculating Rate of Change for $dvar ($avar) : ".$nvar."=". $self->vardata($nvar)); + } + } + } + } + } + } +} + +} +##################################### END OF THE LIBRARY FUNCTIONS ######################################### + +# process --query options (which maybe repeated, that's why loop) +sub option_query { + my $nlib = shift; + + for(my $i=0;$iverb("Processing query key option: $o_querykey[$i]"); + my @ar=split(/,/, $o_querykey[$i]); + # how to query + my @key_querytype = split(':', uc shift @ar); + $nlib->verb("- processing query type specification: ".join(':',@key_querytype)); + $query[$i] = { 'query_type' => $key_querytype[0] }; + if ($key_querytype[0] eq 'GET' || $key_querytype[0] eq 'LLEN' || + $key_querytype[0] eq 'SLEN' || $key_querytype[0] eq 'HLEN' || + $key_querytype[0] eq 'ZLEN') { + if (scalar(@key_querytype)!=1) { + print "Incorrect specification. GET, LLEN, SLEN, HLEN, ZLEN do not have any arguments\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + } + elsif ($key_querytype[0] eq 'HGET' || $key_querytype[0] eq 'HEXISTS' || + $key_querytype[0] eq 'SEXISTS') { + if (scalar(@key_querytype)!=2) { + print "Incorrect specification of HGET, HEXISTS or SEXIST. Must include hash or set member name as an argument.\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + $query[$i]{'element_name'} = $key_querytype[1]; + } + elsif ($key_querytype[0] eq 'LRANGE' || $key_querytype[0] eq 'ZRANGE') { + if ($key_querytype[0] eq 'ZRANGE' && scalar(@key_querytype)!=4) { + print "Incorrect specification of ZRANGE. Must include type and start and end (min and max scores).\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + elsif ($key_querytype[0] eq 'LRANGE' && (scalar(@key_querytype)<2 || scalar(@key_querytype)>4)) { + print "Incorrect specification of LRANGE. Must include type and start and end range.\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + elsif ($key_querytype[1] ne 'MAX' && $key_querytype[1] ne 'MIN' && + $key_querytype[1] ne 'AVG' && $key_querytype[1] ne 'SUM') { + print "Invalid LRANGE/ZRANGE type $key_querytype[1]. This must be either MAX or MIN or AVG or SUM\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + $query[$i]{'query_subtype'} = $key_querytype[1]; + $query[$i]{'query_range_start'} = $key_querytype[2] if defined($key_querytype[2]); + $query[$i]{'query_range_end'} = $key_querytype[3] if defined($key_querytype[3]); + } + else { + print "Invalid key query $key_querytype[0]. Currently supported are GET, LLEN, SLEN, HLEN, ZLEN, HGET, HEXISTS, SEXISTS, LRANGE and ZRANGE.\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + # key to query and how to name it + if (scalar(@ar)==0) { + print "Invalid query specification. Missing query key name\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + my ($key_query,$key_name) = split(':', shift @ar); + $key_name = $key_query if !defined($key_name) || ! $key_name; + $nlib->verb("- variable $key_name will receive data from $key_query"); + $query[$i]{'key_query'} = $key_query; + $query[$i]{'key_name'} = $key_name; + # parse thresholds and finish processing assigning values to arrays + my $th = $nlib->parse_thresholds_list(join(',',@ar)); + if (exists($th->{'ABSENT'})) { + $nlib->verb("- ".$th->{'ABSENT'}." alert will be issued if $key_query is not present"); + $query[$i]{'alert'} = $th->{'ABSENT'}; + } + if (exists($th->{'WARN'})) { + $nlib->verb("- warning threshold ".$th->{'WARN'}." set"); + $query[$i]{'warn'} = $th->{'WARN'}; + } + if (exists($th->{'CRIT'})) { + $nlib->verb("- critical threshold ".$th->{'CRIT'}." set"); + $query[$i]{'crit'} = $th->{'CRIT'}; + } + $nlib->add_thresholds($key_name,$th); + } +} + +# sets password, host, port and other data based on options entered +sub options_setaccess { + if (!defined($o_host)) { print "Please specify hostname (-H)\n"; print_usage(); exit $ERRORS{"UNKNOWN"}; } + if (defined($o_pwfile) && $o_pwfile) { + if ($o_password) { + print "use either -x or -C to enter credentials\n"; print_usage(); exit $ERRORS{"UNKNOWN"}; + } + open my $file, '<', $o_pwfile or die $!; + while (<$file>) { + # Match first non-blank line that doesn't start with a comment + if (!($_ =~ /^\s*#/) && $_ =~ /\S+/) { + chomp($PASSWORD = $_); + last; + } + } + close $file; + print 'Password file is empty' and exit $ERRORS{"UNKNOWN"} if !$PASSWORD; + } + if (defined($o_password) && $o_password) { + $PASSWORD = $o_password; + } + $HOSTNAME = $o_host if defined($o_host); + $PORT = $o_port if defined($o_port); + $TIMEOUT = $o_timeout if defined($o_timeout); + $DATABASE = $o_database if defined($o_database); +} + +# parse command line options +sub check_options { + my $opt; + my $nlib = shift; + my %Options = (); + Getopt::Long::Configure("bundling"); + GetOptions(\%Options, + 'v:s' => \$o_verb, 'verbose:s' => \$o_verb, "debug:s" => \$o_verb, + 'h' => \$o_help, 'help' => \$o_help, + 'H:s' => \$o_host, 'hostname:s' => \$o_host, + 'p:i' => \$o_port, 'port:i' => \$o_port, + 'C:s' => \$o_pwfile, 'credentials:s' => \$o_pwfile, + 'x:s' => \$o_password, 'password:s' => \$o_password, + 'D:s' => \$o_database, 'database:s' => \$o_database, + 't:i' => \$o_timeout, 'timeout:i' => \$o_timeout, + 'V' => \$o_version, 'version' => \$o_version, + 'a:s' => \$o_variables, 'variables:s' => \$o_variables, + 'c:s' => \$o_crit, 'critical:s' => \$o_crit, + 'w:s' => \$o_warn, 'warn:s' => \$o_warn, + 'f:s' => \$o_perf, 'perfparse:s' => \$o_perf, + 'A:s' => \$o_perfvars, 'perfvars:s' => \$o_perfvars, + 'T:s' => \$o_timecheck, 'response_time:s' => \$o_timecheck, + 'R:s' => \$o_hitrate, 'hitrate:s' => \$o_hitrate, + 'r:s' => \$o_repdelay, 'replication_delay:s' => \$o_repdelay, + 'P:s' => \$o_prevperf, 'prev_perfdata:s' => \$o_prevperf, + 'E:s' => \$o_prevtime, 'prev_checktime:s'=> \$o_prevtime, + 'm:s' => \$o_memutilization, 'memory_utilization:s' => \$o_memutilization, + 'M:s' => \$o_totalmemory, 'total_memory:s' => \$o_totalmemory, + 'q=s' => \@o_querykey, 'query=s' => \@o_querykey, + 'o=s' => \@o_check, 'check|option=s' => \@o_check, + 'rate_label:s' => \$o_ratelabel, + map { ($_) } $nlib->additional_options_list() + ); + + ($o_rprefix,$o_rsuffix)=split(/,/,$o_ratelabel) if defined($o_ratelabel) && $o_ratelabel ne ''; + + # Standard nagios plugin required options + if (defined($o_help)) { help($nlib); exit $ERRORS{"UNKNOWN"} }; + if (defined($o_version)) { p_version(); exit $ERRORS{"UNKNOWN"} }; + + # now start options processing in the library + $nlib->options_startprocessing(\%Options, $o_verb, $o_variables, $o_warn, $o_crit, $o_perf, $o_perfvars, $o_rprefix, $o_rsuffix); + + # additional variables/options calculated and added by this plugin + if (defined($o_timecheck) && $o_timecheck ne '') { + $nlib->verb("Processing timecheck thresholds: $o_timecheck"); + $nlib->add_thresholds('response_time',$o_timecheck); + } + if (defined($o_hitrate) && $o_hitrate ne '') { + $nlib->verb("Processing hitrate thresholds: $o_hitrate"); + $nlib->add_thresholds('hitrate',$o_hitrate); + $nlib->set_threshold('hitrate','ZERO','OK') if !defined($nlib->get_threshold('hitrate','ZERO')); # except case of hitrate=0, don't remember why I added it + } + if (defined($o_memutilization) && $o_memutilization ne '') { + $nlib->verb("Processing memory utilization thresholds: $o_memutilization"); + $nlib->add_thresholds('memory_utilization',$o_memutilization); + } + if (defined($o_totalmemory)) { + if ($o_totalmemory =~ /^(\d+)B/) { + $o_totalmemory = $1; + } + elsif ($o_totalmemory =~ /^(\d+)K/) { + $o_totalmemory = $1*1024; + } + elsif ($o_totalmemory =~ /^(\d+)M/) { + $o_totalmemory = $1*1024*1024; + } + elsif ($o_totalmemory =~ /^(\d+)G/) { + $o_totalmemory = $1*1024*1024*1024; + } + elsif ($o_totalmemory !~ /^(\d+)$/) { + print "Total memory value $o_totalmemory can not be interpreted\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + } + if (defined($o_repdelay) && $o_repdelay ne '') { + $nlib->verb("Processing replication delay thresholds: $o_repdelay"); + $nlib->add_thresholds('replication_delay',$o_repdelay); + } + + # general check option, allows to specify everything, can be repeated more than once + foreach $opt (@o_check) { + $nlib->verb("Processing general check option: ".$opt); + $nlib->add_thresholds(undef,$opt); + } + + # query option processing + option_query($nlib); + + # finish it up + $nlib->options_finishprocessing(); + options_setaccess(); +} + +# Get the alarm signal (just in case nagios screws up) +$SIG{'ALRM'} = sub { + $redis->quit if defined($redis); + print ("ERROR: Alarm signal (Nagios time-out)\n"); + exit $ERRORS{"UNKNOWN"}; +}; + +########## MAIN ####### + +my $nlib = Naglio->lib_init('plugin_name' => 'check_redis.pl', + 'plugins_authors' => 'William Leibzon', + 'plugin_description' => 'Redis Monitoring Plugin for Nagios', + 'usage_function' => \&print_usage, + 'enable_long_options' => 1, + 'enable_rate_of_change' => 1); +$nlib->set_knownvars(\%KNOWN_STATUS_VARS, $PERF_OK_STATUS_REGEX); + +check_options($nlib); +$nlib->verb("check_redis.pl plugin version ".$Version); + +# Check global timeout if plugin screws up +if (defined($TIMEOUT)) { + $nlib->verb("Alarm at $TIMEOUT"); + alarm($TIMEOUT); +} +else { + $nlib->verb("no timeout defined : $o_timeout + 10"); + alarm ($o_timeout+10); +} + +# some more variables for processing of the results +my $dbversion = ""; +my $vnam; +my $vval; +my %dbs=(); # database-specific info, this is almost unused right now +my %slaves=(); +my $avar; + +# connect using tcp and verify the port is working +my $sock = new IO::Socket::INET( + PeerAddr => $HOSTNAME, + PeerPort => $PORT, + Proto => 'tcp', +); +if (!$sock) { + print "CRITICAL ERROR - Can not connect to '$HOSTNAME' on port $PORT\n"; + exit $ERRORS{'CRITICAL'}; +} +close($sock); + +# now do connection using Redis library +my $start_time; +my $dsn = $HOSTNAME.":".$PORT; +$nlib->verb("connecting to $dsn"); +$start_time = [ Time::HiRes::gettimeofday() ] if defined($o_timecheck); + +$redis = Redis-> new ( server => $dsn, 'debug' => (defined($o_verb))?1:0 ); + +if ($PASSWORD) { + $redis->auth($PASSWORD); +} +if ($DATABASE) { + $redis->select($DATABASE); +} + +if (!$redis) { + print "CRITICAL ERROR - Redis Library - can not connect to '$HOSTNAME' on port $PORT\n"; + exit $ERRORS{'CRITICAL'}; +} + +if (!$redis->ping) { + print "CRITICAL ERROR - Redis Library - can not ping '$HOSTNAME' on port $PORT\n"; + exit $ERRORS{'CRITICAL'}; +} + +# This returns hashref of various statistics/info data +my $stats = $redis->info(); + +# Check specified key if option -q was used +for (my $i=0; $iverb("Getting redis key: ".$query[$i]{'key_query'}); + $result = $redis->get($query[$i]{'key_query'}); + } + elsif ($query[$i]{'query_type'} eq 'LLEN') { + $nlib->verb("Getting number of items for list with redis key: ".$query[$i]{'key_query'}); + $result = $redis->llen($query[$i]{'key_query'}); + } + elsif ($query[$i]{'query_type'} eq 'HLEN') { + $nlib->verb("Getting number of items for hash with redis key: ".$query[$i]{'key_query'}); + $result = $redis->hlen($query[$i]{'key_query'}); + } + elsif ($query[$i]{'query_type'} eq 'SLEN') { + $nlib->verb("Getting number of items for set with redis key: ".$query[$i]{'key_query'}); + $result = $redis->scard($query[$i]{'key_query'}); + } + elsif ($query[$i]{'query_type'} eq 'ZLEN') { + $nlib->verb("Getting number of items for sorted set with redis key: ".$query[$i]{'key_query'}); + $result = $redis->zcard($query[$i]{'key_query'}); + } + elsif ($query[$i]{'query_type'} eq 'HGET') { + $nlib->verb("Getting hash member ".$query[$i]{'element_name'}." with redis key: ".$query[$i]{'key_query'}); + $result = $redis->hget($query[$i]{'key_query'},$query[$i]{'element_name'}); + } + elsif ($query[$i]{'query_type'} eq 'HEXISTS') { + $nlib->verb("Checking if there exists hash member ".$query[$i]{'element_name'}." with redis key: ".$query[$i]{'key_query'}); + $result = $redis->hexists($query[$i]{'key_query'},$query[$i]{'element_name'}); + } + elsif ($query[$i]{'query_type'} eq 'SEXISTS') { + $nlib->verb("Checking if there exists set member ".$query[$i]{'element_name'}." with redis key: ".$query[$i]{'key_query'}); + $result = $redis->sismember($query[$i]{'key_query'},$query[$i]{'element_name'}); + } + elsif ($query[$i]{'query_type'} eq 'LRANGE' || $query[$i]{'query_type'} eq 'ZRANGE') { + my $range_start; + my $range_end; + if (defined($query[$i]{'query_range_start'}) && $query[$i]{'query_range_start'} ne '') { + $range_start=$query[$i]{'query_range_start'}; + } + else { + $range_start=0; + } + if (defined($query[$i]{'query_range_end'}) && $query[$i]{'query_range_end'} ne '') { + $range_end= $query[$i]{'query_range_end'}; + } + elsif ($query[$i]{'query_type'} eq 'LRANGE') { + $nlib->verb("Getting (lrange) redis key: ".$query[$i]{'key_query'}); + $range_end = $redis->llen($query[$i]{'key_query'})-1; + } + else { + print "ERROR - can not do ZRANGE if you do not specify mix and max score."; + exit $ERRORS{"UNKNOWN"}; + } + my @list; + if ($query[$i]{'query_type'} eq 'LRANGE') { + @list = $redis->lrange($query[$i]{'key_query'}, $range_start, $range_end); + } + else { + @list = $redis->zrange($query[$i]{'key_query'}, $range_start, $range_end); + } + if (scalar(@list)>0) { + $result=shift @list; + foreach(@list) { + $result+=$_ if $query[$i]{'query_subtype'} eq 'SUM' || $query[$i]{'query_subtype'} eq 'AVG'; + $result=$_ if ($query[$i]{'query_subtype'} eq 'MIN' && $_ < $result) || + ($query[$i]{'query_subtype'} eq 'MAX' && $_ > $result); + } + $result = $result / (scalar(@list)+1) if $query[$i]{'query_subtype'} eq 'AVG'; + } + } + if (defined($result)) { + $query[$i]{'result'} = $result; + $nlib->add_data($query[$i]{'key_name'}, $result); + $nlib->verb("Result of querying ".$query[$i]{'key_query'}." is: $result"); + } + else { + $nlib->verb("could not get results for ".$query[$i]{'key_query'}); + } + # else { + # if (exists($query[$i]{'alert'}) && $query[$i]{'alert'} ne 'OK') { + # $statuscode=$query[$i]{'alert'} if $statuscode ne 'CRITICAL'; + # $statusinfo.=", " if $statusinfo; + # $statusinfo.= "Query on ".$query[$i]{'key_query'}." did not succeed"; + # } + # } +} + +# end redis session +$redis->quit; + +# load stats data into internal hash array +my $total_keys=0; +my $total_expires=0; +foreach $vnam (keys %{$stats}) { + $vval = $stats->{$vnam}; + if (defined($vval)) { + $nlib->verb("Stats Line: $vnam = $vval"); + if (exists($KNOWN_STATUS_VARS{$vnam}) && $KNOWN_STATUS_VARS{$vnam}[1] eq 'VERSION') { + $dbversion .= $vval; + } + elsif ($vnam =~ /^db\d+$/) { + $dbs{$vnam}= {'name'=>$vnam}; + foreach (split(/,/,$vval)) { + my ($k,$d) = split(/=/,$_); + $nlib->add_data($vnam.'_'.$k,$d); + $dbs{$vnam}{$k}=$d; + $nlib->verb(" - stats data added: ".$vnam.'_'.$k.' = '.$d); + $total_keys+=$d if $k eq 'keys' && Naglio::isnum($d); + $total_expires+=$d if $k eq 'expires' && Naglio::isnum($d); + } + } + elsif ($vnam =~ /~slave/) { + # TODO TODO TODO TODO + } + else { + $nlib->add_data($vnam, $vval); + } + } + else { + $nlib->verb("Stats Data: $vnam = NULL"); + } +} +$nlib->verb("Calculated Data: total_keys=".$total_keys); +$nlib->verb("Calculated Data: total_expires=".$total_expires); +$nlib->add_data('total_keys',$total_keys); +$nlib->add_data('total_expires',$total_expires); + +# Response Time +if (defined($o_timecheck)) { + $nlib->add_data('response_time',Time::HiRes::tv_interval($start_time)); + $nlib->addto_statusdata_output('response_time',sprintf("response in %.3fs",$nlib->vardata('response_time'))); + if (defined($o_perf)) { + $nlib->set_perfdata('response_time','response_time='.$nlib->vardata('response_time'),'s'); + } +} + +# calculate rate variables +$nlib->calculate_ratevars(); + +# Hitrate +my $hitrate=0; +my $hits_total=0; +my $hits_hits=undef; +my $hitrate_all=0; +if (defined($o_hitrate) && defined($nlib->vardata('keyspace_hits')) && defined($nlib->vardata('keyspace_misses'))) { + for $avar ('keyspace_hits', 'keyspace_misses') { + if (defined($o_prevperf) && defined($o_perf)) { + $nlib->set_perfdata($avar,$avar."=".$nlib->vardata($avar),'c'); + } + $hits_hits = $nlib->vardata('keyspace_hits') if $avar eq 'keyspace_hits'; + $hits_total += $nlib->vardata($avar); + } + $nlib->verb("Calculating Hitrate : total=".$hits_total." hits=".$hits_hits); + if (defined($hits_hits) && defined($nlib->prev_perf('keyspace_hits')) && defined($nlib->prev_perf('keyspace_misses')) && $hits_hits > $nlib->prev_perf('keyspace_hits')) { + $hitrate_all = $hits_hits/$hits_total*100 if $hits_total!=0; + $hits_hits -= $nlib->prev_perf('keyspace_hits'); + $hits_total -= $nlib->prev_perf('keyspace_misses'); + $hits_total -= $nlib->prev_perf('keyspace_hits'); + verb("Calculating Hitrate. Adjusted based on previous values. total=".$hits_total." hits=".$hits_hits); + } + if (defined($hits_hits)) { + if ($hits_total!=0) { + $hitrate= sprintf("%.4f", $hits_hits/$hits_total*100); + } + $nlib->add_data('hitrate',$hitrate); + my $sdata .= sprintf(" hitrate is %.2f%%", $hitrate); + $sdata .= sprintf(" (%.2f%% from launch)", $hitrate_all) if ($hitrate_all!=0); + $nlib->addto_statusdata_output('hitrate',$sdata); + if (defined($o_perf)) { + $nlib->set_perfdata('hitrate',"hitrate=$hitrate",'%'); + } + } +} + +# Replication Delay +my $repl_delay=0; +if (defined($o_repdelay) && defined($nlib->vardata('master_last_io_seconds_ago')) && defined($nlib->vardata('role'))) { + if ($nlib->vardata('role') eq 'slave') { + $repl_delay = $nlib->vardata('master_link_down_since_seconds'); + if (!defined($repl_delay) || $repl_delay < $nlib->vardata('master_last_io_seconds_ago')) { + $repl_delay = $nlib->vardata('master_last_io_seconds_ago','s'); + } + if (defined($repl_delay) && $repl_delay>=0) { + $nlib->add_data('replication_delay',$repl_delay); + $nlib->addto_statusdata_output('replication_delay',sprintf("replication_delay is %d", $nlib->vardata('replication_delay'))); + if (defined($o_perf)) { + $nlib->set_perfdata('replication_delay',sprintf("replication_delay=%d", $nlib->vardata('replication_delay'))); + } + } + } +} + +# Memory Use Utilization +if (defined($o_memutilization) && defined($nlib->vardata('used_memory_rss'))) { + if (defined($o_totalmemory)) { + $nlib->add_data('memory_utilization',$nlib->vardata('used_memory_rss')/$o_totalmemory*100); + $nlib->verb('memory utilization % : '.$nlib->vardata('memory_utilization').' = '.$nlib->vardata('used_memory_rss').' (used_memory_rss) / '.$o_totalmemory.' * 100'); + } + elsif ($o_memutilization ne '') { + print "ERROR: Can not calculate memory utilization if you do not specify total memory on a system (-M option)\n"; + print_usage(); + exit $ERRORS{"UNKNOWN"}; + } + if (defined($o_perf) && defined($nlib->vardata('memory_utilization'))) { + $nlib->set_perfdata('memory_utilization',sprintf(" memory_utilization=%.4f", $nlib->vardata('memory_utilization')),'%'); + } + if (defined($nlib->vardata('used_memory_human')) && defined($nlib->vardata('used_memory_peak_human'))) { + my $sdata="memory use is ".$nlib->vardata('used_memory_human')." ("; + $sdata.='peak '.$nlib->vardata('used_memory_peak_human'); + if (defined($nlib->vardata('memory_utilization'))) { + $sdata.= sprintf(", %.2f%% of max", $nlib->vardata('memory_utilization')); + } + if (defined($nlib->vardata('mem_fragmentation_ratio'))) { + $sdata.=", fragmentation ".$nlib->vardata('mem_fragmentation_ratio').'%'; + } + $sdata.=")"; + $nlib->addto_statusdata_output('memory_utilization',$sdata); + } +} + +# Check thresholds in all variables and prepare status and performance data for output +$nlib->main_checkvars(); +$nlib->main_perfvars(); + +# now output the results +print $nlib->statuscode() . ': '.$nlib->statusinfo(); +print " - " if $nlib->statusinfo(); +print "REDIS " . $dbversion . ' on ' . $HOSTNAME. ':'. $PORT; +print ' has '.scalar(keys %dbs).' databases ('.join(',',keys(%dbs)).')'; +print " with $total_keys keys" if $total_keys > 0; +print ', up '.$nlib->uptime_info($nlib->vardata('uptime_in_seconds')) if defined($nlib->vardata('uptime_in_seconds')); +print " - " . $nlib->statusdata() if $nlib->statusdata(); +print $nlib->perfdata(); +print "\n"; + +# end exit +exit $ERRORS{$nlib->statuscode()}; diff -Nru nagios-plugins-contrib-14.20141104/check_redis/control nagios-plugins-contrib-16.20151226/check_redis/control --- nagios-plugins-contrib-14.20141104/check_redis/control 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_redis/control 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,13 @@ +Homepage: https://github.com/willixix/WL-NagiosPlugins +Watch: https://raw.githubusercontent.com/willixix/WL-NagiosPlugins/master/check_redis.pl Version[ :]+([0-9.]+) +Uploaders: Bernd Zeimetz +Description: Redis Server check plugin + This plugin checks Redis NoSQL database status variables, + measures its response time and if specified allows to set thresholds + on one or more key data. You can set thresholds for data in stats + variables and some of them are also conveniently available as long options + with special threshold syntax. Plugin also calculates statistics such as + Hitrate (calculated as rate of change of hits/misses) and memory use and + can check replication delay. +Recommends: libredis-perl +Version: 0.73 diff -Nru nagios-plugins-contrib-14.20141104/check_redis/copyright nagios-plugins-contrib-16.20151226/check_redis/copyright --- nagios-plugins-contrib-14.20141104/check_redis/copyright 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_redis/copyright 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,16 @@ +Author : William Leibzon - william@leibzon.org +Licence : GPL - summary below, full text at http://www.fsf.org/licenses/gpl.txt + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff -Nru nagios-plugins-contrib-14.20141104/check_redis/Makefile nagios-plugins-contrib-16.20151226/check_redis/Makefile --- nagios-plugins-contrib-14.20141104/check_redis/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_redis/Makefile 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,9 @@ +PLUGIN := check_redis +CLEANEXTRAFILES := $(PLUGIN) +PNP4NAGIOSTEMPLATES := check_redis.php + +include ../common.mk + +check_redis: check_redis.pl + cp $< $@ + diff -Nru nagios-plugins-contrib-14.20141104/check_redis/redis.cfg nagios-plugins-contrib-16.20151226/check_redis/redis.cfg --- nagios-plugins-contrib-14.20141104/check_redis/redis.cfg 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_redis/redis.cfg 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,5 @@ +# 'check_redis' command definition +define command{ + command_name check_redis + command_line /usr/lib/nagios/plugins/check_redis -H $HOSTADDRESS$ $ARG1$ + } diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/AUTHORS nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/AUTHORS --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/AUTHORS 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/AUTHORS 1970-01-01 00:00:00.000000000 +0000 @@ -1,41 +0,0 @@ -Matteo Corti - -Thanks: - -* Many thanks to Kenny McCormack for his help on comp.unix.shell on - how to implement a timeout -* Many thanks to Dan Wallis for several patches and fixes - (see the Changelog) -* Many thanks to Tuomas Haarala for the -P option patch to - check TLS certs using other protocols -* Many thanks to Marcus Rejås for the -N and -n patches -* Many thanks to Marc Fournier for - - the == bashism fix - - the mktemp error handling patch -* Many thanks to Wolfgang Schricker for - - the selfsigned bug report and cleanup fixes - - the patch adding the possibility to check local files (-f option) -* Many thanks to Yannick Gravel for the patch fixing the plugin output - and the fix on the test order -* Many thanks to Scott Worthington for the --critical and --warning hints -* Many thanks to Lawren Quigley-Jones for - - the -A,--noauth patch - - the trap fix -* Many thanks to Matthias Fuhrmeister for the -servername patch -* Many thanks to Raphael Thoma for the patch allowing HTTP to be - specified as protocol and the fix on -N with wildcards -* Many thanks to Sven Nierlein for the client certificate authentication patch -* Many thanks to Rob Yamry for the help in debugging a problem with - certain versions of OpenSSL and TLS extensions -* Many thanks to Jim Hopp for the "No certificate returned" enhancement patch -* Many thanks to Javier Gonel for the TLS servername patch -* Many thanks to Christian Ruppert for the XMPP patch -* Many thanks to Robin H. Johnson for the 'timeout' patch -* Many thanks to Max Winterstein for the SSL version patch -* Many thanks to Colin Smith for the RPM build Makefile patch - -# File version information: -# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ -# $Revision: 1103 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ -# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/ChangeLog nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/ChangeLog --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/ChangeLog 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/ChangeLog 1970-01-01 00:00:00.000000000 +0000 @@ -1,238 +0,0 @@ -2014-02-28 Matteo Corti - - * Makefile: added a target to build an rpm - -2013-12-23 Matteo Corti - - * check_ssl_cert: added the --tls1 option to force TLS 1 - -2013-10-09 Matteo Corti - - * check_ssl_cert: whole script reviewed with shellcheck - -2013-10-01 Matteo Corti - - * check_ssl_cert: fixes with shellcheck (quoting) - -2013-07-29 Matteo Corti - - * check_ssl_cert: Added an option to force a given SSL version - -2013-03-02 Matteo Corti - - * check_ssl_cert: Fixed a bug occuring with TLS and multiple names in - the certificate - -2012-12-07 Matteo Corti - - * check_ssl_cert: removed "test -a/-o" (test has an undefined - behavior with more than 4 elements) - - * check_ssl_cert: fixed #122 (-N was always comparing the CN with 'localhost') - -2012-11-16 Matteo Corti - - * simplified the sourcing of the script file for testing - -2012-10-11 Matteo Corti - - * added some unit tests with shUnit2 - -2012-09-19 Matteo Corti - - * check_ssl_cert: improved the "No certificate returned" error message - -2012-07-13 Matteo Corti - - * check_ssl_cert: added the number of days from or to expiration in the - plugin output - -2012-07-11 Matteo Corti - - * check_ssl_cert: fixed a bug with Perl date computation on some systems - -2012-07-06 Matteo Corti - - * check_ssl_cert: performance data in days - * check_ssl_cert: long output (certificate attributes) - -2012-04-05 Matteo Corti - - * check_ssl_cert: handle broken OpenSSL clients (-servername not working) - -2012-04-04 Matteo Corti - - * check_ssl_cert: removed an hard coded reference to the error number by the - SSL chain verification - -2011-10-22 Matteo Corti - - * check_ssl_cert: added a --altnames option to match the CN to alternative - names - -2011-09-01 Matteo Corti - - * check_ssl_cert: applied a patch from Sven Nierlein - (certificate authentication) - -2011-03-10 Matteo Corti - - * check_ssl_cert: allows http to specified as protocol - (thanks to Raphael Thoma) - * check_ssl_cert: fixes the -N check for certs with wildcards - (thanks to Raphael Thoma) - -2011-01-24 Matteo Corti - - * check_ssl_cert: added an option to specify the openssl executable - -2010-12-16 Dan Wallis - - * check_ssl_cert: Sets $VERBOSE to avoid using value supplied by Nagios - * check_ssl_cert: Quotes regular expression for grep to avoid shell globbing - -2010-12-09 Matteo Corti - - * check_ssl_cert.spec: standardized the RPM package name - - * check_ssl_cert: added support for the TLS servername extension - (thanks to Matthias Fuhrmeister) - -2010-11-02 Matteo Corti - - * INSTALL: specifies that expect is needed for timeouts - -2010-10-29 Matteo Corti - - * README: specifies that expect is needed for timeouts - -2010-10-28 Matteo Corti - - * check_ssl_cert: trap on more signals (thanks to Lawren Quigley-Jones) - -2010-10-14 Matteo Corti - - * check_ssl_cert: added a patch from Yannick Gravel putting the - chain verification at the end of the tests - -2010-10-01 Matteo Corti - - * check_ssl_cert: added a patch from Lawren Quigley-Jones which - implements a new command line argument (-A) to disable the - certificate chain check - -2010-09-15 Matteo Corti - - * check_ssl_cert: fixed option processing (bug #78) - -2010-08-26 Dan Wallis - - * check_ssl_cert: overloads --rootcert for use with directories as - well as files (-CApath versus -CAfile) - -2010-07-21 Matteo Corti - - * check_ssl_cert: added a patch from Marc Fournier to check the creation of the temporary files - * check_ssl_cert: added the --temp option to specify where to store the temporary files - -2010-07-10 Matteo Corti - - * check_ssl_cert: improved the error messages - * check_ssl_cert: checks for certificates without email addresses (if -e is specified) - -2010-07-09 Matteo Corti - - * check_ssl_cert: added a "long" version for all the command line options - * check_ssl_cert: added a critical and warning option for the certificate validity (in days) - * check_ssl_cert: the plugin always issues a critical warning if the certificate is expired - * check_ssl_cert: added a man page - -2010-07-07 Matteo Corti - - * check_ssl_cert: [Wolfgang Schricker patch] Add -f to check local files - -2010-07-01 Matteo Corti - - * check_ssl_cert: [Yannick Gravel patch] Restore displaying the CN in every messages: - a previous patch changed something and only - critical were adjusted. - * check_ssl_cert: [Yannick Gravel patch] Adjust what is displayed after the from in - the OK message to display the matched ISSUER - (CN or O). - -2010-06-08 Matteo Corti - - * check_ssl_cert: added the -s option to allow self signed certificates - -2010-03-11 Matteo Corti - - * check_ssl_cert: fixed the == bashism - -2010-03-08 Matteo Corti - - * check_ssl_cert: applied patch from Marcus Rejås with the -n and -N options - -2009-12-02 Matteo Corti - - * check_ssl_cert: check if the issuer matches the O= or the CN= field of the Root Cert - -2009-11-30 Matteo Corti - - * check_ssl_cert: cleaned up error messages if the CN is not yet known - * check_ssl_cert: added certificate chain verification - * check_ssl_cert: allow backslashes escaped in the error messages (e.g., for \n used by Nagios 3) - * check_ssl_cert: -r can be used to specify a root certificate to be used for the verification - -2009-03-31 Matteo Corti - - * check_ssl_cert: standard timeout of 15 seconds (can be set with the -t option) - -2009-03-30 Matteo Corti - - * check_ssl_cert: -P option to specify the protocol - -2008-05-13 Matteo Corti - - * check_ssl_cert: applied a patch from Dan Wallis to output the CN - in all the messages - -2008-02-28 Matteo Corti - - * check_ssl_cert: shortened the error message in case of no connection - (only the first line is reported) - -2008-02-25 Matteo Corti - - * check_ssl_cert: [Dan Wallis patch] removed nmap dependency - * check_ssl_cert: [Dan Wallis patch] mktemp for the temporaries - * check_ssl_cert: [Dan Wallis patch] using trap to cleanup temporaries - * check_ssl_cert: [Dan Wallis patch] POSIX compliance and cleanup - * check_ssl_cert: [Dan Wallis patch] POSIX compliance and cleanup - * check_ssl_cert: [Dan Wallis patch] better handling of missing - certificate and non resolvable host - * check_ssl_cert: [Dan Wallis patch] stricter check for "notAfter" in the - certificate analysis - -2007-09-04 Matteo Corti - - * check_ssl_cert: better error messages (both the actual and the - expected values are displayed) - -2007-08-31 Matteo Corti - - * check_ssl_cert: new options to enforce email and - organization. Temporary files are now removed before termination - -2007-08-15 Matteo Corti - - * check_ssl_cert: openssl s_client closes the connection cleanly - -2007-08-10 Matteo Corti - - * check_ssl_cert: initial release - -# File version information: -# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ -# $Revision: 1103 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ -# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert 1970-01-01 00:00:00.000000000 +0000 @@ -1,892 +0,0 @@ -#!/bin/sh -# -# check_ssl_cert -# -# Checks an X.509 certificate: -# - checks if the server is running and delivers a valid certificate -# - checks if the CA matches a given pattern -# - checks the validity -# -# See the INSTALL file for installation instructions -# -# Copyright (c) 2007-2012 ETH Zurich. -# -# This module is free software; you can redistribute it and/or modify it -# under the terms of GNU general public license (gpl) version 3. -# See the LICENSE file for details. -# -# RCS information -# enable substitution with: -# $ svn propset svn:keywords "Id Revision HeadURL Source Date" -# -# $Id: check_ssl_cert 1353 2014-02-28 10:32:11Z corti $ -# $Revision: 1353 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_ssl_cert/check_ssl_cert $ -# $Date: 2014-02-28 11:32:11 +0100 (Fri, 28 Feb 2014) $ - -################################################################################ -# Constants - -VERSION=1.16.1 -SHORTNAME="SSL_CERT" - -VALID_ATTRIBUTES=",startdate,enddate,subject,issuer,modulus,serial,hash,email,ocsp_uri,fingerprint," - -################################################################################ -# Functions - -################################################################################ -# Prints usage information -# Params -# $1 error message (optional) -usage() { - - if [ -n "$1" ] ; then - echo "Error: $1" 1>&2 - fi - - #### The following line is 80 characters long (helps to fit the help text in a standard terminal) - ######-------------------------------------------------------------------------------- - - echo - echo "Usage: check_ssl_cert -H host [OPTIONS]" - echo - echo "Arguments:" - echo " -H,--host host server" - echo - echo "Options:" - echo " -A,--noauth ignore authority warnings (expiration only)" - echo " --altnames matches the pattern specified in -n with alternate" - echo " names too" - echo " -C,--clientcert path use client certificate to authenticate" - echo " --clientpass phrase set passphrase for client certificate." - echo " -c,--critical days minimum number of days a certificate has to be valid" - echo " to issue a critical status" - echo " -e,--email address pattern to match the email address contained in the" - echo " certificate" - echo " -f,--file file local file path (works with -H localhost only)" - echo " -h,--help,-? this help message" - echo " --long-output list append the specified comma separated (no spaces) list" - echo " of attributes to the plugin output on additional lines." - echo " Valid attributes are:" - echo " enddate, startdate, subject, issuer, modulus, serial," - echo " hash, email, ocsp_uri and fingerprint." - echo " 'all' will include all the available attributes." - echo " -i,--issuer issuer pattern to match the issuer of the certificate" - echo " -n,--cn name pattern to match the CN of the certificate" - echo " -N,--host-cn match CN with the host name" - echo " -o,--org org pattern to match the organization of the certificate" - echo " --openssl path path of the openssl binary to be used" - echo " -p,--port port TCP port" - echo " -P,--protocol protocol use the specific protocol {http|smtp|pop3|imap|ftp|xmpp}" - echo " http: default" - echo " smtp,pop3,imap,ftp: switch to TLS" - echo " -s,--selfsigned allows self-signed certificates" - echo " -S,--ssl version force SSL version (2,3)" - echo " -r,--rootcert path root certificate or directory to be used for" - echo " certficate validation" - echo " -t,--timeout seconds timeout after the specified time" - echo " (defaults to 15 seconds)" - echo " --temp dir directory where to store the temporary files" - echo " --tls1 force TLS version 1" - echo " -v,--verbose verbose output" - echo " -V,--version version" - echo " -w,--warning days minimum number of days a certificate has to be valid" - echo " to issue a warning status" - echo - echo "Deprecated options:" - echo " -d,--days days minimum number of days a certificate has to be valid" - echo " (see --critical and --warning)" - echo - echo "Report bugs to: Matteo Corti " - echo - - exit 3 - -} - -################################################################################ -# Exits with a critical message -# Params -# $1 error message -critical() { - if [ -n "${CN}" ] ; then - tmp=" ${CN}" - fi - printf '%s CRITICAL%s: %s%s%s\n' "${SHORTNAME}" "${tmp}" "$1" "${PERFORMANCE_DATA}" "${LONG_OUTPUT}" - exit 2 -} - -################################################################################ -# Exits with a warning message -# Param -# $1 warning message -warning() { - if [ -n "${CN}" ] ; then - tmp=" ${CN}" - fi - printf '%s WARN%s: %s%s%s\n' "${SHORTNAME}" "${tmp}" "$1" "${PERFORMANCE_DATA}" "${LONG_OUTPUT}" - exit 1 -} - -################################################################################ -# Exits with an 'unkown' status -# Param -# $1 message -unknown() { - if [ -n "${CN}" ] ; then - tmp=" ${CN}" - fi - printf '%s UNKNOWN%s: %s\n' "${SHORTNAME}" "${tmp}" "$1" - exit 3 -} - -################################################################################ -# Executes command with a timeout -# Params: -# $1 timeout in seconds -# $2 command -# Returns 1 if timed out 0 otherwise -exec_with_timeout() { - - time=$1 - - # start the command in a subshell to avoid problem with pipes - # (spawn accepts one command) - command="/bin/sh -c \"$2\"" - - if [ -n "${TIMEOUT_BIN}" ] ; then - - eval "${TIMEOUT_BIN} $time $command" - - elif [ -n "${EXPECT}" ] ; then - - expect -c "set echo \"-noecho\"; set timeout $time; spawn -noecho $command; expect timeout { exit 1 } eof { exit 0 }" - - if [ $? = 1 ] ; then - critical "Timeout after ${time} seconds" - fi - - else - eval "${command}" - fi - -} - -################################################################################ -# Checks if a given program is available and executable -# Params -# $1 program name -# Returns 1 if the program exists and is executable -check_required_prog() { - - PROG=$(which "$1" 2> /dev/null) - - if [ -z "$PROG" ] ; then - critical "cannot find $1" - fi - - if [ ! -x "$PROG" ] ; then - critical "$PROG is not executable" - fi - -} - -################################################################################ -# Tries to fetch the certificate - -fetch_certificate() { - - # check if a protocol was specified (if not HTTP switch to TLS) - if [ -n "${PROTOCOL}" ] && [ "${PROTOCOL}" != "http" ] && [ "${PROTOCOL}" != "https" ] ; then - - case "${PROTOCOL}" in - - smtp|pop3|imap|ftp|xmpp) - -exec_with_timeout "$TIMEOUT" "echo 'Q' | $OPENSSL s_client ${CLIENT} ${CLIENTPASS} -starttls ${PROTOCOL} -connect $HOST:$PORT ${SERVERNAME} -verify 6 ${ROOT_CA} ${SSL_VERSION} 2> ${ERROR} 1> ${CERT}" -;; - -*) - -unknown "Error: unsupported protocol ${PROTOCOL}" - -esac - -elif [ -n "${FILE}" ] ; then - -if [ "${HOST}" = "localhost" ] ; then - - exec_with_timeout "$TIMEOUT" "/bin/cat '${FILE}' 2> ${ERROR} 1> ${CERT}" - -else - - unknown "Error: option 'file' works with -H localhost only" - -fi - -else - -exec_with_timeout "$TIMEOUT" "echo 'Q' | $OPENSSL s_client ${CLIENT} ${CLIENTPASS} -connect $HOST:$PORT ${SERVERNAME} -verify 6 ${ROOT_CA} ${SSL_VERSION} 2> ${ERROR} 1> ${CERT}" - -fi - -if [ $? -ne 0 ] ; then - critical "Error: $(head -n 1 ${ERROR})" -fi - - -} - - -main() { - - ################################################################################ - # Main - ################################################################################ - - # default values - PORT=443 - TIMEOUT=15 - VERBOSE="" - OPENSSL="" - - # set the default temp dir if not set - if [ -z "${TMPDIR}" ] ; then - TMPDIR="/tmp" - fi - - ################################################################################ - # process command line options - # - # we do no use getopts since it is unable to process long options - - while true; do - - case "$1" in - - ######################################## - # options without arguments - - -A|--noauth) NOAUTH=1; shift ;; - - --altnames) ALTNAMES=1; shift ;; - - -h|--help|-\?) usage; exit 0 ;; - - -N|--host-cn) COMMON_NAME="__HOST__"; shift ;; - - -s|--selfsigned) SELFSIGNED=1; shift ;; - - --tls1) SSL_VERSION="-tls1"; shift ;; - - -v|--verbose) VERBOSE=1; shift ;; - - -V|--version) echo "check_ssl_cert version ${VERSION}"; exit 3; ;; - - ######################################## - # options with arguments - - -c|--critical) if [ $# -gt 1 ]; then - CRITICAL=$2; shift 2 - else - unknown "-c,--critical requires an argument" - fi ;; - - # deprecated option: used to be as --warning - -d|--days) if [ $# -gt 1 ]; then - WARNING=$2; shift 2 - else - unknown "-d,--days requires an argument" - fi ;; - - -e|--email) if [ $# -gt 1 ]; then - ADDR=$2; shift 2 - else - unknown "-e,--email requires an argument" - fi ;; - - -f|--file) if [ $# -gt 1 ]; then - FILE=$2; shift 2 - else - unknown "-f,--file requires an argument" - fi ;; - - -H|--host) if [ $# -gt 1 ]; then - HOST=$2; shift 2 - else - unknown "-H,--host requires an argument" - fi ;; - - -i|--issuer) if [ $# -gt 1 ]; then - ISSUER=$2; shift 2 - else - unknown "-i,--issuer requires an argument" - fi ;; - - --long-output) if [ $# -gt 1 ]; then - LONG_OUTPUT_ATTR=$2; shift 2 - else - unknown "--long-output requires an argument" - fi ;; - - -n|--cn) if [ $# -gt 1 ]; then - COMMON_NAME=$2; shift 2 - else - unknown "-n,--cn requires an argument" - fi ;; - - -o|--org) if [ $# -gt 1 ]; then - ORGANIZATION=$2; shift 2 - else - unknown "-o,--org requires an argument" - fi ;; - - --openssl) if [ $# -gt 1 ]; then - OPENSSL=$2; shift 2 - else - unknown "--openssl requires an argument" - fi ;; - - -p|--port) if [ $# -gt 1 ]; then - PORT=$2; shift 2 - else - unknown "-p,--port requires an argument" - fi ;; - - -P|--protocol) if [ $# -gt 1 ]; then - PROTOCOL=$2; shift 2 - else - unknown "-P,--protocol requires an argument" - fi ;; - - -r|--rootcert) if [ $# -gt 1 ]; then - ROOT_CA=$2; shift 2 - else - unknown "-r,--rootcert requires an argument" - fi ;; - - -C|--clientcert) if [ $# -gt 1 ]; then - CLIENT_CERT=$2; shift 2 - else - unknown "-c,--clientcert requires an argument" - fi ;; - - --clientpass) if [ $# -gt 1 ]; then - CLIENT_PASS=$2; shift 2 - else - unknown "--clientpass requires an argument" - fi ;; - - -S|--ssl) if [ $# -gt 1 ]; then - if [ "$2" = "2" -o "$2" = "3" ] ; then - SSL_VERSION="-ssl$2" ; shift 2 - else - unknown "invalid argument for --ssl" - fi - else - unknown "--ssl requires an argument" - fi ;; - - -t|--timeout) if [ $# -gt 1 ]; then - TIMEOUT=$2; shift 2 - else - unknown "-t,--timeout requires an argument" - fi ;; - - --temp) if [ $# -gt 1 ] ; then - # override TMPDIR - TMPDIR=$2; shift 2 - else - unknown "--temp requires an argument" - fi ;; - - -w|--warning) if [ $# -gt 1 ]; then - WARNING=$2; shift 2 - else - unknown "-w,--warning requires an argument" - fi ;; - - ######################################## - # special - - --) shift; break;; - -*) unknown "invalid option: $1" ;; - *) break;; - - esac - - done - - ################################################################################ - # Set COMMON_NAME to hostname if -N was given as argument - if [ "$COMMON_NAME" = "__HOST__" ] ; then - COMMON_NAME=${HOST} - fi - - ################################################################################ - # sanity checks - - ############### - # Check options - if [ -z "${HOST}" ] ; then - usage "No host specified" - fi - - if [ -n "${ALTNAMES}" ] && [ -z "${COMMON_NAME}" ] ; then - unknown "--altnames requires a common name to match (--cn or --host-cn)" - fi - - if [ -n "${ROOT_CA}" ] ; then - if [ ! -r "${ROOT_CA}" ] ; then - unknown "Cannot read root certificate ${ROOT_CA}" - fi - if [ -d "${ROOT_CA}" ] ; then - ROOT_CA="-CApath ${ROOT_CA}" - elif [ -f "${ROOT_CA}" ] ; then - ROOT_CA="-CAfile ${ROOT_CA}" - else - unknown "Root certificate of unknown type $(file "${ROOT_CA}" 2> /dev/null)" - fi - fi - - if [ -n "${CLIENT_CERT}" ] ; then - if [ ! -r "${CLIENT_CERT}" ] ; then - unknown "Cannot read client certificate ${CLIENT_CERT}" - fi - fi - - if [ -n "${CRITICAL}" ] ; then - if ! echo "${CRITICAL}" | grep -q '[0-9][0-9]*' ; then - unknown "invalid number of days ${CRITICAL}" - fi - fi - - if [ -n "${WARNING}" ] ; then - if ! echo "${WARNING}" | grep -q '[0-9][0-9]*' ; then - unknown "invalid number of days ${WARNING}" - fi - fi - - if [ -n "${CRITICAL}" ] && [ -n "${WARNING}" ] ; then - if [ "${WARNING}" -le "${CRITICAL}" ] ; then - unknown "--warning (${WARNING}) is less than or equal to --critical (${CRITICAL})" - fi - fi - - if [ -n "${TMPDIR}" ] ; then - if [ ! -d "${TMPDIR}" ] ; then - unknown "${TMPDIR} is not a directory"; - fi - if [ ! -w "${TMPDIR}" ] ; then - unknown "${TMPDIR} is not writable"; - fi - fi - - if [ -n "${OPENSSL}" ] ; then - if [ ! -x "${OPENSSL}" ] ; then - unknown "${OPENSSL} ist not an executable" - fi - if [ "${OPENSSL##*/}" != 'openssl' ] ; then - unknown "${OPENSSL} ist not an openssl executable" - fi - fi - - ####################### - # Check needed programs - - # OpenSSL - if [ -z "${OPENSSL}" ] ; then - check_required_prog openssl - OPENSSL=$PROG - fi - - # Expect (optional) - EXPECT=$(which expect 2> /dev/null) - test -x "${EXPECT}" || EXPECT="" - if [ -n "${VERBOSE}" ] ; then - if [ -z "${EXPECT}" ] ; then - echo "expect not available" - else - echo "expect available (${EXPECT})" - fi - fi - - # Timeout (optional) - TIMEOUT_BIN=$(which timeout 2> /dev/null) - test -x "${TIMEOUT_BIN}" || TIMEOUT_BIN="" - if [ -n "${VERBOSE}" ] ; then - if [ -z "${TIMEOUT_BIN}" ] ; then - echo "timeout not available" - else - echo "timeout available (${TIMEOUT_BIN})" - fi - fi - - if [ -z "${TIMEOUT_BIN}" ] && [ -z "${EXPECT}" ] && [ -n "${VERBOSE}" ] ; then - echo "disabling timeouts" - fi - - # Perl with Date::Parse (optional) - PERL=$(which perl 2> /dev/null) - test -x "${PERL}" || PERL="" - if [ -z "${PERL}" ] && [ -n "${VERBOSE}" ] ; then - echo "Perl not found: disabling date computations" - fi - if ! ${PERL} -e "use Date::Parse;" > /dev/null 2>&1 ; then - if [ -n "${VERBOSE}" ] ; then - echo "Perl module Date::Parse not installed: disabling date computations" - fi - PERL="" - fi - - ################################################################################ - # check if openssl s_client supports the -servername option - # - # openssl s_client does not have a -help option - # => we supply an invalid command line option to get the help - # on standard error - # - SERVERNAME= - if ${OPENSSL} s_client not_a_real_option 2>&1 | grep -q -- -servername ; then - - if [ -n "${COMMON_NAME}" ] ; then - SERVERNAME="-servername ${COMMON_NAME}" - else - SERVERNAME="-servername ${HOST}" - fi - - else - if [ -n "${VERBOSE}" ] ; then - echo "'${OPENSSL} s_client' does not support '-servername': disabling virtual server support" - fi - fi - - ################################################################################ - # fetch the X.509 certificate - - # temporary storage for the certificate and the errors - - CERT=$( mktemp -t "${0##*/}XXXXXX" 2> /dev/null ) - if [ -z "${CERT}" ] || [ ! -w "${CERT}" ] ; then - unknown 'temporary file creation failure.' - fi - - ERROR=$( mktemp -t "${0##*/}XXXXXX" 2> /dev/null ) - if [ -z "${ERROR}" ] || [ ! -w "${ERROR}" ] ; then - unknown 'temporary file creation failure.' - fi - - if [ -n "${VERBOSE}" ] ; then - echo "downloading certificate to ${TMPDIR}" - fi - - CLIENT="" - if [ -n "${CLIENT_CERT}" ] ; then - CLIENT="-cert ${CLIENT_CERT}" - fi - - CLIENTPASS="" - if [ -n "${CLIENT_PASS}" ] ; then - CLIENTPASS="-pass pass:${CLIENT_PASS}" - fi - - # cleanup before program termination - # using named signals to be POSIX compliant - trap 'rm -f $CERT $ERROR' EXIT HUP INT QUIT TERM - - fetch_certificate - - if grep -q 'sslv3\ alert\ unexpected\ message' "${ERROR}" ; then - - if [ -n "${SERVERNAME}" ] ; then - - # some OpenSSL versions have problems with the -servername option - # we try without - if [ -n "${VERBOSE}" ] ; then - echo "'${OPENSSL} s_client' returned an error: trying without '-servername'" - fi - - SERVERNAME= - fetch_certificate - - fi - - if grep -q 'sslv3\ alert\ unexpected\ message' "${ERROR}" ; then - - critical "cannot fetch certificate: OpenSSL got an unexpected message" - - fi - - fi - - if ! grep -q "CERTIFICATE" "${CERT}" ; then - if [ -n "${FILE}" ] ; then - critical "'${FILE}' is not a valid certificate file" - else - - # See - # http://stackoverflow.com/questions/1251999/sed-how-can-i-replace-a-newline-n - # - # - create a branch label via :a - # - the N command appends a newline and and the next line of the input - # file to the pattern space - # - if we are before the last line, branch to the created label $!ba - # ($! means not to do it on the last line (as there should be one final newline)) - # - finally the substitution replaces every newline with a space on - # the pattern space - - ERROR_MESSAGE=$(sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/; /g' "${ERROR}") - if [ -n "${VERBOSE}" ] ; then - echo "Error: ${ERROR_MESSAGE}" - fi - critical "No certificate returned (${ERROR_MESSAGE})" - fi - fi - - ################################################################################ - # parse the X.509 certificate - - DATE=$($OPENSSL x509 -in "${CERT}" -enddate -noout | sed -e "s/^notAfter=//") - CN=$($OPENSSL x509 -in "${CERT}" -subject -noout | sed -e "s/^.*\/CN=//" -e "s/\/[A-Za-z][A-Za-z]*=.*\$//") - - CA_O=$($OPENSSL x509 -in "${CERT}" -issuer -noout | sed -e "s/^.*\/O=//" -e "s/\/[A-Z][A-Z]*=.*\$//") - CA_CN=$($OPENSSL x509 -in "${CERT}" -issuer -noout | sed -e "s/^.*\/CN=//" -e "s/\/[A-Za-z][A-Za-z]*=.*\$//") - - - ################################################################################ - # Generate the long output - if [ -n "${LONG_OUTPUT_ATTR}" ] ; then - - check_attr() { - ATTR=$1 - if ! echo "${VALID_ATTRIBUTES}" | grep -q ",${ATTR}," ; then - unknown "Invalid certificate attribute: ${ATTR}" - else - value=$(${OPENSSL} x509 -in "${CERT}" -noout -"${ATTR}" | sed -e "s/.*=//") - LONG_OUTPUT="${LONG_OUTPUT}\n${ATTR}: ${value}" - fi - - } - - # split on comma - if [ "${LONG_OUTPUT_ATTR}" = "all" ] ; then - LONG_OUTPUT_ATTR=${VALID_ATTRIBUTES} - fi - attributes=$( echo ${LONG_OUTPUT_ATTR} | tr ',' "\n" ) - for attribute in $attributes ; do - check_attr "${attribute}" - done - - fi - - ################################################################################ - # compute for how many days the certificate will be valid - - if [ -n "${PERL}" ] ; then - - CERT_END_DATE=$($OPENSSL x509 -in "${CERT}" -noout -enddate | sed -e "s/.*=//") - - DAYS_VALID=$( perl - "${CERT_END_DATE}" <<-"EOF" - -use strict; -use warnings; - -use Date::Parse; - -my $cert_date = str2time( $ARGV[0] ); - -my $days = int (( $cert_date - time ) / 86400 + 0.5); - -print "$days\n"; - -EOF - - ) - - if [ -n "${VERBOSE}" ] ; then - if [ "${DAYS_VALID}" -ge 0 ] ; then - echo "The certificate will expire in ${DAYS_VALID} day(s)" - else - echo "The certificate expired "$((- DAYS_VALID))" day(s) ago" - fi - - fi - - PERFORMANCE_DATA="|days=$DAYS_VALID;${WARNING};${CRITICAL};;" - - fi - - - - ################################################################################ - # check the CN (this will not work as expected with wildcard certificates) - - if [ -n "$COMMON_NAME" ] ; then - - ok='' - - case $COMMON_NAME in - $CN) ok='true' ;; - esac - - # check alterante names - if [ -n "${ALTNAMES}" ] ; then - for alt_name in $( $OPENSSL x509 -in "${CERT}" -text | \ - grep --after-context=1 '509v3 Subject Alternative Name:' | \ - tail -n 1 | sed -e "s/DNS://g" | sed -e "s/,//g" ) ; do - case $COMMON_NAME in - $alt_name) ok='true' ;; - esac - done - fi - - if [ -z "$ok" ] ; then - critical "invalid CN ('$CN' does not match '$COMMON_NAME')" - fi - - fi - - ################################################################################ - # check the issuer - - if [ -n "$ISSUER" ] ; then - - ok='' - CA_ISSUER_MATCHED='' - - if echo "$CA_CN" | grep -q "^${ISSUER}\$" ; then - ok='true' - CA_ISSUER_MATCHED="${CA_CN}" - fi - - if echo "$CA_O" | grep -q "^${ISSUER}\$" ; then - ok='true' - CA_ISSUER_MATCHED="${CA_O}" - fi - - if [ -z "$ok" ] ; then - critical "invalid CA ('$ISSUER' does not match '$CA_O' or '$CA_CN')" - fi - - else - - CA_ISSUER_MATCHED="${CA_CN}" - - fi - - ################################################################################ - # check the validity - - # we always check expired certificates - if ! $OPENSSL x509 -in "${CERT}" -noout -checkend 0 ; then - critical "certificate is expired (was valid until $DATE)" - fi - - if [ -n "${CRITICAL}" ] ; then - - if ! $OPENSSL x509 -in "${CERT}" -noout -checkend $(( CRITICAL * 86400 )) ; then - critical "certificate will expire on $DATE" - fi - - fi - - if [ -n "${WARNING}" ] ; then - - if ! $OPENSSL x509 -in "${CERT}" -noout -checkend $(( WARNING * 86400 )) ; then - warning "certificate will expire on $DATE" - fi - - fi - - ################################################################################ - # check the organization - - if [ -n "$ORGANIZATION" ] ; then - - ORG=$($OPENSSL x509 -in "${CERT}" -subject -noout | sed -e "s/.*\/O=//" -e "s/\/.*//") - - if ! echo "$ORG" | grep -q "^$ORGANIZATION" ; then - critical "invalid organization ('$ORGANIZATION' does not match '$ORG')" - fi - - fi - - ################################################################################ - # check the organization - - if [ -n "$ADDR" ] ; then - - EMAIL=$($OPENSSL x509 -in "${CERT}" -email -noout) - - if [ -n "${VERBOSE}" ] ; then - echo "checking email (${ADDR}): ${EMAIL}" - fi - - if [ -z "${EMAIL}" ] ; then - critical "the certficate does not contain an email address" - fi - - if ! echo "$EMAIL" | grep -q "^$ADDR" ; then - critical "invalid email ($ADDR does not match $EMAIL)" - fi - - fi - - ################################################################################ - # Check if the certificate was verified - - if [ -z "${NOAUTH}" ] && grep -q '^verify\ error:' "${ERROR}" ; then - - if grep -q '^verify\ error:num=[0-9][0-9]*:self\ signed\ certificate' "${ERROR}" ; then - - if [ -z "${SELFSIGNED}" ] ; then - critical "Cannot verify certificate\nself signed certificate" - else - SELFSIGNEDCERT="self signed " - fi - - else - - # process errors - details=$(grep '^verify\ error:' "${ERROR}" | sed -e "s/verify\ error:num=[0-9]*:/verification error: /" ) - - critical "Cannot verify certificate\n${details}" - - fi - - fi - - ################################################################################ - # If we get this far, assume all is well. :) - - # if --altnames was specified we show the specified CN instead of - # the certificate CN - if [ -n "${ALTNAMES}" ] && [ -n "${COMMON_NAME}" ] ; then - CN=${COMMON_NAME} - fi - - if [ -n "${DAYS_VALID}" ] ; then - # nicer formatting - if [ "${DAYS_VALID}" -gt 1 ] ; then - DAYS_VALID=" (expires in ${DAYS_VALID} days)" - elif [ "${DAYS_VALID}" -eq 1 ] ; then - DAYS_VALID=" (expires tomorrow)" - elif [ "${DAYS_VALID}" -eq 0 ] ; then - DAYS_VALID=" (expires today)" - elif [ "${DAYS_VALID}" -eq -1 ] ; then - DAYS_VALID=" (expired yesterday)" - else - DAYS_VALID=" (expired ${DAYS_VALID} days ago)" - fi - fi - - echo "${SHORTNAME} OK - X.509 ${SELFSIGNEDCERT}certificate for '${CN}' from '${CA_ISSUER_MATCHED}' valid until ${DATE}${DAYS_VALID}${PERFORMANCE_DATA}${LONG_OUTPUT}" - - exit 0 - -} - -if [ "${1}" != "--source-only" ]; then - main "${@}" -fi diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert.1 nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert.1 --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert.1 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert.1 1970-01-01 00:00:00.000000000 +0000 @@ -1,111 +0,0 @@ -.\" Process this file with -.\" groff -man -Tascii foo.1 -.\" -.TH "check_ssl_cert" 1 "May, 2013" "1.16.1" "USER COMMANDS" -.SH NAME -check_ssl_cert \- checks the validity of X.509 certificates -.SH SYNOPSIS -.BR "check_ssl_cert " "-H host [OPTIONS]" -.SH DESCRIPTION -.B check_ssl_cert -A Nagios plugin to check an X.509 certificate: - - checks if the server is running and delivers a valid certificate - - checks if the CA matches a given pattern - - checks the validity -.SH ARGUMENTS -.TP -.BR "-H,--host" " host" -server -.SH OPTIONS -.TP -.BR "-A,--noauth" -ignore authority warnings (expiration only) -.TP -.BR " --altnames" -matches the pattern specified in -n with alternate names too -.TP -.BR "-C,--clientcert" " path" -use client certificate to authenticate -.TP -.BR " --clientpass" " phrase" -set passphrase for client certificate. -.TP -.BR "-c,--critical" " days" -minimum number of days a certificate has to be valid to issue a critical status -.TP -.BR "-e,--email" " address" -pattern to match the email address contained in the certificate -.TP -.BR "-f,--file" " file" -local file path (works with -H localhost only) -.TP -.BR "-h,--help,-?" -this help message -.TP -.BR "--long-output" " list" -append the specified comma separated (no spaces) list of attributes to the plugin output on additional lines. -Valid attributes are: enddate, startdate, subject, issuer, modulus, serial, hash, email, ocsp_uri and fingerprint. 'all' will include all the available attributes. -.TP -.BR "-i,--issuer" " issuer" -pattern to match the issuer of the certificate -.TP -.BR "-n,---cn" " name" -pattern to match the CN of the certificate -.TP -.BR "-N,--host-cn" -match CN with the host name -.TP -.BR "-o,--org" " org" -pattern to match the organization of the certificate -.TP -.BR " --openssl" " path" -path of the openssl binary to be used -.TP -.BR "-p,--port" " port" -TCP port -.TP -.BR "-P,--protocol" " protocol" -use the specific protocol: http (default) or smtp,pop3,imap,ftp (switch to TLS) -.TP -.BR "-s,--selfsigned" -allows self-signed certificates -.TP -.BR "-S,--ssl" " version" -force SSL version (2,3) -.TP -.BR "-r,--rootcert" " cert" -root certificate or directory to be used for certficate validation (passed to openssl's -CAfile or -CApath) -.TP -.BR "-t,--timeout" -seconds timeout after the specified time (defaults to 15 seconds) -.TP -.BR "--temp" " dir" -directory where to store the temporary files -.TP -.BR "--tls1" -force TLS version 1 -.TP -.BR "-v,--verbose" -verbose output -.TP -.BR "-V,--version" -version -.TP -.BR "-w,--warning" " days" -minimum number of days a certificate has to be valid to issue a warning status -.SH DEPRECATED OPTIONS -.TP -.BR "-d,--days" " days" -minimum number of days a certificate has to be valid (see --critical and --warning) - -.SH "SEE ALSO" -x509(1), openssl(1), expect(1), timeout(1) -.SH "EXIT STATUS" -check_ssl_cert returns a zero exist status if it finds no errors, 1 for warnings, 2 for a critical errors and 3 for unknown problems -.SH BUGS -Please report bugs to: Matteo Corti (matteo.corti (at) id.ethz.ch) - -.SH AUTHOR -Matteo Corti (matteo.corti (at) id.ethz.ch) -See the AUTHORS file for the complete list of contributors - diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert.spec nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert.spec --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert.spec 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/check_ssl_cert.spec 1970-01-01 00:00:00.000000000 +0000 @@ -1,177 +0,0 @@ -################################################################################ -# File version information: -# $Id: check_updates.spec 1126 2010-02-16 20:06:11Z corti $ -# $Revision: 1126 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/check_updates.spec $ -# $Date: 2010-02-16 21:06:11 +0100 (Tue, 16 Feb 2010) $ -################################################################################ - -%define version 1.16.1 -%define release 0 -%define sourcename check_ssl_cert -%define packagename nagios-plugins-check_ssl_cert -%define nagiospluginsdir %{_libdir}/nagios/plugins - -# No binaries in this package -%define debug_package %{nil} - -Summary: A Nagios plugin to check X.509 certificates -Name: %{packagename} -Version: %{version} -Obsoletes: check_ssl_cert -Release: %{release}%{?dist} -License: GPLv3+ -Packager: Matteo Corti -Group: Applications/System -BuildRoot: %{_tmppath}/%{packagename}-%{version}-%{release}-root-%(%{__id_u} -n) -URL: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_ssl_cert -Source: https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{sourcename}-%{version}.tar.gz - -Requires: nagios-plugins - -%description -Checks an X.509 certificate: - - checks if the server is running and delivers a valid certificate - - checks if the CA matches a given pattern - - checks the validity - -%prep -%setup -q -n %{sourcename}-%{version} - -%build - -%install -make DESTDIR=${RPM_BUILD_ROOT}%{nagiospluginsdir} MANDIR=${RPM_BUILD_ROOT}%{_mandir} install - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root,-) -%doc AUTHORS ChangeLog NEWS README INSTALL TODO COPYING VERSION COPYRIGHT -%attr(0755, root, root) %{nagiospluginsdir}/check_ssl_cert -%{_mandir}/man1/%{sourcename}.1* - -%changelog -* Fri Feb 28 2014 Matteo Corti - 1.16.1-0 -- Updated to 1.16.1 (rpm make target) - -* Mon Dec 23 2013 Matteo Corti - 1.16.0-0 -- Udated to 1.16.0 (force TLS) - -* Mon Jul 29 2013 Matteo Corti - 1.15.0-0 -- Updated to 1.15.0 (force SSL version) - -* Sun May 12 2013 Matteo Corti - 1.14.6-0 -- Updated to 1.16.6 (timeout and XMPP support) - -* Sat Mar 2 2013 Matteo Corti - 1.14.5-0 -- Updated to 1.14.5 (TLS and multiple names fix) - -* Fri Dec 7 2012 Matteo Corti - 1.14.4-0 -- Updated to 1.14.4 (bug fix release) - -* Wed Sep 19 2012 Matteo Corti - 1.14.3-0 -- Updated to 1.14.3 - -* Fri Jul 13 2012 Matteo Corti - 1.14.2-0 -- Updated to 1.14.2 - -* Wed Jul 11 2012 Matteo Corti - 1.14.1-0 -- Updated to 1.14.1 - -* Fri Jul 6 2012 Matteo Corti - 1.14.0-0 -- updated to 1.14.0 - -* Thu Apr 5 2012 Matteo Corti - 1.13.0-0 -- updated to 1.13.0 - -* Wed Apr 4 2012 Matteo Corti - 1.12.0-0 -- updated to 1.12.0 (bug fix release) - -* Sat Oct 22 2011 Matteo Corti - 1.11.0-0 -- ipdated to 1.10.1 (--altnames option) - -* Thu Sep 1 2011 Matteo Corti - 1.10.0-0 -- apllied patch from Sven Nierlein for client certificate authentication - -* Thu Mar 10 2011 Matteo Corti - 1.9.1-0 -- updated to 1.9.1: allows http as protocol and fixes -N with wildcards - -* Mon Jan 24 2011 Matteo Corti - 1.9.0-0 -- updated to 1.9.0: --openssl option - -* Thu Dec 16 2010 Dan Wallis - 1.8.1-0 -- Fixed bugs with environment bleeding & shell globbing - -* Thu Dec 9 2010 Matteo Corti - 1.8.0-0 -- added support for TLS servername extension - -* Thu Oct 28 2010 Matteo Corti - 1.7.7-0 -- Fixed a bug in the signal specification - -* Thu Oct 28 2010 Matteo Corti - 1.7.6-0 -- better temporary file clean up - -* Thu Oct 14 2010 Matteo Corti - 1.7.5-0 -- updated to 1.7.5 (fixed the check order) - -* Fri Oct 1 2010 Matteo Corti - 1.7.4-0 -- added -A command line option - -* Wed Sep 15 2010 Matteo Corti - 1.7.3-0 -- Fixed a bug in the command line options processing - -* Thu Aug 26 2010 Dan Wallis - 1.7.2-0 -- updated to 1.7.2 (cat and expect fixes) - -* Thu Aug 26 2010 Dan Wallis - 1.7.1-0 -- updated to 1.7.1 ("-verify 6" revert) - -* Thu Aug 26 2010 Dan Wallis - 1.7.0-0 - -* Wed Jul 21 2010 Matteo Corti - 1.6.1-0 -- updated to 1.6.0 (--temp option) - -* Fri Jul 9 2010 Matteo Corti - 1.6.0-0 -- updated to version 1.6.0 (long options, --critical and --warning, man page) - -* Wed Jul 7 2010 Matteo Corti - 1.5.2-0 -- updated to version 1.5.2 (Wolfgang Schricker patch, see ChangeLog) - -* Thu Jul 1 2010 Matteo Corti - 1.5.1-0 -- updated to version 1.5.1 (Yannick Gravel patch, see ChangeLog) - -* Tue Jun 8 2010 Matteo Corti - 1.5.0-0 -- updated to version 1.5.0 (-s option to allow self signed certificates) - -* Thu Mar 11 2010 Matteo Corti - 1.4.4-0 -- updated to 1.4.4 (bug fix release) - -* Tue Mar 9 2010 Matteo Corti - 1.4.3-0 -- updated to 1.4.3 (-n and -N options) - -* Wed Dec 2 2009 Matteo Corti - 1.4.2-0 -- updated to 1.4.2 - -* Mon Nov 30 2009 Matteo Corti - 1.4.1-0 -- updated to 1.4.1 (-r option) - -* Mon Nov 30 2009 Matteo Corti - 1.4.0-0 -- Updated to 1.4.0: verify the certificate chain - -* Mon Mar 30 2009 Matteo Corti - 1.3.0-0 -- Tuomas Haarala patch: -P option - -* Tue May 13 2008 Matteo Corti - 1.2.2-0 -- Dan Wallis patch to include the CN in the messages - -* Mon Feb 25 2008 Matteo Corti - 1.2.1-0 -- Dan Wallis patches (error checking, see ChangeLog) - -* Mon Feb 25 2008 Matteo Corti - 1.2.0-0 -- Dan Wallis patches (see the ChangeLog) - -* Mon Sep 24 2007 Matteo Corti - 1.1.0-0 -- first RPM package - diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/COPYING nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/COPYING --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/COPYING 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/COPYING 1970-01-01 00:00:00.000000000 +0000 @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/COPYRIGHT nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/COPYRIGHT --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/COPYRIGHT 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/COPYRIGHT 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ - - Copyright (c) 2007-2012 ETH Zurich - -with the following individuals added to the list of Contributing Authors - - Dan Wallis - Lawren Quigley-Jones - Marc Fournier - Marcus Rejås - Matteo Corti - Matthias Fuhrmeister - Raphael Thoma - Scott Worthington - Sven Nierlein - Tuomas Haarala - Wolfgang Schricker - Yannick Gravel - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or (at -your option) any later version. - -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/INSTALL nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/INSTALL --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/INSTALL 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/INSTALL 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -Simply copy the plugin to your nagios plugin directory - -Optional installs: - -In order to use timeouts the plugin needs 'expect' in the current PATH -See: http://en.wikipedia.org/wiki/Expect - -In order to perform date computations the plugin needs a Perl -interpreter and the module Date::Parse - -# File version information: -# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ -# $Revision: 1103 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ -# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/Makefile nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/Makefile --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/Makefile 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/Makefile 1970-01-01 00:00:00.000000000 +0000 @@ -1,46 +0,0 @@ -PLUGIN=check_ssl_cert -VERSION=`cat VERSION` -DIST_DIR=$(PLUGIN)-$(VERSION) -DIST_FILES=AUTHORS COPYING ChangeLog INSTALL Makefile NEWS README TODO VERSION $(PLUGIN) $(PLUGIN).spec COPYRIGHT ${PLUGIN}.1 test - -dist: version_check - rm -rf $(DIST_DIR) $(DIST_DIR).tar.gz - mkdir $(DIST_DIR) - cp -r $(DIST_FILES) $(DIST_DIR) - tar cfz $(DIST_DIR).tar.gz $(DIST_DIR) - tar cfj $(DIST_DIR).tar.bz2 $(DIST_DIR) - -install: - mkdir -p $(DESTDIR) - install -m 755 $(PLUGIN) $(DESTDIR) - mkdir -p ${MANDIR}/man1 - install -m 644 ${PLUGIN}.1 ${MANDIR}/man1/ - -version_check: - VERSION=`cat VERSION` - grep -q "VERSION\ *=\ *[\'\"]*$(VERSION)" $(PLUGIN) - grep -q "^%define\ version\ *$(VERSION)" $(PLUGIN).spec - grep -q -- "- $(VERSION)-" $(PLUGIN).spec - grep -q "\"$(VERSION)\"" $(PLUGIN).1 - grep -q "${VERSION}" NEWS - echo "Version check: OK" - -clean: - rm -f *~ - rm -rf rpmroot - -test: - ( cd test && ./unit_tests.sh ) - -rpm: dist - mkdir -p rpmroot/SOURCES rpmroot/BUILD - cp $(DIST_DIR).tar.gz rpmroot/SOURCES - rpmbuild --define "_topdir `pwd`/rpmroot" -ba check_ssl_cert.spec - -.PHONY: install clean test rpm - -# File version information: -# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ -# $Revision: 1103 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ -# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/NEWS nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/NEWS --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/NEWS 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/NEWS 1970-01-01 00:00:00.000000000 +0000 @@ -1,76 +0,0 @@ -2014-02-28 Version 1.16.1 Added a Make target for the RPM package -2013-12-23 Version 1.16.0 Added an option to force TLS version 1 -2013-07-29 Version 1.15.0 Added an option to force a certain SSL version (thanks - to Max Winterstein) -2013-05-12 Version 1.14.6 Added XMPP and timeout support (thanks to Christian - Ruppert and Robin H. Johnson) -2013-03-02 Version 1.14.5 Fixed a bug occuring with TLS and multiple names in - the certificate -2012-12-07 Version 1.14.4 Fixed a bug causing -N to always compare the CN - with 'localhost' -2012-09-19 Version 1.14.3 Improved the error message in case of a failure in - the certificate download -2012-07-13 Version 1.14.2 Added the name since or to expiration in the plugin - output. -2012-07-11 Version 1.14.1 FIxed a bug with Perl date computation on some systems -2012-07-06 Version 1.14.0 The status now includes performance data in days until - expiration (requires perl with Date::Parse). - It is now possible to print additional information in - the plugins long output (multiline, Nagios 3 only) -2012-04-05 Version 1.13.0 The plugin will now try to fetch the certificate without - without TLS extensions in case of error -2012-04-04 Version 1.12.0 Fixed a bug in the chain verification (hard coded - error number) -2011-10-22 Version 1.11.0 --altname option -2011-09-01 Version 1.10.0 Applied a patch from Sven Nierlein to authenicate - using a client certificate -2011-03-10 Version 1.9.1 Allows HTTP as protocol and fixes -N with wildcards -2011-01-24 Version 1.9.0 Added an option to specify the openssl executable -2010-12-16 Version 1.8.1 Fixed bugs with environment bleeding & shell globbing -2010-12-08 Version 1.8.0 Added support for TLS servername extension in - ClientHello -2010-10-28 Version 1.7.7 Fixed a bug in the signal specification introduced - in 1.7.6 -2010-10-28 Version 1.7.6 Better temporary file clean up (thanks to Lawren - Quigley-Jones) -2010-10-14 Version 1.7.5 Applied a patch from Yannick Gravel fixing the test - order -2010-10-01 Version 1.7.4 Applied a patch from Lawren Quigley-Jones adding the - -A option -2010-09-15 Version 1.7.3 Fixed a bug in the option processing -2010-08-26 Version 1.7.2 Removes useless use of cat, better test for expect - utility -2010-08-26 Version 1.7.1 Replaces "-verify 6" which was erroneously removed in - the previous version -2010-08-26 Version 1.7.0 Overloaded --rootcert option to allow -CApath as well - as -CAfile -2010-07-21 Version 1.6.1 Added an option to specify where to temporarily - store the certificate -2010-07-09 Version 1.6.0 Added long command line options and substituted - -days with --critical and --warning -2010-07-07 Version 1.5.2 Added the -f option to check a local file -2010-07-01 Version 1.5.1 Fixed the plugin output -2010-03-11 Version 1.4.4 Fixed bug #64 (== bashism) -2010-03-09 Version 1.4.3 -N and -n options to compare the CN to an hostname -2009-12-02 Version 1.4.2 the -i ISSUER option now checks if the O= or the - CN= fields of the root certificate match -2009-11-30 Version 1.4.1 -r to specify the root cert to be used for - verification -2009-11-30 Version 1.4.0 certificate chain verification -2009-03-30 Version 1.3.0 -P option to check TLS certificates - (SMTP, FTP, POP3, ...) -2008-05-13 Version 1.2.2 include the CN in the messages (D. Wallis) -2008-02-25 Version 1.2.1 better error handling -2008-02-25 Version 1.2.0 general cleanup (POSIX compliance, removed - nmap dependency, ...) from Dan Wallis -2007-08-31 Version 1.1.0 - option to enforce a given email address - - option to enforce a given organization - - temporary files cleanup upon exit -2007-08-15 Bug fix: openssl did not close the connection cleanly -2007-08-10 First release (1.0) - -# File version information: -# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ -# $Revision: 1103 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ -# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/README nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/README --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/README 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,105 +0,0 @@ - - (c) Matteo Corti, ETH Zurich, 2007-2012 - - see AUTHORS for the complete list of contributors - -check_ssl_cert - -A Nagios plugin to check an X.509 certificate: - - checks if the server is running and delivers a valid certificate - - checks if the CA matches a given pattern - - checks the validity - -Usage: -====== - -check_ssl_cert -H host [OPTIONS] - -Arguments: - -H,--host host server - -Options: - -A,--noauth ignore authority warnings (expiration only) - -C,--clientcert path use client certificate to authenticate - --clientpass phrase set passphrase for client certificate. - -c,--critical days minimum number of days a certificate has to be valid - to issue a critical status - -e,--email address pattern to match the email address contained in the - certificate - -f,--file file local file path (works with -H localhost only) - -h,--help,-? this help message - -i,--issuer issuer pattern to match the issuer of the certificate - -n,---cn name pattern to match the CN of the certificate - -N,--host-cn match CN with the host name - -o,--org org pattern to match the organization of the certificate - --openssl path path of the openssl binary to be used - -p,--port port TCP port - -P,--protocol protocol use the specific protocol {http|smtp|pop3|imap|ftp} - http: default - smtp,pop3,imap,ftp: switch to TLS - -s,--selfsigned allows self-signed certificates - -r,--rootcert path root certificate or directory to be used for - certficate validation - -t,--timeout seconds timeout after the specified time - (defaults to 15 seconds) - --temp dir directory where to store the temporary files - -v,--verbose verbose output - -V,--version version - -w,--warning days minimum number of days a certificate has to be valid - to issue a warning status - -Deprecated options: - -d,--days days minimum number of days a certificate has to be valid - (see --critical and --warning) - -Expect: -======= - -check_ssl_cert requires 'expect' to enable timouts. If expect is not -present on your system timeouts will be disabled. - -See: http://en.wikipedia.org/wiki/Expect - -Perl and Date::Parse: -===================== - -If perl and Date::Parse are available the plugin will also compute for -how many days the certificate will be valid and put the information in -the performance data. If perl or Date::Parse are not available the -information will not be available. - -Virtual servers: -================ - -check_ssl_client supports the servername TLS extension in ClientHello -if the installed openssl version provides it. This is needed if you -are checking a machine with virtual hosts. - -Notes: -====== - -the root certificate corresponding to the checked certificate must be -available to openssl or specified with the '-r cabundle' or -'--rootcert cabundle' option, where cabundle is either a file for -CAfile -or a directory for -CApath. - -On Mac OS X the root certificates bundle is stored in the Keychain and -openssl will complain with: - - verification error: unable to get local issuer certificate - -The bundle can be extracted with: - -$ sudo security find-certificate -a \ - -p /System/Library/Keychains/SystemRootCertificates.keychain > cabundle.crt - -Bugs: -===== - -Report bugs to: Matteo Corti - -# File version information: -# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ -# $Revision: 1103 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ -# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/test/cabundle.crt nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/test/cabundle.crt --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/test/cabundle.crt 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/test/cabundle.crt 1970-01-01 00:00:00.000000000 +0000 @@ -1,4201 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEajCCA1KgAwIBAgIBATANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJKUDEN -MAsGA1UECgwESlBLSTEpMCcGA1UECwwgUHJlZmVjdHVyYWwgQXNzb2NpYXRpb24g -Rm9yI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bl5KXZnJHoe0nRrA -1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HFMIHCMB0G -A1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fR -zt0fhvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0 -YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBD -bGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8w -DQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGsafPzWdqbAYcaT1epoXkJKtv3 -L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLMPUxA2IGvd56D -eruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl -xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynp -VSJYACPq4xJDKVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEY -WQPJIrSPnNVeKtelttQKbfi3QBFGmh95DmK/D5fs4C8fF5Q= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDIDCCAgigAwIBAgIBJDANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJGSTEP -MA0GA1UEChMGU29uZXJhMRkwFwYDVQQDExBTb25lcmEgQ2xhc3MxIENBMB4XDTAx -MDQwNjEwNDkxM1oXDTIxMDQwNjEwNDkxM1owOTELMAkGA1UEBhMCRkkxDzANBgNV -BAoTBlNvbmVyYTEZMBcGA1UEAxMQU29uZXJhIENsYXNzMSBDQTCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBALWJHytPZwp5/8Ue+H887dF+2rDNbS82rDTG -29lkFwhjMDMiikzujrsPDUJ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r9dgTbYruQagPZRjXZ+Hxb ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICPDCCAaUCEAq6HgBiMui0NiZdH3zNiWYwDQYJKoZIhvcNAQEFBQAwXzELMAkG -A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz -cyAyIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2 -MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV -BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAyIFB1YmxpYyBQcmlt -YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN -ADCBiQKBgQC2WoujDWojg4BrzzmH9CETMwZMJaLtVRKXxaeAufqDwSCg+i8VDXyh -YGt+eSz6Bg86rvYbb7HS/y8oUl+DfUvEerf4Zh+AVPy3wo5ZShRXRtGak75BkQO7 -FYCTXOvnzAhsPz6zSvz/S2wj1VCCJkQZjiPDceoZJEcEnnW/yKYAHwIDAQABMA0G -CSqGSIb3DQEBBQUAA4GBAIDToA+IyeVoW4R7gB+nt+MjWBEc9RTwWBKMi99x2ZAk -EXyge8N6GRm9cr0gvwA63/rVeszC42JFi8tJg5jBcGnQnl6CjDVHjk8btB9jAa3k -ltax7nosZm4XNq8afjgGhixrTcsnkm54vwDVAcCxB8MJqmSFKPKdc57PYDoKHUpI ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkG -A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz -cyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2 -MD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kwggEi -MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVqDM7Jvk0/82bfuUER84A4n13 -5zHCLielTWi5MbqNQ1mXx3Oqfz1cQJ4F5aHiidlMuD+b+Qy0yGIZLEWukR5zcUHE -SxP9cMIlrCL1dQu3U+SlK93OvRw6esP3E48mVJwWa2uv+9iWsWCaSOAlIiR5NM4O -JgALTqv9i86C1y8IcGjBqAr5dE8Hq6T54oN+J3N0Prj5OEL8pahbSCOz6+MlsoCu -ltQKnMJ4msZoGK43YjdeUXWoWGPAUe5AeH6orxqg4bB4nVCMe+ez/I4jsNtlAHCE -AQgAFG5Uhpq6zPk3EPbg3oQtnaSFN9OH4xXQwReQfhkhahKpdv0SAulPIV4XAgMB -AAGjYTBfMA8GA1UdEwEB/wQFMAMBAf8wTAYDVR0gBEUwQzBBBgtghkgBhvt7hwcB -CzAyMDAGCCsGAQUFBwIBFiRodHRwOi8vd3d3LndlbGxzZmFyZ28uY29tL2NlcnRw -b2xpY3kwDQYJKoZIhvcNAQEFBQADggEBANIn3ZwKdyu7IvICtUpKkfnRLb7kuxpo -7w6kAOnu5+/u9vnldKTC2FJYxHT7zmu1Oyl5GFrvm+0fazbuSCUlFLZWohDo7qd/ -0D+j0MNdJu4HzMPBJCGHHt8qElNvQRbn7a6U+oxy+hNH8Dx+rn0ROhPs7fpvcmR7 -nX1/Jv16+yWt6j4pf0zjAFcysLPp7VMX2YuyFA4w6OXVE8Zkr8QA1dhYJPz1j+zx -x32l2w8n0cbyQIjmH/ZhqPRCyLk306m+LFZ4wnKbWV01QIroTmMatukgalHizqSQ -33ZwmVxwQ023tqcZZE6St8WRPH9IFmV7Fv3L/PvZ1dZPIWU7Sn9Ho/s= ------END CERTIFICATE----- diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/test/cacert.crt nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/test/cacert.crt --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/test/cacert.crt 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/test/cacert.crt 1970-01-01 00:00:00.000000000 +0000 @@ -1,42 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIHWTCCBUGgAwIBAgIDCkGKMA0GCSqGSIb3DQEBCwUAMHkxEDAOBgNVBAoTB1Jv -b3QgQ0ExHjAcBgNVBAsTFWh0dHA6Ly93d3cuY2FjZXJ0Lm9yZzEiMCAGA1UEAxMZ -Q0EgQ2VydCBTaWduaW5nIEF1dGhvcml0eTEhMB8GCSqGSIb3DQEJARYSc3VwcG9y -dEBjYWNlcnQub3JnMB4XDTExMDUyMzE3NDgwMloXDTIxMDUyMDE3NDgwMlowVDEU -MBIGA1UEChMLQ0FjZXJ0IEluYy4xHjAcBgNVBAsTFWh0dHA6Ly93d3cuQ0FjZXJ0 -Lm9yZzEcMBoGA1UEAxMTQ0FjZXJ0IENsYXNzIDMgUm9vdDCCAiIwDQYJKoZIhvcN -AQEBBQADggIPADCCAgoCggIBAKtJNRFIfNImflOUz0Op3SjXQiqL84d4GVh8D57a -iX3h++tykA10oZZkq5+gJJlz2uJVdscXe/UErEa4w75/ZI0QbCTzYZzA8pD6Ueb1 -aQFjww9W4kpCz+JEjCUoqMV5CX1GuYrz6fM0KQhF5Byfy5QEHIGoFLOYZcRD7E6C -jQnRvapbjZLQ7N6QxX8KwuPr5jFaXnQ+lzNZ6MMDPWAzv/fRb0fEze5ig1JuLgia -pNkVGJGmhZJHsK5I6223IeyFGmhyNav/8BBdwPSUp2rVO5J+TJAFfpPBLIukjmJ0 -FXFuC3ED6q8VOJrU0gVyb4z5K+taciX5OUbjchs+BMNkJyIQKopPWKcDrb60LhPt -XapI19V91Cp7XPpGBFDkzA5CW4zt2/LP/JaT4NsRNlRiNDiPDGCbO5dWOK3z0luL -oFvqTpa4fNfVoIZwQNORKbeiPK31jLvPGpKK5D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rnILKVyQQ+hBsuF32wITRHhH -Va9Y/MyY9kW50SD42CEH/m2qc9SzxgfpCYXMO/K2viwcJdVxjDm1Luq+GIG6sJO4 -D+Pm1yaMMVpyA4RS5qb1MyJFCsgLDYq4Nm+QCaGrvdfVTi5xotSu+qdUK+s1jVq3 -VIgv7nSf7UgWyg1I0JTTrKSi9iTfkuO960NAkW4cGI5WtIIS86mTn9S8nK2cde5a -lxuV53QtHA+wLJef+6kzOXrnAzqSjiL2jA3k2X4Ndhj3AfnvlpaiVXPAPHG0HRpW -Q7fDCo1y/OIQCQtBzoyUoPkD/XFzS4pXM+WOdH4VAQDmzEoc53+VGS3FpQyLu7Xt -hbNc09+4ufLKxw0BFKxwWMWMjTPUnWajGlCVI/xI4AZDEtnNp4Y5LzZyo4AQ5OHz -0ctbGsDkgJp8E3MGT9ujayQKurMcvEp4u+XjdTilSKeiHq921F73OIZWWonO1sOn -ebJSoMbxhbQljPI/lrMQ2Y1sVzufb4Y6GIIiNsiwkTjbKqGTqoQ/9SdlrnPVyNXT -d+pLncdBu8fA46A/5H2kjXPmEkvfoXNzczqA6NXLji/L6hOn1kGLrPo8idck9U60 -4GGSt/M3mMS+lqO3ig== ------END CERTIFICATE----- diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/test/unit_tests.sh nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/test/unit_tests.sh --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/test/unit_tests.sh 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/test/unit_tests.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -#!/bin/sh - -if [ -z "${SHUNIT2}" ] ; then - cat < /dev/null - assertEquals "wrong exit code" ${NAGIOS_OK} "$?" -} - -testUsage() { - ${SCRIPT} > /dev/null 2>&1 - assertEquals "wrong exit code" ${NAGIOS_UNKNOWN} "$?" -} - -# source the script. -. ${SCRIPT} --source-only - -# run shUnit: it will execute all the tests in this file -# (e.g., functions beginning with 'test' -. ${SHUNIT2} diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/TODO nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/TODO --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/TODO 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/TODO 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -* Nagios performance data (e.g., missing days) -* IPv6 support (e.g., through gnutls-cli) - -# File version information: -# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ -# $Revision: 1103 $ -# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ -# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/VERSION nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/VERSION --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.16.1/VERSION 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.16.1/VERSION 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -1.16.1 diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/AUTHORS nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/AUTHORS --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/AUTHORS 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/AUTHORS 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,45 @@ +Matteo Corti + +Thanks: + +* Many thanks to Kenny McCormack for his help on comp.unix.shell on + how to implement a timeout +* Many thanks to Dan Wallis for several patches and fixes + (see the Changelog) +* Many thanks to Tuomas Haarala for the -P option patch to + check TLS certs using other protocols +* Many thanks to Marcus Rejås for the -N and -n patches +* Many thanks to Marc Fournier for + - the == bashism fix + - the mktemp error handling patch +* Many thanks to Wolfgang Schricker for + - the selfsigned bug report and cleanup fixes + - the patch adding the possibility to check local files (-f option) +* Many thanks to Yannick Gravel for the patch fixing the plugin output + and the fix on the test order +* Many thanks to Scott Worthington for the --critical and --warning hints +* Many thanks to Lawren Quigley-Jones for + - the -A,--noauth patch + - the trap fix +* Many thanks to Matthias Fuhrmeister for the -servername patch +* Many thanks to Raphael Thoma for the patch allowing HTTP to be + specified as protocol and the fix on -N with wildcards +* Many thanks to Sven Nierlein for the client certificate authentication patch +* Many thanks to Rob Yamry for the help in debugging a problem with + certain versions of OpenSSL and TLS extensions +* Many thanks to Jim Hopp for the "No certificate returned" enhancement patch +* Many thanks to Javier Gonel for the TLS servername patch +* Many thanks to Christian Ruppert for the XMPP patch +* Many thanks to Robin H. Johnson for the 'timeout' patch +* Many thanks to Max Winterstein for the SSL version patch +* Many thanks to Colin Smith for the RPM build Makefile patch +* Many thanks to Andreas Dijkman for the RPM dependencies patch +* Many thanks to Lawren Quigley-Jones for the common name patch +* Many thanks to Ryan Nowakowski for the OCSP patch +* Many thanks to Jérémy Lecour for the review and corrections + +# File version information: +# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ +# $Revision: 1103 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ +# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/ChangeLog nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/ChangeLog --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/ChangeLog 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/ChangeLog 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,248 @@ +2015-04-07 Matteo Corti + + * check_ssl_cert: corrected some typos (thanks to Jérémy Lecour) + * check_ssl_cert: removed check on the openssl binary name + +2014-10-21 Matteo Corti + + * check_ssl_cert: added a patch to check revocation via OCSP (thanks + to Ryan Nowakowski) + +2014-02-28 Matteo Corti + + * Makefile: added a target to build an rpm + +2013-12-23 Matteo Corti + + * check_ssl_cert: added the --tls1 option to force TLS 1 + +2013-10-09 Matteo Corti + + * check_ssl_cert: whole script reviewed with shellcheck + +2013-10-01 Matteo Corti + + * check_ssl_cert: fixes with shellcheck (quoting) + +2013-07-29 Matteo Corti + + * check_ssl_cert: Added an option to force a given SSL version + +2013-03-02 Matteo Corti + + * check_ssl_cert: Fixed a bug occuring with TLS and multiple names in + the certificate + +2012-12-07 Matteo Corti + + * check_ssl_cert: removed "test -a/-o" (test has an undefined + behavior with more than 4 elements) + + * check_ssl_cert: fixed #122 (-N was always comparing the CN with 'localhost') + +2012-11-16 Matteo Corti + + * simplified the sourcing of the script file for testing + +2012-10-11 Matteo Corti + + * added some unit tests with shUnit2 + +2012-09-19 Matteo Corti + + * check_ssl_cert: improved the "No certificate returned" error message + +2012-07-13 Matteo Corti + + * check_ssl_cert: added the number of days from or to expiration in the + plugin output + +2012-07-11 Matteo Corti + + * check_ssl_cert: fixed a bug with Perl date computation on some systems + +2012-07-06 Matteo Corti + + * check_ssl_cert: performance data in days + * check_ssl_cert: long output (certificate attributes) + +2012-04-05 Matteo Corti + + * check_ssl_cert: handle broken OpenSSL clients (-servername not working) + +2012-04-04 Matteo Corti + + * check_ssl_cert: removed an hard coded reference to the error number by the + SSL chain verification + +2011-10-22 Matteo Corti + + * check_ssl_cert: added a --altnames option to match the CN to alternative + names + +2011-09-01 Matteo Corti + + * check_ssl_cert: applied a patch from Sven Nierlein + (certificate authentication) + +2011-03-10 Matteo Corti + + * check_ssl_cert: allows http to specified as protocol + (thanks to Raphael Thoma) + * check_ssl_cert: fixes the -N check for certs with wildcards + (thanks to Raphael Thoma) + +2011-01-24 Matteo Corti + + * check_ssl_cert: added an option to specify the openssl executable + +2010-12-16 Dan Wallis + + * check_ssl_cert: Sets $VERBOSE to avoid using value supplied by Nagios + * check_ssl_cert: Quotes regular expression for grep to avoid shell globbing + +2010-12-09 Matteo Corti + + * check_ssl_cert.spec: standardized the RPM package name + + * check_ssl_cert: added support for the TLS servername extension + (thanks to Matthias Fuhrmeister) + +2010-11-02 Matteo Corti + + * INSTALL: specifies that expect is needed for timeouts + +2010-10-29 Matteo Corti + + * README: specifies that expect is needed for timeouts + +2010-10-28 Matteo Corti + + * check_ssl_cert: trap on more signals (thanks to Lawren Quigley-Jones) + +2010-10-14 Matteo Corti + + * check_ssl_cert: added a patch from Yannick Gravel putting the + chain verification at the end of the tests + +2010-10-01 Matteo Corti + + * check_ssl_cert: added a patch from Lawren Quigley-Jones which + implements a new command line argument (-A) to disable the + certificate chain check + +2010-09-15 Matteo Corti + + * check_ssl_cert: fixed option processing (bug #78) + +2010-08-26 Dan Wallis + + * check_ssl_cert: overloads --rootcert for use with directories as + well as files (-CApath versus -CAfile) + +2010-07-21 Matteo Corti + + * check_ssl_cert: added a patch from Marc Fournier to check the creation of the temporary files + * check_ssl_cert: added the --temp option to specify where to store the temporary files + +2010-07-10 Matteo Corti + + * check_ssl_cert: improved the error messages + * check_ssl_cert: checks for certificates without email addresses (if -e is specified) + +2010-07-09 Matteo Corti + + * check_ssl_cert: added a "long" version for all the command line options + * check_ssl_cert: added a critical and warning option for the certificate validity (in days) + * check_ssl_cert: the plugin always issues a critical warning if the certificate is expired + * check_ssl_cert: added a man page + +2010-07-07 Matteo Corti + + * check_ssl_cert: [Wolfgang Schricker patch] Add -f to check local files + +2010-07-01 Matteo Corti + + * check_ssl_cert: [Yannick Gravel patch] Restore displaying the CN in every messages: + a previous patch changed something and only + critical were adjusted. + * check_ssl_cert: [Yannick Gravel patch] Adjust what is displayed after the from in + the OK message to display the matched ISSUER + (CN or O). + +2010-06-08 Matteo Corti + + * check_ssl_cert: added the -s option to allow self signed certificates + +2010-03-11 Matteo Corti + + * check_ssl_cert: fixed the == bashism + +2010-03-08 Matteo Corti + + * check_ssl_cert: applied patch from Marcus Rejås with the -n and -N options + +2009-12-02 Matteo Corti + + * check_ssl_cert: check if the issuer matches the O= or the CN= field of the Root Cert + +2009-11-30 Matteo Corti + + * check_ssl_cert: cleaned up error messages if the CN is not yet known + * check_ssl_cert: added certificate chain verification + * check_ssl_cert: allow backslashes escaped in the error messages (e.g., for \n used by Nagios 3) + * check_ssl_cert: -r can be used to specify a root certificate to be used for the verification + +2009-03-31 Matteo Corti + + * check_ssl_cert: standard timeout of 15 seconds (can be set with the -t option) + +2009-03-30 Matteo Corti + + * check_ssl_cert: -P option to specify the protocol + +2008-05-13 Matteo Corti + + * check_ssl_cert: applied a patch from Dan Wallis to output the CN + in all the messages + +2008-02-28 Matteo Corti + + * check_ssl_cert: shortened the error message in case of no connection + (only the first line is reported) + +2008-02-25 Matteo Corti + + * check_ssl_cert: [Dan Wallis patch] removed nmap dependency + * check_ssl_cert: [Dan Wallis patch] mktemp for the temporaries + * check_ssl_cert: [Dan Wallis patch] using trap to cleanup temporaries + * check_ssl_cert: [Dan Wallis patch] POSIX compliance and cleanup + * check_ssl_cert: [Dan Wallis patch] POSIX compliance and cleanup + * check_ssl_cert: [Dan Wallis patch] better handling of missing + certificate and non resolvable host + * check_ssl_cert: [Dan Wallis patch] stricter check for "notAfter" in the + certificate analysis + +2007-09-04 Matteo Corti + + * check_ssl_cert: better error messages (both the actual and the + expected values are displayed) + +2007-08-31 Matteo Corti + + * check_ssl_cert: new options to enforce email and + organization. Temporary files are now removed before termination + +2007-08-15 Matteo Corti + + * check_ssl_cert: openssl s_client closes the connection cleanly + +2007-08-10 Matteo Corti + + * check_ssl_cert: initial release + +# File version information: +# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ +# $Revision: 1103 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ +# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,924 @@ +#!/bin/sh +# +# check_ssl_cert +# +# Checks an X.509 certificate: +# - checks if the server is running and delivers a valid certificate +# - checks if the CA matches a given pattern +# - checks the validity +# +# See the INSTALL file for installation instructions +# +# Copyright (c) 2007-2012 ETH Zurich. +# +# This module is free software; you can redistribute it and/or modify it +# under the terms of GNU general public license (gpl) version 3. +# See the LICENSE file for details. +# +# RCS information +# enable substitution with: +# $ svn propset svn:keywords "Id Revision HeadURL Source Date" +# +# $Id: check_ssl_cert 1442 2015-04-07 14:06:03Z corti $ +# $Revision: 1442 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_ssl_cert/check_ssl_cert $ +# $Date: 2015-04-07 16:06:03 +0200 (Tue, 07 Apr 2015) $ + +################################################################################ +# Constants + +VERSION=1.17.1 +SHORTNAME="SSL_CERT" + +VALID_ATTRIBUTES=",startdate,enddate,subject,issuer,modulus,serial,hash,email,ocsp_uri,fingerprint," + +################################################################################ +# Functions + +################################################################################ +# Prints usage information +# Params +# $1 error message (optional) +usage() { + + if [ -n "$1" ] ; then + echo "Error: $1" 1>&2 + fi + + #### The following line is 80 characters long (helps to fit the help text in a standard terminal) + ######-------------------------------------------------------------------------------- + + echo + echo "Usage: check_ssl_cert -H host [OPTIONS]" + echo + echo "Arguments:" + echo " -H,--host host server" + echo + echo "Options:" + echo " -A,--noauth ignore authority warnings (expiration only)" + echo " --altnames matches the pattern specified in -n with alternate" + echo " names too" + echo " -C,--clientcert path use client certificate to authenticate" + echo " --clientpass phrase set passphrase for client certificate." + echo " -c,--critical days minimum number of days a certificate has to be valid" + echo " to issue a critical status" + echo " -e,--email address pattern to match the email address contained in the" + echo " certificate" + echo " -f,--file file local file path (works with -H localhost only)" + echo " -h,--help,-? this help message" + echo " --long-output list append the specified comma separated (no spaces) list" + echo " of attributes to the plugin output on additional lines." + echo " Valid attributes are:" + echo " enddate, startdate, subject, issuer, modulus, serial," + echo " hash, email, ocsp_uri and fingerprint." + echo " 'all' will include all the available attributes." + echo " -i,--issuer issuer pattern to match the issuer of the certificate" + echo " -n,--cn name pattern to match the CN of the certificate" + echo " -N,--host-cn match CN with the host name" + echo " --ocsp check revocation via OCSP" + echo " -o,--org org pattern to match the organization of the certificate" + echo " --openssl path path of the openssl binary to be used" + echo " -p,--port port TCP port" + echo " -P,--protocol protocol use the specific protocol {http|smtp|pop3|imap|ftp|xmpp}" + echo " http: default" + echo " smtp,pop3,imap,ftp: switch to TLS" + echo " -s,--selfsigned allows self-signed certificates" + echo " -S,--ssl version force SSL version (2,3)" + echo " -r,--rootcert path root certificate or directory to be used for" + echo " certificate validation" + echo " -t,--timeout seconds timeout after the specified time" + echo " (defaults to 15 seconds)" + echo " --temp dir directory where to store the temporary files" + echo " --tls1 force TLS version 1" + echo " -v,--verbose verbose output" + echo " -V,--version version" + echo " -w,--warning days minimum number of days a certificate has to be valid" + echo " to issue a warning status" + echo + echo "Deprecated options:" + echo " -d,--days days minimum number of days a certificate has to be valid" + echo " (see --critical and --warning)" + echo + echo "Report bugs to: Matteo Corti " + echo + + exit 3 + +} + +################################################################################ +# Exits with a critical message +# Params +# $1 error message +critical() { + if [ -n "${CN}" ] ; then + tmp=" ${CN}" + fi + printf '%s CRITICAL%s: %s%s%s\n' "${SHORTNAME}" "${tmp}" "$1" "${PERFORMANCE_DATA}" "${LONG_OUTPUT}" + exit 2 +} + +################################################################################ +# Exits with a warning message +# Param +# $1 warning message +warning() { + if [ -n "${CN}" ] ; then + tmp=" ${CN}" + fi + printf '%s WARN%s: %s%s%s\n' "${SHORTNAME}" "${tmp}" "$1" "${PERFORMANCE_DATA}" "${LONG_OUTPUT}" + exit 1 +} + +################################################################################ +# Exits with an 'unkown' status +# Param +# $1 message +unknown() { + if [ -n "${CN}" ] ; then + tmp=" ${CN}" + fi + printf '%s UNKNOWN%s: %s\n' "${SHORTNAME}" "${tmp}" "$1" + exit 3 +} + +################################################################################ +# Executes command with a timeout +# Params: +# $1 timeout in seconds +# $2 command +# Returns 1 if timed out 0 otherwise +exec_with_timeout() { + + time=$1 + + # start the command in a subshell to avoid problem with pipes + # (spawn accepts one command) + command="/bin/sh -c \"$2\"" + + if [ -n "${TIMEOUT_BIN}" ] ; then + + eval "${TIMEOUT_BIN} $time $command" + + elif [ -n "${EXPECT}" ] ; then + + expect -c "set echo \"-noecho\"; set timeout $time; spawn -noecho $command; expect timeout { exit 1 } eof { exit 0 }" + + if [ $? = 1 ] ; then + critical "Timeout after ${time} seconds" + fi + + else + eval "${command}" + fi + +} + +################################################################################ +# Checks if a given program is available and executable +# Params +# $1 program name +# Returns 1 if the program exists and is executable +check_required_prog() { + + PROG=$(which "$1" 2> /dev/null) + + if [ -z "$PROG" ] ; then + critical "cannot find $1" + fi + + if [ ! -x "$PROG" ] ; then + critical "$PROG is not executable" + fi + +} + +################################################################################ +# Tries to fetch the certificate + +fetch_certificate() { + + # check if a protocol was specified (if not HTTP switch to TLS) + if [ -n "${PROTOCOL}" ] && [ "${PROTOCOL}" != "http" ] && [ "${PROTOCOL}" != "https" ] ; then + + case "${PROTOCOL}" in + + smtp|pop3|imap|ftp|xmpp) + +exec_with_timeout "$TIMEOUT" "echo 'Q' | $OPENSSL s_client ${CLIENT} ${CLIENTPASS} -starttls ${PROTOCOL} -connect $HOST:$PORT ${SERVERNAME} -verify 6 ${ROOT_CA} ${SSL_VERSION} 2> ${ERROR} 1> ${CERT}" +;; + +*) + +unknown "Error: unsupported protocol ${PROTOCOL}" + +esac + +elif [ -n "${FILE}" ] ; then + +if [ "${HOST}" = "localhost" ] ; then + + exec_with_timeout "$TIMEOUT" "/bin/cat '${FILE}' 2> ${ERROR} 1> ${CERT}" + +else + + unknown "Error: option 'file' works with -H localhost only" + +fi + +else + +exec_with_timeout "$TIMEOUT" "echo 'Q' | $OPENSSL s_client ${CLIENT} ${CLIENTPASS} -connect $HOST:$PORT ${SERVERNAME} -verify 6 ${ROOT_CA} ${SSL_VERSION} 2> ${ERROR} 1> ${CERT}" + +fi + +if [ $? -ne 0 ] ; then + critical "Error: $(head -n 1 ${ERROR})" +fi + + +} + + +main() { + + ################################################################################ + # Main + ################################################################################ + + # default values + PORT=443 + TIMEOUT=15 + VERBOSE="" + OPENSSL="" + + # set the default temp dir if not set + if [ -z "${TMPDIR}" ] ; then + TMPDIR="/tmp" + fi + + ################################################################################ + # process command line options + # + # we do no use getopts since it is unable to process long options + + while true; do + + case "$1" in + + ######################################## + # options without arguments + + -A|--noauth) NOAUTH=1; shift ;; + + --altnames) ALTNAMES=1; shift ;; + + -h|--help|-\?) usage; exit 0 ;; + + -N|--host-cn) COMMON_NAME="__HOST__"; shift ;; + + -s|--selfsigned) SELFSIGNED=1; shift ;; + + --tls1) SSL_VERSION="-tls1"; shift ;; + + --ocsp) OCSP=1; shift ;; + + -v|--verbose) VERBOSE=1; shift ;; + + -V|--version) echo "check_ssl_cert version ${VERSION}"; exit 3; ;; + + ######################################## + # options with arguments + + -c|--critical) if [ $# -gt 1 ]; then + CRITICAL=$2; shift 2 + else + unknown "-c,--critical requires an argument" + fi ;; + + # deprecated option: used to be as --warning + -d|--days) if [ $# -gt 1 ]; then + WARNING=$2; shift 2 + else + unknown "-d,--days requires an argument" + fi ;; + + -e|--email) if [ $# -gt 1 ]; then + ADDR=$2; shift 2 + else + unknown "-e,--email requires an argument" + fi ;; + + -f|--file) if [ $# -gt 1 ]; then + FILE=$2; shift 2 + else + unknown "-f,--file requires an argument" + fi ;; + + -H|--host) if [ $# -gt 1 ]; then + HOST=$2; shift 2 + else + unknown "-H,--host requires an argument" + fi ;; + + -i|--issuer) if [ $# -gt 1 ]; then + ISSUER=$2; shift 2 + else + unknown "-i,--issuer requires an argument" + fi ;; + + --long-output) if [ $# -gt 1 ]; then + LONG_OUTPUT_ATTR=$2; shift 2 + else + unknown "--long-output requires an argument" + fi ;; + + -n|--cn) if [ $# -gt 1 ]; then + COMMON_NAME=$2; shift 2 + else + unknown "-n,--cn requires an argument" + fi ;; + + -o|--org) if [ $# -gt 1 ]; then + ORGANIZATION=$2; shift 2 + else + unknown "-o,--org requires an argument" + fi ;; + + --openssl) if [ $# -gt 1 ]; then + OPENSSL=$2; shift 2 + else + unknown "--openssl requires an argument" + fi ;; + + -p|--port) if [ $# -gt 1 ]; then + PORT=$2; shift 2 + else + unknown "-p,--port requires an argument" + fi ;; + + -P|--protocol) if [ $# -gt 1 ]; then + PROTOCOL=$2; shift 2 + else + unknown "-P,--protocol requires an argument" + fi ;; + + -r|--rootcert) if [ $# -gt 1 ]; then + ROOT_CA=$2; shift 2 + else + unknown "-r,--rootcert requires an argument" + fi ;; + + -C|--clientcert) if [ $# -gt 1 ]; then + CLIENT_CERT=$2; shift 2 + else + unknown "-c,--clientcert requires an argument" + fi ;; + + --clientpass) if [ $# -gt 1 ]; then + CLIENT_PASS=$2; shift 2 + else + unknown "--clientpass requires an argument" + fi ;; + + -S|--ssl) if [ $# -gt 1 ]; then + if [ "$2" = "2" -o "$2" = "3" ] ; then + SSL_VERSION="-ssl$2" ; shift 2 + else + unknown "invalid argument for --ssl" + fi + else + unknown "--ssl requires an argument" + fi ;; + + -t|--timeout) if [ $# -gt 1 ]; then + TIMEOUT=$2; shift 2 + else + unknown "-t,--timeout requires an argument" + fi ;; + + --temp) if [ $# -gt 1 ] ; then + # override TMPDIR + TMPDIR=$2; shift 2 + else + unknown "--temp requires an argument" + fi ;; + + -w|--warning) if [ $# -gt 1 ]; then + WARNING=$2; shift 2 + else + unknown "-w,--warning requires an argument" + fi ;; + + ######################################## + # special + + --) shift; break;; + -*) unknown "invalid option: $1" ;; + *) break;; + + esac + + done + + ################################################################################ + # Set COMMON_NAME to hostname if -N was given as argument + if [ "$COMMON_NAME" = "__HOST__" ] ; then + COMMON_NAME=${HOST} + fi + + ################################################################################ + # sanity checks + + ############### + # Check options + if [ -z "${HOST}" ] ; then + usage "No host specified" + fi + + if [ -n "${ALTNAMES}" ] && [ -z "${COMMON_NAME}" ] ; then + unknown "--altnames requires a common name to match (--cn or --host-cn)" + fi + + if [ -n "${ROOT_CA}" ] ; then + if [ ! -r "${ROOT_CA}" ] ; then + unknown "Cannot read root certificate ${ROOT_CA}" + fi + if [ -d "${ROOT_CA}" ] ; then + ROOT_CA="-CApath ${ROOT_CA}" + elif [ -f "${ROOT_CA}" ] ; then + ROOT_CA="-CAfile ${ROOT_CA}" + else + unknown "Root certificate of unknown type $(file "${ROOT_CA}" 2> /dev/null)" + fi + fi + + if [ -n "${CLIENT_CERT}" ] ; then + if [ ! -r "${CLIENT_CERT}" ] ; then + unknown "Cannot read client certificate ${CLIENT_CERT}" + fi + fi + + if [ -n "${CRITICAL}" ] ; then + if ! echo "${CRITICAL}" | grep -q '[0-9][0-9]*' ; then + unknown "invalid number of days ${CRITICAL}" + fi + fi + + if [ -n "${WARNING}" ] ; then + if ! echo "${WARNING}" | grep -q '[0-9][0-9]*' ; then + unknown "invalid number of days ${WARNING}" + fi + fi + + if [ -n "${CRITICAL}" ] && [ -n "${WARNING}" ] ; then + if [ "${WARNING}" -le "${CRITICAL}" ] ; then + unknown "--warning (${WARNING}) is less than or equal to --critical (${CRITICAL})" + fi + fi + + if [ -n "${TMPDIR}" ] ; then + if [ ! -d "${TMPDIR}" ] ; then + unknown "${TMPDIR} is not a directory"; + fi + if [ ! -w "${TMPDIR}" ] ; then + unknown "${TMPDIR} is not writable"; + fi + fi + + if [ -n "${OPENSSL}" ] ; then + if [ ! -x "${OPENSSL}" ] ; then + unknown "${OPENSSL} ist not an executable" + fi + if ! "${OPENSSL}" list-standard-commands | grep -q s_client ; then + unknown "${OPENSSL} ist not an openssl executable" + fi + fi + + ####################### + # Check needed programs + + # OpenSSL + if [ -z "${OPENSSL}" ] ; then + check_required_prog openssl + OPENSSL=$PROG + fi + + # Expect (optional) + EXPECT=$(which expect 2> /dev/null) + test -x "${EXPECT}" || EXPECT="" + if [ -n "${VERBOSE}" ] ; then + if [ -z "${EXPECT}" ] ; then + echo "expect not available" + else + echo "expect available (${EXPECT})" + fi + fi + + # Timeout (optional) + TIMEOUT_BIN=$(which timeout 2> /dev/null) + test -x "${TIMEOUT_BIN}" || TIMEOUT_BIN="" + if [ -n "${VERBOSE}" ] ; then + if [ -z "${TIMEOUT_BIN}" ] ; then + echo "timeout not available" + else + echo "timeout available (${TIMEOUT_BIN})" + fi + fi + + if [ -z "${TIMEOUT_BIN}" ] && [ -z "${EXPECT}" ] && [ -n "${VERBOSE}" ] ; then + echo "disabling timeouts" + fi + + # Perl with Date::Parse (optional) + PERL=$(which perl 2> /dev/null) + test -x "${PERL}" || PERL="" + if [ -z "${PERL}" ] && [ -n "${VERBOSE}" ] ; then + echo "Perl not found: disabling date computations" + fi + if ! ${PERL} -e "use Date::Parse;" > /dev/null 2>&1 ; then + if [ -n "${VERBOSE}" ] ; then + echo "Perl module Date::Parse not installed: disabling date computations" + fi + PERL="" + fi + + ################################################################################ + # check if openssl s_client supports the -servername option + # + # openssl s_client does not have a -help option + # => we supply an invalid command line option to get the help + # on standard error + # + SERVERNAME= + if ${OPENSSL} s_client not_a_real_option 2>&1 | grep -q -- -servername ; then + + if [ -n "${COMMON_NAME}" ] ; then + SERVERNAME="-servername ${COMMON_NAME}" + fi + + else + if [ -n "${VERBOSE}" ] ; then + echo "'${OPENSSL} s_client' does not support '-servername': disabling virtual server support" + fi + fi + + ################################################################################ + # fetch the X.509 certificate + + # temporary storage for the certificate and the errors + + CERT=$( mktemp -t "${0##*/}XXXXXX" 2> /dev/null ) + if [ -z "${CERT}" ] || [ ! -w "${CERT}" ] ; then + unknown 'temporary file creation failure.' + fi + + ERROR=$( mktemp -t "${0##*/}XXXXXX" 2> /dev/null ) + if [ -z "${ERROR}" ] || [ ! -w "${ERROR}" ] ; then + unknown 'temporary file creation failure.' + fi + + if [ -n "${OCSP}" ] ; then + ISSUER_CERT=$( mktemp -t "${0##*/}XXXXXX" 2> /dev/null ) + if [ -z "${ISSUER_CERT}" ] || [ ! -w "${ISSUER_CERT}" ] ; then + unknown 'temporary file creation failure.' + fi + fi + + if [ -n "${VERBOSE}" ] ; then + echo "downloading certificate to ${TMPDIR}" + fi + + CLIENT="" + if [ -n "${CLIENT_CERT}" ] ; then + CLIENT="-cert ${CLIENT_CERT}" + fi + + CLIENTPASS="" + if [ -n "${CLIENT_PASS}" ] ; then + CLIENTPASS="-pass pass:${CLIENT_PASS}" + fi + + # cleanup before program termination + # using named signals to be POSIX compliant + trap 'rm -f $CERT $ERROR $ISSUER_CERT' EXIT HUP INT QUIT TERM + + fetch_certificate + + if grep -q 'sslv3\ alert\ unexpected\ message' "${ERROR}" ; then + + if [ -n "${SERVERNAME}" ] ; then + + # some OpenSSL versions have problems with the -servername option + # we try without + if [ -n "${VERBOSE}" ] ; then + echo "'${OPENSSL} s_client' returned an error: trying without '-servername'" + fi + + SERVERNAME= + fetch_certificate + + fi + + if grep -q 'sslv3\ alert\ unexpected\ message' "${ERROR}" ; then + + critical "cannot fetch certificate: OpenSSL got an unexpected message" + + fi + + fi + + if ! grep -q "CERTIFICATE" "${CERT}" ; then + if [ -n "${FILE}" ] ; then + critical "'${FILE}' is not a valid certificate file" + else + + # See + # http://stackoverflow.com/questions/1251999/sed-how-can-i-replace-a-newline-n + # + # - create a branch label via :a + # - the N command appends a newline and and the next line of the input + # file to the pattern space + # - if we are before the last line, branch to the created label $!ba + # ($! means not to do it on the last line (as there should be one final newline)) + # - finally the substitution replaces every newline with a space on + # the pattern space + + ERROR_MESSAGE=$(sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/; /g' "${ERROR}") + if [ -n "${VERBOSE}" ] ; then + echo "Error: ${ERROR_MESSAGE}" + fi + critical "No certificate returned (${ERROR_MESSAGE})" + fi + fi + + ################################################################################ + # parse the X.509 certificate + + DATE=$($OPENSSL x509 -in "${CERT}" -enddate -noout | sed -e "s/^notAfter=//") + CN=$($OPENSSL x509 -in "${CERT}" -subject -noout | sed -e "s/^.*\/CN=//" -e "s/\/[A-Za-z][A-Za-z]*=.*\$//") + + CA_O=$($OPENSSL x509 -in "${CERT}" -issuer -noout | sed -e "s/^.*\/O=//" -e "s/\/[A-Z][A-Z]*=.*\$//") + CA_CN=$($OPENSSL x509 -in "${CERT}" -issuer -noout | sed -e "s/^.*\/CN=//" -e "s/\/[A-Za-z][A-Za-z]*=.*\$//") + + OCSP_URI=$($OPENSSL x509 -in "${CERT}" -ocsp_uri -noout) + + ISSUER_URI=$($OPENSSL x509 -in "${CERT}" -text -noout | grep "CA Issuers" | sed -e "s/^.*CA Issuers - URI://") + + ################################################################################ + # Generate the long output + if [ -n "${LONG_OUTPUT_ATTR}" ] ; then + + check_attr() { + ATTR=$1 + if ! echo "${VALID_ATTRIBUTES}" | grep -q ",${ATTR}," ; then + unknown "Invalid certificate attribute: ${ATTR}" + else + value=$(${OPENSSL} x509 -in "${CERT}" -noout -"${ATTR}" | sed -e "s/.*=//") + LONG_OUTPUT="${LONG_OUTPUT}\n${ATTR}: ${value}" + fi + + } + + # split on comma + if [ "${LONG_OUTPUT_ATTR}" = "all" ] ; then + LONG_OUTPUT_ATTR=${VALID_ATTRIBUTES} + fi + attributes=$( echo ${LONG_OUTPUT_ATTR} | tr ',' "\n" ) + for attribute in $attributes ; do + check_attr "${attribute}" + done + + fi + + ################################################################################ + # compute for how many days the certificate will be valid + + if [ -n "${PERL}" ] ; then + + CERT_END_DATE=$($OPENSSL x509 -in "${CERT}" -noout -enddate | sed -e "s/.*=//") + + DAYS_VALID=$( perl - "${CERT_END_DATE}" <<-"EOF" + +use strict; +use warnings; + +use Date::Parse; + +my $cert_date = str2time( $ARGV[0] ); + +my $days = int (( $cert_date - time ) / 86400 + 0.5); + +print "$days\n"; + +EOF + + ) + + if [ -n "${VERBOSE}" ] ; then + if [ "${DAYS_VALID}" -ge 0 ] ; then + echo "The certificate will expire in ${DAYS_VALID} day(s)" + else + echo "The certificate expired "$((- DAYS_VALID))" day(s) ago" + fi + + fi + + PERFORMANCE_DATA="|days=$DAYS_VALID;${WARNING};${CRITICAL};;" + + fi + + + + ################################################################################ + # check the CN (this will not work as expected with wildcard certificates) + + if [ -n "$COMMON_NAME" ] ; then + + ok='' + + case $COMMON_NAME in + $CN) ok='true' ;; + esac + + # check alterante names + if [ -n "${ALTNAMES}" ] ; then + for alt_name in $( $OPENSSL x509 -in "${CERT}" -text | \ + grep --after-context=1 '509v3 Subject Alternative Name:' | \ + tail -n 1 | sed -e "s/DNS://g" | sed -e "s/,//g" ) ; do + case $COMMON_NAME in + $alt_name) ok='true' ;; + esac + done + fi + + if [ -z "$ok" ] ; then + critical "invalid CN ('$CN' does not match '$COMMON_NAME')" + fi + + fi + + ################################################################################ + # check the issuer + + if [ -n "$ISSUER" ] ; then + + ok='' + CA_ISSUER_MATCHED='' + + if echo "$CA_CN" | grep -q "^${ISSUER}\$" ; then + ok='true' + CA_ISSUER_MATCHED="${CA_CN}" + fi + + if echo "$CA_O" | grep -q "^${ISSUER}\$" ; then + ok='true' + CA_ISSUER_MATCHED="${CA_O}" + fi + + if [ -z "$ok" ] ; then + critical "invalid CA ('$ISSUER' does not match '$CA_O' or '$CA_CN')" + fi + + else + + CA_ISSUER_MATCHED="${CA_CN}" + + fi + + ################################################################################ + # check the validity + + # we always check expired certificates + if ! $OPENSSL x509 -in "${CERT}" -noout -checkend 0 ; then + critical "certificate is expired (was valid until $DATE)" + fi + + if [ -n "${CRITICAL}" ] ; then + + if ! $OPENSSL x509 -in "${CERT}" -noout -checkend $(( CRITICAL * 86400 )) ; then + critical "certificate will expire on $DATE" + fi + + fi + + if [ -n "${WARNING}" ] ; then + + if ! $OPENSSL x509 -in "${CERT}" -noout -checkend $(( WARNING * 86400 )) ; then + warning "certificate will expire on $DATE" + fi + + fi + + ################################################################################ + # check revocation via OCSP + + if [ -n "${OCSP}" ]; then + + curl --silent "${ISSUER_URI}" > "${ISSUER_CERT}" + + if file "${ISSUER_CERT}" | grep -q ': data' ; then + openssl x509 -inform DER -outform PEM -in "${ISSUER_CERT}" -out "${ISSUER_CERT}" + fi + OCSP_HOST=$(echo ${OCSP_URI} | sed -e "s?.*//\([^/]\+\)/.*?\1?g") + OCSP_RESP=$($OPENSSL ocsp -no_nonce -issuer "${ISSUER_CERT}" -cert "${CERT}" -url "${OCSP_URI}" -header "HOST" "${OCSP_HOST}" 2>&1 | grep -i "ssl_cert") + if echo "${OCSP_RESP}" | grep -qi "revoked" ; then + critical "certifiicate is revoked" + elif ! $(echo "${OCSP_RESP}" | grep -qi "good") ; then + echo "### ${OCSP_RESP}" + warning "${OCSP_RESP}" + fi + + fi + + ################################################################################ + # check the organization + + if [ -n "$ORGANIZATION" ] ; then + + ORG=$($OPENSSL x509 -in "${CERT}" -subject -noout | sed -e "s/.*\/O=//" -e "s/\/.*//") + + if ! echo "$ORG" | grep -q "^$ORGANIZATION" ; then + critical "invalid organization ('$ORGANIZATION' does not match '$ORG')" + fi + + fi + + ################################################################################ + # check the organization + + if [ -n "$ADDR" ] ; then + + EMAIL=$($OPENSSL x509 -in "${CERT}" -email -noout) + + if [ -n "${VERBOSE}" ] ; then + echo "checking email (${ADDR}): ${EMAIL}" + fi + + if [ -z "${EMAIL}" ] ; then + critical "the certificate does not contain an email address" + fi + + if ! echo "$EMAIL" | grep -q "^$ADDR" ; then + critical "invalid email ($ADDR does not match $EMAIL)" + fi + + fi + + ################################################################################ + # Check if the certificate was verified + + if [ -z "${NOAUTH}" ] && grep -q '^verify\ error:' "${ERROR}" ; then + + if grep -q '^verify\ error:num=[0-9][0-9]*:self\ signed\ certificate' "${ERROR}" ; then + + if [ -z "${SELFSIGNED}" ] ; then + critical "Cannot verify certificate\nself signed certificate" + else + SELFSIGNEDCERT="self signed " + fi + + else + + # process errors + details=$(grep '^verify\ error:' "${ERROR}" | sed -e "s/verify\ error:num=[0-9]*:/verification error: /" ) + + critical "Cannot verify certificate\n${details}" + + fi + + fi + + ################################################################################ + # If we get this far, assume all is well. :) + + # if --altnames was specified we show the specified CN instead of + # the certificate CN + if [ -n "${ALTNAMES}" ] && [ -n "${COMMON_NAME}" ] ; then + CN=${COMMON_NAME} + fi + + if [ -n "${DAYS_VALID}" ] ; then + # nicer formatting + if [ "${DAYS_VALID}" -gt 1 ] ; then + DAYS_VALID=" (expires in ${DAYS_VALID} days)" + elif [ "${DAYS_VALID}" -eq 1 ] ; then + DAYS_VALID=" (expires tomorrow)" + elif [ "${DAYS_VALID}" -eq 0 ] ; then + DAYS_VALID=" (expires today)" + elif [ "${DAYS_VALID}" -eq -1 ] ; then + DAYS_VALID=" (expired yesterday)" + else + DAYS_VALID=" (expired ${DAYS_VALID} days ago)" + fi + fi + + echo "${SHORTNAME} OK - X.509 ${SELFSIGNEDCERT}certificate for '${CN}' from '${CA_ISSUER_MATCHED}' valid until ${DATE}${DAYS_VALID}${PERFORMANCE_DATA}${LONG_OUTPUT}" + + exit 0 + +} + +if [ "${1}" != "--source-only" ]; then + main "${@}" +fi diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert.1 nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert.1 --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert.1 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert.1 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,114 @@ +.\" Process this file with +.\" groff -man -Tascii foo.1 +.\" +.TH "check_ssl_cert" 1 "April, 2015" "1.17.1" "USER COMMANDS" +.SH NAME +check_ssl_cert \- checks the validity of X.509 certificates +.SH SYNOPSIS +.BR "check_ssl_cert " "-H host [OPTIONS]" +.SH DESCRIPTION +.B check_ssl_cert +A Nagios plugin to check an X.509 certificate: + - checks if the server is running and delivers a valid certificate + - checks if the CA matches a given pattern + - checks the validity +.SH ARGUMENTS +.TP +.BR "-H,--host" " host" +server +.SH OPTIONS +.TP +.BR "-A,--noauth" +ignore authority warnings (expiration only) +.TP +.BR " --altnames" +matches the pattern specified in -n with alternate names too +.TP +.BR "-C,--clientcert" " path" +use client certificate to authenticate +.TP +.BR " --clientpass" " phrase" +set passphrase for client certificate. +.TP +.BR "-c,--critical" " days" +minimum number of days a certificate has to be valid to issue a critical status +.TP +.BR "-e,--email" " address" +pattern to match the email address contained in the certificate +.TP +.BR "-f,--file" " file" +local file path (works with -H localhost only) +.TP +.BR "-h,--help,-?" +this help message +.TP +.BR "--long-output" " list" +append the specified comma separated (no spaces) list of attributes to the plugin output on additional lines. +Valid attributes are: enddate, startdate, subject, issuer, modulus, serial, hash, email, ocsp_uri and fingerprint. 'all' will include all the available attributes. +.TP +.BR "-i,--issuer" " issuer" +pattern to match the issuer of the certificate +.TP +.BR "-n,---cn" " name" +pattern to match the CN of the certificate +.TP +.BR "-N,--host-cn" +match CN with the host name +.TP +.BR "--ocsp" +check revocation via OCSP +.TP +.BR "-o,--org" " org" +pattern to match the organization of the certificate +.TP +.BR " --openssl" " path" +path of the openssl binary to be used +.TP +.BR "-p,--port" " port" +TCP port +.TP +.BR "-P,--protocol" " protocol" +use the specific protocol: http (default) or smtp,pop3,imap,ftp (switch to TLS) +.TP +.BR "-s,--selfsigned" +allows self-signed certificates +.TP +.BR "-S,--ssl" " version" +force SSL version (2,3) +.TP +.BR "-r,--rootcert" " cert" +root certificate or directory to be used for certficate validation (passed to openssl's -CAfile or -CApath) +.TP +.BR "-t,--timeout" +seconds timeout after the specified time (defaults to 15 seconds) +.TP +.BR "--temp" " dir" +directory where to store the temporary files +.TP +.BR "--tls1" +force TLS version 1 +.TP +.BR "-v,--verbose" +verbose output +.TP +.BR "-V,--version" +version +.TP +.BR "-w,--warning" " days" +minimum number of days a certificate has to be valid to issue a warning status +.SH DEPRECATED OPTIONS +.TP +.BR "-d,--days" " days" +minimum number of days a certificate has to be valid (see --critical and --warning) + +.SH "SEE ALSO" +x509(1), openssl(1), expect(1), timeout(1) +.SH "EXIT STATUS" +check_ssl_cert returns a zero exist status if it finds no errors, 1 for warnings, 2 for a critical errors and 3 for unknown problems +.SH BUGS +Please report bugs to: Matteo Corti (matteo (at) corti.li ) + +.SH AUTHOR +Matteo Corti (matteo (at) corti.li ) +See the AUTHORS file for the complete list of contributors + diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert.spec nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert.spec --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert.spec 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/check_ssl_cert.spec 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,190 @@ +################################################################################ +# File version information: +# $Id: check_updates.spec 1126 2010-02-16 20:06:11Z corti $ +# $Revision: 1126 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/check_updates.spec $ +# $Date: 2010-02-16 21:06:11 +0100 (Tue, 16 Feb 2010) $ +################################################################################ + +%define version 1.17.1 +%define release 0 +%define sourcename check_ssl_cert +%define packagename nagios-plugins-check_ssl_cert +%define nagiospluginsdir %{_libdir}/nagios/plugins + +# No binaries in this package +%define debug_package %{nil} + +Summary: A Nagios plugin to check X.509 certificates +Name: %{packagename} +Version: %{version} +Obsoletes: check_ssl_cert +Release: %{release}%{?dist} +License: GPLv3+ +Packager: Matteo Corti +Group: Applications/System +BuildRoot: %{_tmppath}/%{packagename}-%{version}-%{release}-root-%(%{__id_u} -n) +URL: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_ssl_cert +Source: https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{sourcename}-%{version}.tar.gz + +Requires: nagios-plugins expect perl(Date::Parse) + +%description +Checks an X.509 certificate: + - checks if the server is running and delivers a valid certificate + - checks if the CA matches a given pattern + - checks the validity + +%prep +%setup -q -n %{sourcename}-%{version} + +%build + +%install +make DESTDIR=${RPM_BUILD_ROOT}%{nagiospluginsdir} MANDIR=${RPM_BUILD_ROOT}%{_mandir} install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog NEWS README INSTALL TODO COPYING VERSION COPYRIGHT +%attr(0755, root, root) %{nagiospluginsdir}/check_ssl_cert +%{_mandir}/man1/%{sourcename}.1* + +%changelog +* Tue Apr 7 2015 Matteo Corti - 1.17.1-0 +- Updated to 1.17.1 + +* Tue Oct 21 2014 Matteo Corti - 1.17.0-0 +- Updated to 1.17.0 + +* Fri Jun 6 2014 Matteo Corti - 1.16.2-0 +- updated to 1.16.2 + +* Thu May 22 2014 Andreas Dijkman - 1.16.1-1 +- Added noarch as buildarch +- Added expect and perl(Date::Parse) dependency + +* Fri Feb 28 2014 Matteo Corti - 1.16.1-0 +- Updated to 1.16.1 (rpm make target) + +* Mon Dec 23 2013 Matteo Corti - 1.16.0-0 +- Udated to 1.16.0 (force TLS) + +* Mon Jul 29 2013 Matteo Corti - 1.15.0-0 +- Updated to 1.15.0 (force SSL version) + +* Sun May 12 2013 Matteo Corti - 1.14.6-0 +- Updated to 1.16.6 (timeout and XMPP support) + +* Sat Mar 2 2013 Matteo Corti - 1.14.5-0 +- Updated to 1.14.5 (TLS and multiple names fix) + +* Fri Dec 7 2012 Matteo Corti - 1.14.4-0 +- Updated to 1.14.4 (bug fix release) + +* Wed Sep 19 2012 Matteo Corti - 1.14.3-0 +- Updated to 1.14.3 + +* Fri Jul 13 2012 Matteo Corti - 1.14.2-0 +- Updated to 1.14.2 + +* Wed Jul 11 2012 Matteo Corti - 1.14.1-0 +- Updated to 1.14.1 + +* Fri Jul 6 2012 Matteo Corti - 1.14.0-0 +- updated to 1.14.0 + +* Thu Apr 5 2012 Matteo Corti - 1.13.0-0 +- updated to 1.13.0 + +* Wed Apr 4 2012 Matteo Corti - 1.12.0-0 +- updated to 1.12.0 (bug fix release) + +* Sat Oct 22 2011 Matteo Corti - 1.11.0-0 +- ipdated to 1.10.1 (--altnames option) + +* Thu Sep 1 2011 Matteo Corti - 1.10.0-0 +- apllied patch from Sven Nierlein for client certificate authentication + +* Thu Mar 10 2011 Matteo Corti - 1.9.1-0 +- updated to 1.9.1: allows http as protocol and fixes -N with wildcards + +* Mon Jan 24 2011 Matteo Corti - 1.9.0-0 +- updated to 1.9.0: --openssl option + +* Thu Dec 16 2010 Dan Wallis - 1.8.1-0 +- Fixed bugs with environment bleeding & shell globbing + +* Thu Dec 9 2010 Matteo Corti - 1.8.0-0 +- added support for TLS servername extension + +* Thu Oct 28 2010 Matteo Corti - 1.7.7-0 +- Fixed a bug in the signal specification + +* Thu Oct 28 2010 Matteo Corti - 1.7.6-0 +- better temporary file clean up + +* Thu Oct 14 2010 Matteo Corti - 1.7.5-0 +- updated to 1.7.5 (fixed the check order) + +* Fri Oct 1 2010 Matteo Corti - 1.7.4-0 +- added -A command line option + +* Wed Sep 15 2010 Matteo Corti - 1.7.3-0 +- Fixed a bug in the command line options processing + +* Thu Aug 26 2010 Dan Wallis - 1.7.2-0 +- updated to 1.7.2 (cat and expect fixes) + +* Thu Aug 26 2010 Dan Wallis - 1.7.1-0 +- updated to 1.7.1 ("-verify 6" revert) + +* Thu Aug 26 2010 Dan Wallis - 1.7.0-0 + +* Wed Jul 21 2010 Matteo Corti - 1.6.1-0 +- updated to 1.6.0 (--temp option) + +* Fri Jul 9 2010 Matteo Corti - 1.6.0-0 +- updated to version 1.6.0 (long options, --critical and --warning, man page) + +* Wed Jul 7 2010 Matteo Corti - 1.5.2-0 +- updated to version 1.5.2 (Wolfgang Schricker patch, see ChangeLog) + +* Thu Jul 1 2010 Matteo Corti - 1.5.1-0 +- updated to version 1.5.1 (Yannick Gravel patch, see ChangeLog) + +* Tue Jun 8 2010 Matteo Corti - 1.5.0-0 +- updated to version 1.5.0 (-s option to allow self signed certificates) + +* Thu Mar 11 2010 Matteo Corti - 1.4.4-0 +- updated to 1.4.4 (bug fix release) + +* Tue Mar 9 2010 Matteo Corti - 1.4.3-0 +- updated to 1.4.3 (-n and -N options) + +* Wed Dec 2 2009 Matteo Corti - 1.4.2-0 +- updated to 1.4.2 + +* Mon Nov 30 2009 Matteo Corti - 1.4.1-0 +- updated to 1.4.1 (-r option) + +* Mon Nov 30 2009 Matteo Corti - 1.4.0-0 +- Updated to 1.4.0: verify the certificate chain + +* Mon Mar 30 2009 Matteo Corti - 1.3.0-0 +- Tuomas Haarala patch: -P option + +* Tue May 13 2008 Matteo Corti - 1.2.2-0 +- Dan Wallis patch to include the CN in the messages + +* Mon Feb 25 2008 Matteo Corti - 1.2.1-0 +- Dan Wallis patches (error checking, see ChangeLog) + +* Mon Feb 25 2008 Matteo Corti - 1.2.0-0 +- Dan Wallis patches (see the ChangeLog) + +* Mon Sep 24 2007 Matteo Corti - 1.1.0-0 +- first RPM package + diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/COPYING nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/COPYING --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/COPYING 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/COPYING 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/COPYRIGHT nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/COPYRIGHT --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/COPYRIGHT 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/COPYRIGHT 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,41 @@ + + Copyright (c) 2007-2013 ETH Zurich + Copyright (c) 2007-2015 Matteo Corti + +with the following individuals added to the list of Contributing Authors + + Dan Wallis + Lawren Quigley-Jones + Marc Fournier + Marcus Rejås + Matteo Corti + Matthias Fuhrmeister + Raphael Thoma + Scott Worthington + Sven Nierlein + Tuomas Haarala + Wolfgang Schricker + Yannick Gravel + Jim Hopp + Javier Gonel + Christian Ruppert + Robin H. Johnson + Max Winterstein + Colin Smith + Andreas Dijkman + Ryan Nowakowski + Jérémy Lecour + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/INSTALL nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/INSTALL --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/INSTALL 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/INSTALL 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,15 @@ +Simply copy the plugin to your nagios plugin directory + +Optional installs: + +In order to use timeouts the plugin needs 'expect' in the current PATH +See: http://en.wikipedia.org/wiki/Expect + +In order to perform date computations the plugin needs a Perl +interpreter and the module Date::Parse + +# File version information: +# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ +# $Revision: 1103 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ +# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/Makefile nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/Makefile --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/Makefile 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,46 @@ +PLUGIN=check_ssl_cert +VERSION=`cat VERSION` +DIST_DIR=$(PLUGIN)-$(VERSION) +DIST_FILES=AUTHORS COPYING ChangeLog INSTALL Makefile NEWS README TODO VERSION $(PLUGIN) $(PLUGIN).spec COPYRIGHT ${PLUGIN}.1 test + +dist: version_check + rm -rf $(DIST_DIR) $(DIST_DIR).tar.gz + mkdir $(DIST_DIR) + cp -r $(DIST_FILES) $(DIST_DIR) + tar cfz $(DIST_DIR).tar.gz $(DIST_DIR) + tar cfj $(DIST_DIR).tar.bz2 $(DIST_DIR) + +install: + mkdir -p $(DESTDIR) + install -m 755 $(PLUGIN) $(DESTDIR) + mkdir -p ${MANDIR}/man1 + install -m 644 ${PLUGIN}.1 ${MANDIR}/man1/ + +version_check: + VERSION=`cat VERSION` + grep -q "VERSION\ *=\ *[\'\"]*$(VERSION)" $(PLUGIN) + grep -q "^%define\ version\ *$(VERSION)" $(PLUGIN).spec + grep -q -- "- $(VERSION)-" $(PLUGIN).spec + grep -q "\"$(VERSION)\"" $(PLUGIN).1 + grep -q "${VERSION}" NEWS + echo "Version check: OK" + +clean: + rm -f *~ + rm -rf rpmroot + +test: + ( cd test && ./unit_tests.sh ) + +rpm: dist + mkdir -p rpmroot/SOURCES rpmroot/BUILD + cp $(DIST_DIR).tar.gz rpmroot/SOURCES + rpmbuild --define "_topdir `pwd`/rpmroot" -ba check_ssl_cert.spec + +.PHONY: install clean test rpm + +# File version information: +# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ +# $Revision: 1103 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ +# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/NEWS nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/NEWS --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/NEWS 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/NEWS 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,79 @@ +2015-04-07 Version 1.17.1 Fixed the check on the openssl binary +2014-10-21 Version 1.17.0 Added an option to check revocation via OCSP +2014-06-06 Version 1.16.2 Fixed a problem with -servername when -n was not specified +2014-02-28 Version 1.16.1 Added a Make target for the RPM package +2013-12-23 Version 1.16.0 Added an option to force TLS version 1 +2013-07-29 Version 1.15.0 Added an option to force a certain SSL version (thanks + to Max Winterstein) +2013-05-12 Version 1.14.6 Added XMPP and timeout support (thanks to Christian + Ruppert and Robin H. Johnson) +2013-03-02 Version 1.14.5 Fixed a bug occuring with TLS and multiple names in + the certificate +2012-12-07 Version 1.14.4 Fixed a bug causing -N to always compare the CN + with 'localhost' +2012-09-19 Version 1.14.3 Improved the error message in case of a failure in + the certificate download +2012-07-13 Version 1.14.2 Added the name since or to expiration in the plugin + output. +2012-07-11 Version 1.14.1 FIxed a bug with Perl date computation on some systems +2012-07-06 Version 1.14.0 The status now includes performance data in days until + expiration (requires perl with Date::Parse). + It is now possible to print additional information in + the plugins long output (multiline, Nagios 3 only) +2012-04-05 Version 1.13.0 The plugin will now try to fetch the certificate without + without TLS extensions in case of error +2012-04-04 Version 1.12.0 Fixed a bug in the chain verification (hard coded + error number) +2011-10-22 Version 1.11.0 --altname option +2011-09-01 Version 1.10.0 Applied a patch from Sven Nierlein to authenicate + using a client certificate +2011-03-10 Version 1.9.1 Allows HTTP as protocol and fixes -N with wildcards +2011-01-24 Version 1.9.0 Added an option to specify the openssl executable +2010-12-16 Version 1.8.1 Fixed bugs with environment bleeding & shell globbing +2010-12-08 Version 1.8.0 Added support for TLS servername extension in + ClientHello +2010-10-28 Version 1.7.7 Fixed a bug in the signal specification introduced + in 1.7.6 +2010-10-28 Version 1.7.6 Better temporary file clean up (thanks to Lawren + Quigley-Jones) +2010-10-14 Version 1.7.5 Applied a patch from Yannick Gravel fixing the test + order +2010-10-01 Version 1.7.4 Applied a patch from Lawren Quigley-Jones adding the + -A option +2010-09-15 Version 1.7.3 Fixed a bug in the option processing +2010-08-26 Version 1.7.2 Removes useless use of cat, better test for expect + utility +2010-08-26 Version 1.7.1 Replaces "-verify 6" which was erroneously removed in + the previous version +2010-08-26 Version 1.7.0 Overloaded --rootcert option to allow -CApath as well + as -CAfile +2010-07-21 Version 1.6.1 Added an option to specify where to temporarily + store the certificate +2010-07-09 Version 1.6.0 Added long command line options and substituted + -days with --critical and --warning +2010-07-07 Version 1.5.2 Added the -f option to check a local file +2010-07-01 Version 1.5.1 Fixed the plugin output +2010-03-11 Version 1.4.4 Fixed bug #64 (== bashism) +2010-03-09 Version 1.4.3 -N and -n options to compare the CN to an hostname +2009-12-02 Version 1.4.2 the -i ISSUER option now checks if the O= or the + CN= fields of the root certificate match +2009-11-30 Version 1.4.1 -r to specify the root cert to be used for + verification +2009-11-30 Version 1.4.0 certificate chain verification +2009-03-30 Version 1.3.0 -P option to check TLS certificates + (SMTP, FTP, POP3, ...) +2008-05-13 Version 1.2.2 include the CN in the messages (D. Wallis) +2008-02-25 Version 1.2.1 better error handling +2008-02-25 Version 1.2.0 general cleanup (POSIX compliance, removed + nmap dependency, ...) from Dan Wallis +2007-08-31 Version 1.1.0 - option to enforce a given email address + - option to enforce a given organization + - temporary files cleanup upon exit +2007-08-15 Bug fix: openssl did not close the connection cleanly +2007-08-10 First release (1.0) + +# File version information: +# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ +# $Revision: 1103 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ +# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/README nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/README --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/README 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/README 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,106 @@ + + (c) Matteo Corti, ETH Zurich, 2007-2012 + + see AUTHORS for the complete list of contributors + +check_ssl_cert + +A Nagios plugin to check an X.509 certificate: + - checks if the server is running and delivers a valid certificate + - checks if the CA matches a given pattern + - checks the validity + +Usage: +====== + +check_ssl_cert -H host [OPTIONS] + +Arguments: + -H,--host host server + +Options: + -A,--noauth ignore authority warnings (expiration only) + -C,--clientcert path use client certificate to authenticate + --clientpass phrase set passphrase for client certificate. + -c,--critical days minimum number of days a certificate has to be valid + to issue a critical status + -e,--email address pattern to match the email address contained in the + certificate + -f,--file file local file path (works with -H localhost only) + -h,--help,-? this help message + -i,--issuer issuer pattern to match the issuer of the certificate + -n,---cn name pattern to match the CN of the certificate + -N,--host-cn match CN with the host name + --ocsp check revocation via OCSP + -o,--org org pattern to match the organization of the certificate + --openssl path path of the openssl binary to be used + -p,--port port TCP port + -P,--protocol protocol use the specific protocol {http|smtp|pop3|imap|ftp} + http: default + smtp,pop3,imap,ftp: switch to TLS + -s,--selfsigned allows self-signed certificates + -r,--rootcert path root certificate or directory to be used for + certficate validation + -t,--timeout seconds timeout after the specified time + (defaults to 15 seconds) + --temp dir directory where to store the temporary files + -v,--verbose verbose output + -V,--version version + -w,--warning days minimum number of days a certificate has to be valid + to issue a warning status + +Deprecated options: + -d,--days days minimum number of days a certificate has to be valid + (see --critical and --warning) + +Expect: +======= + +check_ssl_cert requires 'expect' to enable timouts. If expect is not +present on your system timeouts will be disabled. + +See: http://en.wikipedia.org/wiki/Expect + +Perl and Date::Parse: +===================== + +If perl and Date::Parse are available the plugin will also compute for +how many days the certificate will be valid and put the information in +the performance data. If perl or Date::Parse are not available the +information will not be available. + +Virtual servers: +================ + +check_ssl_client supports the servername TLS extension in ClientHello +if the installed openssl version provides it. This is needed if you +are checking a machine with virtual hosts. + +Notes: +====== + +the root certificate corresponding to the checked certificate must be +available to openssl or specified with the '-r cabundle' or +'--rootcert cabundle' option, where cabundle is either a file for -CAfile +or a directory for -CApath. + +On Mac OS X the root certificates bundle is stored in the Keychain and +openssl will complain with: + + verification error: unable to get local issuer certificate + +The bundle can be extracted with: + +$ sudo security find-certificate -a \ + -p /System/Library/Keychains/SystemRootCertificates.keychain > cabundle.crt + +Bugs: +===== + +Report bugs to: Matteo Corti + +# File version information: +# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ +# $Revision: 1103 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ +# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/test/cabundle.crt nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/test/cabundle.crt --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/test/cabundle.crt 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/test/cabundle.crt 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,4201 @@ +-----BEGIN CERTIFICATE----- +MIIEajCCA1KgAwIBAgIBATANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJKUDEN +MAsGA1UECgwESlBLSTEpMCcGA1UECwwgUHJlZmVjdHVyYWwgQXNzb2NpYXRpb24g +Rm9yIEpQS0kxETAPBgNVBAsMCEJyaWRnZUNBMB4XDTAzMTIyNzA1MDgxNVoXDTEz +MTIyNjE0NTk1OVowWjELMAkGA1UEBhMCSlAxDTALBgNVBAoMBEpQS0kxKTAnBgNV +BAsMIFByZWZlY3R1cmFsIEFzc29jaWF0aW9uIEZvciBKUEtJMREwDwYDVQQLDAhC +cmlkZ2VDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANTnUmg7K3m8 +52vd77kwkq156euwoWm5no8E8kmaTSc7x2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+WceR0DTYw/j1Y75hauXTLPXJuuWCpTehTacyH+BCQJJKg71ZDIM +gtG6aoIbs0t0EfOMd9afv9w3pKdVBC/UMejTRrkDfNoSTllkt1ExMVCgyhwn2RAu +rda9EGYrw7AiShJbAgMBAAGjYzBhMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE +FE9pbQN+nZ8HGEO8txBO1b+pxCAoMB8GA1UdIwQYMBaAFE9pbQN+nZ8HGEO8txBO +1b+pxCAoMA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQUFAAOCAgEAO/Ouyugu +h4X7ZVnnrREUpVe8WJ8kEle7+z802u6teio0cnAxa8cZmIDJgt43d15Ui47y6mdP +yXSEkVYJ1eV6moG2gcKtNuTxVBFT8zRFASbI5Rq8NEQh3q0l/HYWdyGQgJhXnU7q +7C+qPBR7V8F+GBRn7iTGvboVsNIYvbdVgaxTwOjdaRITQrcCtQVBynlQboIOcXKT +RuidDV29rs4prWPVVRaAMCf/drr3uNZK49m1+VLQTkCpx+XCMseqdiThawVQ68W/ +ClTluUI8JPu3B5wwn3la5uBAUhX0/Kr0VvlEl4ftDmVyXr4m+02kLQgH3thcoNyB +M5kYJRF3p+v9WAksmWsbivNSPxpNSGDxoPYzAlOL7SUJuA0t7Zdz7NeWH45gDtoQ +my8YJPamTQr5O8t1wswvziRpyQoijlmn94IM19drNZxDAGrElWe6nEXLuA4399xO +AU++CrYD062KRffaJ00psUjf5BHklka9bAI+1lHIlRcBFanyqqryvy9lG2/QuRqT +9Y41xICHPpQvZuTpqP9BnHAqTyo5GJUefvthATxRCC4oGKQWDzH9OmwjkyB24f0H +hdFbP9IcczLd+rn4jM8Ch3qaluTtT4mNU0OrDhPAARW0eTjb/G49nlG2uBOLZ8/5 +fNkiHfZdxRwBL5joeiQYvITX+txyW/fBOmg= +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIDoDCCAoigAwIBAgIBMTANBgkqhkiG9w0BAQUFADBDMQswCQYDVQQG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i0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ +HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mER +dEr/VxqHD3VILs9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5Cuf +ReYNnyicsbkqWletNw+vHX/bvZ8= +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIICWjCCAcMCAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzAJBgNVBAYTAlVTMRgwFgYD +VQQKEw9HVEUgQ29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNv +bHV0aW9ucywgSW5jLjEjMCEGA1UEAxMaR1RFIEN5YmVyVHJ1c3QgR2xvYmFsIFJv +b3QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEzMjM1OTAwWjB1MQswCQYDVQQGEwJV +UzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMScwJQYDVQQLEx5HVEUgQ3liZXJU +cnVzdCBTb2x1dGlvbnMsIEluYy4xIzAhBgNVBAMTGkdURSBDeWJlclRydXN0IEds +b2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVD6C28FCc6HrH +iM3dFw4usJTQGz0O9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf7KXUwefU/ltWJTS +r41tiGeA5u2ylc9yMcqlHHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X4 +04Wqk2kmhXBIgD8SFcd5tB8FLztimQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAG3r +GwnpXtlR22ciYaQqPEh346B8pt5zohQDhT37qw4wxYMWM4ETCJ57NE7fQMh017l9 +3PR2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7AWXX1uw16OFNMQkpw0P +lZPvy5TYnh+dXIVtx6quTx8itc2VrbqnzPmrC3p/ +-----END CERTIFICATE----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ELMAkGA1UEBhMCREsxDDAKBgNV +BAoTA0tNRDEPMA0GA1UECxMGS01ELUNBMRYwFAYDVQQDEw1LTUQtQ0EgU2VydmVy +MSAwHgYKCZImiZPyLGQBAxQQaW5mb2NhQGttZC1jYS5kazCCASIwDQYJKoZIhvcN +AQEBBQADggEPADCCAQoCggEBAJsLpbSgFxQ7IhFgf5f+RfBxnbCkx5C7yTjfCZvp +/BP2LBD3OKjgLRwvASoCU3I5NMhccho6uhZVf1HC+Ac5HmXUUd+v92a7gDnohPPy +Rgv8c6f/+R2fFen37SBemYFDtZveamVXZ2To7xAxNiMKgPTPs/Rl7F6LDsYgv1bD +36FrjahNoSTmTbYRoK21eIOVwrZeNSzo9w3W8fj0n+V2IB1jsOh+AvjXkjbvAVky +0/57GMlyBNKP7JIGP7LXqwWfrBXuAph1DUMz467KlHZOMkPwCjTZOab7CcLQXCCY +12s5c5QAkwpf35hQRuOaNo6d/XFM6J9mofiWlGTT3Px1EX0CAwEAAaMQMA4wDAYD +VR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAPlA6VZ2C2cJbsI0SBIe9v+M9 +GxI45QI7P0D7QGyrqM7oNqGq7hJdN6NFb0LyPcF3/pVzmtYVJzaGKF6spaxOEveB +9ki1xRoXUKpaCxSweBpTzEktWa43OytRy0sbryEmHJCQkz8MPufWssf2yXHzgFFo +XMQpcMyT7JwxPlfYVvab9Kp+nW7fIyDOG0wdmBerZ+GEQJxJEkri1HskjigxhGze +ziocJatBuOWgqw5KRylgGIQjUGRTCbODVta+Kmqb9d+cB7FStbYtt2HebOXzBIY3 +XUM5KtGC++We7DqgU5Firek7brw8i2XsHPLKJTceb6Xo6DsSxLfBAWV6+8DCkQ== +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIDtDCCApygAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJKUDEc +MBoGA1UEChMTSmFwYW5lc2UgR292ZXJubWVudDEOMAwGA1UECxMFTV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vRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fR +zt0fhvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0 +YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBD +bGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8w +DQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGsafPzWdqbAYcaT1epoXkJKtv3 +L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLMPUxA2IGvd56D +eruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl +xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynp +VSJYACPq4xJDKVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEY +WQPJIrSPnNVeKtelttQKbfi3QBFGmh95DmK/D5fs4C8fF5Q= +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIDIDCCAgigAwIBAgIBJDANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJGSTEP +MA0GA1UEChMGU29uZXJhMRkwFwYDVQQDExBTb25lcmEgQ2xhc3MxIENBMB4XDTAx +MDQwNjEwNDkxM1oXDTIxMDQwNjEwNDkxM1owOTELMAkGA1UEBhMCRkkxDzANBgNV +BAoTBlNvbmVyYTEZMBcGA1UEAxMQU29uZXJhIENsYXNzMSBDQTCCASIwDQYJKoZI +hvcNAQEBBQADggEPADCCAQoCggEBALWJHytPZwp5/8Ue+H887dF+2rDNbS82rDTG +29lkFwhjMDMiikzujrsPDUJVyZ0upe/3p4zDq7mXy47vPxVnqIJyY1MPQYx9EJUk +oVqlBvqSV536pQHydekfvFYmUk54GWVYVQNYwBSujHxVX3BbdyMGNpfzJLWaRp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tBquCWIMnNZBU4gcmU7qKEKQsTb47bDN0lAtukixlE0kF6BWlK +WE9gyn6CagsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiCKm0oHw0LxOXnGiYZ +4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7MzVIcbidJ4vEZV8N +hnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIICPDCCAaUCED9pHoGc8JpK83P/uUii5N0wDQYJKoZIhvcNAQEFBQAwXzELMAkG +A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFz +cyAxIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2 +MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVowXzELMAkGA1UEBhMCVVMxFzAVBgNV +BAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1YmxpYyBQcmlt +YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUAA4GN +ADCBiQKBgQDlGb9to1ZhLZlIcfZn3rmN67eehoAKkQ76OCWvRoiC5XOooJskXQ0f +zGVuDLDQVoQYh5oGmxChc9+0WDlrbsH2FdWoqD+qEgaNMax/sDTXjzRniAnNFBHi +TkVWaR94AoDa3EeRKbs2yWNcxeDXLYd7obcysHswuiovMaruo2fa2wIDAQABMA0G +CSqGSIb3DQEBBQUAA4GBAFgVKTk8d6PaXCUDfGD67gmZPCcQcMgMCeazh88K4hiW +NWLMv5sneYlfycQJ9M61Hd8qveXbhpxoJeUwfLaJFf5n0a3hUKw8fGJLj7qE1xIV +Gx/KXQ/BUpQqEZnae88MNhPVNdwQGVnqlMEAv3WP2fr9dgTbYruQagPZRjXZ+Hxb +-----END CERTIFICATE----- +-----BEGIN CERT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plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/test/cacert.crt --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/test/cacert.crt 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/test/cacert.crt 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,42 @@ +-----BEGIN CERTIFICATE----- +MIIHWTCCBUGgAwIBAgIDCkGKMA0GCSqGSIb3DQEBCwUAMHkxEDAOBgNVBAoTB1Jv +b3QgQ0ExHjAcBgNVBAsTFWh0dHA6Ly93d3cuY2FjZXJ0Lm9yZzEiMCAGA1UEAxMZ +Q0EgQ2VydCBTaWduaW5nIEF1dGhvcml0eTEhMB8GCSqGSIb3DQEJARYSc3VwcG9y +dEBjYWNlcnQub3JnMB4XDTExMDUyMzE3NDgwMloXDTIxMDUyMDE3NDgwMlowVDEU +MBIGA1UEChMLQ0FjZXJ0IEluYy4xHjAcBgNVBAsTFWh0dHA6Ly93d3cuQ0FjZXJ0 +Lm9yZzEcMBoGA1UEAxMTQ0FjZXJ0IENsYXNzIDMgUm9vdDCCAiIwDQYJKoZIhvcN +AQEBBQADggIPADCCAgoCggIBAKtJNRFIfNImflOUz0Op3SjXQiqL84d4GVh8D57a +iX3h++tykA10oZZkq5+gJJlz2uJVdscXe/UErEa4w75/ZI0QbCTzYZzA8pD6Ueb1 +aQFjww9W4kpCz+JEjCUoqMV5CX1GuYrz6fM0KQhF5Byfy5QEHIGoFLOYZcRD7E6C +jQnRvapbjZLQ7N6QxX8KwuPr5jFaXnQ+lzNZ6MMDPWAzv/fRb0fEze5ig1JuLgia +pNkVGJGmhZJHsK5I6223IeyFGmhyNav/8BBdwPSUp2rVO5J+TJAFfpPBLIukjmJ0 +FXFuC3ED6q8VOJrU0gVyb4z5K+taciX5OUbjchs+BMNkJyIQKopPWKcDrb60LhPt +XapI19V91Cp7XPpGBFDkzA5CW4zt2/L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A4ICAQApKIWuRKm5r6R5E/CooyuXYPNc +7uMvwfbiZqARrjY3OnYVBFPqQvX56sAV2KaC2eRhrnILKVyQQ+hBsuF32wITRHhH +Va9Y/MyY9kW50SD42CEH/m2qc9SzxgfpCYXMO/K2viwcJdVxjDm1Luq+GIG6sJO4 +D+Pm1yaMMVpyA4RS5qb1MyJFCsgLDYq4Nm+QCaGrvdfVTi5xotSu+qdUK+s1jVq3 +VIgv7nSf7UgWyg1I0JTTrKSi9iTfkuO960NAkW4cGI5WtIIS86mTn9S8nK2cde5a +lxuV53QtHA+wLJef+6kzOXrnAzqSjiL2jA3k2X4Ndhj3AfnvlpaiVXPAPHG0HRpW +Q7fDCo1y/OIQCQtBzoyUoPkD/XFzS4pXM+WOdH4VAQDmzEoc53+VGS3FpQyLu7Xt +hbNc09+4ufLKxw0BFKxwWMWMjTPUnWajGlCVI/xI4AZDEtnNp4Y5LzZyo4AQ5OHz +0ctbGsDkgJp8E3MGT9ujayQKurMcvEp4u+XjdTilSKeiHq921F73OIZWWonO1sOn +ebJSoMbxhbQljPI/lrMQ2Y1sVzufb4Y6GIIiNsiwkTjbKqGTqoQ/9SdlrnPVyNXT +d+pLncdBu8fA46A/5H2kjXPmEkvfoXNzczqA6NXLji/L6hOn1kGLrPo8idck9U60 +4GGSt/M3mMS+lqO3ig== +-----END CERTIFICATE----- diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/test/unit_tests.sh nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/test/unit_tests.sh --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/test/unit_tests.sh 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/test/unit_tests.sh 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,52 @@ +#!/bin/sh + +if [ -z "${SHUNIT2}" ] ; then + cat < /dev/null + assertEquals "wrong exit code" ${NAGIOS_OK} "$?" +} + +testUsage() { + ${SCRIPT} > /dev/null 2>&1 + assertEquals "wrong exit code" ${NAGIOS_UNKNOWN} "$?" +} + +# source the script. +. ${SCRIPT} --source-only + +# run shUnit: it will execute all the tests in this file +# (e.g., functions beginning with 'test' +. ${SHUNIT2} diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/TODO nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/TODO --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/TODO 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/TODO 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,9 @@ +* Nagios performance data (e.g., missing days) +* IPv6 support (e.g., through gnutls-cli) +* test for https://revoked.grc.com (should give a critical status) + +# File version information: +# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ +# $Revision: 1103 $ +# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $ +# $Date: 2009-12-07 08:49:19 +0100 (Mon, 07 Dec 2009) $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/VERSION nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/VERSION --- nagios-plugins-contrib-14.20141104/check_ssl_cert/check_ssl_cert-1.17.1/VERSION 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/check_ssl_cert-1.17.1/VERSION 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1 @@ +1.17.1 diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/control nagios-plugins-contrib-16.20151226/check_ssl_cert/control --- nagios-plugins-contrib-14.20141104/check_ssl_cert/control 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/control 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ Uploaders: Jan Wagner Recommends: openssl Suggests: expect -Version: 1.16.1 +Version: 1.17.1 Homepage: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_ssl_cert Watch: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_ssl_cert check_ssl_cert-([0-9.]+)\.tar\.gz Description: plugin to check the CA and validity of an diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/AUTHORS nagios-plugins-contrib-16.20151226/check_ssl_cert/src/AUTHORS --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/AUTHORS 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/AUTHORS 2015-12-26 17:20:34.000000000 +0000 @@ -1,4 +1,4 @@ -Matteo Corti +Matteo Corti Thanks: @@ -33,6 +33,10 @@ * Many thanks to Robin H. Johnson for the 'timeout' patch * Many thanks to Max Winterstein for the SSL version patch * Many thanks to Colin Smith for the RPM build Makefile patch +* Many thanks to Andreas Dijkman for the RPM dependencies patch +* Many thanks to Lawren Quigley-Jones for the common name patch +* Many thanks to Ryan Nowakowski for the OCSP patch +* Many thanks to Jérémy Lecour for the review and corrections # File version information: # $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/ChangeLog nagios-plugins-contrib-16.20151226/check_ssl_cert/src/ChangeLog --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/ChangeLog 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/ChangeLog 2015-12-26 17:20:34.000000000 +0000 @@ -1,3 +1,13 @@ +2015-04-07 Matteo Corti + + * check_ssl_cert: corrected some typos (thanks to Jérémy Lecour) + * check_ssl_cert: removed check on the openssl binary name + +2014-10-21 Matteo Corti + + * check_ssl_cert: added a patch to check revocation via OCSP (thanks + to Ryan Nowakowski) + 2014-02-28 Matteo Corti * Makefile: added a target to build an rpm diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/check_ssl_cert nagios-plugins-contrib-16.20151226/check_ssl_cert/src/check_ssl_cert --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/check_ssl_cert 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/check_ssl_cert 2015-12-26 17:20:34.000000000 +0000 @@ -19,15 +19,15 @@ # enable substitution with: # $ svn propset svn:keywords "Id Revision HeadURL Source Date" # -# $Id: check_ssl_cert 1353 2014-02-28 10:32:11Z corti $ -# $Revision: 1353 $ +# $Id: check_ssl_cert 1442 2015-04-07 14:06:03Z corti $ +# $Revision: 1442 $ # $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_ssl_cert/check_ssl_cert $ -# $Date: 2014-02-28 11:32:11 +0100 (Fri, 28 Feb 2014) $ +# $Date: 2015-04-07 16:06:03 +0200 (Tue, 07 Apr 2015) $ ################################################################################ # Constants -VERSION=1.16.1 +VERSION=1.17.1 SHORTNAME="SSL_CERT" VALID_ATTRIBUTES=",startdate,enddate,subject,issuer,modulus,serial,hash,email,ocsp_uri,fingerprint," @@ -75,6 +75,7 @@ echo " -i,--issuer issuer pattern to match the issuer of the certificate" echo " -n,--cn name pattern to match the CN of the certificate" echo " -N,--host-cn match CN with the host name" + echo " --ocsp check revocation via OCSP" echo " -o,--org org pattern to match the organization of the certificate" echo " --openssl path path of the openssl binary to be used" echo " -p,--port port TCP port" @@ -84,7 +85,7 @@ echo " -s,--selfsigned allows self-signed certificates" echo " -S,--ssl version force SSL version (2,3)" echo " -r,--rootcert path root certificate or directory to be used for" - echo " certficate validation" + echo " certificate validation" echo " -t,--timeout seconds timeout after the specified time" echo " (defaults to 15 seconds)" echo " --temp dir directory where to store the temporary files" @@ -98,7 +99,7 @@ echo " -d,--days days minimum number of days a certificate has to be valid" echo " (see --critical and --warning)" echo - echo "Report bugs to: Matteo Corti " + echo "Report bugs to: Matteo Corti " echo exit 3 @@ -279,6 +280,8 @@ -s|--selfsigned) SELFSIGNED=1; shift ;; --tls1) SSL_VERSION="-tls1"; shift ;; + + --ocsp) OCSP=1; shift ;; -v|--verbose) VERBOSE=1; shift ;; @@ -487,7 +490,7 @@ if [ ! -x "${OPENSSL}" ] ; then unknown "${OPENSSL} ist not an executable" fi - if [ "${OPENSSL##*/}" != 'openssl' ] ; then + if ! "${OPENSSL}" list-standard-commands | grep -q s_client ; then unknown "${OPENSSL} ist not an openssl executable" fi fi @@ -552,8 +555,6 @@ if [ -n "${COMMON_NAME}" ] ; then SERVERNAME="-servername ${COMMON_NAME}" - else - SERVERNAME="-servername ${HOST}" fi else @@ -577,6 +578,13 @@ unknown 'temporary file creation failure.' fi + if [ -n "${OCSP}" ] ; then + ISSUER_CERT=$( mktemp -t "${0##*/}XXXXXX" 2> /dev/null ) + if [ -z "${ISSUER_CERT}" ] || [ ! -w "${ISSUER_CERT}" ] ; then + unknown 'temporary file creation failure.' + fi + fi + if [ -n "${VERBOSE}" ] ; then echo "downloading certificate to ${TMPDIR}" fi @@ -593,7 +601,7 @@ # cleanup before program termination # using named signals to be POSIX compliant - trap 'rm -f $CERT $ERROR' EXIT HUP INT QUIT TERM + trap 'rm -f $CERT $ERROR $ISSUER_CERT' EXIT HUP INT QUIT TERM fetch_certificate @@ -653,6 +661,9 @@ CA_O=$($OPENSSL x509 -in "${CERT}" -issuer -noout | sed -e "s/^.*\/O=//" -e "s/\/[A-Z][A-Z]*=.*\$//") CA_CN=$($OPENSSL x509 -in "${CERT}" -issuer -noout | sed -e "s/^.*\/CN=//" -e "s/\/[A-Za-z][A-Za-z]*=.*\$//") + OCSP_URI=$($OPENSSL x509 -in "${CERT}" -ocsp_uri -noout) + + ISSUER_URI=$($OPENSSL x509 -in "${CERT}" -text -noout | grep "CA Issuers" | sed -e "s/^.*CA Issuers - URI://") ################################################################################ # Generate the long output @@ -800,6 +811,27 @@ fi ################################################################################ + # check revocation via OCSP + + if [ -n "${OCSP}" ]; then + + curl --silent "${ISSUER_URI}" > "${ISSUER_CERT}" + + if file "${ISSUER_CERT}" | grep -q ': data' ; then + openssl x509 -inform DER -outform PEM -in "${ISSUER_CERT}" -out "${ISSUER_CERT}" + fi + OCSP_HOST=$(echo ${OCSP_URI} | sed -e "s?.*//\([^/]\+\)/.*?\1?g") + OCSP_RESP=$($OPENSSL ocsp -no_nonce -issuer "${ISSUER_CERT}" -cert "${CERT}" -url "${OCSP_URI}" -header "HOST" "${OCSP_HOST}" 2>&1 | grep -i "ssl_cert") + if echo "${OCSP_RESP}" | grep -qi "revoked" ; then + critical "certifiicate is revoked" + elif ! $(echo "${OCSP_RESP}" | grep -qi "good") ; then + echo "### ${OCSP_RESP}" + warning "${OCSP_RESP}" + fi + + fi + + ################################################################################ # check the organization if [ -n "$ORGANIZATION" ] ; then @@ -824,7 +856,7 @@ fi if [ -z "${EMAIL}" ] ; then - critical "the certficate does not contain an email address" + critical "the certificate does not contain an email address" fi if ! echo "$EMAIL" | grep -q "^$ADDR" ; then diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/check_ssl_cert.1 nagios-plugins-contrib-16.20151226/check_ssl_cert/src/check_ssl_cert.1 --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/check_ssl_cert.1 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/check_ssl_cert.1 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ .\" Process this file with .\" groff -man -Tascii foo.1 .\" -.TH "check_ssl_cert" 1 "May, 2013" "1.16.1" "USER COMMANDS" +.TH "check_ssl_cert" 1 "April, 2015" "1.17.1" "USER COMMANDS" .SH NAME check_ssl_cert \- checks the validity of X.509 certificates .SH SYNOPSIS @@ -55,6 +55,9 @@ .BR "-N,--host-cn" match CN with the host name .TP +.BR "--ocsp" +check revocation via OCSP +.TP .BR "-o,--org" " org" pattern to match the organization of the certificate .TP @@ -103,9 +106,9 @@ .SH "EXIT STATUS" check_ssl_cert returns a zero exist status if it finds no errors, 1 for warnings, 2 for a critical errors and 3 for unknown problems .SH BUGS -Please report bugs to: Matteo Corti (matteo.corti (at) id.ethz.ch) +Please report bugs to: Matteo Corti (matteo (at) corti.li ) .SH AUTHOR -Matteo Corti (matteo.corti (at) id.ethz.ch) +Matteo Corti (matteo (at) corti.li ) See the AUTHORS file for the complete list of contributors diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/check_ssl_cert.spec nagios-plugins-contrib-16.20151226/check_ssl_cert/src/check_ssl_cert.spec --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/check_ssl_cert.spec 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/check_ssl_cert.spec 2015-12-26 17:20:34.000000000 +0000 @@ -6,7 +6,7 @@ # $Date: 2010-02-16 21:06:11 +0100 (Tue, 16 Feb 2010) $ ################################################################################ -%define version 1.16.1 +%define version 1.17.1 %define release 0 %define sourcename check_ssl_cert %define packagename nagios-plugins-check_ssl_cert @@ -27,7 +27,7 @@ URL: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_ssl_cert Source: https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{sourcename}-%{version}.tar.gz -Requires: nagios-plugins +Requires: nagios-plugins expect perl(Date::Parse) %description Checks an X.509 certificate: @@ -53,6 +53,19 @@ %{_mandir}/man1/%{sourcename}.1* %changelog +* Tue Apr 7 2015 Matteo Corti - 1.17.1-0 +- Updated to 1.17.1 + +* Tue Oct 21 2014 Matteo Corti - 1.17.0-0 +- Updated to 1.17.0 + +* Fri Jun 6 2014 Matteo Corti - 1.16.2-0 +- updated to 1.16.2 + +* Thu May 22 2014 Andreas Dijkman - 1.16.1-1 +- Added noarch as buildarch +- Added expect and perl(Date::Parse) dependency + * Fri Feb 28 2014 Matteo Corti - 1.16.1-0 - Updated to 1.16.1 (rpm make target) diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/COPYRIGHT nagios-plugins-contrib-16.20151226/check_ssl_cert/src/COPYRIGHT --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/COPYRIGHT 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/COPYRIGHT 2015-12-26 17:20:34.000000000 +0000 @@ -1,5 +1,6 @@ - Copyright (c) 2007-2012 ETH Zurich + Copyright (c) 2007-2013 ETH Zurich + Copyright (c) 2007-2015 Matteo Corti with the following individuals added to the list of Contributing Authors @@ -15,6 +16,15 @@ Tuomas Haarala Wolfgang Schricker Yannick Gravel + Jim Hopp + Javier Gonel + Christian Ruppert + Robin H. Johnson + Max Winterstein + Colin Smith + Andreas Dijkman + Ryan Nowakowski + Jérémy Lecour This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/NEWS nagios-plugins-contrib-16.20151226/check_ssl_cert/src/NEWS --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/NEWS 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/NEWS 2015-12-26 17:20:34.000000000 +0000 @@ -1,3 +1,6 @@ +2015-04-07 Version 1.17.1 Fixed the check on the openssl binary +2014-10-21 Version 1.17.0 Added an option to check revocation via OCSP +2014-06-06 Version 1.16.2 Fixed a problem with -servername when -n was not specified 2014-02-28 Version 1.16.1 Added a Make target for the RPM package 2013-12-23 Version 1.16.0 Added an option to force TLS version 1 2013-07-29 Version 1.15.0 Added an option to force a certain SSL version (thanks diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/README nagios-plugins-contrib-16.20151226/check_ssl_cert/src/README --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/README 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/README 2015-12-26 17:20:34.000000000 +0000 @@ -31,6 +31,7 @@ -i,--issuer issuer pattern to match the issuer of the certificate -n,---cn name pattern to match the CN of the certificate -N,--host-cn match CN with the host name + --ocsp check revocation via OCSP -o,--org org pattern to match the organization of the certificate --openssl path path of the openssl binary to be used -p,--port port TCP port @@ -96,7 +97,7 @@ Bugs: ===== -Report bugs to: Matteo Corti +Report bugs to: Matteo Corti # File version information: # $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/TODO nagios-plugins-contrib-16.20151226/check_ssl_cert/src/TODO --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/TODO 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/TODO 2015-12-26 17:20:34.000000000 +0000 @@ -1,5 +1,6 @@ * Nagios performance data (e.g., missing days) * IPv6 support (e.g., through gnutls-cli) +* test for https://revoked.grc.com (should give a critical status) # File version information: # $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $ diff -Nru nagios-plugins-contrib-14.20141104/check_ssl_cert/src/VERSION nagios-plugins-contrib-16.20151226/check_ssl_cert/src/VERSION --- nagios-plugins-contrib-14.20141104/check_ssl_cert/src/VERSION 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_ssl_cert/src/VERSION 2015-12-26 17:20:34.000000000 +0000 @@ -1 +1 @@ -1.16.1 +1.17.1 diff -Nru nagios-plugins-contrib-14.20141104/check_uptime/check_uptime.cfg nagios-plugins-contrib-16.20151226/check_uptime/check_uptime.cfg --- nagios-plugins-contrib-14.20141104/check_uptime/check_uptime.cfg 2014-10-01 06:24:45.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_uptime/check_uptime.cfg 2015-12-26 17:20:34.000000000 +0000 @@ -1,15 +1,15 @@ define command { command_name check_uptime - command_line $USER1$/check_uptime.pl -f -w $ARG1$ -c $ARG2$ + command_line $USER1$/check_uptime -f -w $ARG1$ -c $ARG2$ } define command { command_name check_snmp_uptime_v2 - command_line $USER1$/check_uptime.pl -2 -f -w $ARG1$ -c $ARG2$ -H $HOSTADDRESS$ -C $_HOSTSNMP_COMMUNITY$ + command_line $USER1$/check_uptime -2 -f -w $ARG1$ -c $ARG2$ -H $HOSTADDRESS$ -C $_HOSTSNMP_COMMUNITY$ } define command { command_name check_snmp_uptime_v3 - command_line $USER1$/check_uptime.pl -f -w $ARG1$ -c $ARG2$ -H $HOSTADDRESS$ -l $_HOSTSNMP_V3_USER$ -x $_HOSTSNMP_V3_AUTH$ -X $_HOSTSNMP_V3_PRIV$ -L sha,aes + command_line $USER1$/check_uptime -f -w $ARG1$ -c $ARG2$ -H $HOSTADDRESS$ -l $_HOSTSNMP_V3_USER$ -x $_HOSTSNMP_V3_AUTH$ -X $_HOSTSNMP_V3_PRIV$ -L sha,aes } diff -Nru nagios-plugins-contrib-14.20141104/check_whois/check_whois nagios-plugins-contrib-16.20151226/check_whois/check_whois --- nagios-plugins-contrib-14.20141104/check_whois/check_whois 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_whois/check_whois 2015-12-26 17:20:34.000000000 +0000 @@ -1,7 +1,7 @@ #!/usr/bin/perl # nagios: -epn -# $Id: check_whois,v 1.15 2013/12/16 23:31:39 wessels Exp $ +# $Id: check_whois,v 1.19 2015/10/06 14:22:02 wessels Exp $ # # check_whois # @@ -96,6 +96,19 @@ die "Could not find a whois command!\n"; } +# +# the ~ 2013-14-15 era New GTLDs have whois servers at whois.nic.$tld +# and they are slow to be configured in either whois clients or the +# whois-servers.net zone. +# +sub findnewgtldwhois($) { + my $name = shift; + my @x = split /\./, $name; + my $tld = pop @x; + my $whois = "whois.nic.$tld"; + return gethostbyname($whois) ? $whois : undef; +} + sub grok { my $whoiscmd = shift || die; my $name = shift || die; @@ -168,6 +181,11 @@ $registrar = 'go daddy' if ($registrar eq 'r91-lror'); } elsif (defined $whoisservice) { $registrar = $whoisservice . ' whois service'; + } elsif ((my $newgltdwhois = findnewgtldwhois($name)) && $whoiscmd !~ / -h /) { + print STDERR "retrying with -h $newgltdwhois\n" if $opts{d}; + $whoiscmd .= " -h $newgltdwhois"; + grok($whoiscmd, $name); + return; } elsif (defined $opts{x}) { $registrar = 'UNKNOWN'; } else { @@ -198,11 +216,20 @@ $expires = join('-', $2,$1,$3); } + # Name.com returns dates like this: 2018-12-13T21:27:28-07:00Z + # Just remove the timezone offset and call it good enough + # + if ($expires =~ /(\d{4}-\d\d-\d\dt\d\d:\d\d:\d\d)-\d\d:\d\dz/i) { + $expires = $1; + } + my $t; if (defined $expires) { + $expires =~ s/-t/ /i; + $expires =~ s/z$//i; $t = UnixDate($expires, "%s"); critical("Invalid expiration time '$expires'") unless defined $t; - critical("Invalid expiration time '$expires'") if ($t < 0); + critical("Invalid expiration time '$expires' (t=$t)") if ($t < 0); $expires = strftime("%Y-%m-%d", localtime($t)); } elsif (defined $opts{x}) { $t = time + (86400 * 90); diff -Nru nagios-plugins-contrib-14.20141104/check_whois/control nagios-plugins-contrib-16.20151226/check_whois/control --- nagios-plugins-contrib-14.20141104/check_whois/control 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/check_whois/control 2015-12-26 17:20:34.000000000 +0000 @@ -6,4 +6,4 @@ output formats differ or there is no expiration date in the whois output. Recommends: libdate-manip-perl -Version: 1.15 +Version: 1.19 diff -Nru nagios-plugins-contrib-14.20141104/common.mk nagios-plugins-contrib-16.20151226/common.mk --- nagios-plugins-contrib-14.20141104/common.mk 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/common.mk 2015-12-26 17:20:34.000000000 +0000 @@ -9,6 +9,7 @@ PLUGINDIR := /usr/lib/nagios/plugins CRONJOBDIR := /usr/lib/nagios/cronjobs CONFIGDIR := /etc/nagios-plugins/config +PNP4NAGIOSTEMPLATEDIR := /etc/pnp4nagios/templates.d/nagios-plugins-contrib INIDIR := /etc/nagios-plugins CONFIGFILES := $(wildcard *.cfg) @@ -42,6 +43,10 @@ install -m 644 -o root -g root $${m} $(DESTDIR)$${mandir} ;\ done endif +ifdef PNP4NAGIOSTEMPLATES + install -d $(DESTDIR)$(PNP4NAGIOSTEMPLATEDIR) + install -m 644 -o root -g root $(PNP4NAGIOSTEMPLATES) $(DESTDIR)$(PNP4NAGIOSTEMPLATEDIR) +endif ifdef INIFILES install -d $(DESTDIR)$(INIDIR) install -m 644 -o root -g root $(INIFILES) $(DESTDIR)$(INIDIR) diff -Nru nagios-plugins-contrib-14.20141104/debian/changelog nagios-plugins-contrib-16.20151226/debian/changelog --- nagios-plugins-contrib-14.20141104/debian/changelog 2014-11-04 14:03:54.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/changelog 2015-12-26 17:20:34.000000000 +0000 @@ -1,3 +1,138 @@ +nagios-plugins-contrib (16.20151226) unstable; urgency=medium + + [ Jan Wagner ] + * [a3207bd] check_mysql_health: Update to 2.2.1 + * [31c7ed1] check_mysql_health: Remove integrated patches/check_mysql_health/documentation_url + * [dfc20c0] travis-ci: Installing newer autoconf + * [f55699c] travis-ci: Installing automake1.9 + * [295f5a4] Generating new control file + * [12e0087] Updating debian/changelog + * [e5d713c] Revert "Updating debian/changelog" + This reverts commit 12e0087eb624f7db93a56483c793bc8d2c28ab3f. + * [b9c168a] Creating new changelog entry + * [f27768f] debian/control.in: reformating with warp-and-sort + * [9362ba8] Rebuild debian/control + * [22ddfa6] check_raid: Update to latest version 3.2.5 + * [c9f64fb] check_multipath: Update to latest version 0.3.0 + * [fd2e679] check_whois: Update to latest version 1.19 + * [9b19d0a] check_memcached: Install libmemcached-dev as build dependency on arm64 too (Closes: #798432) + * [4a79b7e] Updating debian/control + + -- Bernd Zeimetz Sat, 26 Dec 2015 18:19:43 +0100 + +nagios-plugins-contrib (15.20150818) unstable; urgency=medium + + The debconf15 release. + + [ Evgeni Golov ] + * [655f77d] fix check_ipmi_sebsor version + it was correct in the upload, but not in Git + + [ Jan Wagner ] + * [0da5840] Disable rbl.orbitrbl.com, it's offline + - Adding check_rbl/disable_orbitrbl.com see + http://www.dnsbl.com/2014/10/status-of-rblorbitrblcom-dead.html + * [9849824] check_email_delivery: Add libnet-smtpauth-perl as Recommends for + CRAM-MD5 + + [ Bernd Zeimetz ] + * [1151ce3] Add update-check_libs-status cronjob script. + * [3479e9d] Update check_apt.cmd to use update-check_libs-status. + * [ec49961] snapshot changelog. + + [ Jan Wagner ] + * [52030fc] Fixing changelog entries + + [ Bernd Zeimetz ] + * [f66a1d8] Remove , from check_packages output. + + [ Jan Wagner ] + * [803520c] Adding check_rbl/disable_ahbl.org patch (Closes: #774749) + + [ Bernd Zeimetz ] + * [1853853] Updating snapshot changelog. + * [b308bb7] Remove duplicate check_apt.cmd file. + * [f3e3cee] Add check_libvirt. + * [112168d] Auto update of debian/copyright + * [40a9288] Auto update of debian/control + * [1e398f9] Make check_libs faster. + * [d7cf267] Add breaks/replaces for smooth upgrades from squeeze. + * [1ae1eee] Add check_redis. + * [89a53d3] Auto update of debian/copyright + * [09d0cdb] Auto update of debian/control + * [bce89a0] Merge remote-tracking branch 'github/master' + + [ Jan Wagner ] + * [8733ae5] check_redis: Adding command definition config + * [5874628] check_redis: Fixing command definition + * [6ed8e1b] check_mongodb: Updating to latest version + * [b9544e3] check_mysql_health: Updating to 2.1.9.2 + * [a2c74a4] check_raid: Updating to 3.2.2 + * [19e1262] check_raid: Updating to latest git version (5bc04e1822) + * [5862270] check_ssl_cert: Updating to 1.17.0 + * [e4c7bc0] check_cups: Update Homepage + * [cc9ce25] check_drbd: Update Homepage and Watch header + * [99c5b84] check_rbl: Updating to 1.3.7 + * [160e8d3] check_rbl: Move back to Nagios::Plugin again by adding + patches/check_rbl/nagios-plugins + * [8b921f7] check_whois: Updating to 1.16 + * [90e3211] check_ipmi_sensor: Updating to 3.7 + * [37d10e7] Drop check_rbl/disable_ahbl.org + * [a2b7c69] Drop check_rbl/disable_orbitrbl.com + + [ Bernd Zeimetz ] + * [d33acc6] Some better travis scripts. + * [22073ab] Handle php4nagios templates + * [ec7197a] Install check_redis pnp4nagios template + * [f8d59a3] Fix check_ajp to handle non-responding tcp ports. + * [2709f46] install equivs in .travis.yml + * [d0e0af8] Revert "Fix check_ajp to handle non-responding tcp ports." + This reverts commit f8d59a383175bbcf0011b8308d0505868c6b61e4. + Change was applied by patch... + * [f948c66] Merge branch 'master' of + alioth.debian.org:/git/pkg-nagios/pkg-nagios-plugins-contrib + + [ Jan Wagner ] + * [8696a41] common.mk: Using TAB instead of white spaces + + [ Bernd Zeimetz ] + * [c408dff] Typo fix. + * [b41594f] Add check_haproxy_stats. + * [5e5ae83] Auto update of debian/copyright + * [cb814e2] Auto update of debian/control + * [23c7416] Update snapshot changelog. + * [53e1b9c] Fix version number in changelog + + [ Jan Wagner ] + * [9bcec60] check_hpasm: Update to 4.7.0.2 + * [9609f87] check_raid: Update to 3.2.3 + * [c750062] check_ssl_cert: Update to 1.17.1 + * [ff74dbd] check_rbl: Disable dul.ru + * [c11ef66] check_mongo: Update to recent version + * [32e8ae4] check_hpasm: Updating to latest 4.7.1.1 + * [a08beb2] check_ipmi_sensor: Updating to 3.8 + * [25d1eea] Updating control file + * [74ea485] check_uptime: Update check_uptime.cfg to use the correct script + (Closes: #787839) + * [45d50da] check_raid: Update to 3.2.4 + * [af3e278] check_ipmi_sensor: Update to version 3.9 + + [ Bernd Zeimetz ] + * [94ad100] implement git clean support in extras/Makefile + * [406aa15] Add makefile to build all plugins. + * [2655fe2] Add Makefile. + First step to get rid of dh crazyness. + * [94c0879] Fixing pthread linking fail for check_memcached. + + [ Jan Wagner ] + * [140e08e] check_mongodb: Update to latest upstream + + [ Bernd Zeimetz ] + * [22769ea] Let debian/rules use the new Makefile. + * [1a74854] build the debian readme again + + -- Bernd Zeimetz Tue, 18 Aug 2015 18:04:21 +0200 + nagios-plugins-contrib (14.20141104) unstable; urgency=medium [ Jan Wagner ] diff -Nru nagios-plugins-contrib-14.20141104/debian/control nagios-plugins-contrib-16.20151226/debian/control --- nagios-plugins-contrib-14.20141104/debian/control 2014-11-04 14:04:57.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/control 2015-12-26 17:20:34.000000000 +0000 @@ -3,7 +3,12 @@ Priority: extra Maintainer: Debian Nagios Maintainer Group Uploaders: Bernd Zeimetz , Jan Wagner , Petter Reinholdtsen -Build-Depends: debhelper (>= 8.0.0), python, python-debian, quilt (>= 0.46-7), dh-autoreconf, autotools-dev, flex, libmemcached-dev [!hurd-i386 !arm64], libvarnishapi-dev [!hurd-i386 !m68k], pkg-config +Build-Depends: debhelper (>= 8.0.0), + dh-autoreconf, + python, + python-debian, + quilt (>= 0.46-7), + autotools-dev, flex, libmemcached-dev [!hurd-i386], libvarnishapi-dev [!hurd-i386 !m68k], pkg-config Standards-Version: 3.9.6 Vcs-Git: git://anonscm.debian.org/pkg-nagios/pkg-nagios-plugins-contrib.git Vcs-Browser: http://anonscm.debian.org/cgit/pkg-nagios/pkg-nagios-plugins-contrib.git @@ -11,8 +16,11 @@ Package: nagios-plugins-contrib Architecture: any Depends: ${misc:Depends} -Recommends: ${shlibs:Depends}, ${python:Depends}, libsocket-perl, libnagios-plugin-perl, libnet-snmp-perl, whois, nagios-plugins-basic, libnet-dns-perl, libdate-manip-perl, libnagios-plugin-perl (>= 0.31), libnet-cups-perl, libio-socket-ssl-perl, libmail-imapclient-perl, libnet-smtp-tls-perl, libnet-smtp-ssl-perl, libnet-ssleay-perl, python, liblocale-gettext-perl, liblwp-useragent-determined-perl, snmp, freeipmi-tools, libipc-run-perl, ldap-utils, lsof, libyaml-syck-perl, python-pymongo, libdbd-mysql-perl, libreadonly-perl, libdata-validate-domain-perl, libdata-validate-ip-perl, procps, libnet-snmp-perl (>= 5), libtimedate-perl, openssl, libwebinject-perl, libnet-dns-sec-perl, ruby | ruby-interpreter, binutils, ${perl:Depends} -Suggests: backuppc, perl-doc, cciss-vol-status (>= 1.10), mpt-status, smstools (>= 3~), expect, nagios-plugin-check-multi, moreutils, percona-toolkit +Recommends: libsocket-perl, libnagios-plugin-perl, libnet-snmp-perl, whois, nagios-plugins-basic, libnet-dns-perl, libdate-manip-perl, libnagios-plugin-perl (>= 0.31), libnet-cups-perl, libio-socket-ssl-perl, libmail-imapclient-perl, libnet-smtp-tls-perl, libnet-smtp-ssl-perl, libnet-ssleay-perl, libnet-smtpauth-perl, python, liblocale-gettext-perl, liblwp-useragent-determined-perl, snmp, freeipmi-tools, libipc-run-perl, ldap-utils, lsof, libyaml-syck-perl, libxml-simple-perl, python-pymongo, libdbd-mysql-perl, libreadonly-perl, libdata-validate-domain-perl, libdata-validate-ip-perl, libredis-perl, procps, libnet-snmp-perl (>= 5), libtimedate-perl, openssl, libwebinject-perl, libnet-dns-sec-perl, ruby | ruby-interpreter, binutils, + ${perl:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Suggests: backuppc, perl-doc, libsys-virt-perl, cciss-vol-status (>= 1.10), mpt-status, smstools (>= 3~), expect, nagios-plugin-check-multi, moreutils, percona-toolkit Enhances: nagios-plugins, nagios-plugins-basic, nagios-plugins-standard Description: Plugins for nagios compatible monitoring systems This package provides various plugins for Nagios compatible monitoring @@ -58,11 +66,14 @@ Check /etc/resolv.conf, and make sure the name servers listed are working. It will ignore entries with '# NAGIOSIGNORE' at the end. * check_graphite: Plugin to monitor graphite metrics - * check_haproxy (rev135): plugin check the HAProxy statistics url + * check_haproxy (rev135): plugin to check the HAProxy statistics url + * check_haproxy_stats (1.0.1): check haproxy via admin socket + Different from check_haproxy this plugin is able to check + haproxy via the unix admin socket. * check_hp_bladechassis (1.0.1): plugin to check the hardware health of HP blade enclosures via SNMP. The plugin is only tested with the c7000 enclosure. - * check_hpasm (4.6.3.2): plugin to check the hardware health of + * check_hpasm (4.7.1.1): plugin to check the hardware health of HP Proliant Servers It either uses snmp or - if installed - the hpasm package locally. The plugin checks the health of @@ -76,7 +87,7 @@ outside its normal parameters. * check_httpd_status (rev153): plugin checking Apache or Lighthttpd server-status page (using mod_status) - * check_ipmi_sensor (3.5): IPMI Sensor Monitoring Plugin + * check_ipmi_sensor (3.9): IPMI Sensor Monitoring Plugin Plugin to monitor the hardware status (fan speed, temperaturs, voltages, power usage, ...) of a server using IPMI. * check_ldap_root (?): plugin to check LDAP server response @@ -84,6 +95,7 @@ root DSE. * check_libs (520): plugin to report the usage of no longer existing libraries by running processes + * check_libvirt (v7.0.3): monitor virtualization solutions using libvirt * check_lm_sensors (3.1.1): plugin to monitor hardware sensors and disk temperatures * check_memcached (1.3): plugin to check memcached instances @@ -97,16 +109,16 @@ This plugin excludes the system cache and buffer, because on some system with very stable memory usage it is perfectly normal for system cache to fill in all available memory. - * check_mongodb (60b639ef4c): Plugin script to monitor your MongoDB server(s) - * check_multipath (0.2.1): plugin to monitor the number of available and + * check_mongodb (abf2daad31): Plugin script to monitor your MongoDB server(s) + * check_multipath (0.3.0): plugin to monitor the number of available and failed paths of multipath devices - * check_mysql_health (2.1.8.2): plugin to check various parameters of a + * check_mysql_health (2.2.1): plugin to check various parameters of a MySQL database * check_nfsmounts: checks whether there are stale NFS mounts on the host * check_printer: plugin to check printer supply levels using SNMP It outputs performance data for all supplies found, for example toner and drum. - * check_raid (3.2.1+47b33d53db): plugin to check sw/hw RAID status + * check_raid (3.2.5): plugin to check sw/hw RAID status The plugin looks for any known types of RAID configurations, and checks them all. . @@ -131,7 +143,16 @@ - Serveraid IPS via ipssend - Solaris software RAID via metastat - Areca SATA RAID Support via cli64/cli32 - * check_rbl (1.3.5): plugin to check if a server is blacklisted + - Detecting SCSI devices or hosts with lsscsi + * check_rbl (1.3.7): plugin to check if a server is blacklisted + * check_redis (0.73): Redis Server check plugin + This plugin checks Redis NoSQL database status variables, + measures its response time and if specified allows to set thresholds + on one or more key data. You can set thresholds for data in stats + variables and some of them are also conveniently available as long options + with special threshold syntax. Plugin also calculates statistics such as + Hitrate (calculated as rate of change of hits/misses) and memory use and + can check replication delay. * check_shutdown (?): plugin to check LDAP server response Make sure the LDAP server is able to respond by searching for the root DSE. @@ -152,7 +173,7 @@ HOST-RESOURCES-MIB::hrSystemDate.0 used here returns 8 or 11 byte octets. SNMP translation needs to be switched off and to be converted the received SNMP data into readable strings. - * check_ssl_cert (1.16.1): plugin to check the CA and validity of an + * check_ssl_cert (1.17.1): plugin to check the CA and validity of an X.509 certificate * check_uptime (0.521): check_uptime returns uptime of a system in text (readable) format as well as in minutes for performance graphing. @@ -172,7 +193,7 @@ individual system components that have HTTP interfaces (JSP, ASP, CGI, PHP, AJAX, Servlets, HTML Forms, XML/SOAP Web Services, REST, etc). - * check_whois (1.15): plugin to check for the expiration of a domain. + * check_whois (1.19): plugin to check for the expiration of a domain. The plugin may not yet work with all registrars, since their output formats differ or there is no expiration date in the whois output. diff -Nru nagios-plugins-contrib-14.20141104/debian/control.in nagios-plugins-contrib-16.20151226/debian/control.in --- nagios-plugins-contrib-14.20141104/debian/control.in 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/control.in 2015-12-26 17:20:34.000000000 +0000 @@ -3,7 +3,12 @@ Priority: extra Maintainer: Debian Nagios Maintainer Group Uploaders: #AUTO_UPDATE_Uploaders# -Build-Depends: debhelper (>= 8.0.0), python, python-debian, quilt (>= 0.46-7), dh-autoreconf, #AUTO_UPDATE_Build-Depends# +Build-Depends: debhelper (>= 8.0.0), + dh-autoreconf, + python, + python-debian, + quilt (>= 0.46-7), + #AUTO_UPDATE_Build-Depends# Standards-Version: 3.9.6 Vcs-Git: git://anonscm.debian.org/pkg-nagios/pkg-nagios-plugins-contrib.git Vcs-Browser: http://anonscm.debian.org/cgit/pkg-nagios/pkg-nagios-plugins-contrib.git @@ -11,7 +16,10 @@ Package: nagios-plugins-contrib Architecture: any Depends: ${misc:Depends} -Recommends: ${shlibs:Depends}, ${python:Depends}, #AUTO_UPDATE_Recommends#, ${perl:Depends} +Recommends: #AUTO_UPDATE_Recommends#, + ${perl:Depends}, + ${python:Depends}, + ${shlibs:Depends} Suggests: #AUTO_UPDATE_Suggests# Enhances: nagios-plugins, nagios-plugins-basic, nagios-plugins-standard Description: Plugins for nagios compatible monitoring systems diff -Nru nagios-plugins-contrib-14.20141104/debian/copyright nagios-plugins-contrib-16.20151226/debian/copyright --- nagios-plugins-contrib-14.20141104/debian/copyright 2014-11-04 14:04:57.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/copyright 2015-12-26 17:20:34.000000000 +0000 @@ -135,7 +135,7 @@ check_cups: The plugin was downloaded from: -https://www.monitoringexchange.org/inventory/Check-Plugins/Hardware/Devices/Printer/check_cups +https://exchange.icinga.org/oldmonex/1867-check_cups/ Copyright (C) Steve Huff @@ -150,7 +150,7 @@ check_drbd: The plugin was downloaded from: -https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/check_drbd +https://exchange.icinga.org/oldmonex/512-check_drbd/ Copyright (C) Brandon Lee Poyner @@ -258,6 +258,28 @@ ------------------------------------------------------------------------------ +check_haproxy_stats: + +The plugin was downloaded from: +http://exchange.nagios.org/directory/Plugins/Clustering-and-High-2DAvailability/check_haproxy_stats-2Epl/details + + Copyright (C) 2012, Giacomo Montagner + + This program is free software; you can redistribute it and/or modify it + under the same terms as Perl 5.10.1. + For more details, see http://dev.perl.org/licenses/artistic.html + + This program is distributed in the hope that it will be + useful, but without any warranty; without even the implied + warranty of merchantability or fitness for a particular purpose. + + On Debian systems a copy of the Artistic license can be found + in /usr/share/common-licenses/Artistic. + + + +------------------------------------------------------------------------------ + check_hp_bladechassis: The plugin was downloaded from: @@ -401,6 +423,9 @@ The plugin was downloaded from: https://www.palfrader.org/gitweb/?p=tools/monitoring.git + + check_libs: + Copyright (C) 2005, 2006, 2007, 2008, 2012 Peter Palfrader 2012 Uli Martens @@ -424,6 +449,64 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + update-check_libs-status: + + Based on update-apt-status + Copyright 2009 Peter Palfrader + + Copyright 2014 conova communications GmbH + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +------------------------------------------------------------------------------ + +check_libvirt: + +The plugin was downloaded from: +http://git.op5.org/gitweb?p=system-addons/plugins/op5/check_libvirt.git;a=summary + + License: GPL 2 + Copyright (c) 2011 op5 AB + Author: Kostyantyn Hushchyn + + For direct contact with any of the op5 developers send a mail to + op5-users@lists.op5.com + Discussions are directed to the mailing list op5-users@op5.com, + see http://lists.op5.com/mailman/listinfo/op5-users + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + + + ------------------------------------------------------------------------------ @@ -680,6 +763,31 @@ ------------------------------------------------------------------------------ + +check_redis: + +The plugin was downloaded from: +https://github.com/willixix/WL-NagiosPlugins + + Author : William Leibzon - william@leibzon.org + Licence : GPL - summary below, full text at http://www.fsf.org/licenses/gpl.txt + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + +------------------------------------------------------------------------------ check_shutdown: diff -Nru nagios-plugins-contrib-14.20141104/debian/patches/check_libs/lsof-nP nagios-plugins-contrib-16.20151226/debian/patches/check_libs/lsof-nP --- nagios-plugins-contrib-14.20141104/debian/patches/check_libs/lsof-nP 2014-10-01 06:24:45.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/patches/check_libs/lsof-nP 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ ---- a/check_libs/nagios-check-libs -+++ b/check_libs/nagios-check-libs -@@ -29,7 +29,7 @@ use Getopt::Long; - $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin'; - delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; - --my $LSOF = '/usr/bin/lsof -F0'; -+my $LSOF = '/usr/bin/lsof -nPF0'; - my $VERSION = '0.2012042101'; - - # nagios exit codes diff -Nru nagios-plugins-contrib-14.20141104/debian/patches/check_libs/lsof-speedup nagios-plugins-contrib-16.20151226/debian/patches/check_libs/lsof-speedup --- nagios-plugins-contrib-14.20141104/debian/patches/check_libs/lsof-speedup 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/patches/check_libs/lsof-speedup 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,27 @@ +--- a/check_libs/nagios-check-libs ++++ b/check_libs/nagios-check-libs +@@ -29,7 +29,7 @@ use Getopt::Long; + $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin'; + delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; + +-my $LSOF = '/usr/bin/lsof -F0'; ++my $LSOF = '/usr/bin/lsof -nPF0 -a +L1'; + my $VERSION = '0.2012042101'; + + # nagios exit codes +@@ -141,12 +141,12 @@ sub inVserver() { + + my $INVSERVER = inVserver(); + +-print STDERR "Running $LSOF -n\n" if $params->{'verbose'}; +-open (LSOF, "$LSOF -n|") or dief ("Cannot run $LSOF -n: $!\n"); ++print STDERR "Running $LSOF\n" if $params->{'verbose'}; ++open (LSOF, "$LSOF|") or dief ("Cannot run $LSOF: $!\n"); + my @lsof=; + close LSOF; + if ($CHILD_ERROR) { # program failed +- dief("$LSOF -n returned with non-zero exit code: ".($CHILD_ERROR / 256)."\n"); ++ dief("$LSOF returned with non-zero exit code: ".($CHILD_ERROR / 256)."\n"); + }; + + my ($process, $pid, $user); diff -Nru nagios-plugins-contrib-14.20141104/debian/patches/check_mysql_health/documentation_url nagios-plugins-contrib-16.20151226/debian/patches/check_mysql_health/documentation_url --- nagios-plugins-contrib-14.20141104/debian/patches/check_mysql_health/documentation_url 2014-10-01 06:24:45.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/patches/check_mysql_health/documentation_url 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ ---- a/check_mysql_health/src/plugins-scripts/check_mysql_health.pl -+++ b/check_mysql_health/src/plugins-scripts/check_mysql_health.pl -@@ -235,7 +235,7 @@ EOUS - option and it will encode the standard input. - - You can find the full documentation at -- http://www.consol.de/opensource/nagios/check-mysql-health -+ https://labs.consol.de/nagios/check_mysql_health/ - - EOUS - diff -Nru nagios-plugins-contrib-14.20141104/debian/patches/check_rbl/disable_dul.ru nagios-plugins-contrib-16.20151226/debian/patches/check_rbl/disable_dul.ru --- nagios-plugins-contrib-14.20141104/debian/patches/check_rbl/disable_dul.ru 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/patches/check_rbl/disable_dul.ru 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,11 @@ +--- a/check_rbl/src/check_rbl.ini ++++ b/check_rbl/src/check_rbl.ini +@@ -33,7 +33,7 @@ + server=bl.technovision.dk + server=dnsbl.kempt.net + ;server=dnsbl.solid.net ; domain offline +-server=dul.ru ++;server=dul.ru ; domain seems abandoned + server=forbidden.icm.edu.pl + server=hil.habeas.com + server=rbl.schulte.org diff -Nru nagios-plugins-contrib-14.20141104/debian/patches/check_rbl/nagios-plugins nagios-plugins-contrib-16.20151226/debian/patches/check_rbl/nagios-plugins --- nagios-plugins-contrib-14.20141104/debian/patches/check_rbl/nagios-plugins 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/patches/check_rbl/nagios-plugins 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,59 @@ +diff --git a/check_rbl/src/check_rbl b/check_rbl/src/check_rbl +index 43f5f29..fa3ece8 100644 +--- a/check_rbl/src/check_rbl ++++ b/check_rbl/src/check_rbl +@@ -34,9 +34,9 @@ use 5.00800; + use Data::Validate::Domain qw(is_hostname); + use Data::Validate::IP qw(is_ipv4 is_ipv6); + use IO::Select; +-use Monitoring::Plugin; +-use Monitoring::Plugin::Getopt; +-use Monitoring::Plugin::Threshold; ++use Nagios::Plugin 0.31; ++use Nagios::Plugin::Getopt; ++use Nagios::Plugin::Threshold; + use Net::DNS; + use Readonly; + +@@ -352,14 +352,14 @@ sub run { + ################################################################################ + # Initialization + +- $plugin = Monitoring::Plugin->new( shortname => 'CHECK_RBL' ); ++ $plugin = Nagios::Plugin->new( shortname => 'CHECK_RBL' ); + + my $time = time; + + ######################## + # Command line arguments + +- $options = Monitoring::Plugin::Getopt->new( ++ $options = Nagios::Plugin::Getopt->new( + usage => 'Usage: %s [OPTIONS]', + version => $VERSION, + url => 'https://trac.id.ethz.ch/projects/nagios_plugins', +@@ -448,7 +448,7 @@ sub run { + # Set the limits + + # see https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT +- $threshold = Monitoring::Plugin::Threshold->set_thresholds( ++ $threshold = Nagios::Plugin::Threshold->set_thresholds( + warning => $options->warning - 1, + critical => $options->critical - 1, + ); +diff --git a/check_rbl/src/check_rbl.pod b/check_rbl/src/check_rbl.pod +index c9c5735..9267980 100644 +--- a/check_rbl/src/check_rbl.pod ++++ b/check_rbl/src/check_rbl.pod +@@ -74,9 +74,9 @@ check_updates depends on + + =item * IO::Select + +-=item * Monitoring::Plugin ++=item * Nagios::Plugin + +-=item * Monitoring::Plugin::Threshold ++=item * Nagios::Plugin::Threshold + + =item * Number::Format + diff -Nru nagios-plugins-contrib-14.20141104/debian/patches/dsa/check_packages_,_fix nagios-plugins-contrib-16.20151226/debian/patches/dsa/check_packages_,_fix --- nagios-plugins-contrib-14.20141104/debian/patches/dsa/check_packages_,_fix 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/patches/dsa/check_packages_,_fix 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,30 @@ +--- a/dsa/checks/dsa-check-packages ++++ b/dsa/checks/dsa-check-packages +@@ -334,7 +334,7 @@ for my $form (@reportform) { + push @perfout, sprintf($form->{'perf'}, $num); + next unless ($num > 0); + if ($form->{'listpackages'}) { +- my $list = join(", ", keys %$pkgs); ++ my $list = join(" ", keys %$pkgs); + push @longout, sprintf($form->{'long'}, $num, $list); + } else { + push @longout, sprintf($form->{'long'}, $num); +@@ -344,15 +344,15 @@ for my $form (@reportform) { + }; + if (scalar keys %$packages) { + record('WARNING'); +- unshift @shortout, "unk: ".join(", ", keys %$packages); ++ unshift @shortout, "unk: ".join(" ", keys %$packages); + for my $status (sort {$b cmp $a} keys %$packages) { + my $pkgs = $packages->{$status}; +- my $list = join(", ", keys %$pkgs); ++ my $list = join(" ", keys %$pkgs); + unshift @longout, "Unknown package status $status: $list"; + }; + } + +-my $shortout = $EXITCODE.": ".join(", ", @shortout); ++my $shortout = $EXITCODE.": ".join(" ", @shortout); + my $longout = join("\n", @longout); + my $perfout = "|".join(" ", @perfout); + diff -Nru nagios-plugins-contrib-14.20141104/debian/patches/series nagios-plugins-contrib-16.20151226/debian/patches/series --- nagios-plugins-contrib-14.20141104/debian/patches/series 2014-11-04 13:43:17.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/patches/series 2015-12-26 17:20:34.000000000 +0000 @@ -9,13 +9,12 @@ check_haproxy/epn check_httpd_status/epn check_imap_quota/syntax_error_fix -check_libs/lsof-nP +check_libs/lsof-speedup check_libs/config_path check_libs/space_before_deleted check_lm_sensors/manpage_whatis_fix check_lm_sensors/spelling_errors check_lm_sensors/interpreter -check_mysql_health/documentation_url check_nfsmounts/perl_module check_nfsmounts/nfs_write_location check_printer/use_data_dumper_if_needed @@ -25,7 +24,9 @@ check_rbl/interpreter check_rbl/spelling_errors check_rbl/disable_solid.net +check_rbl/disable_dul.ru check_rbl/additional_rbls +check_rbl/nagios-plugins check_snmp_time/epn check_varnish/automake_foreign check_varnish/support-for-varnish-4 @@ -36,3 +37,4 @@ dsa/check_packages-inifile dsa/epn +dsa/check_packages_,_fix diff -Nru nagios-plugins-contrib-14.20141104/debian/rules nagios-plugins-contrib-16.20151226/debian/rules --- nagios-plugins-contrib-14.20141104/debian/rules 2014-04-27 18:15:10.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/debian/rules 2015-12-26 17:20:34.000000000 +0000 @@ -4,101 +4,23 @@ # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 -PLUGINS := $(shell find $(CURDIR) -mindepth 1 -maxdepth 1 -name .git -prune -o -name .pc -prune -o -name debian -prune -o -type d -printf '%f\n' | sort) - -ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), hurd-i386)) - PLUGINS := $(filter-out check_memcached check_varnish,$(PLUGINS)) -endif -ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), arm64)) - PLUGINS := $(filter-out check_memcached,$(PLUGINS)) -endif -ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), m68k)) - PLUGINS := $(filter-out check_varnish,$(PLUGINS)) -endif - PKGNAME = nagios-plugins-contrib +PLUGINS := $(shell find $(CURDIR) -mindepth 1 -maxdepth 1 -name .git -prune -o -name .pc -prune -o -name debian -prune -o -type d -printf '%f\n' | sort) %: - dh $@ --with quilt,python2,autotools_dev,autoreconf --parallel + dh $@ --with quilt,python2 -# Here follows a small shell snipped to call dh_auto_* for all plugins -# Currently -# - if a Makefile exists in the plugin directory -# we run dh_auto_$(1) with -O--sourcedirectory="$$plugin" -# - if $${plugin}/src exists, we run dh_auto_$(1) on that directory -# - else: fail :) -DH_AUTO_CALL = if [ "$$auto_command" = "dh_auto_configure" ]; then \ - export options="$$options -- --enable-stack-protector" ;\ - fi ;\ - if [ -f $(CURDIR)/$$plugin/Makefile ]; then \ - $$auto_command -O--sourcedirectory="$${plugin}" $$options; \ - elif [ -d $(CURDIR)/$$plugin/src ]; then \ - $$auto_command -O--sourcedirectory="$${plugin}/src" $$options; \ - else \ - echo failed to build $$plugin; exit 255 ; \ - fi +override_dh_auto_build: + dh_auto_build + $(PACKAGING_HELPER) --generate-readme PACKAGING_HELPER = /usr/bin/python $(CURDIR)/debian/packaging-helper.py -clean: $(PLUGINS:%=clean-%) debian/copyright debian/control - dh $@ --with quilt,python2,autotools_dev,autoreconf --parallel --with - rm -f debian/$(PKGNAME).install +clean: debian/copyright debian/control + dh $@ --with quilt,python2 rm -f debian/README.Debian.plugins -clean-%: - rm -rf debian/$* - -dh_auto_install-%: - # run dh_auto_install to debian/$plugin - set -e ;\ - export auto_command="dh_auto_install" ;\ - export plugin="$*" ;\ - export options="--destdir=debian/$*" ;\ - $(DH_AUTO_CALL) - if [ -d debian/$*/usr/lib/$(PKGNAME) ]; then \ - mkdir -p debian/$*/usr/lib/nagios ;\ - mv debian/$*/usr/lib/$(PKGNAME) debian/$*/usr/lib/nagios/plugins ;\ - fi - # add files to debian/$(PKGNAME).install - set -e; find debian/$* -type f -printf '%h\n' | sort -u |\ - while read dir; do \ - echo "$$dir/* `echo $$dir | sed 's,debian/$*/,,'`" ;\ - done >> debian/$(PKGNAME).install - # create shlibdeps for the plugin into a temp file - set -e; \ - opts=`find debian/$* -type f -exec file {} \; |\ - grep -E ' ELF ' |\ - sed 's,:.*,,;s,^,-e,' |\ - tr '\n' ' '` ;\ - if [ -n "$$opts" ]; then \ - dpkg-shlibdeps -O $$opts | grep shlibs:Depends > debian/$*/substvars ;\ - fi - -dh_auto_%: - set -e; \ - export auto_command=`echo $* | sed 's,-.*,,;s,^,dh_auto_,'` ;\ - export plugin=`echo $* | sed 's,[^-]*-,,'` ;\ - $(DH_AUTO_CALL) - - -override_dh_auto_build: $(PLUGINS:%=dh_auto_build-%) - -override_dh_auto_clean: $(PLUGINS:%=dh_auto_clean-%) - -override_dh_auto_configure: $(PLUGINS:%=dh_auto_configure-%) - -override_dh_auto_install: $(PLUGINS:%=dh_auto_install-%) - $(PACKAGING_HELPER) --generate-readme - -#override_dh_auto_test: $(PLUGINS:%=dh_auto_test-%) -override_dh_auto_test: - # nothign to do right now. - -override_dh_python2: - dh_python2 - dh_python2 usr/lib/nagios/plugins usr/lib/nagios/cronjobs - CONTROL_FILES := $(shell for p in $(PLUGINS); do echo $$p/control; done) COPYRIGHT_FILES := $(shell for p in $(PLUGINS); do echo $$p/copyright; done) debian/copyright: debian/copyright.in debian/packaging-helper.py $(CONTROL_FILES) $(COPYRIGHT_FILES) @@ -113,4 +35,4 @@ watch: @$(PACKAGING_HELPER) --watch -.PHONY: watch override_dh_auto_build override_dh_auto_clean override_dh_auto_configure override_dh_auto_install override_dh_auto_test +.PHONY: watch diff -Nru nagios-plugins-contrib-14.20141104/dsa/check_apt.cmd nagios-plugins-contrib-16.20151226/dsa/check_apt.cmd --- nagios-plugins-contrib-14.20141104/dsa/check_apt.cmd 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/dsa/check_apt.cmd 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -# check_multi command file implementing a -# check_apt replacement -# -# example nrpe.cfg config: -# command[check_apt]=/usr/lib/nagios/plugins/check_multi -f /etc/check_multi/check_apt.cmd -# -# requirements: -# - moreutils -# - the following sudo permissions: -# nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_libs -# nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_running_kernel -# - a cronjob running update-apt-status: -# @hourly root [ -x /usr/lib/nagios/cronjobs/update-apt-status ] && /usr/lib/nagios/cronjobs/update-apt-status 2>&1 | logger -t update-apt-status - - - -command[ packages ] = mispipe "/usr/lib/nagios/plugins/check_statusfile /var/cache/nagios_status/apt" "sed -n '1p;\$p' | paste -s -d ''" -command[ libs ] = mispipe "sudo /usr/lib/nagios/plugins/check_libs" "sed 's, ([0-9, ]*),,g'" -command[ running_kernel ] = sudo /usr/lib/nagios/plugins/check_running_kernel - - -state [ CRITICAL ] = COUNT(CRITICAL) > 0 -state [ WARNING ] = COUNT(WARNING) > 0 -state [ UNKNOWN ] = COUNT(UNKNOWN) > 0 diff -Nru nagios-plugins-contrib-14.20141104/extras/check_apt.cmd nagios-plugins-contrib-16.20151226/extras/check_apt.cmd --- nagios-plugins-contrib-14.20141104/extras/check_apt.cmd 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/extras/check_apt.cmd 2015-12-26 17:20:34.000000000 +0000 @@ -9,13 +9,14 @@ # - the following sudo permissions: # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_libs # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_running_kernel -# - a cronjob running update-apt-status: +# - cronjobs running update-apt-status and update-check_libs-status: # @hourly root [ -x /usr/lib/nagios/cronjobs/update-apt-status ] && /usr/lib/nagios/cronjobs/update-apt-status 2>&1 | logger -t update-apt-status +# @hourly root [ -x /usr/lib/nagios/cronjobs/update-check_libs-status ] && /usr/lib/nagios/cronjobs/update-check_libs-status 2>&1 | logger -t update-check_libs-status command[ packages ] = mispipe "/usr/lib/nagios/plugins/check_statusfile /var/cache/nagios_status/apt" "sed -n '1p;\$p' | paste -s -d ''" -command[ libs ] = mispipe "sudo /usr/lib/nagios/plugins/check_libs" "sed 's, ([0-9, ]*),,g'" +command[ libs ] = /usr/lib/nagios/plugins/check_statusfile /var/cache/nagios_status/check_libs command[ running_kernel ] = sudo /usr/lib/nagios/plugins/check_running_kernel diff -Nru nagios-plugins-contrib-14.20141104/extras/Makefile nagios-plugins-contrib-16.20151226/extras/Makefile --- nagios-plugins-contrib-14.20141104/extras/Makefile 2013-08-11 18:58:26.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/extras/Makefile 2015-12-26 17:20:34.000000000 +0000 @@ -12,3 +12,5 @@ install -d $(DESTDIR)$(DM_DIR) install -m 755 -o root -g root send_nsca_host_or_service_check_result $(DESTDIR)$(DM_DIR) +clean: + # nothing to do. diff -Nru nagios-plugins-contrib-14.20141104/.gitignore nagios-plugins-contrib-16.20151226/.gitignore --- nagios-plugins-contrib-14.20141104/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/.gitignore 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,8 @@ +debian/files +debian/nagios-plugins-contrib/* +debian/nagios-plugins-contrib.debhelper.log +debian/nagios-plugins-contrib.substvars +.*.swp +.pc +*.rej +*.orig diff -Nru nagios-plugins-contrib-14.20141104/Makefile nagios-plugins-contrib-16.20151226/Makefile --- nagios-plugins-contrib-14.20141104/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/Makefile 2015-12-26 17:20:34.000000000 +0000 @@ -0,0 +1,28 @@ +PLUGINS := $(strip $(shell find . -mindepth 2 -maxdepth 2 -name Makefile -printf '%h ')) + +ifeq ($(wildcard '/etc/debian_version'),'/etc/debian_version') +HOST_ARCH := $(strip $(shell dpkg-architecture -q DEB_HOST_ARCH)) +else +ifeq ($(wildcard '/usr/bin/rpm'),'/usr/bin/rpm') +HOST_ARCH := $(strip $(shell rpm --eval '%{_arch}')) +endif +endif + +ifeq ($(HOST_ARCH),$(filter $(DEB_HOST_ARCH), hurd-i386)) + PLUGINS := $(filter-out check_memcached check_varnish,$(PLUGINS)) +endif +ifeq ($(HOST_ARCH),$(filter $(DEB_HOST_ARCH), arm64)) + PLUGINS := $(filter-out check_memcached,$(PLUGINS)) +endif +ifeq ($(HOST_ARCH),$(filter $(DEB_HOST_ARCH), m68k)) + PLUGINS := $(filter-out check_varnish,$(PLUGINS)) +endif + + +default: all + +$(PLUGINS):: + $(MAKE) -C $@ $(MAKECMDGOALS) + +all clean install : $(PLUGINS) + diff -Nru nagios-plugins-contrib-14.20141104/.travis.yml nagios-plugins-contrib-16.20151226/.travis.yml --- nagios-plugins-contrib-14.20141104/.travis.yml 2014-04-25 13:29:22.000000000 +0000 +++ nagios-plugins-contrib-16.20151226/.travis.yml 2015-12-26 17:20:34.000000000 +0000 @@ -6,13 +6,16 @@ install: # install implicit build dependencies - - sudo apt-get install -qq --no-install-recommends build-essential fakeroot devscripts + - sudo apt-get install -qq --no-install-recommends build-essential fakeroot devscripts equivs # install build dependencies - - sudo apt-get install -qq --no-install-recommends debhelper python python-debian quilt autotools-dev autotools-dev flex libmemcached-dev libvarnishapi-dev pkg-config dh-autoreconf + - sudo mk-build-deps --install debian/control + - sudo apt-get install -qq --no-install-recommends automake1.9 + # install + - sudo add-apt-repository -y ppa:kalon33/gamesgiroll && sudo apt-get update && sudo apt-get install --only-upgrade autoconf script: # build the debian package - - debuild -uc -us + - dpkg-buildpackage -uc -us after_script: # run lintian after build