Files
proxmox-snmp/snmp-smart-status.sh
Prins Geryha 18c6f05780 Permission fix and SMART changed method.
Switched from root folder to opt because of permission issues with root. Fixed SMART status by switching from tail to grep method.
2022-08-17 19:38:25 +02:00

9 lines
141 B
Bash

#!/bin/bash
if [ "$1" = "-g" ]
then
echo .1.3.6.1.2.1.25.1.10
echo STRING
smartctl -H /dev/sda | grep "PASSED" | nawk '{print $6}'
fi
exit 0