Monitoring the WordPress up-to-date status.
This script checks whether there are updates for your WordPress installation. It’s written in PHP to use the WordPress code itself, we don’t need to to reinvent the wheel ;-)
There are two options to check your WordPress installation:
If you are not allowed or however not able to setup Nagios/Icinga (or whatever monitoring solution you’re using) on the web-server you can check the WP-core-version remotely. The plugin will download your website and compares the version in the header with the lastes version provided by the WordPress-API. It’s only working if you don’t suppress the header field
<meta name="generator" content="WordPress 3.2" /> , e.g. with plugins like Secure WordPress. Just pass your domain together with
--web to the plugin:
Of course you can also monitor foreign WordPress installations. If your installation is covert by an untrusted cert you might disable cert-validation-checks with
Executing the script with
--web will just try to check the WP-core version. There is no chance to check for plugin or theme updates via web. So the more compfortable way might be to check local installations.
If your monitoring solution has access to your installation files you should provide this path along with
This execution will check for updates of your WP-core, your plugins and your themes. Of course some of these checks can be disabled with
--no-theme . If you have a mutli-site installation you can provide the domain to check with
Web-based checks and local installation checks are disjoint, you can’t do both variants in one call. If you want to do so, just set up two different monotoring service definitions.
Please consider to take a look at my general setup notes.