Monitores a Drupal installation or a Drupal site and print a message and return with an exit status
If the Drupal installation is not up to date, this command prints the recommended version, the type of the update (Bug fixes or Security update), the release date and the link to the release note of the recommended version.
Exit status
MULTI_NAGIOS_OK (0) if monitored Drupal is up to date
or MULTI_NAGIOS_WARNING (1) if there is a 'Bug fixes' available
or MULTI_NAGIOS_CRITICAL(2) if there is a 'Security update' available
If the Drupal site is not up to date, this command will print the type of the update(Security update, update, unsupported release) including the corresponding modules and a link to overview page within drupal.
Exit status
MULTI_NAGIOS_OK (0) if monitored site is up to date
or MULTI_NAGIOS_WARNING (1) if there are updates or unsupported modules available
or MULTI_NAGIOS_CRITICAL(2) if there are security updates available
drush -r /path/to/drupal/6.x multi-nagios
With an older version, eg. drupal-6.13 we get:
DRUPAL ROOT CRITICAL: drupal-6.13 @ /path/to/drupal/6.x
- drupal-6.14 (Security update) from 2009-09-16 21:40 available, see http://drupal.org/node/579476 for details.
Or if we are running the recommended version:
DRUPAL ROOT OK: drupal-6.14 @ /path/to/drupal/6.x is up to date.
drush -r /path/to/drupal/6.x multi-nagios --file=/path/to/file
drush -r /path/to/drupal/6.x -l example.com multi-nagios
it will print the following output and exit with MULTI_NAGIOS_CRITICAL (2) because of the security update.
DRUPAL SITE CRITICAL - example.com @ /path/to/drupal/6.x/sites/example.com: SECURITY UPDATES available for image,lightbox2, Updates available for drupal,bueditor,imce, Installed version not supported: transliterations, see http://example.com/?q=admin/reports/updates for datails.
If there are no updates available, this will produce to following output:
DRUPAL SITE OK - example.com @ /path/to/drupal/6.x/sites/example.com: Everything is up to date.