Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2009 09:02:42 -0400
From:      Maxim Khitrov <mkhitrov@gmail.com>
To:        Brandon Weisz <lists@avioc.org>
Cc:        freebsd-questions@freebsd.org, Anton Yuzhaninov <citrin@citrin.ru>
Subject:   Re: bsnmpd vs net-snmp
Message-ID:  <26ddd1750904300602g31c8d135lab0200f37ff6d4a2@mail.gmail.com>
In-Reply-To: <49F8F255.6080508@avioc.org>
References:  <26ddd1750904270928g106c8d7dg72b6b3a09ffc0afa@mail.gmail.com>  <gt4svl$2ot$1@ger.gmane.org> <26ddd1750904291049s22eb912dg81a105e5f783f44@mail.gmail.com>  <49F8F255.6080508@avioc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz <lists@avioc.org> wrote:
> Maxim Khitrov wrote:
>>
>> On Mon, Apr 27, 2009 at 2:19 PM, Anton Yuzhaninov <citrin@citrin.ru>
>> wrote:
>>>
>>> On Mon, 27 Apr 2009 12:28:01 -0400, Maxim Khitrov wrote:
>>> MK> I'm setting up a firewall and would like to monitor certain system
>>> MK> parameters like network, cpu, and memory usage. SNMP is an obvious
>>> MK> choice to do the monitoring and I'm planning to set up rrdtool to
>>> MK> generate graphs of captured data. The question is what SNMP agent to
>>> MK> use. I found net-snmp and bsnmpd (which is included in the base
>>> MK> system). Has anyone here used both implementations, and if so, what
>>> MK> are the basic differences?
>>>
>>> main difference is the set of supported MIBs.
>>>
>>> In general net-snmp supports more MIBs than bsnmpd.
>>>
>>> E. g. BEGEMOT-PF-MIB supported only by bsnmpd and useful for monitoring
>>> pf(4),
>>> UCD-SNMP-MIB supported only by net-snmp and useful for monitoring CPU
>>> load
>>> (ssCpuRaw* counters).
>>
>> Is there any other documentation to bsnmpd besides the one man page?
>> I'm trying to figure how to configure the daemon (first task is stop
>> it from listening on *:*), but besides the man page and few comments
>> in /etc/snmpd.config there is no other information that I can find.
>>
>> - Max
>
> I cant speak to the documentation, but this seems to limit it to listening
> on a single address:
>
> Example..
>
> # open standard SNMP ports
> begemotSnmpdPortStatus.192.168.2.254.161 = 1

Thanks, but I tried this already. It causes bsnmpd to listen on the
given IP as well, but doesn't remove the *:* entry:

root@gw1 [/root]# sockstat -l4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     bsnmpd     61251 4  udp4   *:*                   *:*
root     bsnmpd     61251 5  udp4   127.0.0.1:161         *:*

The author suggested using "begemotSnmpdPortTable.0.0.0.0.161 = 1" and
change the IP there, but this causes the following error:

Apr 30 08:59:59 gw1 snmpd[78798]: unknown variable
Apr 30 08:59:59 gw1 snmpd[78798]:   in file /usr/local/etc/bsnmpd.conf line 20
Apr 30 08:59:59 gw1 snmpd[78798]: error in config file

- Max



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