equal
deleted
inserted
replaced
38 "c=i" => \$opt_c, |
38 "c=i" => \$opt_c, |
39 "critical=i" => \$opt_c |
39 "critical=i" => \$opt_c |
40 ); |
40 ); |
41 |
41 |
42 if ($opt_V) { |
42 if ($opt_V) { |
43 print_revision( $ME, "0.1" ); |
43 print_revision( $ME, "1.1" ); |
44 exit $ERRORS{"OK"}; |
44 exit $ERRORS{"OK"}; |
45 } |
45 } |
46 |
46 |
47 if ($opt_h) { |
47 if ($opt_h) { |
48 print_help(); |
48 print_help(); |
86 "MAILQ $result: ($mailq) queued mails older than $opt_s sec.|unsent=$mailq;$opt_w;$opt_c;0;0\n"; |
86 "MAILQ $result: ($mailq) queued mails older than $opt_s sec.|unsent=$mailq;$opt_w;$opt_c;0;0\n"; |
87 exit $ERRORS{$result}; |
87 exit $ERRORS{$result}; |
88 |
88 |
89 sub print_usage() { |
89 sub print_usage() { |
90 print "Usage:\n"; |
90 print "Usage:\n"; |
91 print " $ME [-b <binary>] [-s <sec>] [-w <warn>] [-c <crit>]\n"; |
91 print " $ME [-b <binary>] [-s <sec>] [-w <warn>] [-c <crit>] [<exipick criterion> [<exipick criterion> ... ]]\n"; |
92 print " $ME [-h | --help]\n"; |
92 print " $ME [-h | --help]\n"; |
93 print " $ME [-V | --version]\n"; |
93 print " $ME [-V | --version]\n"; |
94 } |
94 } |
95 |
95 |
96 sub print_help() { |
96 sub print_help() { |
97 print_revision( $ME, "0.1" ); |
97 print_revision( $ME, "1.1" ); |
98 print "Copyright (c) 2008 Christian Arnold\n\n"; |
98 print "Copyright (c) 2008 Christian Arnold\n"; |
|
99 print "Copyright (c) 2015 Matthias Förste\n\n"; |
99 print "This plugin checks the number of messages, which are longer than\n"; |
100 print "This plugin checks the number of messages, which are longer than\n"; |
100 print "an specified time holding in the mail queue.\n\n"; |
101 print "an specified time holding in the mail queue.\n\n"; |
101 print_usage(); |
102 print_usage(); |
102 print "\n"; |
103 print "\n"; |
103 print " -b, --binary <binary>\n"; |
104 print " -b, --binary <binary>\n"; |