cacti + npc + nagios + ( glusterfs ) 설치
1. "cacti+npc+nagios" 설정내역을 참고 하여 1차 설치 진행
# glusterfs ( server ) install
1 pakage install
1 2 | #yum install python-argparse python-cpopen python-pthreading python-netaddr python-lockfile python-inotify python-daemon nsca-client nrpe nagios-plugins-procs nagios-plugins-ide_smart libselinux-python | cs |
1 2 | #yum install rrdtool-perl pynag pnp4nagios php nsca net-snmp-utils nagios-plugins-ping nagios-plugins-nrpe nagios-plugins-dummy nagios mod_ssl httpd check-mk-livestatus | cs |
2. nagios-server-addons install
1 2 | #cd /usr/local/src ; wget http://download.gluster.org/pub/gluster/glusterfs-nagios/CentOS/epel-6Server/nagios-server-addons-0.1.1-0.el6.noarch.rpm ; rpm -Uvh nagios-server-addons-0.1.1-0.el6.noarch.rpm | cs |
3. gluster-nagios-common install
1 2 | #cd /usr/local/src ; wget http://download.gluster.org/pub/gluster/glusterfs-nagios/CentOS/epel-6Server/gluster-nagios-common-0.1.1-0.el6.noarch.rpm ; rpm -Uvh gluster-nagios-common-0.1.1-el6.noarch.rpm | cs |
# config
- /etc/nagios/ 폴더 구성 내역 ( 폴더 생성 및 설정파일 복사 )
1. ndo2db & ndomod.o 설정
1 2 3 4 | #mkdir /etc/nagios/bin ; chown -R nagios.nagios /etc/nagios/bin #cp /usr/local/nagios/bin/ndo2db /etc/nagios/bin ; cp /usr/local/nagios/bin/ndomod.o /etc/nagios/bin #mkdir /etc/nagios/var ; chown -R nagios.nagios /etc/nagios/var | cs |
2 ndo2db.cfg & ndomod.cfg 설정
1 2 3 | #mkdir /etc/nagios/etc ; chown -R nagios.nagios /etc/nagios/etc #cp /usr/local/nagios/etc/ndo2db.cfg /etc/nagios/etc/ ; cp /usr/local/etc/ndomod.cfg /etc/nagios/etc | cs |
3. config nagios ( ndomod.cfg & nagios.cfg )
1 2 | # echo "broker_module=/etc/nagios/bin/ndomod.o config_file=/etc/nagios/etc/ndomod.cfg" >> /etc/nagios/nagios.cfg ; sed -i 's/process_performance_data=0/process_performance_data=1/g’ /etc/nagios/nagios.cfg | cs |