Hi all,
I am a newbie trying to monitoring my systems using snmp . I am using currently the OpenNms System and it works so fine. I am stucked coz I am trying to get some values from a scripts I've write down and also I've inserted those scripts into de snmpd.conf like this :
exec traffic /opt/monitor/test.sh
The problem here is that I got back the result values from this script as strings even though those are numbers:
snmpwalk -O n -v 2c -c pub localhost .1.3.6.1.4.1.18230.1
.1.3.6.1.4.1.2021.8.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.2021.8.1.2.1 = STRING: traffic
.1.3.6.1.4.1.2021.8.1.3.1 = STRING: /opt/monitor/test.sh
.1.3.6.1.4.1.2021.8.1.100.1 = INTEGER: 131
.1.3.6.1.4.1.2021.8.1.101.1 = STRING: 899
.1.3.6.1.4.1.2021.8.1.102.1 = INTEGER: 0
.1.3.6.1.4.1.2021.8.1.103.1 = STRING:
I need to get the numeric values as integers...any idea in how I can do that.
thanks in advance!
I am a newbie trying to monitoring my systems using snmp . I am using currently the OpenNms System and it works so fine. I am stucked coz I am trying to get some values from a scripts I've write down and also I've inserted those scripts into de snmpd.conf like this :
exec traffic /opt/monitor/test.sh
The problem here is that I got back the result values from this script as strings even though those are numbers:
snmpwalk -O n -v 2c -c pub localhost .1.3.6.1.4.1.18230.1
.1.3.6.1.4.1.2021.8.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.2021.8.1.2.1 = STRING: traffic
.1.3.6.1.4.1.2021.8.1.3.1 = STRING: /opt/monitor/test.sh
.1.3.6.1.4.1.2021.8.1.100.1 = INTEGER: 131
.1.3.6.1.4.1.2021.8.1.101.1 = STRING: 899
.1.3.6.1.4.1.2021.8.1.102.1 = INTEGER: 0
.1.3.6.1.4.1.2021.8.1.103.1 = STRING:
I need to get the numeric values as integers...any idea in how I can do that.
thanks in advance!