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
This commit is contained in:
Damien Duponchelle 2010-06-23 09:50:21 +00:00
parent 17cd7bba95
commit 1caeea446f
2 changed files with 10 additions and 7 deletions

View File

@ -90,11 +90,14 @@ print $opt_o;
exit $opt_s; exit $opt_s;
sub print_usage () { sub print_usage () {
print "Usage:"; print "Usage: $PROGNAME -s 2 -o 'This service is CRITICAL'\n";
print "$PROGNAME\n"; print " -s (--status) Value between 0 and 3 to return the Nagios status (Required)\n";
print " -s (--status) status that must be returned [0-3]\n"; print " 0 returns OK status\n";
print " -o (--output) output that must be returned\n"; print " 1 returns WARNING status\n";
print " -h (--help) usage help\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 () { sub print_help () {

View File

@ -210,10 +210,10 @@ sub print_usage () {
print " -H (--hostname) Hostname to query (Required)\n"; print " -H (--hostname) Hostname to query (Required)\n";
print " -w (--warning) Threshold pair (Default: 200,20%)\n"; print " -w (--warning) Threshold pair (Default: 200,20%)\n";
print " -c (--critical) Threshold pair (Default: 500,40%)\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 " -i Interval between ping (Default: 1s)\n";
print " -V (--version) Plugin version\n"; print " -V (--version) Plugin version\n";
print " -h (--help) usage help\n"; print " -h (--help) Usage help\n";
} }
sub print_help () { sub print_help () {