Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_wp_version
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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 ?
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
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
byLoremo, May 21, 2011
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?
./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?