aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ide-smart.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2004-11-30 00:25:21 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2004-11-30 00:25:21 +0000
commit923dddc374cb21a259e8dd1e75f03ebd45c395da (patch)
tree87d6b019a8997c4e1af3b91275528e127e1e8bbb /plugins/check_ide-smart.c
parent5fe6a11cc78dded4ca1b05400ce0da4c0967cbb2 (diff)
downloadmonitoring-plugins-923dddc374cb21a259e8dd1e75f03ebd45c395da.tar.gz
Capitalized some error messages
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@955 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ide-smart.c')
-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 e1f1e747..06deb12a 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)
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 @@ net_saint (values_t * p, thresholds_t * t)
}
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 @@ smart_cmd_simple (int fd, enum SmartCommand command, __u8 val0,
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 @@ smart_read_thresholds (int fd, thresholds_t * thresholds)
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 @@ main (int argc, char *argv[])
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;
}