Skip to content

Commit 975c089

Browse files
committed
added PHP pear install procedure
1 parent f47f382 commit 975c089

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
# php-monitoring
22
A 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
```
612
cd /opt
713
git clone git@github.com:ircf/php-monitoring.git
814
```
915

10-
# Configure services and alert
16+
## Configure services and alert
1117
```
1218
cd /opt/php-monitoring
1319
cp config.inc.php-dist config.inc.php
1420
nano config.inc.php
1521
# Enter services, alert and save file
1622
```
1723

18-
# Configure cron
24+
## Configure cron
1925
```
2026
ln -s /opt/php-monitoring/cron /etc/cron.d/php-monitoring
2127
```
2228

23-
# View services statuses
29+
## View services statuses
2430
Services statuses can be viewed from CLI :
2531
```
2632
php /opt/php-monitoring/index.php

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)