Re: MRTG and Sonicwall help

Todd Adamson <[email protected]>
Newsgroups gmane.network.mrtg.user
Message-ID <[email protected]>
You SNMP walk that you show is not far enough.  The OIDs 
that are used for in and out octets are

1.3.6.1.2.1.2.2.1.10.x  (inbound octets)
and
1.3.6.1.2.1.2.2.1.16.x  (outbound octets)

Where X is the interface number.
Try replacing your target string with the above with X=4

Todd

On 8/20/2014 8:56 PM, scot wrote:
> I have a sonicwall TZ215, with latest firmware, I am trying to get MRTG to talk to it.
>
> when I run the cfg maker, it talks to the sonicwall and builds a config file with all the sonicwall interfaces… most are commented out.
>
> but I get no graphs
>
> i checked the mrtg.log and have following errors
>
> 2014-08-20 21:02:13 -- 2014-08-20 21:02:13: ERROR: Target[192.168.30.1_x1][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
> 2014-08-20 21:02:13 -- 2014-08-20 21:02:13: ERROR: Target[192.168.30.1_x1][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
>
> here is the mrtg.cfg for the interface
>
> Target[192.168.30.1_X1]: #X1:[email protected]:
> SetEnv[192.168.30.1_X1]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="X1-(WAN)"
> MaxBytes[192.168.30.1_X1]: 125000000
> Title[192.168.30.1_X1]: Traffic Analysis for X1 -- WAN
> PageTop[192.168.30.1_X1]: <h1>Traffic Analysis for X1 -- WAN</h1>
>
> I tried adding OID’s that I got from a SNMPwalk against the sonciwall,
>
> Target[192.168.30.1_X1]: 3.6.1.2.1.1.2.0&3.6.1.2.1.2.2.1.2.4:[email protected]:
>
> that gives error
>
> 2014-08-20 21:45:30 -- cannot encode Object ID 3.6.1.2.1.1.2.0: first subid too big in Object ID 3.6.1.2.1.1.2.0 at /usr/bin/mrtg line 2339.
> 2014-08-20 21:45:30 -- 2014-08-20 21:45:30: ERROR: Target[192.168.30.1_x1][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
> 2014-08-20 21:45:30 -- 2014-08-20 21:45:30: ERROR: Target[192.168.30.1_x1][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
>
> so the OID’s look like no help … so still no luck on MRTGing my sonicwall
>
> here is the SNMPWALK against the sonciwall
>
> iso.3.6.1.2.1.1.1.0 = STRING: "SonicWALL TZ 215 (SonicOS Enhanced 5.8.1.2-6o)"
> iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8741.1
> iso.3.6.1.2.1.1.3.0 = Timeticks: (698184303) 80 days, 19:24:03.03
> iso.3.6.1.2.1.1.4.0 = STRING: “WAN ROUTER
> iso.3.6.1.2.1.1.5.0 = STRING: “RTR-COLO-PIPE_3”
> iso.3.6.1.2.1.1.6.0 = STRING: “COLO_5
> iso.3.6.1.2.1.1.7.0 = INTEGER: 79
> iso.3.6.1.2.1.2.1.0 = INTEGER: 10
> iso.3.6.1.2.1.2.2.1.1.2 = INTEGER: 2
> iso.3.6.1.2.1.2.2.1.1.4 = INTEGER: 4
> iso.3.6.1.2.1.2.2.1.1.6 = INTEGER: 6
> iso.3.6.1.2.1.2.2.1.1.8 = INTEGER: 8
> iso.3.6.1.2.1.2.2.1.1.10 = INTEGER: 10
> iso.3.6.1.2.1.2.2.1.2.2 = STRING: "LOOPBACK"
> iso.3.6.1.2.1.2.2.1.2.4 = STRING: "X1 (WAN)"
> iso.3.6.1.2.1.2.2.1.2.6 = STRING: "X3 (Portshielded To X0)"
> iso.3.6.1.2.1.2.2.1.2.8 = STRING: "X5 (Unassigned)"
> iso.3.6.1.2.1.2.2.1.2.10 = STRING: "U0 (Unassigned)"
> iso.3.6.1.2.1.2.2.1.3.2 = INTEGER: 24
> iso.3.6.1.2.1.2.2.1.3.4 = INTEGER: 6
> iso.3.6.1.2.1.2.2.1.3.6 = INTEGER: 6
> iso.3.6.1.2.1.2.2.1.3.8 = INTEGER: 6
> iso.3.6.1.2.1.2.2.1.3.10 = INTEGER: 1
> iso.3.6.1.2.1.2.2.1.4.2 = INTEGER: 1536
> iso.3.6.1.2.1.2.2.1.4.4 = INTEGER: 1500
> iso.3.6.1.2.1.2.2.1.4.6 = INTEGER: 0
> iso.3.6.1.2.1.2.2.1.4.8 = INTEGER: 0
> iso.3.6.1.2.1.2.2.1.4.10 = INTEGER: 0
> iso.3.6.1.2.1.2.2.1.5.2 = Gauge32: 0
> iso.3.6.1.2.1.2.2.1.5.4 = Gauge32: 1000000000
> iso.3.6.1.2.1.2.2.1.5.6 = Gauge32: 0
> iso.3.6.1.2.1.2.2.1.5.8 = Gauge32: 0
> iso.3.6.1.2.1.2.2.1.5.10 = Gauge32: 0
> iso.3.6.1.2.1.2.2.1.6.2 = ""
> iso.3.6.1.2.1.2.2.1.6.4 = Hex-STRING: C0 EA E4 57 74 95
> iso.3.6.1.2.1.2.2.1.6.6 = Hex-STRING: C0 EA E4 57 74 97
> iso.3.6.1.2.1.2.2.1.6.8 = Hex-STRING: C0 EA E4 57 74 99
>
> i’ve been messing with this for days,  and need some help
>
> what am I missing ?
>
> scot
> _______________________________________________
> mrtg mailing list
> [email protected]
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>
>

-- 
Todd Adamson
Network Partners, Inc.
[email protected]
(402)434-5395 x3001
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.