You are here

function nagios_drush_command in Nagios Monitoring 6

Same name and namespace in other branches
  1. 8 nagios.drush.inc \nagios_drush_command()
  2. 7 nagios.drush.inc \nagios_drush_command()

Implementation of hook_drush_command().

File

./nagios.drush.inc, line 6

Code

function nagios_drush_command() {
  $items['nagios-list'] = array(
    'description' => dt('List all available nagios commands.'),
    'arguments' => array(),
    'aliases' => array(
      'nagios-ls',
    ),
  );
  $items['nagios-check'] = array(
    'description' => dt('Run a nagios command.'),
    'arguments' => array(
      'command' => 'The command to run',
    ),
    'aliases' => array(
      'nagios',
    ),
  );
  $items['nagios-updates'] = array(
    'description' => dt('Return a space delimited string of all monitored projects with available updates.'),
    'arguments' => array(
      'update type' => 'Type of update available, accepts either all or security.',
      'nagios flag' => 'Send \'nagios\' as a flag to enable Nagios prefixes to the output.',
    ),
    'aliases' => array(
      'nagios-up',
    ),
  );
  return $items;
}