nagios deployment and configuration

A, Nagios deployment and configuration methods:
Nagios server to install
Nagios plug-in installation
https://www.cnblogs.com/Richardzhu/p/3340638.html

Apache installation
https://www.cnblogs.com/Anker/p/3355573.html

php installation

 

/ ************************************************* **************************** /
encounter problems:
tips "read nagios service using chkconfig --add 1. Add service error Getting information: no such file or directory "
reference URL: http: //blog.chinaunix.net/uid-28597757-id-3503976.html

2. 安装apatche时,./configure --prefix=/usr/local/apache2
报错:configure: error: APR not found. Please read the documentation.

3.安装apr,
报错:rm: cannot remove 'libtoolT': No such file or directory
https://jingyan.baidu.com/article/b907e627611f6b46e7891cb6.html

4. Install apr,
error: xml / apr_xml.c: 35: 19 : Fatal error: expat.h: No such file or directory
yum install -y expat-devel to

5.安装pcre
报错:configure: error: Invalid C++ compiler or C++ compiler flags
yum install -y gcc gcc-c++

6. Installation Apache
/usr/local/web/apr-util/lib/libaprutil-1.so: Reference to undefined XML_GetErrorCode ` '
should speak apt-util to version 1.5 of
https://www.cnblogs.com/zyos /p/7663717.html

7. Install php
error:: Please xml2-config not found the Check your libxml2 Installation ... the configure when you install php source.
Https://blog.csdn.net/weixin_33759269/article/details/86231617

8. Start apach
solve apache start error "httpd: Could not Reliably the Determine ..."
https://blog.csdn.net/zhaomininternational/article/details/42293511

9. linux host can not access Linux virtual machine of the Apache
https://blog.csdn.net/zymx14/article/details/51440722

10. linux start nagios can not access the web
need to turn off the firewall, centos turn off the firewall command;
Firewall-cmd --state
systemctl STOP firewalld.service
systemctl // disable firewalld.service prohibit boot

Second, the installation method mysql:
https://www.cnblogs.com/yizitrd/p/5363068.html


/*****************************************************************************/

 


nagios running the debugger:
Start apach command:
/ usr / local / the Apache / bin / apachectl restart
or
service httpd restart

chkconfig添加服务
chkconfig --add nagios
chkconfig --level 35 nagios on
chkconfig --list nagios

1. Check whether the correct configuration file
/ usr / local / Nagios / bin / Nagios -v /usr/local/nagios/etc/nagios.cfg

2. Start Nagios
A. Initialization script starts
# /etc/init.d/nagios start
or
# Start Nagios Service

b./usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

How to configure linux boot from the start?

 

Guess you like

Origin www.cnblogs.com/longzhiwen/p/11487688.html