An on-host script periodically checks RAID status (requires root, executed via cron) and dumps the required text output into a chmod 444 file that snmpd can read. This file is then snmp extend ingested into an OID, something like;
extend .1.3.6.1.4.1.2021.7890.5 raid '/bin/cat /tmp/raid-status
If all is well then an “Opt” value (Optimal, any other state will be investigated) is present in that string line, if not then alert
0 PERCH330Adapter 8 2 1 0 1 0 Msng On 3 N 0 Opt
As per title, Custom OID is not suitable, can’t seem to find a suitable Nagios plugin, so any suggestions please on how I could monitor and display/alert on this OID and value?
Capture Debug SNMP shows that the OID is being populated:
.1.3.6.1.4.1.2021.7890.5.3.1.1.4.114.97.105.100 = STRING: " 0 PERCH330Adapter 8 2 1 0 1 0 Msng On 3 N 0 Opt "