diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_game.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/check_game.c b/plugins/check_game.c index 58014c3e..d078e4b5 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c | |||
@@ -130,16 +130,17 @@ int main(int argc, char **argv) { | |||
130 | printf(_("CRITICAL - Game server timeout\n")); | 130 | printf(_("CRITICAL - Game server timeout\n")); |
131 | result = STATE_CRITICAL; | 131 | result = STATE_CRITICAL; |
132 | } else { | 132 | } else { |
133 | printf("OK: %s/%s %s (%s), Ping: %s ms|%s %s\n", ret[config.qstat_game_players], ret[config.qstat_game_players_max], ret[config.qstat_game_field], | 133 | printf("OK: %s/%s %s (%s), Ping: %s ms|%s %s\n", ret[config.qstat_game_players], ret[config.qstat_game_players_max], |
134 | ret[config.qstat_map_field], ret[config.qstat_ping_field], | 134 | ret[config.qstat_game_field], ret[config.qstat_map_field], ret[config.qstat_ping_field], |
135 | perfdata("players", atol(ret[config.qstat_game_players]), "", false, 0, false, 0, true, 0, true, atol(ret[config.qstat_game_players_max])), | 135 | perfdata("players", atol(ret[config.qstat_game_players]), "", false, 0, false, 0, true, 0, true, |
136 | atol(ret[config.qstat_game_players_max])), | ||
136 | fperfdata("ping", strtod(ret[config.qstat_ping_field], NULL), "", false, 0, false, 0, true, 0, false, 0)); | 137 | fperfdata("ping", strtod(ret[config.qstat_ping_field], NULL), "", false, 0, false, 0, true, 0, false, 0)); |
137 | } | 138 | } |
138 | 139 | ||
139 | exit(result); | 140 | exit(result); |
140 | } | 141 | } |
141 | 142 | ||
142 | #define players_field_index 129 | 143 | #define players_field_index 129 |
143 | #define max_players_field_index 130 | 144 | #define max_players_field_index 130 |
144 | 145 | ||
145 | check_game_config_wrapper process_arguments(int argc, char **argv) { | 146 | check_game_config_wrapper process_arguments(int argc, char **argv) { |
@@ -284,7 +285,8 @@ void print_help(void) { | |||
284 | 285 | ||
285 | printf(UT_HELP_VRSN); | 286 | printf(UT_HELP_VRSN); |
286 | printf(UT_EXTRA_OPTS); | 287 | printf(UT_EXTRA_OPTS); |
287 | 288 | printf(" -H, --hostname=ADDRESS\n" | |
289 | " Host name, IP Address, or unix socket (must be an absolute path)\n"); | ||
288 | printf(" %s\n", "-p"); | 290 | printf(" %s\n", "-p"); |
289 | printf(" %s\n", _("Optional port of which to connect")); | 291 | printf(" %s\n", _("Optional port of which to connect")); |
290 | printf(" %s\n", "gf"); | 292 | printf(" %s\n", "gf"); |