drush_nagios
example.drushrc.php
Go to the documentation of this file.
1 <?php
2 
3 /**
4  * @file
5  * Drush runtime config with command specific options
6  * for drush_nagios (https://www.drupal.org/project/drush_nagios)
7  * used on the monitored site or Drupal installation.
8  *
9  * This configuration overwrites previous settings
10  * made in example.aliases.drushrc.php.
11  *
12  * Rename this file to drushrc.php and optionally copy it to one of the places
13  * listed below in order of precedence:
14  *
15  * 1. Drupal site folder (e.g. sites/{default|example.com}/drushrc.php).
16  * 2. Drupal /drush and sites/all/drush folders.
17  *
18  * @see http://api.drush.org/api/drush/examples%21example.drushrc.php/5.x
19  * for examples of valid statements for a Drush runtime config (drushrc) file.
20  */
21 
22 /**
23  * @todo Implement drush_nagios_monitored_server variable
24  * for customizing output if available.
25  */
26 
27 /**
28  * FQDN Host name of the server where the monitored site lives,
29  * used within message output if available.
30  */
31 // $options['variables']['drush_nagios_monitored_server'] = 'server.example.com';
32 
33 /**
34  * Command specific options for check-updates command.
35  * - ignore
36  * - Comma seperated list of projects which should be ignored,
37  * useful for patched, modified modules etc.
38  * - ignore-locked
39  * - Ignore projects which are locked by `drush pm-update --lock`
40  * (1, TRUE = on/0, FALSE = off).
41  */
42 $command_specific['check-updates'] = array(
43  'ignore' => 'project1,project2,projectN',
44  'ignore-locked' => 1,
45 );
46 
47 /**
48  * Command specific options for check-drupal-requirements command.
49  * - ignore
50  * - Facility or comma seperated list of facilities which should be ignored,
51  */
52 $command_specific['check-drupal-requirements'] = array(
53  'ignore' => 'facility1,facility2,facilityN',
54 );
55 
56 /**
57  * Command specific options for check-dbupdates command.
58  * - severity
59  * - Severity if there are pending database updates
60  * (1 = Warning (default), 2 = Critical).
61  */
62 /*
63 $command_specific['check-db-updates'] = array(
64  'severity' => '2',
65 );
66 */
$command_specific['check-updates']