Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Snmp

Status
Not open for further replies.

lordkur

IS-IT--Management
Joined
Jun 3, 2005
Messages
1
Location
VE
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top