~ubuntu-branches/ubuntu/precise/nagios-plugins/precise-proposed

« back to all changes in this revision

Viewing changes to plugins/check_game.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-09-27 00:49:25 UTC
  • mfrom: (12.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100927004925-r3x858jsbl2wa6dx
Tags: 1.4.15-2ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/control: keep on building with libradius1-dev to avoid pusing radiusclient-ng
    to main.
  - Don't depend on nagios-plugins-extra, we dont need qstat and fping in main.
  - debian/{control,rules}: add an enable hardened build for PIE.
    (Debian bug 542728).
  - Build with libmysqlclient-dev only.
  - debian/pluginconfig/nt.cfg: Fix syntax error. (LP: #595528)

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
 
301
301
  print_usage ();
302
302
 
303
 
  printf (_(UT_HELP_VRSN));
304
 
  printf (_(UT_EXTRA_OPTS));
 
303
  printf (UT_HELP_VRSN);
 
304
  printf (UT_EXTRA_OPTS);
305
305
 
306
306
  printf (" %s\n", "-p");
307
307
  printf ("    %s\n", _("Optional port of which to connect"));
312
312
  printf (" %s\n", "-pf");
313
313
  printf ("    %s\n", _("Field number in raw qstat output that contains ping time"));
314
314
 
315
 
  printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
 
315
  printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
316
316
 
317
317
  printf ("\n");
318
318
  printf ("%s\n", _("Notes:"));
319
319
  printf (" %s\n", _("This plugin uses the 'qstat' command, the popular game server status query tool."));
320
320
  printf (" %s\n", _("If you don't have the package installed, you will need to download it from"));
321
321
  printf (" %s\n", _("http://www.activesw.com/people/steve/qstat.html before you can use this plugin."));
322
 
#ifdef NP_EXTRA_OPTS
323
 
  printf ("\n");
324
 
  printf (_(UT_EXTRA_OPTS_NOTES));
325
 
#endif
326
322
 
327
 
  printf (_(UT_SUPPORT));
 
323
  printf (UT_SUPPORT);
328
324
}
329
325
 
330
326
 
332
328
void
333
329
print_usage (void)
334
330
{
335
 
  printf (_("Usage:"));
336
 
  printf (" %s <game> <ip_address> [-p port] [-gf game_field] [-mf map_field] [-pf ping_field]\n", progname);
 
331
  printf ("%s\n", _("Usage:"));
 
332
  printf (" %s [-hvV] [-P port] [-t timeout] [-g game_field] [-m map_field] [-p ping_field] [-G game-time] [-H hostname] <game> <ip_address>\n", progname);
337
333
}
338
334
 
339
335
/******************************************************************************