From 5bd37cb22b05eb783cd29b7caf8027ee59b272e1 Mon Sep 17 00:00:00 2001 From: Nicolas Cordier Date: Wed, 27 May 2009 14:04:04 +0000 Subject: [PATCH] complete help git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@8222 6bcd3966-0018-0410-8128-fd23d134de7e --- src/check_centreon_snmp_remote_storage | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/check_centreon_snmp_remote_storage b/src/check_centreon_snmp_remote_storage index 6b8668c0f..247cded9c 100644 --- a/src/check_centreon_snmp_remote_storage +++ b/src/check_centreon_snmp_remote_storage @@ -74,7 +74,7 @@ GetOptions "u=s" => \$opt_u, "username=s" => \$opt_u, "p=s" => \$opt_p, "password=s" => \$opt_p, "k=s" => \$opt_k, "key=s" => \$opt_k, - "P=s" => \$opt_P, "--snmp-port=s" => \$opt_P, + "P=s" => \$opt_P, "snmp-port=s" => \$opt_P, "V" => \$opt_V, "version" => \$opt_V, "s" => \$opt_s, "show" => \$opt_s, "v=s" => \$opt_v, "snmp=s" => \$opt_v, @@ -266,7 +266,7 @@ $Size = $result->{$OID_hrStorageSize.".".$partition }; $Used = $result->{$OID_hrStorageUsed.".".$partition }; -# Plugins var treatment +# Plugins var treatmen if (!$Size){ print "Disk CRITICAL - no output (-p number expected... it doesn't exist, try another disk - number\n"; @@ -341,11 +341,12 @@ sub print_usage () { print "\nUsage:\n"; print "$PROGNAME\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 (default: public)\n"; print " used with SNMP v1 and v2c\n"; print " -v (--snmp_version) 1 for SNMP v1 (default)\n"; print " 2 for SNMP v2c\n"; - print " -d (--disk) Set the disk (number expected) ex: 1, 2,... (defaults to 2 )\n"; + print " -P (--snmp-port) SNMP port (default: 161)\n"; + print " -d (--disk) Set the disk (number expected) ex: 1, 2,... (default: 2 )\n"; print " -n (--name) Allows to use disk name with option -d instead of disk oid index\n"; print " (ex: -d \"C:\" -n, -d \"E:\" -n, -d \"Swap Memory\" -n, -d \"Real Memory\" -n\n"; print " (choose an unique expression for each disk)\n";