updates copyright date
git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@11631 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
615fc0a245
commit
e17af0c94c
|
@ -1,5 +1,5 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -54,7 +54,7 @@ if (eval "require Config::IniFiles" ) {
|
||||||
exit $ERRORS{'UNKNOWN'};
|
exit $ERRORS{'UNKNOWN'};
|
||||||
}
|
}
|
||||||
|
|
||||||
# On défini une version pour les vérifications
|
# On d<EFBFBD>fini une version pour les v<>rifications
|
||||||
#$VERSION = do { my @r = (q$Revision: XXX $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
|
#$VERSION = do { my @r = (q$Revision: XXX $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
|
||||||
|
|
||||||
our @ISA = qw(Exporter);
|
our @ISA = qw(Exporter);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -254,7 +254,7 @@ sub print_usage () {
|
||||||
}
|
}
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -102,7 +102,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -218,7 +218,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -152,7 +152,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -237,7 +237,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -216,7 +216,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -282,7 +282,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -260,7 +260,7 @@ sub print_usage () {
|
||||||
}
|
}
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
# nagios: -epn
|
# nagios: -epn
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -266,7 +266,7 @@ exit($ERRORS{$status});
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -233,7 +233,7 @@ sub print_usage () {
|
||||||
}
|
}
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -179,14 +179,14 @@ if ($opt_w && $opt_w =~ /^([0-9]+)(.)[Bb]$/) {
|
||||||
# MB applies to free space so --crit must be lower than --warn
|
# MB applies to free space so --crit must be lower than --warn
|
||||||
if ($criticalMB == $warningMB) {
|
if ($criticalMB == $warningMB) {
|
||||||
if ($criticalMB && ($critical >= $warning)) {
|
if ($criticalMB && ($critical >= $warning)) {
|
||||||
print "(--crit) must be inferior to (--warn) when using absolute size";
|
print "(--crit) must be inferior to (--warn) when using absolute size";
|
||||||
print_usage();
|
print_usage();
|
||||||
exit $ERRORS{'OK'};
|
exit $ERRORS{'OK'};
|
||||||
}
|
}
|
||||||
if (!$criticalMB && ($critical <= $warning)) {
|
if (!$criticalMB && ($critical <= $warning)) {
|
||||||
print "(--crit) must be superior to (--warn)";
|
print "(--crit) must be superior to (--warn)";
|
||||||
print_usage();
|
print_usage();
|
||||||
exit $ERRORS{'OK'};
|
exit $ERRORS{'OK'};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print "(--crit) and (--warn) must both use either percent or absolute sizes";
|
print "(--crit) and (--warn) must both use either percent or absolute sizes";
|
||||||
|
@ -472,7 +472,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -626,7 +626,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://trac.centreon.com #\n";
|
print "# Bugs to http://trac.centreon.com #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -180,7 +180,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
@ -211,7 +211,7 @@ sub print_usage () {
|
||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2010 Centreon #\n";
|
print "# Copyright (c) 2004-2011 Centreon #\n";
|
||||||
print "# Bugs to http://forge.centreon.com/ #\n";
|
print "# Bugs to http://forge.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright 2004-2010 MERETHIS
|
# Copyright 2004-2011 MERETHIS
|
||||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||||
# GPL Licence 2.0.
|
# GPL Licence 2.0.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue