본문 바로가기
네트워크 (LAN,WAN)

JFFNMS 네트워크 모니터링 Tools

by 날으는물고기 2009. 8. 3.

JFFNMS 네트워크 모니터링 Tools

http://downloads.sourceforge.net/jffnms/jffnms-0.8.3.tar.gz?use_mirror=nchc
http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.6.tar.gz
http://cairographics.org/releases/cairo-1.8.6.tar.gz

APM이 깔려있다는 전제 하에 기존에 php 컴파일시 jffnms설치시 필요한게 몇개 빠진거 같아서 재 컴파일 했다....아래같이

모든 필요한 파일을 yum으로 업데이트 한후 풀 옵션을 줘서 php 재컴파일 후 설치 진행함.

# yum -y install openssl openssl-devel mhash mhash-devel libtool libtool-ltdl libtool-ltdl-devel imap-devel imap zlib-devel zlib freetype-devel freetype libpng-devel libpng libjpeg-devel libjpeg libtiff-devel libtiff gd-devel gd pcre-devel pcre libxml-devel libxml libxml2-devel libxml2 gdbm-devel gdbm ncurses-devel ncurses curl-devel curl expat-devel expat bzip2-devel bzip2-libs bzip2 uw-imap-devel libc-client libc-client-devel libmcrypt libmcrypt-devel

# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --enable-mod-charset --enable-safe-mode --enable-sigchild --enable-magic-quotes --with-libxml-dir --with-openssl --with-zlib --with-zlib-dir --with-bz2 --enable-calendar --with-curl --enable-dba --with-gdbm --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir  --with-ttf --with-freetype-dir --enable-gd-native-ttf --with-gettext --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --with-mhash --with-mcrypt --with-mysql=/usr/local/mysql --enable-sockets --with-regex=php --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zend-multibyte --with-snmp

rrdtools설치

# ./configure --prefix=/usr/local/rrdtool --enable-shared 

php.ini 다음 추가   

    register_globals = On
    register_argc_argv = On
    error_reporting  =  E_ALL & ~E_NOTICE
    allow_url_fopen = On
    include_path = .:/usr/share/pear
    short_open_tag = On

본격적인 설치(공식 메뉴얼 참조했습니다.)

# groupadd jffnms
# useradd -g jffnms -d /opt/jffnms -s /bin/false -c 'JFFNMS User' jffnms
# usermod -G jffnms apache 

You will get a directory called jffnms-0.8.x/

# mv jffnms-0.8.x /opt/jffnms

Permissions

# chown -R jffnms:jffnms /opt/jffnms
# chmod 770 /opt/jffnms
# chmod -R ug+rw /opt/jffnms 

Crontab
Install the JFFNMS crontab file

# crontab -u jffnms /opt/jffnms/docs/unix/crontab

맨위의 PATH
PHP=/usr/loca/php/bin/php

Now modify the values at the top if they don't match your system

# crontab -e -u jffnms

Allow JFFNMS to run cron jobs (AFAIK only needed in Solaris)

# echo jffnms >> /etc/cron.allow 

Create the Databases

Manually create the database "jffnms", set the permissions and then import the schema and data.
Manually create the database "jffnms", set the permissions and then import the schema and data.
Replace the 'x' with the jffnms version number.

mysql 설정

# mysql -u <mysql admin username> -p<password>
mysql> CREATE DATABASE jffnms;
mysql> GRANT ALL PRIVILEGES ON jffnms.* TO jffnms@localhost IDENTIFIED BY 'jffnms';
mysql> FLUSH PRIVILEGES;
mysql> quit

# mysql -u jffnms -pjffnms jffnms < docs/jffnms-0.8.x.mysql


출처 : http://trick.textcube.com/

728x90

댓글