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

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

    <bug>
          <bug_id>53486</bug_id>
          
          <creation_ts>2025-03-17 12:00:37 +0300</creation_ts>
          <short_desc>Ошибка в конфигурационном файле Monit</short_desc>
          <delta_ts>2025-03-21 14:42:24 +0300</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>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>38mhu81sb2</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>evg</cc>
    
    <cc>mike</cc>
    
    <cc>osmolovskayaaa</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>261164</commentid>
    <comment_count>0</comment_count>
    <who name="">38mhu81sb2</who>
    <bug_when>2025-03-17 12:00:37 +0300</bug_when>
    <thetext>В конфигурационном файле по-умолчанию присутствует ошибка в секции httpd сервера

use address 127.0.0.1        # allow localhost to connect to the server and

- параметр повторяет предыдущий (use address localhost)
- комментарий подразумевает другой параметр, а именно allow localhost

Также в лог файле ошибка

/etc/monitrc:159: The &apos;address&apos; option can be specified only once, the last value will be used
 &apos;127.0.0.1&apos;

Версии

cat /etc/os-release
NAME=&quot;starter kit&quot;
VERSION=&quot;11&quot;
ID=altlinux
VERSION_ID=11
PRETTY_NAME=&quot;ALT Starterkit 11 (Salvia)&quot;
ANSI_COLOR=&quot;1;33&quot;
CPE_NAME=&quot;cpe:/o:alt:starterkit:11&quot;
BUILD_ID=&quot;starter kit p10 (Hypericum)&quot;
ALT_BRANCH_ID=&quot;p11&quot;
HOME_URL=&quot;http://en.altlinux.org/starterkits&quot;
BUG_REPORT_URL=&quot;https://bugs.altlinux.org/&quot;
LOGO=altlinux

monit -V
This is Monit version 5.33.0
Built with ssl, with ipv6, with compression, with pam and with large files
Copyright (C) 2001-2022 Tildeslash Ltd. All Rights Reserved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261601</commentid>
    <comment_count>1</comment_count>
    <who name="Osmolovskaya Anastasia">osmolovskayaaa</who>
    <bug_when>2025-03-21 14:40:26 +0300</bug_when>
    <thetext>Проверялось в p11 и Sisyphus - ошибка воспроизводится

Версия пакета: monit-5.34.4-alt1

Тестовые стенды:
Alt Workstation K 11.0 x86-64 (обновленный до Sisyphus)
Alt Workstation 11.0 x86-64 (обновленный до Sisyphus)
Alt Server 11.0 x86-64 (обновленный до Sisyphus)

Шаги для воспроизведения:
1. Установить пакет monit: apt-get install -y monit
2. Запустить сервис: # systemctl start monit
3. Проверить ошибки в логах: 
# journalctl | grep monitrc

Ожидаемый результат: отсутствуют ошибки, связанные с конфигурационным файлом 
Реальный результат:
/etc/monitrc:162: The &apos;address&apos; option can be specified only once, the last value will be used</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>