diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 (GMT) |
commit | caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch) | |
tree | 118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_game.c | |
parent | 16f53e0717b60660145388b0feb351628f606211 (diff) | |
download | monitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz |
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_game.c')
-rw-r--r-- | plugins/check_game.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_game.c b/plugins/check_game.c index 4bc57c8..2a23b74 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c | |||
@@ -105,7 +105,7 @@ main (int argc, char **argv) | |||
105 | /* was thinking about running qstat without any options, capturing the | 105 | /* was thinking about running qstat without any options, capturing the |
106 | -default line, parsing it & making an array of all know server types | 106 | -default line, parsing it & making an array of all know server types |
107 | but thought this would be too much hassle considering this is a tool | 107 | but thought this would be too much hassle considering this is a tool |
108 | for intelligent sysadmins (ha). Could put a static array of known | 108 | for intelligent sysadmins (ha). Could put a static array of known |
109 | server types in a header file but then we'd be limiting ourselves | 109 | server types in a header file but then we'd be limiting ourselves |
110 | 110 | ||
111 | In the end, I figured I'd simply let an error occur & then trap it | 111 | In the end, I figured I'd simply let an error occur & then trap it |
@@ -139,10 +139,10 @@ main (int argc, char **argv) | |||
139 | result = STATE_CRITICAL; | 139 | result = STATE_CRITICAL; |
140 | } | 140 | } |
141 | else { | 141 | else { |
142 | printf ("OK: %s/%s %s (%s), Ping: %s ms|%s %s\n", | 142 | printf ("OK: %s/%s %s (%s), Ping: %s ms|%s %s\n", |
143 | ret[qstat_game_players], | 143 | ret[qstat_game_players], |
144 | ret[qstat_game_players_max], | 144 | ret[qstat_game_players_max], |
145 | ret[qstat_game_field], | 145 | ret[qstat_game_field], |
146 | ret[qstat_map_field], | 146 | ret[qstat_map_field], |
147 | ret[qstat_ping_field], | 147 | ret[qstat_ping_field], |
148 | perfdata ("players", atol(ret[qstat_game_players]), "", | 148 | perfdata ("players", atol(ret[qstat_game_players]), "", |
@@ -345,7 +345,7 @@ print_usage (void) | |||
345 | * Test Cases: | 345 | * Test Cases: |
346 | * | 346 | * |
347 | * ./check_game --players 7 -p 8 --map 5 qs 67.20.190.61 26000 | 347 | * ./check_game --players 7 -p 8 --map 5 qs 67.20.190.61 26000 |
348 | * | 348 | * |
349 | * qstat -raw , -qs 67.20.190.61 | 349 | * qstat -raw , -qs 67.20.190.61 |
350 | * ==> QS,67.20.190.61,Nightmare.fintek.ca,67.20.190.61:26000,3,e2m1,6,0,83,0 | 350 | * ==> QS,67.20.190.61,Nightmare.fintek.ca,67.20.190.61:26000,3,e2m1,6,0,83,0 |
351 | * | 351 | * |