Allot Netenforcer

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

Moderators: Moderators, Developers

Author
Message
xeon
Posts: 6
Joined: Fri Feb 24, 2006 11:32 am

Allot Netenforcer

#1 Post by xeon » Fri Feb 24, 2006 11:46 am

Hi all.

I'm trying to setup some traffic monitoring on an Allot NetEnforcer using Cacti.
To accomplish this, I was trying to follow the "Howto: from snmptable to XML Graphs (Data Query walkthrough)" ... but I've failed miserabily on the 1st step :roll:

Here's the snmtable command output:
$> snmptable -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
SNMP table: PIPE-MIB::pipeStatTable

pipePosition pipeInstancePosition pipeName pipeByteCountIn pipeByteCountOut pipeByteCountTotal pipeLiveConnections pipeNewConnections pipePacketsIn pipePacketsOut pipePacketsTotal
1 0 PIPNAME1 25938332888 7678099821 33616432709 20891 1662241 34496499 29072369 63571501
2 0 PIPENAME2 80461483612 25588656778 106050140391 66133 4831554 98258659 85408409 183667068
3 0 Fallback Pipe 1051706 5077003 6128709 13 5921 12876 22264 35140

And the snmpwalk output:
$> snmpwalk -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.2.0 = INTEGER: 2
.1.3.6.1.4.1.2603.1.2.1.1.1.1.3.0 = INTEGER: 3
.1.3.6.1.4.1.2603.1.2.1.1.1.2.1.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.2.2.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.2.3.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.3.1.0 = STRING: PIPENAME1
.1.3.6.1.4.1.2603.1.2.1.1.1.3.2.0 = STRING: PIPENAME2
.1.3.6.1.4.1.2603.1.2.1.1.1.3.3.0 = STRING: Fallback Pipe
.1.3.6.1.4.1.2603.1.2.1.1.1.4.1.0 = Counter64: 26783668350
.1.3.6.1.4.1.2603.1.2.1.1.1.4.2.0 = Counter64: 83313825514
.1.3.6.1.4.1.2603.1.2.1.1.1.4.3.0 = Counter64: 1073161
.1.3.6.1.4.1.2603.1.2.1.1.1.5.1.0 = Counter64: 7930753997
.1.3.6.1.4.1.2603.1.2.1.1.1.5.2.0 = Counter64: 26515688406
.1.3.6.1.4.1.2603.1.2.1.1.1.5.3.0 = Counter64: 5170836
.1.3.6.1.4.1.2603.1.2.1.1.1.6.1.0 = Counter64: 34717154487
.1.3.6.1.4.1.2603.1.2.1.1.1.6.2.0 = Counter64: 109839200694
.1.3.6.1.4.1.2603.1.2.1.1.1.6.3.0 = Counter64: 6244063
.1.3.6.1.4.1.2603.1.2.1.1.1.7.1.0 = Counter64: 20952
.1.3.6.1.4.1.2603.1.2.1.1.1.7.2.0 = Counter64: 66267
.1.3.6.1.4.1.2603.1.2.1.1.1.7.3.0 = Counter64: 24
.1.3.6.1.4.1.2603.1.2.1.1.1.8.1.0 = Counter64: 1695133
.1.3.6.1.4.1.2603.1.2.1.1.1.8.2.0 = Counter64: 4938721
.1.3.6.1.4.1.2603.1.2.1.1.1.8.3.0 = Counter64: 6162
.1.3.6.1.4.1.2603.1.2.1.1.1.9.1.0 = Counter64: 35627776
.1.3.6.1.4.1.2603.1.2.1.1.1.9.2.0 = Counter64: 101641327
.1.3.6.1.4.1.2603.1.2.1.1.1.9.3.0 = Counter64: 13126
.1.3.6.1.4.1.2603.1.2.1.1.1.10.1.0 = Counter64: 29968606
.1.3.6.1.4.1.2603.1.2.1.1.1.10.2.0 = Counter64: 88334597
.1.3.6.1.4.1.2603.1.2.1.1.1.10.3.0 = Counter64: 22760
.1.3.6.1.4.1.2603.1.2.1.1.1.11.1.0 = Counter64: 65596382
.1.3.6.1.4.1.2603.1.2.1.1.1.11.2.0 = Counter64: 189975924
.1.3.6.1.4.1.2603.1.2.1.1.1.11.3.0 = Counter64: 35886

My "basic" XML:

<interface>
<name>Get Allot Pipe information</name>
<description>Get SNMP based Pipe Information</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.2603.1.2.1.1.1.1</oid_index>

<fields>
<pipePosition>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2603.1.2.1.1.1.1</oid>
</pipePosition>
</fields>
</interface>

My "verbose query output":
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2603.1.2.1.1.1.1'
+ Located input field 'pipePosition' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2603.1.2.1.1.1.1'
+ Found item [pipePosition='1'] index: 0 [from value]
+ Found item [pipePosition='2'] index: 0 [from value]
+ Found item [pipePosition='3'] index: 0 [from value]
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'

Now ... I guess those "index: 0 [from value]" aren't quite correct .. because I get "Success [1 Item, 1 Row]" and I guess I shoud be getting 3, right ?

I've tried changing the "<oid_index> and <oid> values to different ones ( basically "going up" on the MIB, removing "1"'s from the end) but no success...

Any hints ?

Regards,

Paulo Pinto

Allen K
Posts: 22
Joined: Sat Oct 15, 2005 9:34 pm

#2 Post by Allen K » Sat Feb 25, 2006 12:34 am

What hardware and software versions do you have for your NE, I run a 402 for a University Dorm network of 500 students (very interesting at times)
I am graphing a few things on it, current connections and the like, but have also had issues trying to graph VC's and pipes

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Allot Netenforcer

#3 Post by gandalf » Sat Feb 25, 2006 10:54 am

xeon wrote: And the snmpwalk output:
$> snmpwalk -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.2.0 = INTEGER: 2
.1.3.6.1.4.1.2603.1.2.1.1.1.1.3.0 = INTEGER: 3
Harm is done by the trailing .0 of each OID. I'm discussing this with the devs
Reinhard

xeon
Posts: 6
Joined: Fri Feb 24, 2006 11:32 am

Re: Allot Netenforcer

#4 Post by xeon » Mon Feb 27, 2006 10:47 am

lvm wrote:
xeon wrote: And the snmpwalk output:
$> snmpwalk -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.2.0 = INTEGER: 2
.1.3.6.1.4.1.2603.1.2.1.1.1.1.3.0 = INTEGER: 3
Harm is done by the trailing .0 of each OID. I'm discussing this with the devs
Reinhard
Hello !

So... have I stumble on a bug .. or there is any way around it ?

Regards,

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#5 Post by gandalf » Mon Feb 27, 2006 12:09 pm

AFAIK from the docs, this is not a supported feature; so no bug but perhaps an enhancement request. Let's wait for the devs to comment
Reinhard

User avatar
rony
Developer/Forum Admin
Posts: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#6 Post by rony » Thu Mar 02, 2006 1:06 pm

Please do an snmpget on the following OIDs:

.1.3.6.1.4.1.2603.1.2.1.1.1.1.1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0

I want to see the results.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]

xeon
Posts: 6
Joined: Fri Feb 24, 2006 11:32 am

#7 Post by xeon » Thu Mar 02, 2006 1:31 pm

Here goes:

$> snmpget -c mycommunity -v 1 host.dom.dom .1.3.6.1.4.1.2603.1.2.1.1.1.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.2603.1.2.1.1.1.1.1

$> snmpget -c mycommunity -v 1 host.dom.dom .1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0
SNMPv2-SMI::enterprises.2603.1.2.1.1.1.1.1.0 = INTEGER: 1

Regards,

xeon
Posts: 6
Joined: Fri Feb 24, 2006 11:32 am

#8 Post by xeon » Mon Mar 06, 2006 11:04 am

*bump* :-)

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#9 Post by gandalf » Wed Mar 08, 2006 2:40 pm

Sorry, I was blind. Please refer to SNMP Query XML Syntax and search for <oid_index_parse>.
Please add

Code: Select all

<oid_index_parse>OID/REGEXP:.*\.2603\.1\.2\.1\.1\.1([0-9]*\.0)$</oid_index_parse>
to your XML file just after

Code: Select all

 <oid_index>.1.3.6.1.4.1.2603.1.2.1.1.1</oid_index>
. This should result in indices like
1.0
2.0
3.0
These indices will now be appended to the OIDs given in the fields description. If in doubt, please post your XML file and a Verbose Query Output for more help
Reinhard

xeon
Posts: 6
Joined: Fri Feb 24, 2006 11:32 am

#10 Post by xeon » Thu Mar 09, 2006 7:20 am

lvm wrote:Sorry, I was blind. Please refer to SNMP Query XML Syntax and search for <oid_index_parse>.
Please add

Code: Select all

<oid_index_parse>OID/REGEXP:.*\.2603\.1\.2\.1\.1\.1([0-9]*\.0)$</oid_index_parse>
to your XML file just after

Code: Select all

 <oid_index>.1.3.6.1.4.1.2603.1.2.1.1.1</oid_index>
. This should result in indices like
1.0
2.0
3.0
These indices will now be appended to the OIDs given in the fields description. If in doubt, please post your XML file and a Verbose Query Output for more help
Reinhard
Hello !

Now I'm getting somewhere :-)

BTW, your regex isn't correct, as it returns the full OID as the index.
The correct one should be: <oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>

I'll get back here to post the results (as there seems to be other people trying to graph their Allots ) :-)

Thank you very much :-) :-)

Regards,

xeon
Posts: 6
Joined: Fri Feb 24, 2006 11:32 am

#11 Post by xeon » Thu Mar 09, 2006 12:12 pm

Well... I think I got it running.

Here are the 2 xml files I'm using for the allot.

Corrections/additions are welcome.

Regards,
Attachments
allot-pipe.xml
Pipe data
(3.69 KiB) Downloaded 1979 times
allot-vc.xml
VC data
(1.67 KiB) Downloaded 2218 times

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#12 Post by gandalf » Thu Mar 09, 2006 3:34 pm

xeon wrote:BTW, your regex isn't correct, as it returns the full OID as the index.
The correct one should be: <oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
Thank you for the correction. Would it be an option to post a screenshot of the graphs?
Reinhard
btw
Moving this to Scripts and Templates

Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm
Contact:

#13 Post by Teecee » Fri Mar 10, 2006 4:26 pm

I have a netenforcer and I am going to try this out and let you know how it works. I would LOVE cacti to report info from the netenforcer.

Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm
Contact:

#14 Post by Teecee » Mon Mar 13, 2006 1:11 pm

I cannot import the XML templates.

krap_rz
Posts: 26
Joined: Thu May 18, 2006 5:23 am
Location: Cyberjaya, Malaysia
Contact:

Installation Process

#15 Post by krap_rz » Thu Jun 01, 2006 12:31 am

xeon wrote:Well... I think I got it running.

Here are the 2 xml files I'm using for the allot.

Corrections/additions are welcome.

Regards,
Thanks xeon for making allot working here. I am very new to cacti so can you help me on step by step installing and making xml work? Pleaaaeesssee?
KeyBoarD Is MightieR ThaN ThE sWorD, iF onLy ConNecTed tO tHe InTernET..

Post Reply