Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_wp_version

Rating
3 votes
Favoured:
0
Current Version
0.1
Last Release Date
2010-12-25
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
License
GPL
Hits
95011
Files:
FileDescription
check_wp_versioncheck_wp_version
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks if updates (core, plugins & themes) for wordpress exist. Works also for wordpress version 2.9+

Based on http://exchange.nagios.org/directory/Uncategorized/Check-Wordpress-Versions/details
Reviews (3)
bysybux, October 15, 2013
Hi,
I'm trying to use this plugin with NRPE but I'm getting a strange error :

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

When I run the command on the remote host, it's working fine. In my nrpe.cfg I've defined the function as follow :

command[check_wp]=/opt/libexec/check_wp_version /web/wp

Any idea of what should be wrong ?
bydaincredibleholg, April 15, 2012
Looks ok, but it does not work properly for WP greater 3.0.

Here are my findings:
1. It always signals a CRITICAL state for core updates. Don't know why, but $wp_version is 3.0 and my installed one is 3.3.1. So the if statement fires...
2. The warning in line 52 comes because of unclean coding. It is only a warning, but a simple check, if the value you want to iterate over, if it is "false" will fix it and is a cleaner approach ;)

If I have the time, I will have a second look on it. But maybe you can also check and fix it.

Cheers,
Holger
I (with PHP 5.2.6) allways get this error, when i execute it:

./check_wp_version /srv/www/sc-rheinau/html/

Warning: Invalid argument supplied for foreach() in /opt/nagios check_wp_version on line 52
OK - core ok ; plugins ok ; themes ok

Where is the mistake?