summaryrefslogtreecommitdiffstats
path: root/plugins/check_game.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_game.c')
-rw-r--r--plugins/check_game.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_game.c b/plugins/check_game.c
index 8b2a6c42..3a8b9f57 100644
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
@@ -67,7 +67,7 @@ main (int argc, char **argv)
67 67
68// result = process_arguments (argc, argv); 68// result = process_arguments (argc, argv);
69 69
70 if (process_arguments (argc, argv) == ERROR) 70 if (process_arguments (argc, argv) != OK)
71 usage (_("check_game: could not parse arguments\n")); 71 usage (_("check_game: could not parse arguments\n"));
72 72
73/* if (result != OK) { 73/* if (result != OK) {
@@ -116,7 +116,7 @@ main (int argc, char **argv)
116 */ 116 */
117 117
118 if (!strncmp (input_buffer, "unknown option", 14)) { 118 if (!strncmp (input_buffer, "unknown option", 14)) {
119 printf (_("ERROR: Host type parameter incorrect!\n")); 119 printf (_("CRITICAL - Host type parameter incorrect!\n"));
120 result = STATE_CRITICAL; 120 result = STATE_CRITICAL;
121 return result; 121 return result;
122 } 122 }
@@ -136,15 +136,15 @@ main (int argc, char **argv)
136 } 136 }
137 137
138 if (strstr (ret[2], QSTAT_HOST_ERROR)) { 138 if (strstr (ret[2], QSTAT_HOST_ERROR)) {
139 printf ("ERROR: Host not found\n"); 139 printf ("CRITICAL - Host not found\n");
140 result = STATE_CRITICAL; 140 result = STATE_CRITICAL;
141 } 141 }
142 else if (strstr (ret[2], QSTAT_HOST_DOWN)) { 142 else if (strstr (ret[2], QSTAT_HOST_DOWN)) {
143 printf ("ERROR: Game server down or unavailable\n"); 143 printf ("CRITICAL - Game server down or unavailable\n");
144 result = STATE_CRITICAL; 144 result = STATE_CRITICAL;
145 } 145 }
146 else if (strstr (ret[2], QSTAT_HOST_TIMEOUT)) { 146 else if (strstr (ret[2], QSTAT_HOST_TIMEOUT)) {
147 printf ("ERROR: Game server timeout\n"); 147 printf ("CRITICAL - Game server timeout\n");
148 result = STATE_CRITICAL; 148 result = STATE_CRITICAL;
149 } 149 }
150 else { 150 else {