https://bugzilla.novell.com/show_bug.cgi?id=640368
https://bugzilla.novell.com/show_bug.cgi?id=640368#c6
--- Comment #6 from Lars Vogdt
From check_ide_smart.c (nagios-plugins-1.4.15):
int smart_cmd_simple (int fd, enum SmartCommand command, __u8 val0, char show_error) { int e = 0; __u8 args[4]; args[0] = WIN_SMART; args[1] = val0; args[2] = smart_command[command].value; args[3] = 0; if (ioctl (fd, HDIO_DRIVE_CMD, &args)) { e = errno; if (show_error) { printf (_("CRITICAL - %s: %s\n"), smart_command[command].text, strerror (errno)); } } return e; } [...] if (smart_cmd_simple (fd, SMART_CMD_ENABLE, 0, TRUE)) { printf (_("CRITICAL - SMART_CMD_ENABLE\n")); return STATE_CRITICAL; } [...] --------------------------------- from os_linux.cpp (smartmontools-5.42): [...] buff[2]=ATA_SMART_ENABLE; buff[1]=1; break; [...] if ((retval=ioctl(get_fd(), HDIO_DRIVE_TASK, buff))) { if (retval==-EINVAL) { pout("Error SMART Status command via HDIO_DRIVE_TASK failed"); pout("Rebuild older linux 2.2 kernels with HDIO_DRIVE_TASK support added\n"); } else syserror("Error SMART Status command failed"); return -1; } --------------------------------- Looks like the problem is the '0' (check_ide_smart) vs. '1' (os_linux.cpp) for the second value of the drive command. I'm preparing a test package... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.