>> DEVICESCAN -a -n standby -s (S/../.././00|L/../../6/07) -m root -M test -M >> exec /usr/share/smartmontools/smartd-runner >> >> In the non-working machine, the daemon log says that smartmontoools >> succesfully sent the test mails, but in fact nothing was sent.
Curiously, if I just call smartd -d using the above line in /etc/smartd.conf, it reports that everything has gone well, while this one fails with explanation: ################################################################ # echo /dev/sda -m root -M test | smartd -c - -q onecheck smartd version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Opened configuration file <stdin> Drive: /dev/sda, implied '-a' Directive on line 1 of file <stdin> Configuration file <stdin> parsed. Device: /dev/sda, opened Device /dev/sda: using '-d sat' for ATA disk behind SAT layer. Device: /dev/sda, opened Device: /dev/sda, found in smartd database. Device: /dev/sda, is SMART capable. Adding to "monitor" list. Monitoring 0 ATA and 1 SCSI devices Executing test of mail to root ... Test of mail to root produced unexpected output (28 bytes) to STDOUT/STDERR: sh: mail: command not found Test of mail to root: failed (32-bit/8-bit exit status: 32512/127) Started with '-q onecheck' option. All devices sucessfully checked once. smartd is exiting (exit status 0) ################################################################ So the problem is that smartd wants a 'mail' program in the path. We have two problems here: 1) smartd problem: if a 'mail' program is not found, smartd does not signal any error with the above DEVICESCAN line 2) packaging problem: smartd requires a 'mail' program. I have one in my main box, which points to /usr/bin/bsd-mailx through /etc/alternatives. However, I have no such link in the other box, even though the bsd-mailx package is installed, same version. -- Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 315 2040 via G. Moruzzi 1, I-56124 Pisa Email: poto...@isti.cnr.it (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org