Files
proxmox-snmp/snmp-smart-status.sh
Prins Geryha 761000c441 Added NVME SMART Status support
NVME disks are located elsewhere. Added command for nvme.
2022-08-17 20:50:23 +02:00

10 lines
211 B
Bash

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