Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Oct 2009 16:06:05 +0300
From:      Shteryana Shopova <shteryana@gmail.com>
To:        Maciej Wierzbicki <voovoos-fpf@killfile.pl>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: [FreeBSD 7.2] snmp_pf.so
Message-ID:  <61b573980910010606o575eb28cu7b28ba01992cbdcd@mail.gmail.com>
In-Reply-To: <4AC4891C.4090403@killfile.pl>
References:  <20091001070641.GA78518@mail.media4u.pl> <4b4a8f2b0910010245u2a02b1c9nae6e5645f583f2cd@mail.gmail.com> <4AC4891C.4090403@killfile.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

2009/10/1 Maciej Wierzbicki <voovoos-fpf@killfile.pl>:
> Ondoy wrote on 2009-10-01 11:45:
>
>> without specifying OID, it only walks the mib-2 subtree.
>> try
>> # bsnmpwalk fokus
>> the objects under 1.3.6.1.4.1.12325.1.200 are the pf stuff.
>
> Indeed, thanks.
>
> But then I have another question. bsnmpwalk parses some of pf oids and then
> returns an error:
> Agent localhost:snmp returned error
> 1.3.6.1.4.1.12325.1.200.1.9.2.1.20.1 caused error - General error
>

bsnmpwalk -i /usr/share/snmp/defs/pf_tree.def begemotPf

By default only the mibII_tree.def and tree.def OID to strings are
parsed - you have to tell bsnmpwalk to parse the begemotPf OIDs
explicitly .

> Its pfTablesTblPktsOutXPass in pfTables, I believe. That error is a known
> issue or I am missing something again?
>

http://people.freebsd.org/~syrinx/snmp/pf_snmp.c-01102009-01.diff -
this should fix the error.

> PS also, is it possible to count traffic on interface using snmp per ip
> address bound to it (not per whole interface)?

Hm, I think this should be supposedly done by fetching
pfTablesAddrTable, but currently it does not return any data...I am
not sure when I will have time to look at this, but of course everyone
is more than wellcome to submit a patch :)

> PPS maybe I should address this discussion to freebsd-net instead?
> --

cheers,
Shteryana



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61b573980910010606o575eb28cu7b28ba01992cbdcd>