Proxmox and SMARTD

emanuelebruno

Renowned Member
May 1, 2012
143
7
83
Catania
emanuelebruno.it
Hi to all,
few days ago I have bought a new server from OVH with 2x2TB sata drives within PROXMOX 3.3 in raid 1 (software raid); I'm very happy because all the procedure for the configuration of the server was done from ovh (even software raid!).

Now I want to configure smartd so I have done the following steps:

nano /etc/default/smartmontools
Code:
enable_smart="/dev/sda /dev/sdb"sta
start_smartd=yes 
smartd_opts="--interval=1800"

nano /etc/smartd.conf
Code:
/dev/sda -m emanuelebruno@ilmioindirizzo.com -M test
/dev/sdb -m emanuelebruno@ilmioindirizzo.com -M test

/etc/init.d/smartmontools start

But the email test has not been sent after starting the service. I have tryed to send and email from the command line and it works:
mail -s "Hello World" emanuelebruno@ilmioindirizzo.com

Is there anybody can help me?
Have you any advice to configure smartd.conf file ?
 
Hi,
try to find some logs in MTA like exim or postfix.

Anyway, I just put this line found on internet to smartd.conf, it also runs some automatic tests on all drives on weekends

DEVICESCAN -d removable -n standby -m desired@email.com -M exec /usr/share/smartmontools/smartd-runner -s (S/../.././02|L/../../6/03)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!