From owner-freebsd-questions@FreeBSD.ORG Fri Apr 6 14:04:20 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 32B4B16A401 for ; Fri, 6 Apr 2007 14:04:20 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-242.sw.biz.rr.com [64.183.212.242]) by mx1.freebsd.org (Postfix) with ESMTP id EA93913C448 for ; Fri, 6 Apr 2007 14:04:17 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (localhost [127.0.0.1]) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l36E4B2T009928 for ; Fri, 6 Apr 2007 09:04:11 -0500 (CDT) (envelope-from freebsd@dfwlp.com) Received: (from www@localhost) by pollux.dfwlp.com (8.13.8/8.13.8/Submit) id l36E4BJi009927; Fri, 6 Apr 2007 09:04:11 -0500 (CDT) (envelope-from freebsd@dfwlp.com) X-Authentication-Warning: pollux.dfwlp.com: www set sender to freebsd@dfwlp.com using -f Received: from 192.168.125.142 (SquirrelMail authenticated user jhorne) by webmail.dfwlp.org with HTTP; Fri, 6 Apr 2007 09:04:11 -0500 (CDT) Message-ID: <57114.192.168.125.142.1175868251.squirrel@webmail.dfwlp.org> In-Reply-To: <6207f7d90704060551pe29f219s21f53c4bc950ea2a@mail.gmail.com> References: <6207f7d90704060551pe29f219s21f53c4bc950ea2a@mail.gmail.com> Date: Fri, 6 Apr 2007 09:04:11 -0500 (CDT) From: "Jonathan Horne" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pollux.dfwlp.com Subject: Re: configuring snmpd when setting up jailed environment 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: Fri, 06 Apr 2007 14:04:20 -0000 > I am trying to make snmpd listen on a specific address for the JAIL > HOST(aka physical server) and each jailed environment (aka JAIL). > > The server is server configured using the ezjail framework. > > As I read "man (8) snmpd", I should be able to do this. > > I am trying to make the JAIL HOST listen on udp:161 192.168.222.90 > and a JAIL to listen on udp:161 192.168.222.91 > > obviously, each JAIL alias IP would be distinct for each jailed environment. > > I have edited JAIL HOST /usr/local/etc/snmp/snmpd.conf to include > "agentaddress udp:161 192.168.2222.90" > > Where do I profile this? > How do I make this work? > What am I doing wrong? > > I am humbly asking for assistance :) > > Thanks > Don > =============== > Section: Net-SNMP (8) > SNMPD > > SYNOPSIS > snmpd [OPTIONS] [LISTENING ADDRESSES] > > -x ADDRESS > Listens for AgentX connections on the specified address rather > than the default "/var/agentx/master". The address can either be a > Unix domain socket path, or the address of a network interface. The > format is the same as the format of listening addresses described > below. > ============== > > ==== some of my notes === > > JAIL Host hier, separate partition for jails > /usr/jails > > basejail & newjail > /usr/jails/basejail > /usr/jails/newjails > > I did not modify the ezjail.conf file > >>From JAIL HOST > # mount_procfs proc /usr/jails/web/proc > >>From within the JAIL > I installed /usr/ports/net-mgmt/net-snmp > # make > # make install clean > > mkdir /snmp in /usr/local/etc > create snmpd.conf file > # cp /usr/local/share/snmp/snmpd.conf.example /usr/local/etc/snmp/snmpd.conf > > Made minial changes to snmpd.conf in JAIL Host and JAIL. > # sec.name source community > # com2sec local localhost public > com2sec local 192.168.222.91 public > com2sec mynetwork 192.168.222.0/24 public > > Added to JAIL rc.conf and JAIL HOST rc.conf > # vi /usr/jails/web/etc/rc.conf > snmpd_enable="YES" > snmpd_flags="-a" > snmpd_pidfile="/var/run/snmpd.pid" > > restart the JAIL > >>From JAIL > # snmpwalk -c public -u com2sec -v 1 web system > This does output allot of expected snmp data EXCEPT that it is listing > the data for the JAIL HOST, not the JAIL. > > # less /var/log/snmpd.log > init_kmem: kvm_openfiles failed: /dev/mem: No such file or directory > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >