mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 13:45:18 +02:00
remove bug in check_centreon_snmp_cpu : warning and critical level not supported
git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@5472 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
3d0bc878f2
commit
6319b60f16
@ -82,8 +82,8 @@ if (!$opt_H) {
|
|||||||
my $snmp = "1";
|
my $snmp = "1";
|
||||||
$snmp = $opt_v if ($opt_v && $opt_v =~ /^[0-9]$/);
|
$snmp = $opt_v if ($opt_v && $opt_v =~ /^[0-9]$/);
|
||||||
|
|
||||||
$opt_c = 95 if (defined($opt_c) || !$opt_c);
|
$opt_c = 95 if (!defined($opt_c) || !$opt_c);
|
||||||
$opt_w = 95 if (defined($opt_w) || !$opt_w);
|
$opt_w = 90 if (!defined($opt_w) || !$opt_w);
|
||||||
|
|
||||||
if ($snmp eq "3") {
|
if ($snmp eq "3") {
|
||||||
if (!$opt_u) {
|
if (!$opt_u) {
|
||||||
@ -171,10 +171,12 @@ exit $ERRORS{$status};
|
|||||||
sub print_usage () {
|
sub print_usage () {
|
||||||
print "\nUsage:\n";
|
print "\nUsage:\n";
|
||||||
print "$PROGNAME\n";
|
print "$PROGNAME\n";
|
||||||
|
print "This Plugin is design for return CPU percent on windows Serveurs (1 min Average)\n";
|
||||||
|
print "\n";
|
||||||
print " -H (--hostname) Hostname to query - (required)\n";
|
print " -H (--hostname) Hostname to query - (required)\n";
|
||||||
print " -C (--community) SNMP read community (defaults to public,\n";
|
print " -C (--community) SNMP read community (defaults to public,\n";
|
||||||
print " -c (--critical) Three critical tresholds (defaults : 2,4,6)\n";
|
print " -c (--critical) Three critical tresholds (defaults : 95)\n";
|
||||||
print " -w (--warning) Three warning tresholds (defaults : 1,3,5)\n";
|
print " -w (--warning) Three warning tresholds (defaults : 90)\n";
|
||||||
print " -v (--snmp_version) 1 for SNMP v1 (default)\n";
|
print " -v (--snmp_version) 1 for SNMP v1 (default)\n";
|
||||||
print " 2 for SNMP v2c\n";
|
print " 2 for SNMP v2c\n";
|
||||||
print " -k (--key) snmp V3 key\n";
|
print " -k (--key) snmp V3 key\n";
|
||||||
@ -186,8 +188,8 @@ sub print_usage () {
|
|||||||
|
|
||||||
sub print_help () {
|
sub print_help () {
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print "# Copyright (c) 2004-2007 Merethis #\n";
|
print "# Copyright (c) 2004-2008 Merethis #\n";
|
||||||
print "# Bugs to http://bugs.oreon-project.org/ #\n";
|
print "# Bugs to http://trac.centreon.com/ #\n";
|
||||||
print "##############################################\n";
|
print "##############################################\n";
|
||||||
print_usage();
|
print_usage();
|
||||||
print "\n";
|
print "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user