summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 827e17f)
raw | patch | inline | side by side (parent: 827e17f)
author | Ethan Galstad <egalstad@users.sourceforge.net> | |
Tue, 13 Aug 2002 03:18:16 +0000 (03:18 +0000) | ||
committer | Ethan Galstad <egalstad@users.sourceforge.net> | |
Tue, 13 Aug 2002 03:18:16 +0000 (03:18 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@70 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_game.c | patch | blob | history |
diff --git a/plugins/check_game.c b/plugins/check_game.c
index 63d1be628e2122c6b7de9a27ba7816f72b166123..19f10b120cd9e7410b8ce72488f37f652dbc4427 100644 (file)
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
char game_type[MAX_INPUT_BUFFER];
char port[MAX_INPUT_BUFFER];
+int qstat_game_players_max = 4;
+int qstat_game_players = 5;
int qstat_game_field = 2;
int qstat_map_field = 3;
int qstat_ping_field = 5;
result = STATE_CRITICAL;
}
else {
- printf ("OK: %s (%s), Ping: %s ms\n", ret[qstat_game_field],
- ret[qstat_map_field], ret[qstat_ping_field]);
+ printf ("OK: %s/%s %s (%s), Ping: %s ms\n",
+ ret[qstat_game_players_max],
+ ret[qstat_game_players],
+ ret[qstat_game_field],
+ ret[qstat_map_field],
+ ret[qstat_ping_field]);
}
/* close the pipe */