Nagios+Nagvis+pnp4+MKlivestatus+gearmanonsuseSLESSP3-成都创新互联网站建设

关于创新互联

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

Nagios+Nagvis+pnp4+MKlivestatus+gearmanonsuseSLESSP3

zypper in gcc-c++ glibc-devel libstdc++-devel apache2

创新互联公司从2013年创立,是专业互联网技术服务公司,拥有项目网站建设、成都网站制作网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元图木舒克做网站,已为上家服务,为图木舒克各地企业和个人服务,联系电话:18980820575

php53 apache2-mod_php53 php53-gd php53-gettext php53-mbstring

php53-json php53-pdo graphviz rrdtool libboost_program_options1_36_0

php53-zlib

useradd -m nagios

groupadd nagios

usermod -G nagios nagios

groupadd nagcmd

usermod -A nagcmd nagios

usermod -A nagcmd wwwrun

tar zxf nagios-3.5.1.tar.gz

cd nagios/

./configure --with-command-group=nagcmd

make all

make install

make install-init

make install-config

make install-commandmode

make install-webconf

htpasswd2 -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

tar zxf nagios-plugins-2.1.1.tar.gz 

cd nagios-plugins-2.1.1/

./configure --with-nagios-user=nagios --with-nagios-group=nagios

make

make install

chkconfig --add nagios

chkconfig nagios on

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

service nagios start

service apache2 start

rpm -ivh sqlite2-2.8.17-134.12.x86_64.rpm

rpm -ivh php53-sqlite-5.3.17-0.13.7.x86_64.rpm

rpm -ivh php53-sockets-5.3.17-0.13.7.x86_64.rpm

tar zxf mk-livestatus-1.2.6p16.tar.gz

cd mk-livestatus-1.2.6p16/

./configure

make

make install

vi /usr/local/nagios/etc/nagios.cfg

broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live

service nagios restart

tar zxf nagvis-1.8.5.tar.gz 

cd nagvis-1.8.5/

./install.sh

service apache2 restart

tar zxf pnp4nagios-0.6.25.tar.gz 

cd pnp4nagios-0.6.25/

./configure

make all

make fullinstall

a2enmod rewrite

service apache2 restart

rpm -ivh gearmand-server-0.33-2.sles11sp3.x86_64.rpm

rpm -ivh gearmand-0.33-2.sles11sp3.x86_64.rpm

rpm -ivh gearmand-devel-0.33-2.sles11sp3.x86_64.rpm

rpm -ivh mod_gearman-1.5.2-1.sles11sp3.x86_64.rpm

vi /usr/local/nagios/etc/nagios.cfg

broker_module=/usr/lib64/mod_gearman/mod_gearman.o config=/etc/mod_gearman/mod_gearman_neb.conf

process_performance_data=0--->process_performance_data=1

vi /usr/local/nagios/etc/objects/templates.cfg

define host {

   name       host-pnp

   action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' class='tips' rel='/pnp4nagios/index.php/popup?host=$HOSTNAME$&srv=_HOST_

   register   0

}

define service {

   name       srv-pnp

   action_url /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' class='tips' rel='/pnp4nagios/popup?host=$HOSTNAME$&srv=$SERVICEDESC$

   register   0

}

vi /usr/local/nagios/etc/objects/localhost.cfg

uselinux-server--->uselinux-server,host-pnp

uselocal-service--->uselocal-service,srv-pnp

service nagios stop

service gearmand start

/etc/init.d/mod_gearman_worker start

service nagios start

tar zxf String-CRC32-1.5.tar.gz

cd String-CRC32-1.5

perl Makefile.PL

make

make test

make install

tar zxf Gearman-1.12.tar.gz

cd Gearman-1.12.tar

perl Makefile.PL

make

make test

make install

tar zxf Test-Simple-1.001014.tar.gz

cd Test-Simple-1.001014

perl Makefile.PL

make

make test

make install

tar zxf Crypt-Rijndael-1.13.tar.gz

cd Crypt-Rijndael-1.13

perl Makefile.PL

make

make test

make install

/etc/init.d/pnp_gearman_worker start

cd /usr/local/pnp4nagios/share

mv install.php install.php.bak


当前文章:Nagios+Nagvis+pnp4+MKlivestatus+gearmanonsuseSLESSP3
转载来于:http://kswsj.cn/article/ghjgci.html

其他资讯