packages: nagios-plugin-check_id-pilet/check_id-pilet.pl - future tickets m...
glen
glen at pld-linux.org
Fri Jan 15 14:57:50 CET 2010
Author: glen Date: Fri Jan 15 13:57:50 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- future tickets matched from warning range
---- Files affected:
packages/nagios-plugin-check_id-pilet:
check_id-pilet.pl (1.6 -> 1.7)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_id-pilet/check_id-pilet.pl
diff -u packages/nagios-plugin-check_id-pilet/check_id-pilet.pl:1.6 packages/nagios-plugin-check_id-pilet/check_id-pilet.pl:1.7
--- packages/nagios-plugin-check_id-pilet/check_id-pilet.pl:1.6 Fri Oct 16 11:48:11 2009
+++ packages/nagios-plugin-check_id-pilet/check_id-pilet.pl Fri Jan 15 14:57:44 2010
@@ -114,8 +114,8 @@
for my $t (@tickets) {
print "check: $t->{start}; $t->{end}\n" if $verbose;
if ($t->{start} > $now) {
- # ticket in the future, check if it's start period fits to critical range
- if ($t->{start} - $now < $crit) {
+ # ticket in the future, check if it's start period fits to warning range
+ if ($t->{start} - $now < $warn) {
print "found ticket from future\n" if $verbose;
my $tm = localtime($t->{end});
$p->nagios_exit(OK, "Ticket '$t->{type}' expires on $tm");
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_id-pilet/check_id-pilet.pl?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list