From: Scott H. <tal...@ne...> - 2010-08-12 00:00:00
|
Hello, I am running smartmontools 5.39.1 on Mac OS X 10.6. I have installed it via MacPorts (source compiler system), which has given it the configure args of: configure.args --mandir=${prefix}/share/man \ --enable-drivedb \ --enable-savestates \ --enable-attributelog \ --enable-sample ${prefix} in my case is /opt/local My issue is with logging. On OS X the syslog is called system.log. The smartd man page states that logging will get directed to FACILITY or daemon [default]. Probably defaulting to 'messages'. Currently, with the above install arguments, nothing is logged at all. The only way I know it may be working is that I have set up emails to be sent. The way MacPorts works is that it can only modify (for the most part) files within it's own ${prefix}. So editing syslog.conf is not the preferred way to solve this It would be an edit that has to be explained to all users who install smartmontools on Mac OS X through MacPorts. I would rather get smartmontools to log to the /var/log/system.log by default. smartd is started with a launchd (cron like system on BSD/OSX) item via this command: /opt/local/sbin/smartd -n /etc/syslog.conf has this relevant line: *.notice;authpriv,remoteauth,ftp,install,internal.none /var/log/system.log I believe that to solve this, I will need to alter the smartd -n command to add -l FACILITY, --logfacility=FACILITY though I am not certain which value I should add. Thanks for any pointers. -- Scott (* For off-list contact, replace talklists@ with scott@ *) |