summaryrefslogtreecommitdiffstats
path: root/plugins/check_ups.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ups.c')
-rw-r--r--plugins/check_ups.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index 7f88ec3..0e23c53 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -396,20 +396,20 @@ get_ups_variable (const char *varname, char *buf, size_t buflen)
396 ptr = temp_buffer + strlen (varname) + 5; 396 ptr = temp_buffer + strlen (varname) + 5;
397 397
398 if (!strcmp (ptr, "NOT-SUPPORTED")) { 398 if (!strcmp (ptr, "NOT-SUPPORTED")) {
399 printf ("Error: Variable '%s' is not supported\n", varname); 399 printf ("CRITICAL - Variable '%s' is not supported\n", varname);
400 return ERROR; 400 return ERROR;
401 } 401 }
402 402
403 if (!strcmp (ptr, "DATA-STALE")) { 403 if (!strcmp (ptr, "DATA-STALE")) {
404 printf ("Error: UPS data is stale\n"); 404 printf ("CRITICAL - UPS data is stale\n");
405 return ERROR; 405 return ERROR;
406 } 406 }
407 407
408 if (!strcmp (ptr, "UNKNOWN-UPS")) { 408 if (!strcmp (ptr, "UNKNOWN-UPS")) {
409 if (ups_name) 409 if (ups_name)
410 printf ("Error: UPS '%s' is unknown\n", ups_name); 410 printf ("CRITICAL - UPS '%s' is unknown\n", ups_name);
411 else 411 else
412 printf ("Error: UPS is unknown\n"); 412 printf ("CRITICAL - UPS is unknown\n");
413 return ERROR; 413 return ERROR;
414 } 414 }
415 415