News:

We really need your input in this questionnaire

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - TOLeg

#46
Доброго времени и с наступающим!
Обозначилась следующая проблема при изменении политики обработки событий.
База на SQL Express 14.0.2027 , NetXMS Database Manager Version 3.1.261, Консоль управления 3.1.260 на Win10

Выполняется добавление группы рассылки, но изменения не сохраняются. Появляется окно предупреждения - Произошла неполадка. 
nxdbmgr check и nxdbmgr check -d -f ошибок не находит.
#47
На интересующем хосте создайте метрику по своим параметрам.
#48
Создайте действие по отправке почтового уведомления
#50
УРА!!!! Заработало. Нашел....
В конфиг-файле nxagentd был дан пример указания сервера, ip/CIDR. Сделав так, ничего не работало. Консоль не видела сетевых интерфейсов.
Исправил конфиг файл и всё заработало, указал только IP.

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

С большим уважением,
TOleg.
#51
Связь есть. Есть черный экран  :)
Консоль управления не может определить сетевые интерфейсы хоста.
На вкладке "Интерфейсы" есть информация только по IP и MAC.
Нет данных Имя, Тип, MTU, Скорость как у других хостов.
#52
[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 ****
#53
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
#54
Выполнил
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"
Это куда смотреть?



#55
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
#56
Установил все библиотеки, агента,
Результат:
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 ****



#57
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
#58
Выполнил команду - 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

Что делаю не так?
#59
Решил пока SUSE оставить. По инструкции всё чётко работает с deb пакетами.
Установил Debian 10. Скачал netxms-release_1.6_all.deb. Выполнил все по инструкции, но файлов для конфигурации не нашел, может не там искал /usr/local/bin, а может чего-то не хватает?
Результат выполнения второй команды - apt-get install netxms-agent:
Reading package lists...Done
Building dependency tree
Reading state information ... Done
E: Unable to locate package netxms-agent

Дальше, я так понимаю, надо в конфиг файле указать адрес сервера и путь для логов. Но файлов нет.(см выше).
Прошу помощи. Надо принципиально Linux-овую машинку замониторить :)

#60
Благодарю за подробнейшее руководство!
Ощибки по пунктам:
1) Отсутствии доступа в интернет перечеркивает все начинания. Нужные пакеты скачиваю из https://rpmfind.net, https://pkgs.org(отсюда не качаются)
При установке требуемых пакетов  возникает ошибка (на примере mosquitto) -
Package /tmp//mosquitto-devel-1.6.7-1.1.ppc64.rpm could not be installed.
Details:
[repo-update|http://download.opensuse.org/update/tumbleweed/] Valid metadata not found at specified URL
History:
- Unknown error reading from 'http://download.opensuse.org/update/tumbleweed/'
- SKIP request: User-requested skipping of a file
- Download (curl) error for 'http://download.opensuse.org/update/tumbleweed/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org
2) Установка pcre-8.43 выполнена.
3) Установка агента без необходимых библиотек вызывает остановку и предлагает ключи для команды.
Пробывал выполнить установку агента следующей командой ./configure --with-agent --without-curl --disable-ssh --disable-mqtt
Файлы в /usr/local/bin/ создаются, но из-за отсутствия требуемых библиотек, старт агента завершается ошибкой:
usr/local/bin/nxagentd -d
/usr/local/bin/nxagentd: error while loading shared libraries: libappagent-3.0.2305.so: cannot open shared object file: No such file or directory