Put sources under /usr/local/src/. Place binaries under /usr/local/bin, libs under /usr/local/lib, etc.
/var/www./usr/local/binsudo node server in /var/www/wiki-jsThis line placed inside /etc/smartmontools/smartd.conf to send alerts to root, which is aliased to shokin@ncgr.org and anyone else that wants to add their name:
############################################################################
## monitor /dev/sda and /dev/sdb (which is the same as /dev/sdc)
/dev/sda -m root -d cciss,0 -a -s L/../.././02
/dev/sda -m root -d cciss,1 -a -s L/../.././02
/dev/sdb -m root -d cciss,0 -a -s L/../.././02
############################################################################
Enable and start smartd:
$ sudo systemctl enable smartd
$ sudo systemctl start smartd
And then status reports:
● smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
Loaded: loaded (/usr/lib/systemd/system/smartd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-03-19 16:22:48 MDT; 1min 54s ago
Docs: man:smartd(8)
man:smartd.conf(5)
Main PID: 93216 (smartd)
Status: "Next check of 3 devices will start at 16:52:48"
Tasks: 1
CGroup: /system.slice/smartd.service
└─93216 /usr/sbin/smartd -n -q never
Mar 19 16:22:45 fisher systemd[1]: Starting Self Monitoring and Reporting Technology (SMART) Daemon...
Mar 19 16:22:45 fisher smartd[93216]: smartd 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1062.1.2.el7.x86_64] (local build)
Mar 19 16:22:45 fisher smartd[93216]: Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
Mar 19 16:22:45 fisher smartd[93216]: Opened configuration file /etc/smartmontools/smartd.conf
Mar 19 16:22:45 fisher smartd[93216]: Configuration file /etc/smartmontools/smartd.conf parsed.
Mar 19 16:22:45 fisher smartd[93216]: Device: /dev/sda, type changed from 'sat,auto+cciss' to 'cciss'
Mar 19 16:22:45 fisher smartd[93216]: Device: /dev/sda [cciss_disk_00] [SCSI], opened
Mar 19 16:22:45 fisher smartd[93216]: Device: /dev/sda [cciss_disk_00] [SCSI], [HP EH0146FBQDC HPD5], lu id: 0x5000c5005fadf28b, S/N: 6XM2C8510000B334DSAS, 146 GB
Mar 19 16:22:46 fisher smartd[93216]: Device: /dev/sda [cciss_disk_00] [SCSI], is SMART capable. Adding to "monitor" list.
Mar 19 16:22:46 fisher smartd[93216]: Device: /dev/sda, type changed from 'sat,auto+cciss' to 'cciss'
Mar 19 16:22:46 fisher smartd[93216]: Device: /dev/sda [cciss_disk_01] [SCSI], opened
Mar 19 16:22:46 fisher smartd[93216]: Device: /dev/sda [cciss_disk_01] [SCSI], [HP EH0146FBQDC HPD5], lu id: 0x5000c50053f3d5d7, S/N: 6XM0QAJ90000B246B2T7, 146 GB
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sda [cciss_disk_01] [SCSI], is SMART capable. Adding to "monitor" list.
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sdb, type changed from 'sat,auto+cciss' to 'sat'
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sdb [cciss_disk_00] [SAT], opened
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sdb [cciss_disk_00] [SAT], VK0800GDJYA, S/N:BTWL429202ZC800RGN, WWN:5-5cd2e4-04b695c0e, FW:4IWVHPG1, 800 GB
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sdb [cciss_disk_00] [SAT], not found in smartd database.
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sdb [cciss_disk_00] [SAT], not capable of SMART Health Status check
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sdb [cciss_disk_00] [SAT], can't monitor Current_Pending_Sector count - no Attribute 197
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sdb [cciss_disk_00] [SAT], can't monitor Offline_Uncorrectable count - no Attribute 198
Mar 19 16:22:47 fisher smartd[93216]: Device: /dev/sdb [cciss_disk_00] [SAT], is SMART capable. Adding to "monitor" list.
Mar 19 16:22:47 fisher smartd[93216]: Monitoring 1 ATA/SATA, 2 SCSI/SAS and 0 NVMe devices
Mar 19 16:22:48 fisher systemd[1]: Started Self Monitoring and Reporting Technology (SMART) Daemon.