Nagios checks for drupal and wordpress versions

I wrote two simple checks scripts for nagios which can be used to monitor drupal and wordpress installations for updates. Both scripts use functions of the integrated update mechanisms of drupal or wordpress to check for updates.

Both scripts take the path to a installation as argument:

# ./check_drupal_update.php <path_to_drupal>
OK - all modules current
# ./check_wp_versions.php <path_to_wp>
OK - core ok ; plugins ok

An example nagios configuration:

define command{
command_name    check_wp_versions
command_line    /usr/local/bin/check_wp_versions.php $ARG1$
}
define service {
use                             generic-service
host_name                       host.zumsel.de
service_description             www.zumsel.de-wp-versions
check_command                   check_wp_versions!/var/www/www.zumsel.de/htdocs/blog/
max_check_attempts              1
normal_check_interval           720
contact_groups                  zumsel_admin
}

Download:
check_drupal_update.php.gz
check_wp_versions.php.gz

SMS::SMS77 – Version 0.01

SMS::SMS77 ist ein Tool und ein Perlinterface für den SMS Dienst von http://www.sms77.de.

Version 0.01 steht jetzt auf meiner Homepage zum Download bereit.

Wenn dir das Tool gefällt und du mir etwas zurückgeben möchtest benutze diesen Link um dich bei sms77.de zu registrieren. Dann habe ich dich “geworben”.

Download: