Jail で Zenoss 環境編

今、現在、Zenoss が動いている FreeBSD 7.1-PRERELEASE のパッケージリスト
(apachephp は、使っていません)

apache-1.3.41 The extremely popular Apache http server. Very fast, very c
apr-db42-1.3.3.1.3.4 Apache Portability Library
autoconf-2.62 Automatically configure source code on many Un*x platforms
autoconf-wrapper-20071109 Wrapper script for GNU autoconf
bash-3.2.39_1 The GNU Project's Bourne Again SHell
bazaar-ng-1.8 Distributed version control system by Canonical
db42-4.2.52_5 The Berkeley DB package, revision 4.2
expat-2.0.1 XML 1.0 parser written in C
gettext-0.17_1 GNU gettext package
gmake-3.81_3 GNU version of 'make' utility
help2man-1.36.4_2 Automatically generating simple manual pages from program o
libgmp-4.2.4 A free library for arbitrary precision arithmetic
libiconv-1.11_1 A character set conversion library
libtool-1.5.26 Generic shared library support script
libxml2-2.6.32 XML parser library for GNOME
m4-1.4.11,1 GNU m4
mysql-client-5.0.67_1 Multithreaded SQL database (client)
mysql-server-5.0.67_1 Multithreaded SQL database (server)
neon28-0.28.3 An HTTP and WebDAV client library for Unix systems
net-snmp-5.4.1.2_2 An extendable SNMP implementation
p5-gettext-1.05_2 Message handling functions
patch-2.5.4 GNU patch utility
perl-5.8.8_1 Practical Extraction and Report Language
php5-5.2.6_2 PHP Scripting Language
pkg-config-0.23_1 A utility to retrieve information about installed libraries
py25-paramiko-1.7.4 A python library for making SSH2 connections
py25-pycrypto-2.0.1_1 The Python Cryptography Toolkit
python-2.5,2 The "meta-port" for the default version of Python interpret
python25-2.5.2_3 An interpreted object-oriented programming language
subversion-1.5.4_2 Version control system
sudo-1.6.9.17 Allow others to run commands as root
swig-1.3.36 Simplified Wrapper and Interface Generator

  • ネットワークのバッファを増やしたほうがいいと Zenoss のページに書いてあったので・・

# vi /etc/sysctl.conf

# increase network send/receive buffer
net.inet.tcp.sendspace=1048576
net.inet.tcp.recvspace=1048576
net.inet.udp.maxdgram=1048576
net.inet.udp.recvspace=1048576
net.local.stream.sendspace=1048576
net.local.stream.recvspace=1048576
net.local.dgram.maxdgram=1048576
net.local.dgram.recvspace=1048576
net.inet.raw.recvspace=1048576
net.inet.raw.maxdgram=1048576

親Jail で、/etc/devfs.rules を作って修正して再起動して
子Jail で snmpd が起動できるようにする(Jail 環境のみ)

  • 親 Jail

# cp /etc/defaults/devfs.rules /etc
# vi /etc/devfs.rules
以下のように変更する

[devfsrules_jail=4]
#add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login

再起動後に 子 Jail の変更

# cp /usr/local/share/snmp/snmpd.conf.example /usr/local/share/snmp/snmp.conf
あとは、MYNETWORK を 自分のネットワーク
COMMUNITY をなんかてきとうなの( public はダメだけど public とか )

そして、snmpd を起動


ほかにも、リソース収集をしたいサーバも snmpd をいれていく。