Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install nagiosQL

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces how to install nagiosQL, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Install nagiosql

1.yum-y install php-mysql mysql perl-DBI perl-DBD-MySQL gcc glibc glibc-common gd gd-devel php-pear mysql-devel perl gettext mysql-server

Recompile PHP to add-- with-gettext-- with-mysql-- enable-ftp

#. / configure-prefix=/usr/local/php-with-apxs2=/usr/local/apache2/bin/apxs-with-zlib-with-gd-with-mysqld-with-gettext-enable-ftp

# make

# make install

two。 To install HTML_Template_IT, execute the following command

# pear install HTML_Template_IT

Download address of 3.NagiosQL:

Http://nchc.dl.sourceforge.net/project/nagiosql/nagiosql/NagiosQL%203.2.0/nagiosql_320.tar.gz

Decompress, NagiosQL is a WEB management tool, just put it under Apache. Because here it needs to be integrated with Nagios, for ease of management, put it in the Nagios directory

# mv nagiosql32 / usr/local/nagios/

# chown-R nagios:nagios / usr/local/nagios/nagiosql

Modify the access to the config directory so that apache has write access to it

# chmod-R 777 / usr/local/nagios/nagiosql/config

Create a profile directory and modify permissions

Mkdir-p / etc/nagiosql/ {hosts,services,backup/ {, hosts,services}, import}

Chown-R apache:nagios / etc/nagiosql/

Chmod-R 755 / etc/nagiosql

Chmod 777 / usr/local/nagios/nagiosql/config

Create an ENABLE_INSTALLER file under install

[root@localhost rpm] # cd / usr/local/nagios/nagiosql/install/

[root@localhost install] # touch. / ENABLE_INSTALLER

[root@localhost install] # vim / usr/local/apache2/conf/httpd.conf

Modify the httpd.conf of apache by adding the following statement after it:

Alias / nagiosQL "/ usr/local/nagios/nagiosql" # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all

[root@localhost install] # / usr/local/apache2/bin/apachectl restart

[root@localhost install] # service mysqld restart

The following error is prompted when entering http://IP/nagiosQL

Fatal error: Call to undefined function gettext () in / usr/local/nagios/nagiosql/functions/translator.php on line 21

Enter the installation test environment interface and prompt the following error:

Recompile PHP to add-- with-gettext-- with-mysql-- enable-ftp

/ configure-- prefix=/usr/local/php-- with-apxs2=/usr/local/apache2/bin/apxs-- with-zlib-- with-gd-- with-gettext-- with-mysql-- enable-ftp

Prompt is not completed, need to modify php.ini, location is / etc/php.ini, find date.timezone, enable to add date.timezone=PRC

Thank you for reading this article carefully. I hope the article "how to install nagiosQL" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report