Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support (Russian)
  3. Opensuse 12 Установить netxms-агент

Opensuse 12 Установить netxms-агент

Scheduled Pinned Locked Moved Support (Russian)
25 Posts 3 Posters 60.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    F
    Filipp Sudanov
    wrote on last edited by
    #8

    Да, на дебиане все должно быть проще, т.к. есть пакеты.

    Команда apt-get install netxms-agent не удалась, поэтому и файл конфигурации в системе не появился.

    Работает это все следующий образом - sudo dpkg -i netxms-release_1.6_all.deb добавляет в систему репозиторий. Дальше нужно сделать sudo apt-get update, чтоб из этого репозитория скачалась информация о том, какие пакеты он предоставляет. Какой-то из двух шагов не сработал и поэтому apt-get install netxms-agent не знает, откуда брать netxms-agent и не может его поставить. Проверяете вот эти первые два шага.

    1 Reply Last reply
    0
    • T
      T
      TOLeg
      wrote on last edited by
      #9

      Выполнил команду - sudo dpkg -I netxms-realese_1.6_all.deb
      Результат:
      (Reading database … 130747 files and directories currently installed.)
      Prepare to unpack etxms-realese_1.6_all.deb …
      Unpacking netxms-realese (1.6) over (1.6) …
      Setting up netxms-realese (1.6) …

      После выполняю sudo apt-get update и sudo apt-get install netxms-agent
      Ошибка осталась:
      Reading package lists...Done
      Building dependency tree
      Reading state information … Done
      E: Unable to locate package netxms-agent

      Что делаю не так?

      1 Reply Last reply
      0
      • F
        F
        Filipp Sudanov
        wrote on last edited by
        #10

        А какой вывод у apt-get update?

        1 Reply Last reply
        0
        • T
          T
          TOLeg
          wrote on last edited by
          #11

          user01@deb-test:~/Downloads$ sudo apt-get update
          Ign:1 cdrom://[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 DVD Binary-1 20190908-01:09] buster InRelease
          Err:2 cdrom://[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 DVD Binary-1 20190908-01:09] buster Release
            Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
          Err:3 http://packages.netxms.org/debian buster InRelease                     
            Could not resolve 'packages.netxms.org'
          Err:4 http://deb.debian.org/debian buster InRelease                           
            Could not resolve 'deb.debian.org'
          Err:5 http://security.debian.org/debian-security buster/updates InRelease
            Could not resolve 'security.debian.org'
          Reading package lists... Done       
          E: The repository 'cdrom://[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 DVD Binary-1 20190908-01:09] buster Release' does not have a Release file.
          N: Updating from such a repository can't be done securely, and is therefore disabled by default.
          N: See apt-secure(8) manpage for repository creation and user configuration details.
          W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5
          W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:5

          1 Reply Last reply
          0
          • F
            F
            Filipp Sudanov
            wrote on last edited by
            #12

            А, ну да, это же у вас оффлайновая машина, а apt-get update работает в онлайне.
            https://packages.netxms.org/debian/pool/buster/main/n/netxms/ - вот тут можно скачать .deb файл агента и поставить его через dpkg -i имя_пакета.deb
            Зависимости (другие пакеты, которые требуются для агента) скорее всего найдутся на DVD диске, с которого ставилась система, если нет, то тоже нужно будет скачать .deb файлы этих пакетов и поставить через dpkg -i

            1 Reply Last reply
            0
            • T
              T
              TOLeg
              wrote on last edited by
              #13

              Установил все библиотеки, агента,
              Результат:
              user01@deb-test:~/Downloads$ sudo dpkg -i libpcre32-3_8.39-12_amd64.deb
              Selecting previously unselected package libpcre32-3:amd64.
              (Reading database ... 146811 files and directories currently installed.)
              Preparing to unpack libpcre32-3_8.39-12_amd64.deb ...
              Unpacking libpcre32-3:amd64 (2:8.39-12) ...
              Setting up libpcre32-3:amd64 (2:8.39-12) ...
              Processing triggers for libc-bin (2.28-10) ...
              user01@deb-test:~/Downloads$ sudo dpkg -i libssh-4_0.8.7-1_amd64.deb
              Selecting previously unselected package libssh-4:amd64.
              (Reading database ... 146817 files and directories currently installed.)
              Preparing to unpack libssh-4_0.8.7-1_amd64.deb ...
              Unpacking libssh-4:amd64 (0.8.7-1) ...
              Setting up libssh-4:amd64 (0.8.7-1) ...
              Processing triggers for libc-bin (2.28-10) ...
              user01@deb-test:~/Downloads$ sudo dpkg -i netxms-base_3.0.2329-1_amd64.deb
              (Reading database ... 146825 files and directories currently installed.)
              Preparing to unpack netxms-base_3.0.2329-1_amd64.deb ...
              Unpacking netxms-base:amd64 (3.0.2329-1) over (3.0.2329-1) ...
              Setting up netxms-base:amd64 (3.0.2329-1) ...
              Processing triggers for libc-bin (2.28-10) ...
              user01@deb-test:~/Downloads$ sudo dpkg -i netxms-dbdrv-sqlite3_3.0.2329-1_amd64.deb
              Selecting previously unselected package netxms-dbdrv-sqlite3:amd64.
              (Reading database ... 146825 files and directories currently installed.)
              Preparing to unpack netxms-dbdrv-sqlite3_3.0.2329-1_amd64.deb ...
              Unpacking netxms-dbdrv-sqlite3:amd64 (3.0.2329-1) ...
              Setting up netxms-dbdrv-sqlite3:amd64 (3.0.2329-1) ...
              user01@deb-test:~/Downloads$ sudo dpkg -i netxms-agent_3.0.2329-1_amd64.deb
              (Reading database ... 146831 files and directories currently installed.)
              Preparing to unpack netxms-agent_3.0.2329-1_amd64.deb ...
              Unpacking netxms-agent:amd64 (3.0.2329-1) over (3.0.2329-1) ...
              Setting up netxms-agent:amd64 (3.0.2329-1) ...
              Processing triggers for libc-bin (2.28-10) ...
              Processing triggers for systemd (241-7~deb10u1) ...
              Processing triggers for man-db (2.8.5-2) ...
              user01@deb-test:~/Downloads$

              указал сервер управления  в /etc/nxagentd.conf и выполнил перезагрузку.
              В консоли управления сервер не появился. При опросе из консоли управления ругается на Unable to get interface list from node , Interface "unknown" is no longer exist :
              [16.10.2019 17:28:02] **** Poll request sent to server ****
              [16.10.2019 17:28:02] Poll request accepted
              [16.10.2019 17:28:02] Starting configuration poll for node DEB-TEST
              [16.10.2019 17:28:02] Capability reset
              [16.10.2019 17:28:02] Checking node's capabilities...
              [16.10.2019 17:28:02]    Checking NetXMS agent...
              [16.10.2019 17:28:03]    Checking SNMP...
              [16.10.2019 17:28:27] Capability check finished
              [16.10.2019 17:28:27] Checking interface configuration...
              [16.10.2019 17:28:27] Unable to get interface list from node
              [16.10.2019 17:28:27]    Interface "unknown" is no longer exist
              [16.10.2019 17:28:27] Interface configuration check finished
              [16.10.2019 17:28:27] Checking node name
              [16.10.2019 17:28:27] Node name is OK
              [16.10.2019 17:28:27] Finished configuration poll for node DEB-TEST
              [16.10.2019 17:28:27] Node configuration was not changed after poll
              [16.10.2019 17:28:27] **** Poll completed successfully ****

              1 Reply Last reply
              0
              • T
                T
                TOLeg
                wrote on last edited by
                #14

                Log /var/log/nxagentd
                2019.10.16 15:12:27.188 Log file opened (rotation policy 2, max size 4194304)
                2019.10.16 15:12:27.189 *D* [                  ] Log rotation policy set to 2 (size=16777216, count=4)
                2019.10.16 15:12:27.189 *I* [                  ] Core agent version 3.0-2329-g2d9ace4e99
                2019.10.16 15:12:27.189 *I* [                  ] Additional configuration files was loaded from /etc/nxagentd.conf.d
                2019.10.16 15:12:27.189 *I* [                  ] Debug level set to 0
                2019.10.16 15:12:27.189 *I* [                  ] Data directory: /var/lib/netxms
                2019.10.16 15:12:27.190 *I* [                  ] File store: /tmp
                2019.10.16 15:12:27.198 *I* [db.driver          ] Database driver "sqlite.ddr" loaded and initialized successfully
                2019.10.16 15:12:27.226 *I* [                  ] Agent ID is 55bd05cc-f53e-4106-8aa3-ce959193c3c5
                2019.10.16 15:12:27.228 *I* [                  ] Local host name is "deb-test.my.dom"
                2019.10.16 15:12:27.228 *I* [                  ] Using system name "deb-test"
                2019.10.16 15:12:28.244 *I* [                  ] Subagent "Linux" (linux.nsm) loaded successfully (version 3.0-2329-g2d9ace4e99)
                2019.10.16 15:12:29.249 *E* [                  ] Unable to bind IPv4 socket (98 Address already in use)
                2019.10.16 15:12:29.250 *E* [                  ] Unable to bind IPv6 socket (98 Address already in use)
                2019.10.16 15:12:30.250 *I* [                  ] NetXMS Agent started

                1 Reply Last reply
                0
                • F
                  F
                  Filipp Sudanov
                  wrote on last edited by
                  #15

                  А как вы агента запускали, через
                  systemctl start nxagentd
                  или
                  nxagentd -d
                  ?

                  При установке из пакетов агент прописывается в systemd и им можно управлять через systemctl. При этом бывает, что он не стартует автоматом при старте системы, тогда нужно сделать systemctl enable nxagentd

                  Возможно, он у вас запустился дважды - один раз из systemctl, а второй - вручную?

                  1 Reply Last reply
                  0
                  • T
                    T
                    TOLeg
                    wrote on last edited by
                    #16

                    Выполнил
                    systemctl enable nxagentd
                    Результат
                    user01@deb-test:~$ sudo systemctl enable nxagentd
                    [sudo] password for user01:
                    Synchronizing state of nxagentd.service with SysV service script with /lib/systemd/systemd-sysv-install.
                    Executing: /lib/systemd/systemd-sysv-install enable nxagentd
                    Created symlink /etc/systemd/system/multi-user.target.wants/nxagentd.service → /lib/systemd/system/nxagentd.service.
                    user01@deb-test:~$

                    проверил статус
                    user01@deb-test:~$ sudo nxagentd status
                    [sudo] password for user01:
                    Error reading additional configuration files from "/etc/nxagentd.conf.d"
                    2019.10.17 16:42:29.481 *D* [                  ] Log rotation policy set to 2 (size=16777216, count=4)
                    2019.10.17 16:42:29.482 *I* [                  ] Core agent version 3.0-2329-g2d9ace4e99
                    2019.10.17 16:42:29.482 *I* [                  ] Additional configuration files was loaded from /etc/nxagentd.conf.d
                    2019.10.17 16:42:29.483 *I* [                  ] Debug level set to 0
                    2019.10.17 16:42:29.483 *I* [                  ] Data directory: /var/lib/netxms
                    2019.10.17 16:42:29.484 *I* [                  ] File store: /tmp
                    2019.10.17 16:42:29.490 *I* [db.driver          ] Database driver "sqlite.ddr" loaded and initialized successfully
                    2019.10.17 16:42:29.499 *I* [                  ] Agent ID is 55bd05cc-f53e-4106-8aa3-ce959193c3c5
                    2019.10.17 16:42:29.501 *I* [                  ] Local host name is "deb-test.my.dom"
                    2019.10.17 16:42:29.501 *I* [                  ] Using system name "deb-test"
                    2019.10.17 16:42:30.524 *I* [                  ] Subagent "Linux" (linux.nsm) loaded successfully (version 3.0-2329-g2d9ace4e99)
                    2019.10.17 16:42:31.529 *E* [                  ] Unable to bind IPv4 socket (98 Address already in use)
                    2019.10.17 16:42:31.529 *E* [                  ] Unable to bind IPv6 socket (98 Address already in use)
                    2019.10.17 16:42:32.530 *I* [                  ] NetXMS Agent started
                    Agent running. Press Ctrl+C to shutdown.

                    Смущает строка Error reading additional configuration files from "/etc/nxagentd.conf.d"
                    Это куда смотреть?

                    1 Reply Last reply
                    0
                    • F
                      F
                      Filipp Sudanov
                      wrote on last edited by
                      #17

                      /etc/nxagentd.conf.d - это директория, куда можно в отдельных файлах класть кусочки конфига агента. Агент эти кусочки соберет и добавит к своему основному конфигу. Этим пользоваться не обязательно - просто так удобнее когда серверов много и разных. Так что эта строчка в логе - это не ошибка.

                      Есть смысл посмотреть выдачу команды
                      netstat -lptun
                      там будет видно, кто из процессов какой порт занял.

                      1 Reply Last reply
                      0
                      • T
                        T
                        TOLeg
                        wrote on last edited by
                        #18

                        sudo netstat -lptun
                        [sudo] password for user01:
                        Active Internet connections (only servers)
                        Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name   
                        tcp        0      0 0.0.0.0:22              0.0.0.0:*              LISTEN      501/sshd           
                        tcp        0      0 127.0.0.1:39287        0.0.0.0:*              LISTEN      596/klnagent       
                        tcp        0      0 127.0.0.1:30523        0.0.0.0:*              LISTEN      596/klnagent       
                        tcp        0      0 127.0.0.1:39483        0.0.0.0:*              LISTEN      596/klnagent       
                        tcp        0      0 0.0.0.0:4700            0.0.0.0:*              LISTEN      468/nxagentd       
                        tcp        0      0 127.0.0.1:40575        0.0.0.0:*              LISTEN      596/klnagent       
                        tcp        0      0 127.0.0.1:45961        0.0.0.0:*              LISTEN      596/klnagent       
                        tcp        0      0 127.0.0.1:35945        0.0.0.0:*              LISTEN      596/klnagent       
                        tcp        0      0 127.0.0.1:37037        0.0.0.0:*              LISTEN      596/klnagent       
                        tcp        0      0 127.0.0.1:44045        0.0.0.0:*              LISTEN      596/klnagent       
                        tcp6      0      0 :::22                  :::*                    LISTEN      501/sshd           
                        tcp6      0      0 ::1:30523              :::*                    LISTEN      596/klnagent       
                        tcp6      0      0 :::4700                :::*                    LISTEN      468/nxagentd       
                        tcp6      0      0 ::1:40575              :::*                    LISTEN      596/klnagent       
                        udp        0      0 0.0.0.0:37431          0.0.0.0:*                          421/avahi-daemon: r
                        udp        0      0 0.0.0.0:4700            0.0.0.0:*                          468/nxagentd       
                        udp        0      0 0.0.0.0:15000          0.0.0.0:*                          596/klnagent       
                        udp        0      0 0.0.0.0:5353            0.0.0.0:*                          421/avahi-daemon: r
                        udp6      0      0 :::4700                :::*                                468/nxagentd       
                        udp6      0      0 :::15000                :::*                                596/klnagent       
                        udp6      0      0 :::5353                :::*                                421/avahi-daemon: r
                        udp6      0      0 :::54887                :::*                                421/avahi-daemon: r
                        user01@deb-test:~$

                        Я предполагаю, что на хосте все нормально.
                        И при добавлении в консоль управления, после опроса,  ошибка определения сетевых интерфейсов.
                        Unable to get interface list from node
                        Interface "unknown" is no longer exist

                        1 Reply Last reply
                        0
                        • F
                          F
                          Filipp Sudanov
                          wrote on last edited by
                          #19

                          Пришлите весь текст, что консоль пишет, когда делаете полный опрос конфигурации.

                          1 Reply Last reply
                          0
                          • T
                            T
                            TOLeg
                            wrote on last edited by
                            #20

                            [18.10.2019 14:02:36] **** Poll request sent to server ****
                            [18.10.2019 14:02:36] Poll request accepted
                            [18.10.2019 14:02:36] Starting configuration poll for node Deb-test
                            [18.10.2019 14:02:36] Capability reset
                            [18.10.2019 14:02:36] Checking node's capabilities...
                            [18.10.2019 14:02:36]    Checking NetXMS agent...
                            [18.10.2019 14:02:36]    Checking SNMP...
                            [18.10.2019 14:02:59] Capability check finished
                            [18.10.2019 14:02:59] Checking interface configuration...
                            [18.10.2019 14:02:59] Unable to get interface list from node
                            [18.10.2019 14:02:59]    Interface "unknown" is no longer exist
                            [18.10.2019 14:03:00] Interface configuration check finished
                            [18.10.2019 14:03:00] Checking node name
                            [18.10.2019 14:03:00] Node name is OK
                            [18.10.2019 14:03:00] Finished configuration poll for node Deb-test
                            [18.10.2019 14:03:00] Node configuration was not changed after poll
                            [18.10.2019 14:03:00] **** Poll completed successfully ****

                            1 Reply Last reply
                            0
                            • F
                              F
                              Filipp Sudanov
                              wrote on last edited by
                              #21

                              Должно быть так:
                              [18.10.2019 12:20:17]    Checking NetXMS agent...
                              [18.10.2019 12:20:17]    NetXMS native agent is active

                              проверяйте есть ли связь, файрвол и т.д.
                              на сервере можно запустить telnet <адрес_агента> порт
                              если связь есть, то он должен поключиться и показать черный экран

                              1 Reply Last reply
                              0
                              • T
                                T
                                TOLeg
                                wrote on last edited by
                                #22

                                Связь есть. Есть черный экран  🙂
                                Консоль управления не может определить сетевые интерфейсы хоста.
                                На вкладке "Интерфейсы" есть информация только по IP и MAC.
                                Нет данных Имя, Тип, MTU, Скорость как у других хостов.

                                1 Reply Last reply
                                0
                                • F
                                  F
                                  Filipp Sudanov
                                  wrote on last edited by
                                  #23

                                  А какая сейчас выдача при полном запросе конфигурации ноды?

                                  1 Reply Last reply
                                  0
                                  • T
                                    T
                                    TOLeg
                                    wrote on last edited by
                                    #24

                                    УРА!!!! Заработало. Нашел….
                                    В конфиг-файле nxagentd был дан пример указания сервера, ip/CIDR. Сделав так, ничего не работало. Консоль не видела сетевых интерфейсов.
                                    Исправил конфиг файл и всё заработало, указал только IP.

                                    Хочу очень сильно поблагодарить Вас Filipp Sudanov!
                                    Так все доходчево объяснять и возится не каждый будет. Дай Бог Вам здоровья и терпенья!

                                    С большим уважением,
                                    TOleg.

                                    1 Reply Last reply
                                    0
                                    • S
                                      S
                                      StanHubble
                                      wrote on last edited by
                                      #25

                                      Просто для дальнейшего использования, если кто-то пытается использовать стандартный OpenSuSE 12, сработает исполняемый файл linux static agent v 2.2.12 Зависимости GLIBC нарушаются в более поздних версиях агента. (перевод Google)

                                      1 Reply Last reply
                                      0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      Powered by NodeBB Contributors
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups