How to monitor Linux servers with SNMP & OIDs
Checking S.M.A.R.T. management tools are working properly
nas raid status: .1.3.6.1.4.1.6574.3.1.1.3.0
nas available disk: .1.3.6.1.4.1.6574.3.1.1.5.0
nas & hyperV smart check: .1.3.6.1.4.1.6574.5.1.1.9
ups status: .1.3.6.1.4.1.318.1.1.1.4.1.1.0
linux memory free: .1.3.6.1.4.1.2021.4.11.0
linux available disk space: .1.3.6.1.4.1.2021.9.1.7.1
linux cpu load over 1 minute: .1.3.6.1.4.1.2021.10.1.3.1
import subprocess
community = 'public'
location = '10.6.0.12'
check_oid = '.1.3.6.1.4.1.318.1.1.1.2.1.1.0'
results = subprocess.check_output(["snmpwalk", "-Oqv", "-v2c", "-c", community, location, check_oid])
decoded_results = str(results.decode('utf-8'))