Bug 30577 - Дубли в дефолтном конфиге
Summary: Дубли в дефолтном конфиге
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: monit (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Michael Shigorin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-19 08:54 MSK by enp
Modified: 2016-05-05 15:39 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description enp 2014-12-19 08:54:54 MSK
# grep -v '^#' /etc/monitrc

set daemon  60              # check services at 1-minute intervals
set httpd port 2812 and
    use address localhost  # only accept connection from localhost
    allow localhost        # allow localhost to connect to the server and
    allow admin:monit      # require user 'admin' with password 'monit'
    allow @monit           # allow users of group 'monit' to connect (rw)
    allow @users readonly  # allow users of group 'users' to connect readonly

set daemon 300 with start delay 60
set logfile syslog facility log_daemon
set statefile /var/run/monit.state
set idfile /var/run/monit.id
set mailserver localhost
set alert root@localhost

set mail-format {
        from: root@localhost
        subject: [monit] -- $SERVICE $EVENT on $HOST at $DATE
        message:
}

set httpd port 2812 and use the address localhost
        allow localhost
        allow monit:secretword

include /etc/monitrc.d/*

Может дублирующиеся параметры в дефолтном конфиге - это не совсем нормально?
Comment 1 Michael Shigorin 2016-05-05 15:06:35 MSK
Ой, как-то я эту багу тогда умудрился проморгать; спасибо!
Comment 2 Repository Robot 2016-05-05 15:39:17 MSK
monit-5.17.1-alt2 -> sisyphus:

* Thu May 05 2016 Michael Shigorin <mike@altlinux> 5.17.1-alt2
- tweaked monitrc addition to avoid dups (closes: #30577)
  + added corresponding warning to %post

* Thu Mar 10 2016 Michael Shigorin <mike@altlinux> 5.17.1-alt1.1
- tweaked filesystems, mdadm examples