xymon เป็น tools ที่ใช้ในการ monitors
ขั้นตอนการ install on debian (7.5)
1. เตรียม packet ที่ต้องใช้
1 2 3 4 |
apt-get update apt-get install apache2 rrdtool librrd-dev libpcre3-dev libssl-dev ldap-utils libldap2-dev fping |
2. Enable mod_rewrite in Apache
1 2 3 4 5 |
cd /etc/apache2/mods-enabled/ ln -s ../mods-available/rewrite.load . /etc/init.d/apache2 reload |
3. ทำการ build packet .deb
1 2 3 4 5 6 7 8 |
wget "http://sourceforge.net/projects/xymon/files/Xymon/4.3.17/xymon-4.3.17.tar.gz" tar zxf xymon-4.3.2.tar.gz ./build/makedeb.sh 4.3.17 mv debbuild/*.deb .. cd .. dpkg -i xymon*deb |
หรือทำการติดตั้งด้วยการ compile source code
1 2 3 4 5 6 7 |
groupadd xymon useradd xymon -g xymon ./configure.server make make install |
4. config apache config
1 2 3 4 5 6 7 8 9 10 11 12 13 |
cp /usr/local/xymon/server/etc/xymon-apache.conf /etc/apache2/sites-enabled/ mv /etc/apache2/sites-enabled/{,__}000-default vi /etc/apache2/sites-enabled/xymon-apache.conf #uncomment this line DocumentRoot /usr/local/xymon/server/www #check synctax apachectl -t #/etc/init.d/apache2 restart |
5. ทดลอง start xymon
1 2 3 |
su xymon -c "/usr/local/xymon/server/xymon.sh status" |
url: http://{ipaddress}/xymon
6. add user admin เพื่อทำการ disable/enable host
1 2 3 4 5 6 |
/usr/sbin/htpasswd -c /usr/local/xymon/server/etc/xymonpasswd admin # New password: # Re-type new password: # Adding password for user admin |