diff --git a/plugins/check_game.c b/plugins/check_game.c
index 9f9ff7d84fc6372f7ce91bc7d0428f53c4bad3c8..aede055d978c343534510168abe3e779ffbcbcea 100644 (file)
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
-/******************************************************************************
-*
-* This program is free software; you can redistribute it and/or modify
+/*****************************************************************************
+*
+* Nagios check_game plugin
+*
+* License: GPL
+* Copyright (c) 2002-2007 Nagios Plugins Development Team
+*
+* Last Modified: $Date$
+*
+* Description:
+*
+* This file contains the check_game plugin
+*
+* This plugin tests game server connections with the specified host.
+* using the qstat program
+*
+*
+* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 2 of the License, or
+* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
-*
+*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-*
+*
* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
* $Id$
+*
*****************************************************************************/
const char *progname = "check_game";
const char *revision = "$Revision$";
-const char *copyright = "2002-2005";
+const char *copyright = "2002-2007";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
return ERROR;
break;
default: /* args not parsable */
- usage_va(_("Unknown argument - %s"), optarg);
+ usage5();
}
}
printf (_("This plugin tests game server connections with the specified host."));
- printf ("\n\n");
+ printf ("\n\n");
print_usage ();
printf (_(UT_HELP_VRSN));
-
- printf (_("\
-<game> = Game type that is recognised by qstat (without the leading dash)\n\
-<ip_address> = The IP address of the device you wish to query\n\
- [port] = Optional port of which to connect\n\
- [game_field] = Field number in raw qstat output that contains game name\n\
- [map_field] = Field number in raw qstat output that contains map name\n\
- [ping_field] = Field number in raw qstat output that contains ping time\n"));
+
+ printf (" %s\n", "-p");
+ printf (" %s\n", _("Optional port of which to connect"));
+ printf (" %s\n", "gf");
+ printf (" %s\n", _("Field number in raw qstat output that contains game name"));
+ printf (" %s\n", "-mf");
+ printf (" %s\n", _("Field number in raw qstat output that contains map name"));
+ printf (" %s\n", "-pf");
+ printf (" %s\n", _("Field number in raw qstat output that contains ping time"));
printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
- printf (_("Notes:"));
-
- printf ("\n");
-
- printf (_("This plugin uses the 'qstat' command, the popular game server status query tool ."));
-
- printf ("\n");
+ printf ("%s\n", _("Notes:"));
- printf (_("If you don't have the package installed, you will need to download it from"));
-
- printf ("\n");
+ printf ("%s\n", _("This plugin uses the 'qstat' command, the popular game server status query tool ."));
- printf (_("http://www.activesw.com/people/steve/qstat.html before you can use this plugin."));
+ printf ("%s\n", _("If you don't have the package installed, you will need to download it from"));
- printf ("\n");
+ printf ("%s\n", _("http://www.activesw.com/people/steve/qstat.html before you can use this plugin."));
printf (_(UT_SUPPORT));
}