Hey there,
So, I got smartmontools all setup, even configured periodic to send me daily reports, but smartd isn't logging anything locally.
According to the man page, it's supposed to poll every 30 minutes and by default log to the daemon facility of syslog.
What's unlcear, is if I should see an entry every 30 minutes that shows that it polled or only see a log entry if there are errors or changes to the smart status of the disk?
Normally I'd expect a log entry just to show that the service is doing what it's supposed to, not just for errors. But the man page is a bit fuzzy.
Relevant smartd man page snippet:
I'm assuming here that "-l" is optional and if not present, smartd will do as indicated, polling every 30 min and log the results to the facility "daemon", as indicated above (which in turn should go to messages or syslog logs).
Is this right?
This is my smartd.conf:
Looking at the default syslog.conf however, there is no daemon facility:
So, I added a daemon facility like so:
And I also hupped syslogd so that the new settings would take.
Any helpful hints are appreciated!
So, I got smartmontools all setup, even configured periodic to send me daily reports, but smartd isn't logging anything locally.
According to the man page, it's supposed to poll every 30 minutes and by default log to the daemon facility of syslog.
What's unlcear, is if I should see an entry every 30 minutes that shows that it polled or only see a log entry if there are errors or changes to the smart status of the disk?
Normally I'd expect a log entry just to show that the service is doing what it's supposed to, not just for errors. But the man page is a bit fuzzy.
Relevant smartd man page snippet:
Code:
smartd will attempt to enable SMART monitoring on ATA devices (equiva-
lent to smartctl -s on) and polls these and SCSI devices every 30 min-
utes (configurable), logging SMART errors and changes of SMART
Attributes via the SYSLOG interface. The default location for these
SYSLOG notifications and warnings is system-dependent (typically
/var/log/messages or /var/log/syslog). To change this default loca-
tion, please see the '-l' command-line option described below.
-l FACILITY, --logfacility=FACILITY
Uses syslog facility FACILITY to log the messages from smartd.
Here FACILITY is one of local0, local1, ..., local7, or daemon
[default]. If this command-line option is not used, then by
default messages from smartd are logged to the facility daemon.
I'm assuming here that "-l" is optional and if not present, smartd will do as indicated, polling every 30 min and log the results to the facility "daemon", as indicated above (which in turn should go to messages or syslog logs).
Is this right?
This is my smartd.conf:
Code:
DEVICESCAN -a -s (S/../.././02|L/../../6/03)
Looking at the default syslog.conf however, there is no daemon facility:
Code:
[tim@nas1 ~]$ cat /etc/syslog.conf
# $FreeBSD: src/etc/syslog.conf,v 1.30.2.1 2009/08/03 08:13:06 kensmith Exp $
# extraneous comments removed
*.err;kern.warning;auth.notice;mail.crit /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
security.* /var/log/security
auth.info;authpriv.info /var/log/auth.log
mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
ftp.info /var/log/xferlog
cron.* /var/log/cron
*.=debug /var/log/debug.log
*.emerg *
!ppp
*.* /var/log/ppp.log
!*
So, I added a daemon facility like so:
Code:
daemon.*;*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
And I also hupped syslogd so that the new settings would take.
Any helpful hints are appreciated!