| 1 | { | ||
| 2 | 1 | package Ym; | |
| 3 | |||
| 4 | 1 | $YMHOME = '/home/monitor/work/ym'; | |
| 5 | |||
| 6 | # Place to keep serialized Nagios configs. | ||
| 7 | # This is needed for running multiple ym commands before | ||
| 8 | # building new configuration files. | ||
| 9 | 1 | $STRUCT_FILE = "$YMHOME/store/config.struct"; | |
| 10 | |||
| 11 | # Specify user and group. Ym will act and use their permissions. | ||
| 12 | 1 | $YM_USER = 'monitor'; | |
| 13 | 1 | $YM_GROUP = 'monitor'; | |
| 14 | |||
| 15 | # Tell ym where are your Nagios configs. | ||
| 16 | 1 | $NAGIOS_CFG_DIR = '/home/monitor/NAGIOS/etc'; | |
| 17 | 1 | $NAGIOS_CFG_NAME = 'nagios.cfg'; | |
| 18 | 1 | $NAGIOS_MAIN_CFG = "$NAGIOS_CFG_DIR/$NAGIOS_CFG_NAME"; | |
| 19 | |||
| 20 | # Place to build test configuration when 'verify-cfg' command is called. | ||
| 21 | 1 | $WORKPLACE = "$YMHOME/tmp/etc"; | |
| 22 | |||
| 23 | 1 | $HOSTNAME = `hostname -f`; | |
| 24 | 1 | chomp($HOSTNAME); | |
| 25 | |||
| 26 | 1 | $VERBOSE = 0; | |
| 27 | 1 | $DEBUG = 0; | |
| 28 | |||
| 29 | # Run ym with a '--diff' option by default. | ||
| 30 | 1 | $SHOW_DIFF_BY_DEFAULT = 1; | |
| 31 | |||
| 32 | # Backup *.cfg files from NAGIOS_CFG_DIR defore generating | ||
| 33 | # new configs when 'make-cfg' is called. | ||
| 34 | 1 | $BACKUP_CONFIG_FILES = 1; | |
| 35 | 1 | $BACKUP_PATH = '/var/backups/ym/nagios_cfg_backup'; | |
| 36 | |||
| 37 | 1 | $ENABLE_YM_SPECIFIC = 0; | |
| 38 | } | ||
| 39 |