summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_ide-smart.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/check_ide-smart.c b/plugins/check_ide-smart.c
index e1f1e74..06deb12 100644
--- a/plugins/check_ide-smart.c
+++ b/plugins/check_ide-smart.c
@@ -160,7 +160,7 @@ smart_read_values (int fd, values_t * values)
160 args[3] = 1; 160 args[3] = 1;
161 if (ioctl (fd, HDIO_DRIVE_CMD, &args)) { 161 if (ioctl (fd, HDIO_DRIVE_CMD, &args)) {
162 e = errno; 162 e = errno;
163 printf (_("Critical: SMART_READ_VALUES: %s\n"), strerror (errno)); 163 printf (_("CRITICAL: SMART_READ_VALUES: %s\n"), strerror (errno));
164 return e; 164 return e;
165 } 165 }
166 memcpy (values, args + 4, 512); 166 memcpy (values, args + 4, 512);
@@ -225,14 +225,14 @@ net_saint (values_t * p, thresholds_t * t)
225 } 225 }
226 switch (status) { 226 switch (status) {
227 case PREFAILURE: 227 case PREFAILURE:
228 printf (_("Critical: %d Harddrive PreFailure%cDetected! %d/%d tests failed.\n"), 228 printf (_("CRITICAL: %d Harddrive PreFailure%cDetected! %d/%d tests failed.\n"),
229 prefailure, 229 prefailure,
230 prefailure > 1 ? 's' : ' ', 230 prefailure > 1 ? 's' : ' ',
231 failed, 231 failed,
232 total); 232 total);
233 break; 233 break;
234 case ADVISORY: 234 case ADVISORY:
235 printf (_("Warning: %d Harddrive Advisor%s Detected. %d/%d tests failed.\n"), 235 printf (_("WARNING: %d Harddrive Advisor%s Detected. %d/%d tests failed.\n"),
236 advisory, 236 advisory,
237 advisory > 1 ? "ies" : "y", 237 advisory > 1 ? "ies" : "y",
238 failed, 238 failed,
@@ -320,7 +320,7 @@ smart_cmd_simple (int fd, enum SmartCommand command, __u8 val0,
320 if (ioctl (fd, HDIO_DRIVE_CMD, &args)) { 320 if (ioctl (fd, HDIO_DRIVE_CMD, &args)) {
321 e = errno; 321 e = errno;
322 if (show_error) { 322 if (show_error) {
323 printf (_("Critical: %s: %s\n"), smart_command[command].text, strerror (errno)); 323 printf (_("CRITICAL: %s: %s\n"), smart_command[command].text, strerror (errno));
324 } 324 }
325 } 325 }
326 return e; 326 return e;
@@ -337,7 +337,7 @@ smart_read_thresholds (int fd, thresholds_t * thresholds)
337 args[3] = 1; 337 args[3] = 1;
338 if (ioctl (fd, HDIO_DRIVE_CMD, &args)) { 338 if (ioctl (fd, HDIO_DRIVE_CMD, &args)) {
339 e = errno; 339 e = errno;
340 printf (_("Critical: SMART_READ_THRESHOLDS: %s\n"), strerror (errno)); 340 printf (_("CRITICAL: SMART_READ_THRESHOLDS: %s\n"), strerror (errno));
341 return e; 341 return e;
342 } 342 }
343 memcpy (thresholds, args + 4, 512); 343 memcpy (thresholds, args + 4, 512);
@@ -450,12 +450,12 @@ main (int argc, char *argv[])
450 fd = open (device, O_RDONLY); 450 fd = open (device, O_RDONLY);
451 451
452 if (fd < 0) { 452 if (fd < 0) {
453 printf (_("Critical: Couldn't open device: %s\n"), strerror (errno)); 453 printf (_("CRITICAL: Couldn't open device: %s\n"), strerror (errno));
454 return 2; 454 return 2;
455 } 455 }
456 456
457 if (smart_cmd_simple (fd, SMART_CMD_ENABLE, 0, TRUE)) { 457 if (smart_cmd_simple (fd, SMART_CMD_ENABLE, 0, TRUE)) {
458 printf (_("Critical: SMART_CMD_ENABLE\n")); 458 printf (_("CRITICAL: SMART_CMD_ENABLE\n"));
459 return 2; 459 return 2;
460 } 460 }
461 461