Newbie help ...

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
orzechowski
Posts: 1
Joined: Wed Mar 05, 2014 3:17 pm

Newbie help ...

Post by orzechowski »

I need to pull a Threshold value (80) using the following OID

1.3.6.1.4.1.9.9.42.1.2.19.1.5

The issue is cacti is polling 1.3.6.1.4.1.9.9.42.1.2.19.1.5 which returns 1.2 1.3, 1.4, 2.1, 2.2, 2.3, etc. I thinks the 2,3,4 are the index values. But the index value is the number before the last digit.

Is there a way to modify the query below to change the oid to use 1.3.6.1.4.1.9.9.42.1.2.19.1.5.$INDEX.2

<rttMonCtrlAdminThreshold>
<name>Threshold</name>
<method>walk</method>
<source>VALUE/REGEXP:([0-9]{1,16}) milliseconds$</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9.9.42.1.2.19.1.5</oid>
</rttMonCtrlAdminThreshold>

Here an an SNMPWalk example The number in bold is the index number but it thinks the last digit is the index which is causing my values to not be interpreted correctly.

snmpwalk -v2c -c XXXXXX 10.201.1.120 .1.3.6.1.4.1.9.9.42.1.2.19.1.5

SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.1.2 = INTEGER: 80
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.2.2 = INTEGER: 80
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests