<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>26315</bug_id>
          
          <creation_ts>2011-09-15 17:48:51 +0400</creation_ts>
          <short_desc>Изменить реакцию в roorc</short_desc>
          <delta_ts>2011-09-22 17:47:17 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>monit</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gulay Boris">boris</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>evg</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>125339</commentid>
    <comment_count>0</comment_count>
    <who name="Gulay Boris">boris</who>
    <bug_when>2011-09-15 17:48:51 +0400</bug_when>
    <thetext>Сейчас с шаблоне rootrc, который используется для мониторинга конфигов, на проверку контрольной суммы стоит действие unmonitor. Таким образом, при изменении конфига (не такая уж редкая и страшная операция) админ вынужден просить monit начать заново следить за файлом.
Мне кажется, что разумнее использовать действие alert, ибо изменение конфигов есть не такое уж и редкое действие. Было бы логично, если бы monit просто предупреждал об изменении письмом, а не бросал следить за изменённым файлом совсем.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125344</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-09-15 21:12:16 +0400</bug_when>
    <thetext>Пожалуй, хотя хорошо бы перечитать документацию -- не зря же так сделали.
Приложите проверенный пример?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125579</commentid>
    <comment_count>2</comment_count>
    <who name="Gulay Boris">boris</who>
    <bug_when>2011-09-21 19:25:21 +0400</bug_when>
    <thetext>Ну, если не понятно из текста, приложу. Что же ещё остаётся.
Хочу отметить, что все изменения, которые я внёс - это поменял unmonitor на alert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125580</commentid>
    <comment_count>3</comment_count>
      <attachid>5117</attachid>
    <who name="Gulay Boris">boris</who>
    <bug_when>2011-09-21 19:26:13 +0400</bug_when>
    <thetext>Created attachment 5117
Изменённый файл с alert вместо unmonitor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125583</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-09-21 19:52:24 +0400</bug_when>
    <thetext>Оно-то понятно, да сапог в бою надёжней ;-)  Спасибо, сейчас.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125589</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2011-09-21 20:23:45 +0400</bug_when>
    <thetext>monit-5.3-alt2 -&gt; sisyphus:

* Wed Sep 21 2011 Michael Shigorin &lt;mike@altlinux&gt; 5.3-alt2
- rootrc: checksum test failure now results in an alert event
  instead of unmonitor one (closes: #26315)
- EXAMPLES: added dovecot, fail2ban, mdadm, spawn-fcgi, unbound,
  also courtesy of Gulay Boris (closes: #25303)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125608</commentid>
    <comment_count>6</comment_count>
    <who name="Gulay Boris">boris</who>
    <bug_when>2011-09-22 16:35:34 +0400</bug_when>
    <thetext>Ошибочка.
Помимо реации (unmonitor -&gt; alert) нужно ещё изменить и тип мониторинга: failed -&gt; changed.
Правильный файл прилагается.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125609</commentid>
    <comment_count>7</comment_count>
      <attachid>5119</attachid>
    <who name="Gulay Boris">boris</who>
    <bug_when>2011-09-22 16:36:37 +0400</bug_when>
    <thetext>Created attachment 5119
Правльный файл настроект (failed -&gt; changed).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125610</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-09-22 17:01:28 +0400</bug_when>
    <thetext>Вот потому и предлагал вместо диффа на словах приложить проверенный файл. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125613</commentid>
    <comment_count>9</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2011-09-22 17:47:17 +0400</bug_when>
    <thetext>monit-5.3-alt3 -&gt; sisyphus:

* Thu Sep 22 2011 Michael Shigorin &lt;mike@altlinux&gt; 5.3-alt3
- fixed thinko in proposed rootrc (closes: #26315)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5117</attachid>
            <date>2011-09-21 19:26:13 +0400</date>
            <delta_ts>2011-09-22 16:36:37 +0400</delta_ts>
            <desc>Изменённый файл с alert вместо unmonitor.</desc>
            <filename>rootrc</filename>
            <type>text/plain</type>
            <size>160</size>
            <attacher name="Gulay Boris">boris</attacher>
            
              <data encoding="base64">aWYgZmFpbGVkIGNoZWNrc3VtICAgICAgICB0aGVuIGFsZXJ0CmlmIGZhaWxlZCBwZXJtaXNzaW9u
IDY0NCAgdGhlbiB1bm1vbml0b3IKaWYgZmFpbGVkIHVpZCByb290ICAgICAgICB0aGVuIHVubW9u
aXRvcgppZiBmYWlsZWQgZ2lkIHJvb3QgICAgICAgIHRoZW4gdW5tb25pdG9yCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5119</attachid>
            <date>2011-09-22 16:36:37 +0400</date>
            <delta_ts>2011-09-22 16:36:37 +0400</delta_ts>
            <desc>Правльный файл настроект (failed -&gt; changed).</desc>
            <filename>rootrc</filename>
            <type>text/plain</type>
            <size>160</size>
            <attacher name="Gulay Boris">boris</attacher>
            
              <data encoding="base64">aWYgY2hhbmdlZCBjaGVja3N1bSAgICAgICB0aGVuIGFsZXJ0CmlmIGZhaWxlZCBwZXJtaXNzaW9u
IDY0NCAgdGhlbiB1bm1vbml0b3IKaWYgZmFpbGVkIHVpZCByb290ICAgICAgICB0aGVuIHVubW9u
aXRvcgppZiBmYWlsZWQgZ2lkIHJvb3QgICAgICAgIHRoZW4gdW5tb25pdG9yCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>