Jump to content

TheBB

Moderators
  • Posts

    2,410
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by TheBB

  1. Угу, ток патчить надо будет системную бибку (glibc), в приложении нет ни ключей, ни констант. ключ "-u" в скрипт запуска (или переустановить `opkg install --force-reinstall ser2net`)
  2. ~ # telnet 192.168.1.66 Trying 192.168.1.66... Connected to 192.168.1.66. Escape character is '^]'. Login: admin Password: **************** THIS SOFTWARE IS A SUBJECT OF KEENETIC LIMITED END-USER LICENCE AGREEMENT. BY USING IT YOU AGREE ON TERMS AND CONDITIONS HEREOF. FOR MORE INFORMATION PLEASE CHECK https://keenetic.com/legal (config)> exec /opt/bin/sh BusyBox v1.35.0 (2022-11-01 07:45:16 UTC) built-in shell (ash) / # . /opt/etc/profile / # / # cp /opt/etc/passwd-opkg /opt/etc/passwd / # (config)> exit Core::Configurator: Bye. Connection closed by foreign host.
  3. https://github.com/Entware/entware-go/blob/master/adguardhome-go/files/adguardhome.conf#L11 ^ удалить/закомментировать строку в фале "/opt/etc/AdGuardHome/adguardhome.conf" перезапустить AGH `/opt/etc/init.d/S99adguardhome restart`
  4. А что там за flow такой? goflow https://github.com/cloudflare/goflow netflow-exporter https://github.com/AlfredArouna/netflow_exporter Keenetic имеет netflow "искаропки" (если компонент "Сенсор NetFlow" установлен): ! Если компонент не установлен и захотите его добавить, прошивка обновиться до актуальной версии (в зависимости от канала обновлений). Активировать сервис, если не активен, нужно в CLI (telnet|SSH) или web: 1. выбирать интерфейс (напр., "Bridge0") и вариант прослушки (входяший(ingress)|исходящий(egress)|оба-два(both)): `interface Bridge0 ip flow both` 2. указать адрес (напр., 127.0.0.1) и порт - 2055 сервера для приёма: `ip flow-export destination 127.0.0.1 2055` 3. указать версию протокола netflow (для cnflegacy|csflow - 5 , для остальных - 9): `ip flow-export version 9` 4. сохранить настройки: `system configuration save` Установить один из пакетов: `opkg install cnetflow` или `opkg install cnflegacy` или `opkg install csflow` или `opkg install goflow` или `opkg install netflow-exporter` и отредактировать конфиг "/opt/etc/prometheus/prometheus.yml": (добавить в конфиг прометея) # goflow - job_name: "goflow" static_configs: - targets: ["192.168.1.1:8080"] или # netflow - job_name: "netflow" static_configs: - targets: ["192.168.1.1:9191"] !!! После правок конфига прометея, сервис перезапускать обязательно !!! `/opt/etc/init.d/S70prometheus restart` Запустить сервис (в зависимости от установленного пакета): `/opt/etc/init.d/S99cnetflow start` или `/opt/etc/init.d/S99cnflegacy start` или `/opt/etc/init.d/S99csflow start` или `/opt/etc/init.d/S99goflow start` или `/opt/etc/init.d/S99netflow_exporter start` В любимом браузере отправиться на адрес устройства и порт 9090: (goflow) (netflow-exporter)
  5. "Налетай, торопись, покупай живопись!" (из к/ф "Операция "Ы" и другие приключения Шурика", СССР, 1965) или Красота спасёт мир! grafana https://grafana.com Установить пакет: `opkg install grafana` Запустить сервис: `/opt/etc/init.d/S80grafana-server start` В любимом браузере отправиться на адрес устройства и порт 3000: Подключаем прометея: "Configuration" => "Data source" => "Add data source" => "Prometheus" => "URL" <= адрес устройства и порт => ""Save & test" "Искаропки" (очень простой) "Искаропки" (простой) Дальше, строим самостоятельно или импортируем готовые https://grafana.com/grafana/dashboards/ SNMP - ID: 11169 SNMP - ID: 10523 node -ID: 1860
  6. А у вас нет такого же, но с перламутровыми пуговицами для collectd? collectd_exporter https://github.com/prometheus/collectd_exporter Установить пакет: `opkg install prometheus-collectd-exporter` и отредактировать конфиги "/opt/etc/prometheus/prometheus.yml" и "/opt/etc/collectd.conf": (добавить в конфиг прометея) # collectd - job_name: "collectd" static_configs: - targets: ["192.168.1.1:9103"] !!! После правок конфига прометея, сервис перезапускать обязательно !!! `/opt/etc/init.d/S70prometheus restart` (добавить в конфиг collectd) LoadPlugin network <Plugin network> Server "127.0.0.1" "25826" </Plugin> Запустить сервисы: `/opt/etc/init.d/S70collectd start && /opt/etc/init.d/S99collectd_exporter start` В любимом браузере отправиться на адрес устройства и порт 9090:
  7. Я требую продолжения банкета статистику HAProxy! haproxy_exporter https://github.com/prometheus/haproxy_exporter Установить пакет: `opkg install prometheus-haproxy-exporter` и отредактировать конфиги "/opt/etc/prometheus/prometheus.yml" и "/opt/etc/haproxy.cfg": (добавить в конфиг прометея) # haproxy - job_name: "haproxy" static_configs: - targets: ["192.168.1.1:8404"] !!! После правок конфига прометея, сервис перезапускать обязательно !!! `/opt/etc/init.d/S70prometheus restart` (добавить в конфиг HAProxy и закомментировать или удалить строку "mode health") # Prometheus frontend stats mode http bind *:8404 http-request use-service prometheus-exporter if { path /metrics } stats enable stats uri /stats stats refresh 10s Запустить сервисы: `/opt/etc/init.d/S99haproxy start && /opt/etc/init.d/S99haproxy_exporter start` В любимом браузере отправиться на адрес устройства и порт 9090:
  8. "Маловато будет! Маловато!" (из м/ф "Падал прошлогодний снег", СССР, 1983) node_exporter https://github.com/prometheus/node_exporter Установить пакет: `opkg install prometheus-node-exporter` и отредактировать конфиг "/opt/etc/prometheus/prometheus.yml": (добавить в конфиг прометея) # node - job_name: "node" static_configs: - targets: ["192.168.1.1:9100"] !!! После правок конфига прометея, сервис перезапускать обязательно !!! `/opt/etc/init.d/S70prometheus restart` Запустить сервис: `/opt/etc/init.d/S99node_exporter start` В любимом браузере отправиться на адрес устройства и порт 9090: или (IP:9090/consoles/node.html)
  9. Что бы такого сделать плохого установить? snmp_exporter https://github.com/prometheus/snmp_exporter Keenetic умеет в snmp "искаропки" (если компонент "Сервер SNMP" установлен): ! Если компонент не установлен и захотите его добавить, прошивка обновиться до актуальной версии (в зависимости от канала обновлений). Активировать сервис, если не активен, нужно в CLI (telnet|SSH) или web: `service snmp` и сохранить настройки: `system configuration save` Установить пакет: `opkg install prometheus-snmp-exporter` и отредактировать конфиг "/opt/etc/prometheus/prometheus.yml": (добавить в конфиг прометея) # snmp - job_name: "snmp" static_configs: - targets: ["192.168.1.1"] metrics_path: /snmp params: module: [if_mib] relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: 192.168.1.1:9116 !!! После правок конфига прометея, сервис перезапускать обязательно !!! `/opt/etc/init.d/S70prometheus restart` Запустить сервис: `/opt/etc/init.d/S99snmp_exporter start` В любимом браузере отправиться на адрес устройства и порт 9090:
  10. Винни-Пух Прометей и все-все-все (ну-у-у, почти), или Статистики много не бывает. рrometheus https://prometheus.io/ https://prometheus.io/docs/introduction/overview/ Установить пакет: `opkg install prometheus` и отредактировать конфиг "/opt/etc/prometheus/prometheus.yml" (заменить "localhost" на адрес устройства): Запустить сервис: `/opt/etc/init.d/S70prometheus start` В любимом браузере отправиться на адрес устройства и порт 9090: Прометей умеет в графики "искаропки": или (IP:9090/consoles/prometheus.html): И всё?
  11. Значит, что-то сломали... ~ # pip install construct==2.10.56 Collecting construct==2.10.56 Downloading construct-2.10.56.tar.gz (54 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.8/54.8 kB 338.4 kB/s eta 0:00:00 Preparing metadata (setup.py) ... done Using legacy 'setup.py install' for construct, since package 'wheel' is not installed. Installing collected packages: construct Running setup.py install for construct ... done Successfully installed construct-2.10.56 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv [notice] A new release of pip available: 22.2.2 -> 22.3.1 [notice] To update, run: pip install --upgrade pip ~ #
  12. Ну и поставьте ему "construct", раз он сам не может.
  13. Архив установки уже ни при чем. Запустили ещё раз принудительную переиндексацию пакетов из-за битых индексов. ~ # opkg update Downloading http://bin.entware.net/mipselsf-k3.4/Packages.gz Updated list of available packages in /opt/var/opkg-lists/entware Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.gz Updated list of available packages in /opt/var/opkg-lists/keendev ~ # ~ # opkg install mc Installing mc (4.8.27-3) to root... Downloading http://bin.entware.net/mipselsf-k3.4/mc_4.8.27-3_mipsel-3.4.ipk Installing zlib (1.2.13-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/zlib_1.2.13-1_mipsel-3.4.ipk Installing glib2 (2.74.0-1) to root... Downloading http://bin.entware.net/mipselsf-k3.4/glib2_2.74.0-1_mipsel-3.4.ipk Configuring zlib. Configuring glib2. Configuring mc. ~ #
  14. `opkg update` ~ # opkg list 25volt - 1.0.5-1 - 25volt - A lightweight tool for monitoring APC Smart-UPS and Powercom WOW UPSs. 3proxy - 0.9.4-1 - 3proxy is universal proxy server. It can be used to provide internal users with fully controllable access to external resources or to provide external users with access to internal resources. ---8<--- cut --->8--- xmlrpc-c-server - 1.51.07-3 - XML-RPC library - server xmlstarlet - 1.6.1-2 - XMLStarlet is a set of command line utilities (tools) which can be used to transform, query, validate, and edit XML documents and files using simple set of shell commands in similar way it is done for plain text files using UNIX grep, sed, awk, diff, patch, join, etc commands. xpdf - 4.04-1 - Xpdf project includes a PDF text extractor, PDF-to-PostScript converter, and various other utilities. / #
  15. Перекачайте архив и попробуйте ещё раз, теперь должно зайти. Архив - ачиптка в зависимостях ( grep: libpcre => libpcre2) zoneinfo-asia - битый индекс (проиндексировано было до xpdf включительно)
  16. ))) где-то одно работает, где-то другое... на основном устройстве - один вариант, на подконтрольном - другой... выбираем, что больше нравится и/или работает )))
  17. сие, проблема "opkg", к-рый считает, что уже стоит более новая версия. была версия 10.0.0b5 (beta5), стала 10.0.0. удалить старую `opkg remove --force-depends python3-ha-av` , поставить новую `opkg install python3-ha-av`
  18. ~ # opkg list unbound* unbound-anchor - 1.16.1-1 - This package contains the Unbound anchor utility. unbound-checkconf - 1.16.1-1 - This package contains the Unbound DNS configuration checker utility. unbound-control - 1.16.1-1 - This package contains the Unbound control utility. unbound-control-setup - 1.16.1-1 - This package contains the Unbound control setup utility. unbound-daemon - 1.16.1-1 - This package contains the Unbound daemon including 'libevent', 'libmnl', and 'libpthread' to better handle large networks with heavy query loads. Options are available under libraries/network/libunbound to custom trim Unbound for smaller targets. unbound-host - 1.16.1-1 - This package contains the Unbound DNS lookup utility. ~ #
×
×
  • Create New...