Files
proxmox-snmp/snmp-smart-status.sh
2020-06-19 21:14:25 +02:00

9 lines
135 B
Bash

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