A Nagios plugin to check for WordPress version updates on a remote server without the use of NRPE.
How to use:
- Upload wp-version.php to your WordPress root installation
- Include the IP address of your Nagios installation in the script
- Copy check_wp_update to your Nagios plugins folder. For me, it's on /usr/lib64/nagios/plugins
- Create a service command template
- Create a service check on your host
Command Template
define command{
command_name check_wp_update
command_line $USER1$/check_wp_update $ARG1$
}
Service Check
define service{
use generic-service
host_name example.com
service_description My WordPress Install
check_command check_wp_update!http://example.com/wp-version.php
}
Inspired by check_wp_version by @hteske. Original here