http://www.phpservermonitor.org
[root@monitor ~]# yum install -y epel-release
[root@monitor ~]# rpm -ivh https://mirror.webtatic.com/yum/el6/latest.rpm
[root@monitor ~]# yum install -y httpd php56w.x86_64 php56w-mysqlnd.x86_64
[root@monitor ~]# rpm -ivh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
[root@monitor ~]# yum install -y mysql-community-server
[root@monitor ~]# vi /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
character-set-server = utf8
innodb_buffer_pool_size = 2G
innodb_buffer_pool_instances = 2
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_log_buffer_size = 16M
innodb_undo_logs= 128
innodb_undo_tablespaces = 3
[root@monitor ~]# service mysqld start
[root@monitor ~]# service mysqld status
mysqld (pid 1583) is running...
[root@monitor ~]# /usr/bin/mysql_secure_installation
[root@monitor ~]# mysql -uroot -pabcd.1234
mysql> create database psm default character set utf8;
Query OK, 1 row affected (0.05 sec)
mysql> grant all on psm.* to 'psm'@'localhost' identified by 'psm@2019';
Query OK, 0 rows affected (0.10 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
[root@monitor ~]# tar zxvf phpservermon-3.3.2.tar.gz -C /var/www/html/
[root@monitor ~]# cd /var/www/html
[root@monitor html]# mv phpservermon-3.3.2 monitor
[root@monitor html]# chown -R apache:apache monitor
[root@monit ~]# service httpd start
[root@monit ~]# service httpd status
httpd (pid 28885) is running...
[root@monitor html]# cd monitor
[root@monitor monitor]# mv config.php.sample config.php
[root@monitor monitor]# vi config.php
<?php
define('PSM_DB_HOST', 'localhost');
define('PSM_DB_PORT', '3306');
define('PSM_DB_NAME', 'psm');
define('PSM_DB_USER', 'psm');
define('PSM_DB_PASS', 'psm@2019');
define('PSM_DB_PREFIX', 'psm_');
define('PSM_BASE_URL', 'http://192.168.40.37/monitor');
[root@monitor ~]# crontab -e
* * * * * php /var/www/html/monitor/cron/status.cron.php
[root@monitor ~]# crontab -l
* * * * * php /var/www/html/monitor/cron/status.cron.php