README.md 576 Bytes
Newer Older
Anastasia Galkin's avatar
Anastasia Galkin committed
1
Checks statistics for wordpress instances for the last 24 hours and logs those into a log file with a timestamp.
Anastasia Galkin's avatar
Anastasia Galkin committed
2 3 4
* new users
* new posts
* new pages
5

6
## Requirenments
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

For Centos:

```
yum install MySQL-python
```

Create the user and grant select privileges on the DB:

```
create user 'wp-check-user'@'your_server' identified by 'password';
grant select on wordpress_db.* to `wp-check-user`@`your_server`;
```

Let the check run every day at 5am

```
crontab -e
```

Insert

```
 # check wordpress instances for news
0 5 * * * /usr/bin/python /opt/check-wp/check-wp.py
````