OSA Monitoring is an open source graphical, free and easy to use monitoring, before installation, first configure the PHP environment,
Yum install httpd mysql mysql-server php-mysql php*-y
Edit http.conf File
vi /etc/httpd/conf/httpd.conf 402 directoryindex index.html index.php Index.html.var //402 rows Join index.php
Edit PHP.ini File
vi /etc/php.ini 229 short_open_tag = on // 229 line off also on 946 Date. TimeZone = PRC // 946-line Time setting
Restart Apache and MySQL
Service httpd Restartservice mysqld restart
Set the login password for MySQL root
" [email protected] " // set Password to [email protected]
Writing a PHP test page
Yum Install elinks-y echo"" >/var/www/html/ chmod 755 /var/www/html/service httpd Restart
Open firewall 3306,80 Port
Iptables-i input-p TCP--dport the-J Acceptiptables-I. INPUT-P TCP--dport3306-J Acceptservice Iptables Saveiptables-l-n--Line Chain INPUT (policy ACCEPT) num Target prot opt source destination1ACCEPT TCP--0.0.0.0/0 0.0.0.0/0TCP DPT:3306 2ACCEPT TCP--0.0.0.0/0 0.0.0.0/0TCP DPT: the 3ACCEPT All--0.0.0.0/0 0.0.0.0/0State related,established4ACCEPT ICMP--0.0.0.0/0 0.0.0.0/0 5ACCEPT All--0.0.0.0/0 0.0.0.0/0 6ACCEPT TCP--0.0.0.0/0 0.0.0.0/0State NEW TCP DPT: A 7REJECT All--0.0.0.0/0 0.0.0.0/0Reject-with icmp-host-prohibited
Testing the PHP environment is successful
ELinks http://localhost/phpinfo.php
Start installing OSA ....
OSA is as follows
wget http://monitor.osapub.com/download/OSA_GUARD_BETA_V1.0.8.tar.gz
Create a storage path for OSA
mkdir -p/usr/local/osa
Unzip the OSA package to a local path
tar zxvf osa_guard_beta_v1. 0.8. tar. Gz-c/usr/local/osa/
Configure Apache to point directories to the OSA program directory, the OSA program directory defaults to:/usr/local/osa/ctrlphp
vi /etc/httpd/conf/httpd.conf // Add the following on the last line <virtualhost * : > /usr/local/osa/ctrlphp 42.51. 153.157 errorlog logs/osa.com-error_log customlog logs/osa.com-access _log Common</VirtualHost> service httpd restart // add -on remember to restart
Take the host to access their own cloud host address http://42.51.x.x/install/index.php will appear the installation interface, this time directly point I agree.
, prompting the above error,
1. We need to manually execute the SH script under the installation directory
This script is used to install the OSA needed for the py and dependent resistance, need to wait a while, the Linux run output is/dev/null empty value, actually already in the execution.
./Install/auto_prepare. SH
2. Set permissions on the/usr/local/osa directory
Chmod-r 777/usr/local/osa/ctrlphp
3. Turn off SELinux restart Apache re-detection environment
0 Service httpd Restart
Environment detection Successful, Next Set Mysql
It is recommended that you use an individual account for the OSA Monitor Wizard (for security purposes, do not use root directly) to create a database and database account, with the following statements:
Mysql-uroot-[Email Protected]mysql>CREATE DATABASE ' osa_guard ' DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci; Query OK,1Row affected (0.00sec) MySQL> GRANT all privileges in osa_guard.* to [email protected]'127.0.0.1'Identified by'osa1688'; Query OK,0Rows Affected (0.00sec) MySQL>FLUSH privileges; Query OK,0Rows Affected (0.00Sec
Click Next to install Success
After successful installation, enter the address: http://Ip/index.php user password are the above installation of the successful interface below, the rest are graphical, we are familiar with the time can learn.
CentOS 6.5 installs OSA Monitoring daemon Monitor Host