Smart notification?

    • OMV 3.x
    • Smart notification?

      Hi,
      I set up two schedlued test for my HDDs but I never recieved any email.
      It's possible to set up that the test will send an email despite the result? It would be cool to recieve something like
      Test 1: OK

      after the jobs ends.
      Intel G4400 - Asrock H170M Pro4S - 8GB ram - Be Quiet Pure Power 11 400 CM - Nanoxia Deep Silence 4 - 2X6TB Seagate Ironwolf - 2x4TB WD RED
      OMV 4.1.26 - Kernel 4.19 - omvextrasorg 4.1.2
    • You can run a srcipt like this on a weekly/monthly basis using a cron job:

      Source Code

      1. #!/usr/local/bin/sh
      2. #
      3. # Place this in /bin/
      4. # Call: sh /bin/esmart.sh
      5. (
      6. echo "To: your.name@yourprovider.xx"
      7. echo "Subject: SMART Drive Results for all drives"
      8. echo " "
      9. ) > /var/cover
      10. smartctl -i -H -A -n standby -l error /dev/sda >> /var/cover
      11. smartctl -i -H -A -n standby -l error /dev/sdb >> /var/cover
      12. smartctl -i -H -A -n standby -l error /dev/sdc >> /var/cover
      13. # smartctl -i -H -A -n standby -l error /dev/ada3 >> /var/cover
      14. sendmail -t < /var/cover
      15. exit 0
      16. # Set idle mode to so it doesn't spin up.
      17. # Options -n standby
      18. # -i = Device Info
      19. # -H = Device Health
      20. # -A = Only Vendor specific SMART attributes
      21. # -l error = SMART Error Log
      Display All
      Odroid HC2 - armbian - OMV4.x | Asrock Q1900DC-ITX - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!:
    • So the smart function integrated in OMV doesn't send any notification? :(
      Also why run a script like that only once a week and not daily? Does it risk to hurt my hard drive to use too often?
      Intel G4400 - Asrock H170M Pro4S - 8GB ram - Be Quiet Pure Power 11 400 CM - Nanoxia Deep Silence 4 - 2X6TB Seagate Ironwolf - 2x4TB WD RED
      OMV 4.1.26 - Kernel 4.19 - omvextrasorg 4.1.2