Package: nagios-plugins-basic
Version: 1.4.15-3squeeze1
Severity: important


The check_ide_smart plugin does not work with many disks:

# /usr/lib64/nagios/plugins/check_ide_smart /dev/sda      
CRITICAL - SMART_ENABLE: Invalid argument
CRITICAL - SMART_CMD_ENABLE

But they DO support SMART and "smartctl --all /dev/sda" shows the normal report.
The last lines of strace are:

open("/dev/sda", O_RDONLY)              = 3
ioctl(3, 0x31f, 0x7fff8b7d6980)         = -1 EINVAL (Invalid argument)
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f32a5430000
write(1, "CRITICAL - SMART_ENABLE: Invalid"..., 42CRITICAL - SMART_ENABLE: 
Invalid argument
) = 42
write(1, "CRITICAL - SMART_CMD_ENABLE\n", 28CRITICAL - SMART_CMD_ENABLE
) = 28
exit_group(2)                           = ?

Searching the net I found various similar reports but none with a solution.
The closest one is:
 https://bugzilla.novell.com/show_bug.cgi?id=640368

Any ideas?

Thanks,
 Andy.

-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=POSIX (charmap=UTF-8) (ignored: LC_ALL set 
to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nagios-plugins-basic depends on:
ii  iputils-ping           3:20100418-3      Tools to test the reachability of 
ii  libc6                  2.11.3-4          Embedded GNU C Library: Shared lib
ii  libssl0.9.8            0.9.8o-4squeeze13 SSL shared libraries
ii  procps                 1:3.2.8-9squeeze1 /proc file system utilities
ii  ucf                    3.0025+nmu1       Update Configuration File: preserv

nagios-plugins-basic recommends no packages.

Versions of packages nagios-plugins-basic suggests:
pn  nagios3                       <none>     (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to