drush_nagios
Variables
example.aliases.drushrc.php File Reference

Go to the source code of this file.

Variables

 $aliases ['remote']
 
 $aliases ['dev']
 

Detailed Description

Drush site alias configuration with command specific options for drush_nagios (https://www.drupal.org/project/drush_nagios) used via NRPE or via ssh.

Drush will search for aliases in any of these files using the alias search path. The following locations are examined for alias files:

See also
http://api.drush.org/api/drush/examples%21example.aliases.drushrc.php/5.x for example of valid statements for an alias file.

Definition in file example.aliases.drushrc.php.

Variable Documentation

$aliases['remote']
Initial value:
= array(
'remote-user' => 'user',
'remote-host' => 'server.example.com',
'remote-os' => 'Linux',
'ssh-options' => '-p 1337 -i /home/user/.ssh/identiy',
)

Settings for connecting a (remote) site on another host through ssh.

Definition at line 32 of file example.aliases.drushrc.php.

$aliases['dev']
Initial value:
= array(
'uri' => 'dev.example.com',
'root' => '/path/to/drupal/root',
'parent' => '@remote',
'command-specific' => array (
'check-updates' => array(
'ignore' => 'project1,project2,projectN',
'ignore-locked' => 1,
),
'check-drupal-requirements' => array(
'ignore' => 'facility1,facility2,facilityN',
)
),
)

Site alias 'dev' with command specific options for drush_nagios

  • Parent setting
    1 $aliases['dev']['parent'] = '@remote';
    • If monitoring should be done through ssh you will need this option in combination with above declared $aliases['remote'].
    • If monitoring should be done through NRPE, you will not need this line and above declared $aliases['remote']`.
  • Specific options for check-updates command
    • ignore
      1 $aliases['dev']['command-specific']['check-updates']['ignore'] = 'project1,project2,projectN';
      • Comma seperated list of projects which should be ignored, useful for patched, modified modules etc.
    • ignore-locked
      1 $aliases['dev']['command-specific']['check-updates']['ingnore-locked'] = 1';
      • Ignore projects which are locked by drush pm-update --lock.
  • Specific options for check-drupal-requirements command
    • ignore
      1 $aliases['dev']['command-specific']['check-drupal-requirements']['ignore'] = 'facility1,facility2,facilityN';
      • Facility or comma seperated list of facilities which should be ignored,

Definition at line 60 of file example.aliases.drushrc.php.