Wordpress

check_wp_version

Description:

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

Current Version

0.1

Last Release Date

2010-12-25

Compatible With

  • Nagios 2.x
  • Nagios 3.x

Owner

License

GPL


Nagios CSP

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!
Project Files
Project Notes
Reviews (3) Add a Review
Error with NRPE mode
by sybux, October 31, 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 ?
Helpful? Yes  No 
Need fixes
by daincredibleholg, April 30, 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
Helpful? Yes  No 
Invalid argument supplied for foreach()
by Loremo, May 31, 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?
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3.7 (3)
Favorites
0
Views
95,473