We are experimenting with using userDefinedSettings.conf settings to SNMP query the gateway for custom statistics and statuses. We have run into an issue where the returned data needs to be formatted as a GAUGE not the default STRING. Any idea how to do this?
UserDefinedSettings.conf:
[Expert@gateway:0]# cat /etc/snmp/userDefinedSettings.conf
extend .1.3.6.1.4.1.8072.35 fwhc /home/admin/fw_health_check.sh snmp checkScore
Script Output:
[Expert@gateway:0]# /home/admin/fw_health_check.sh snmp checkScore
8
SNMPWALK output:
[Expert@gateway:0]# snmpwalk -v2c -c public localhost .1.3.6.1.4.1.8072.35
NET-SNMP-MIB::netSnmp.35.1.0 = INTEGER: 1
NET-SNMP-MIB::netSnmp.35.2.1.2.4.102.119.104.99 = STRING: "/home/admin/fw_health_check.sh"
NET-SNMP-MIB::netSnmp.35.2.1.3.4.102.119.104.99 = STRING: "snmp checkScore"
NET-SNMP-MIB::netSnmp.35.2.1.4.4.102.119.104.99 = ""
NET-SNMP-MIB::netSnmp.35.2.1.5.4.102.119.104.99 = INTEGER: 5
NET-SNMP-MIB::netSnmp.35.2.1.6.4.102.119.104.99 = INTEGER: 1
NET-SNMP-MIB::netSnmp.35.2.1.7.4.102.119.104.99 = INTEGER: 1
NET-SNMP-MIB::netSnmp.35.2.1.20.4.102.119.104.99 = INTEGER: 4
NET-SNMP-MIB::netSnmp.35.2.1.21.4.102.119.104.99 = INTEGER: 1
NET-SNMP-MIB::netSnmp.35.3.1.1.4.102.119.104.99 = STRING: "8"
NET-SNMP-MIB::netSnmp.35.3.1.2.4.102.119.104.99 = STRING: "8"
NET-SNMP-MIB::netSnmp.35.3.1.3.4.102.119.104.99 = INTEGER: 1
NET-SNMP-MIB::netSnmp.35.3.1.4.4.102.119.104.99 = INTEGER: 0
NET-SNMP-MIB::netSnmp.35.4.1.2.4.102.119.104.99.1 = STRING: "8" <--- Output
CCMA