File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11# php-monitoring
22A simple PHP script to monitor network services
33
4- # Install
4+ ## Requirements
5+ PHP 5.x+ with PEAR Mail SMTP
6+ ```
7+ apt-get install php5-cli php-pear && pear install Mail && pear install Net_SMTP
8+ ```
9+
10+ ## Install
511```
612cd /opt
713git clone git@github.com:ircf/php-monitoring.git
814```
915
10- # Configure services and alert
16+ ## Configure services and alert
1117```
1218cd /opt/php-monitoring
1319cp config.inc.php-dist config.inc.php
1420nano config.inc.php
1521# Enter services, alert and save file
1622```
1723
18- # Configure cron
24+ ## Configure cron
1925```
2026ln -s /opt/php-monitoring/cron /etc/cron.d/php-monitoring
2127```
2228
23- # View services statuses
29+ ## View services statuses
2430Services statuses can be viewed from CLI :
2531```
2632php /opt/php-monitoring/index.php
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ function alert(){
118118 }
119119
120120 /**
121- * Send a mail using PHP PEAR library
121+ * FIXME Send a mail using PHP PEAR library
122122 */
123123 function mail ($ opts = array ()){
124124 if (!isset ($ opts ['factory ' ])) throw new Exception ('mail factory not set ' );
You can’t perform that action at this time.
0 commit comments