summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5fe6a11)
raw | patch | inline | side by side (parent: 5fe6a11)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 30 Nov 2004 00:25:21 +0000 (00:25 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 30 Nov 2004 00:25:21 +0000 (00:25 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@955 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ide-smart.c | patch | blob | history |
index e1f1e747c046d6e44d56c62b955db3479b0d3b5c..06deb12aeed9ece129aac22e339ac1e063ef63a5 100644 (file)
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);
}
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,
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;
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);
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;
}