First of all, download the latest version of HDSentinel on your server and extract the archive:
wget --no-check-certificate https://www.hdsentinel.com/hdslin/hdsentinel-019c-x64.gz
gunzip hdsentinel-019c-x64.gz && rm -f hdsentinel-019c-x64.gz && ./hdsentinel-019c-x64 -h
For more options, visit: https://www.hdsentinel.com/hard_disk_sentinel_linux.php