Thanks Patrick!
Unfortunately I don't know where that MIB should end up. I looked around a bit and various switches put it in different places.
I stuck it in .1.3.6.1.4.1.2021.7890.5 as it was just the next one in /usr/local/share/snmp/snmpd.conf.
/usr/local/bin/ixl3_temp.sh:
It "works," but obviously gets overwritten quickly.
Unfortunately I don't know where that MIB should end up. I looked around a bit and various switches put it in different places.
I stuck it in .1.3.6.1.4.1.2021.7890.5 as it was just the next one in /usr/local/share/snmp/snmpd.conf.
Code Select
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/local/opnsense/scripts/OPNsense/Netsnmp/distro.sh
extend .1.3.6.1.4.1.2021.7890.2 hardware /bin/kenv smbios.planar.product
extend .1.3.6.1.4.1.2021.7890.3 vendor /bin/kenv smbios.planar.maker
extend .1.3.6.1.4.1.2021.7890.4 serial /bin/kenv smbios.planar.serial
extend .1.3.6.1.4.1.2021.7890.5 ixl3_temp /usr/local/bin/ixl3_temp.sh
/usr/local/bin/ixl3_temp.sh:
Code Select
#!/bin/sh
# Extract the module temperature from ifconfig output
ifconfig -v ixl3 | awk '/module temperature/ {print $3}'
It "works," but obviously gets overwritten quickly.