From owner-freebsd-questions@FreeBSD.ORG Thu Apr 30 13:03:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 538FC106566B for ; Thu, 30 Apr 2009 13:03:03 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 08E828FC1A for ; Thu, 30 Apr 2009 13:03:02 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1101258ywe.13 for ; Thu, 30 Apr 2009 06:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=beDGyYhqzTcWHKow/wRnLp8cNSPRSGJQ0Jp4xWeRgPs=; b=sxeP97j1q1hGJNA5pT2EGyI8LVh/LhiOGXFfTi4QsINCwohv9tND2tZcVhVB74snjw 8q9Nof+Y8L04fcxPv1RP4GztEp4tMd2Dp7h3tf0o0ti7hrKUv1HNdOiEzg/xC3QXwypB SCqIp04cUltdbY7Tw0j9EPxbn3KT7Rz6noax4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=IFIpP4FwVCr/V0vylgvQMqsfmgphJwL1n95DYpdqG+Op7YY/RS76uSjAvdbTs1R/h2 TUTODEXSVV4G9jk7Yl55sVtV0AHwn6+UpFfyRoUz+ac2Gretl/dDdg/GpfNsswL/pMar E0EuMoeCWDz23dcJ0yYLYRhmcuTPuyniK4jXI= MIME-Version: 1.0 Received: by 10.90.75.13 with SMTP id x13mr1216272aga.102.1241096582190; Thu, 30 Apr 2009 06:03:02 -0700 (PDT) In-Reply-To: <49F8F255.6080508@avioc.org> References: <26ddd1750904270928g106c8d7dg72b6b3a09ffc0afa@mail.gmail.com> <26ddd1750904291049s22eb912dg81a105e5f783f44@mail.gmail.com> <49F8F255.6080508@avioc.org> From: Maxim Khitrov Date: Thu, 30 Apr 2009 09:02:42 -0400 Message-ID: <26ddd1750904300602g31c8d135lab0200f37ff6d4a2@mail.gmail.com> To: Brandon Weisz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Anton Yuzhaninov Subject: Re: bsnmpd vs net-snmp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2009 13:03:03 -0000 On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz wrote: > Maxim Khitrov wrote: >> >> On Mon, Apr 27, 2009 at 2:19 PM, Anton Yuzhaninov >> 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