From 1caeea446f041235ea83df2ab9c95a550ee98d47 Mon Sep 17 00:00:00 2001 From: Damien Duponchelle Date: Wed, 23 Jun 2010 09:50:21 +0000 Subject: [PATCH] Update helps for check_centreon_dummy and check_centreon_ping. git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@10588 6bcd3966-0018-0410-8128-fd23d134de7e --- centreon-plugins/src/check_centreon_dummy | 13 ++++++++----- centreon-plugins/src/check_centreon_ping | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/centreon-plugins/src/check_centreon_dummy b/centreon-plugins/src/check_centreon_dummy index 50af59aab..de12c4779 100644 --- a/centreon-plugins/src/check_centreon_dummy +++ b/centreon-plugins/src/check_centreon_dummy @@ -90,11 +90,14 @@ print $opt_o; exit $opt_s; sub print_usage () { - print "Usage:"; - print "$PROGNAME\n"; - print " -s (--status) status that must be returned [0-3]\n"; - print " -o (--output) output that must be returned\n"; - print " -h (--help) usage help\n"; + print "Usage: $PROGNAME -s 2 -o 'This service is CRITICAL'\n"; + print " -s (--status) Value between 0 and 3 to return the Nagios status (Required)\n"; + print " 0 returns OK status\n"; + print " 1 returns WARNING status\n"; + print " 2 returns CRITICAL status\n"; + print " 3 returns UNKNOWN status\n"; + print " -o (--output) Output message that must be returned (Default: 'OK')\n"; + print " -h (--help) Usage help\n"; } sub print_help () { diff --git a/centreon-plugins/src/check_centreon_ping b/centreon-plugins/src/check_centreon_ping index cf5b0295b..0ce13a03f 100644 --- a/centreon-plugins/src/check_centreon_ping +++ b/centreon-plugins/src/check_centreon_ping @@ -210,10 +210,10 @@ sub print_usage () { print " -H (--hostname) Hostname to query (Required)\n"; print " -w (--warning) Threshold pair (Default: 200,20%)\n"; print " -c (--critical) Threshold pair (Default: 500,40%)\n"; - print " -n (--number) number of ICMP ECHO packets to send (Default: 1)\n"; + print " -n (--number) Number of ICMP ECHO packets to send (Default: 1)\n"; print " -i Interval between ping (Default: 1s)\n"; print " -V (--version) Plugin version\n"; - print " -h (--help) usage help\n"; + print " -h (--help) Usage help\n"; } sub print_help () {