Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fl3a/drush_nagios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Drush Nagios (drush_nagios)

Introduction

Isolated Nagios/Icinga functionality from drush_multi, for Nagios/Icinga monitoring via NRPE Plugin or ssh as Drush plugin.

It just prints a message and exit with an exit status (severity).

You can find the original project page at http://drupal.org/project/drush_nagios .

Commands

drush_nagios includes the following commands:

check-updates

Checks for pending updates including Drupal (core), modules and themes grouped by type/serverity of update followed by the corresonding modules.

This command has 2 option to ignore projects.

  • Via --ignore option, followed by project or comma seperated list of projects
  • Or via --ignore-locked option, which ignores project that are locked via drush pm-update --lock

In both cases the ignored projects does not affect the exit status but they got listed with their severity.

check-db-updates

Checks for pending database updates.

check-drupal-requirements

Anything at Drupals status report (Administer -> Reports -> Status report) for met requirements and their serverity, such as:

  • module updates
  • last run of cron
  • database schema
  • files directory writability
  • access to update.php
  • files directory protection via .htaccess
  • every project that implements hook_requirements()

Like in check-updates, this command has a --ignore option for ignoring requirements/facilities too with the same behaviour as above.

Ignored requirements does not affect the exit status but they got listed with their severity.

Requirements

Since this is a Drush extension, you will need Drush greater or equal Drush version 5.

Installation

Manual method

Download from project page and extract this extension to a number of places:

  • In a .drush folder in your HOME folder.
  • Along with one of your existing modules. If your command is related to an existing module, this is the preferred option.
  • In a folder specified with the include option.
  • In /path/to/drush/commands (not a "Smart Thing to Do", but it would work).

Drush method

Since this is as drupal.org project, you might install it via drush, just type:

drush @none dl drush_nagios

Configuration

  • See example.aliases.drushrc.php at examples directory for drush_nagios specific settings within an alias file.
  • See example.drushrc.php at examples directory for drush_nagios specific settings within a Drush runtime config (drushrc) file.

Documentation

Every command got a help, for options, examples and further informations just type:

drush help COMMAND

Maintainers

Credits

Thanks to the mighty hundfred, friend and Bastard Operator from Hell, who inspired me to write this (Nagios) Drush plugin.

About

Nagios/Icinga monitoring via NRPE Plugin or ssh via Drush

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages