Project

General

Profile

Monitoring WordPress » History » Version 2

Jon Goldberg, 09/01/2017 07:00 PM
Update docs to support multi WP sites

1 1 Jon Goldberg
{{last_updated_at}} by {{last_updated_by}}
2
# Monitoring WordPress
3
4
First, install the `wp-version.php` file in your webroot:
5
6
```bash
7
# cd /path/to/webroot
8 2 Jon Goldberg
wget https://raw.githubusercontent.com/MegaphoneJon/Nagios-WordPress-Update/master/wp-version.php
9 1 Jon Goldberg
```
10
11
Edit `wp-version.php` to add the IP address of orange.megaphonetech.com
12
(currently: 173.255.234.245) to the `$allowed_ips[]` array.
13
14
Icinga2 Setup
15
-------------
16
17 2 Jon Goldberg
Edit the appropriate `vars.http_vhosts` stanza(s) of your Icinga2 host file to include:
18 1 Jon Goldberg
19
```
20 2 Jon Goldberg
cms = "wordpress"
21 1 Jon Goldberg
```