[Nagiosplug-checkins] nagiosplug/plugins check_ide-smart.c,1.4,1.5
Ton Voon
tonvoon at users.sourceforge.net
Mon Nov 29 16:26:07 CET 2004
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11213
Modified Files:
check_ide-smart.c
Log Message:
Capitalized some error messages
Index: check_ide-smart.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ide-smart.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- check_ide-smart.c 22 Aug 2003 06:22:37 -0000 1.4
+++ check_ide-smart.c 30 Nov 2004 00:25:21 -0000 1.5
@@ -160,7 +160,7 @@
args[3] = 1;
if (ioctl (fd, HDIO_DRIVE_CMD, &args)) {
e = errno;
- printf (_("Critical: SMART_READ_VALUES: %s\n"), strerror (errno));
+ printf (_("CRITICAL: SMART_READ_VALUES: %s\n"), strerror (errno));
return e;
}
memcpy (values, args + 4, 512);
@@ -225,14 +225,14 @@
}
switch (status) {
case PREFAILURE:
- printf (_("Critical: %d Harddrive PreFailure%cDetected! %d/%d tests failed.\n"),
+ printf (_("CRITICAL: %d Harddrive PreFailure%cDetected! %d/%d tests failed.\n"),
prefailure,
prefailure > 1 ? 's' : ' ',
failed,
total);
break;
case ADVISORY:
- printf (_("Warning: %d Harddrive Advisor%s Detected. %d/%d tests failed.\n"),
+ printf (_("WARNING: %d Harddrive Advisor%s Detected. %d/%d tests failed.\n"),
advisory,
advisory > 1 ? "ies" : "y",
failed,
@@ -320,7 +320,7 @@
if (ioctl (fd, HDIO_DRIVE_CMD, &args)) {
e = errno;
if (show_error) {
- printf (_("Critical: %s: %s\n"), smart_command[command].text, strerror (errno));
+ printf (_("CRITICAL: %s: %s\n"), smart_command[command].text, strerror (errno));
}
}
return e;
@@ -337,7 +337,7 @@
args[3] = 1;
if (ioctl (fd, HDIO_DRIVE_CMD, &args)) {
e = errno;
- printf (_("Critical: SMART_READ_THRESHOLDS: %s\n"), strerror (errno));
+ printf (_("CRITICAL: SMART_READ_THRESHOLDS: %s\n"), strerror (errno));
return e;
}
memcpy (thresholds, args + 4, 512);
@@ -450,12 +450,12 @@
fd = open (device, O_RDONLY);
if (fd < 0) {
- printf (_("Critical: Couldn't open device: %s\n"), strerror (errno));
+ printf (_("CRITICAL: Couldn't open device: %s\n"), strerror (errno));
return 2;
}
if (smart_cmd_simple (fd, SMART_CMD_ENABLE, 0, TRUE)) {
- printf (_("Critical: SMART_CMD_ENABLE\n"));
+ printf (_("CRITICAL: SMART_CMD_ENABLE\n"));
return 2;
}
More information about the Commits
mailing list