# HG changeset patch # User foerste # Date 1450354564 0 # Node ID 597602edeb54b4df905c1a91b17cd447aabca8ca # Parent f68360cfdef21d4166e955a302301a063a5c5b60 [savepoint] (record removal of files) diff -r f68360cfdef2 -r 597602edeb54 build-stamp diff -r f68360cfdef2 -r 597602edeb54 debian/files --- a/debian/files Wed Jun 11 08:48:24 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -nagios-plugin-mailq_1.0-1_all.deb unknown extra diff -r f68360cfdef2 -r 597602edeb54 debian/nagios-plugin-mailq/DEBIAN/control --- a/debian/nagios-plugin-mailq/DEBIAN/control Wed Jun 11 08:48:24 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -Package: nagios-plugin-mailq -Version: 1.0-1 -Section: unknown -Priority: extra -Architecture: all -Installed-Size: 64 -Maintainer: Christian Arnold -Description: nagios plugin to check mail queue - This plugin checks the number of messages, which are longer than - an specified time holding in the mail queue. diff -r f68360cfdef2 -r 597602edeb54 debian/nagios-plugin-mailq/DEBIAN/md5sums --- a/debian/nagios-plugin-mailq/DEBIAN/md5sums Wed Jun 11 08:48:24 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -7d6f503fd7ca95ae406725c9099d779d usr/share/doc/nagios-plugin-mailq/copyright -74d3c87bf7bd55706c0c84d9f038f386 usr/share/doc/nagios-plugin-mailq/changelog.Debian.gz -b4d4f1c1cd5c9125f8aac5aebeedfedd usr/share/doc/nagios-plugin-mailq/README.Debian -626d19cc06c3b6d61bf71503855b8a95 usr/lib/nagios/plugins/ius/check_mailq diff -r f68360cfdef2 -r 597602edeb54 debian/nagios-plugin-mailq/usr/lib/nagios/plugins/ius/check_mailq --- a/debian/nagios-plugin-mailq/usr/lib/nagios/plugins/ius/check_mailq Wed Jun 11 08:48:24 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +0,0 @@ -#! /usr/bin/perl -w - -use strict; -use File::Basename; -use Getopt::Long; -use lib "/usr/lib/nagios/plugins"; -use utils qw (%ERRORS &print_revision &support); - -sub print_help(); -sub print_usage(); - -my $ME = basename $0; -my ( $opt_w, $opt_c, $opt_s, $opt_V, $opt_h, $opt_b ); -my ( $result, $mailq ); - -$opt_s = "86400"; -$opt_w = "10"; -$opt_c = "20"; -$opt_b = "/usr/sbin/exipick"; - -Getopt::Long::Configure('bundling'); -GetOptions( - "V" => \$opt_V, - "version" => \$opt_V, - "h" => \$opt_h, - "help" => \$opt_h, - "b=s" => \$opt_b, - "binary" => \$opt_b, - "s=i" => \$opt_s, - "seconds" => \$opt_s, - "w=i" => \$opt_w, - "warning=i" => \$opt_w, - "c=i" => \$opt_c, - "critical=i" => \$opt_c -); - -if ($opt_V) { - print_revision( $ME, "0.1" ); - exit $ERRORS{"OK"}; -} - -if ($opt_h) { - print_help(); - exit $ERRORS{"OK"}; -} - -if ( $opt_w > $opt_c ) { - print - "MAILQ CRITICAL: Warning (-w) cannot be greater than Critical (-c)!\n"; - exit $ERRORS{"CRITICAL"}; -} - -# check exipick binary -unless ( -x $opt_b ) { - print "MAILQ CRITICAL: exipick not found or not executable - $opt_b\n"; - exit $ERRORS{"CRITICAL"}; -} - -# check the mailq -`$opt_b -o $opt_s -c` =~ /^(\d+).*/; -$mailq = $1; - -SWITCH: { - $mailq < $opt_w and $result = "OK", last; - $mailq >= $opt_c and $result = "CRITICAL", last; - $mailq >= $opt_w and $result = "WARNING", last; -} - -print -"MAILQ $result: ($mailq) queued mails older than $opt_s sec.|unsent=$mailq;$opt_w;$opt_c;0;0\n"; -exit $ERRORS{$result}; - -sub print_usage() { - print "Usage:\n"; - print " $ME [-b ] [-s ] [-w ] [-c ]\n"; - print " $ME [-h | --help]\n"; - print " $ME [-V | --version]\n"; -} - -sub print_help() { - print_revision( $ME, "0.1" ); - print "Copyright (c) 2008 Christian Arnold\n\n"; - print "This plugin checks the number of messages, which are longer than\n"; - print "an specified time holding in the mail queue.\n\n"; - print_usage(); - print "\n"; - print " -b, --binary \n"; - print " Path of exipick binary (default: /usr/sbin/exipick)\n"; - print " -s, --seconds \n"; - print " Age of messages in seconds in the mail queue (default: 86400) one day\n"; - print " -w, --warning \n"; - print " Min. number of messages in the mail queue to generate warning alert (default: 10)\n"; - print " -c, --critical \n"; - print " Min. number of messages in the mail queue to generate critical alert (default: 20)\n"; - print "\n"; - print "Note: This plugin only works with exim4.\n\n"; - support(); -} diff -r f68360cfdef2 -r 597602edeb54 debian/nagios-plugin-mailq/usr/share/doc/nagios-plugin-mailq/README.Debian --- a/debian/nagios-plugin-mailq/usr/share/doc/nagios-plugin-mailq/README.Debian Wed Jun 11 08:48:24 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -nagios-plugin-mailq for Debian ------------------------------- - - - - -- Christian Arnold Wed, 11 Jun 2008 10:35:32 +0200 diff -r f68360cfdef2 -r 597602edeb54 debian/nagios-plugin-mailq/usr/share/doc/nagios-plugin-mailq/changelog.Debian.gz Binary file debian/nagios-plugin-mailq/usr/share/doc/nagios-plugin-mailq/changelog.Debian.gz has changed diff -r f68360cfdef2 -r 597602edeb54 debian/nagios-plugin-mailq/usr/share/doc/nagios-plugin-mailq/copyright --- a/debian/nagios-plugin-mailq/usr/share/doc/nagios-plugin-mailq/copyright Wed Jun 11 08:48:24 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -This package was debianized by Christian Arnold on -Wed, 11 Jun 2008 10:35:32 +0200. - -It was downloaded from - -Upstream Author: - -Copyright: - -License: - - This package 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 package 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 package; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -On Debian systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The Debian packaging is (C) 2008, Christian Arnold and -is licensed under the GPL, see above. - - -# Please also look if there are files or directories which have a -# different copyright/license attached and list them here.