bsnmpd na FreeBSD 6.0

Miroslav Lachman 000.fbsd at quip.cz
Mon Oct 30 20:24:20 CET 2006


Stanislav Zaris wrote:
[...]
> Problem je ozaj v 32 bit counteroch v SNMP v1, verzia 2c uz ma 64 bit.
> V MRTG treba dat napr. nieco taketo:
> 
> Target[server]: \em0:komunita at 127.0.0.1:::::2
> 
> Potom necita data z IfTable (32bit), ale z IfXTable (64bit), len neviem, do
> akej miery to bsnmpd podporuje.

Diky za tip, nejak me ani nenapadlo to hledat v nastaveni MRTG - ted uz 
to vidim i v manualu MRTG.

Nicmene to vypada, ze moje verze bsnmpd to nepodporuje:

2006-10-30 20:15:00 -- Started mrtg with config 
'/usr/local/etc/mrtg/mrtg.cfg'
2006-10-30 20:15:01 -- Monday, 30 October 2006 at 20:15: ERROR: 
Target[odysseus_traffic_inet][_IN_] ' $target->[1]{$mode} ' did not eval 
into defined data
2006-10-30 20:15:01 -- Monday, 30 October 2006 at 20:15: ERROR: 
Target[odysseus_traffic_inet][_OUT_] ' $target->[1]{$mode} ' did not 
eval into defined data

Zatim jsem to vyresil osklivym shellscriptem, ktery tu hodnotu cte 
kazdou minutu z vystupu netstat. Casem snad upgradnu stroj z 6.0 na 6.2, 
tak pak znovu vyzkousim 64 bitove countery.

Miroslav Lachman



More information about the Users-l mailing list