function nagios_drush_command in Nagios Monitoring 8
Same name and namespace in other branches
- 6 nagios.drush.inc \nagios_drush_command()
- 7 nagios.drush.inc \nagios_drush_command()
Implements hook_drush_command().
File
- ./
nagios.drush.inc, line 13 - Provides drush integration for the Nagios module.
Code
function nagios_drush_command() {
$items['nagios-list'] = [
'description' => dt('List all available nagios commands.'),
'arguments' => [],
'aliases' => [
'nagios-ls',
],
];
$items['nagios-check'] = [
'description' => dt('Run a nagios command.'),
'arguments' => [
'command' => 'The command to run',
],
'aliases' => [
'nagios',
],
];
$items['nagios-updates'] = [
'description' => dt('Return a space delimited string of all monitored projects with available updates.'),
'arguments' => [
'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' => [
'nagios-up',
],
];
return $items;
}