Zabbix мониторинг роутера asus

Release Asus Merlin Router with Zabbix Agent

SNBForums Code of Conduct SNBForums is a community for everyone, no matter what their level of experience. Please be tolerant and patient of others, especially newcomers. We are all here to share and learn! The rules are simple: Be patient, be nice, be helpful or be gone!

Markfree

Regular Contributor

Have anyone tried using Zabbix Agent on Asus WRT Merlin router?

You can try doing yourself though. It’s really easy.

If we search for Zabbix with Opkg, there are some packages available.

# opkg find zabbix* zabbix-agentd - 6.2.3-3a - Zabbix agentd zabbix-get - 6.2.3-3a - Zabbix get zabbix-proxy - 6.2.3-3a - Zabbix proxy zabbix-sender - 6.2.3-3a - Zabbix sender zabbix-server - 6.2.3-3a - Zabbix server
# opkg install zabbix-agentd Installing zabbix-agentd (6.2.3-3a) to root. Downloading https://bin.entware.net/aarch64-k3.10/zabbix-agentd_6.2.3-3a_aarch64-3.10.ipk Configuring zabbix-agentd.
# zabbix_agentd -t system.hostname system.hostname [s|]
zabbix_agentd -c /opt/etc/zabbix_agentd.conf
# zabbix_agentd -f -c /opt/etc/zabbix_agentd.conf zabbix_agentd [12022]: user zabbix does not exist zabbix_agentd [12022]: cannot run as root!

But, If we allow Zabbix Agent to run as root, that would be all.
Try the steps suggested bellow.

If you don’t want to start it as root and don’t need to run custom items, then you should create a «zabbix» user.

You can create a user «zabbix» simply using USB Application WEB interface and it seems to work fine.

Alternatively, the way I do it, edit the configuration files to add a user, as implemented by Merlin firmware. Create the following files with the respective content and reboot your router after that.
/jffs/configs/passwd.add

zabbix:x:10050:10050:zabbix:/dev/null:/dev/null
zabbix_agentd -c /opt/etc/zabbix_agentd.conf

Now the Zabbix Server is able to check some items.

Did it work for you? How was it?

rzae

New Around Here

You have accès all information like as snmp ?

Markfree

Regular Contributor

Zabbix agents can perform passive and active checks to actively monitor local resources and applications.

I believe Zabbix Agent supports more information than SNMP but, due to a limited router OS, it might not support every possible check.
You can find more information within Zabbix documentation.

With a Zabbix Server you can collect host data with an zabbix agent and SNMP as well. So, I find it very flexible.

Читайте также:  Обход блокировок роутер keenetic

Markfree

Regular Contributor

If anyone wishes to monitor some basic system information from your router using a Zabbix agent, please try out my template:

L&LD

Part of the Furniture

But I’m at a loss (and slightly ashamed to admit) of how it would be installed ‘easily’?

Are you (hopefully) working on an installer? I would love to try it then if you are!

Diversion, Skynet, YazFi, scribe, connmon, ntpMerlin, scMerlin, uiDivStats, uiScribe, Unbound, FlexQoS, disk checker, on Ext4 w/J + 10GB swap file
RT-AX86U in wired backhaul (2.5GbE) AiMesh mode main router with GT-AX6000 AiMesh node.
https://www.snbforums.com/members/l-ld.24423/#about

JGrana

Very Senior Member

@L&LD (and others). This is an agent — you will need to install a Zabbix server to collect and display the information. As far as I know there is no server available for Windows machines. Unix/Linux only.
If you do have a Raspberry Pi on your network and want to install the Zabbix server, this site gives a good tutorial:

How to Install Zabbix 6.0 / 6.4 on Raspberry Pi [Step-by-Step]

Learn how to install Zabbix 6.0 or 6.4 on Raspberry Pi and how to make key optimizations so that your RPI performs better.

bestmonitoringtools.com

Home — AiMesh Router RT-AX88U Pro; 2 Nodes both RT-AX58U — spdMerlin, ntpMerlin,, Unbound, connmon
Remote location — AiMesh RT-AX86U; 1 node RT-AX58U — Unbound, ntpMerlin, wg_manager
1 RT-AC58U for experimenting 😉 any instability have typically been caused by me….

Markfree

Regular Contributor

@L&LD I haven’t thought about a Zabbix agent installation script, but I might just do that next time I reset my router.

Indeed, @JGrana!
I also find the official Zabbix documentation very informative.

For a server installation I like to use the Zabbix Download and Install instructions as they are always up to date.

L&LD

Part of the Furniture

Thank you for the additional information. I’m not sure when I’ll have the time, but I’ll see if I can get Linux to work on Windows 10 and give this a whirl.

Diversion, Skynet, YazFi, scribe, connmon, ntpMerlin, scMerlin, uiDivStats, uiScribe, Unbound, FlexQoS, disk checker, on Ext4 w/J + 10GB swap file
RT-AX86U in wired backhaul (2.5GbE) AiMesh mode main router with GT-AX6000 AiMesh node.
https://www.snbforums.com/members/l-ld.24423/#about

JGrana

Very Senior Member

@L&LD I haven’t thought about a Zabbix agent installation script, but I might just do that next time I reset my router.

Indeed, @JGrana!
I also find the official Zabbix documentation very informative.

For a server installation I like to use the Zabbix Download and Install instructions as they are always up to date.

I did install the agent on my AX88U. Used your instructions in the first post. I did edit the Zabbix conf file to allow Root — everyone is root on the router
Installing went very smooth — Entware did most of the work!

Читайте также:  Пароль роутера asus rt n56u

I downloaded your new template and then installed the Zabbix server on a Raspberry Pi.

That install was much longer but the instructions on the Zabbix site are excellent.

I was able to login to the Zabbix server via web. Stopped there and am ready to add a few hosts and templates.
I am presently trying out a VPN (using vpnmanager) and decided to focus on that for a few days. then back to Zabbix.
Thanks for the recommendation and new template for Asus Routers!

Home — AiMesh Router RT-AX88U Pro; 2 Nodes both RT-AX58U — spdMerlin, ntpMerlin,, Unbound, connmon
Remote location — AiMesh RT-AX86U; 1 node RT-AX58U — Unbound, ntpMerlin, wg_manager
1 RT-AC58U for experimenting 😉 any instability have typically been caused by me….

Источник

Установка zabbix-agent на ASUS RT-N16 DD-WRT

В прошлых статьях мы установили прошивку DD-WRT на наш Asus RT-N16 и установили к ней дополнение OptWare. Теперь мы установим zabbix-agent на наш девайс, чтобы снимать с него показания, с помощью установленного нами zabbix server‘a.

Установка zabbix-agent на ASUS RT-N16 DD-WRT

Сколько я бы не искал, как установить пакетом — не нашел. Поэтому будем собирать его сами.

1. Нам необходимо установить инструменты для сборки:

ipkg-opt install grep buildroot git
ln -s /opt/bin/grep-grep /opt/bin/grep 
ln -s /opt/bin/busybox /opt/bin/sort
mkdir /opt/src 
cd /opt/src
git clone git://github.com/diegolima/zabbix-uglibc-mips.git cd zabbix-uglibc-mips
unset LD_PRELOAD 
unset LD_LIBRARY_PATH
ipkg-opt install make 
./configure --bindir=/opt/bin --sbindir=/opt/sbin --libexecdir=/opt/usr/libexec --sysconfdir=/opt/etc/zabbix --localstatedir=/opt/var --libdir=/opt/lib --oldincludedir=/opt/include --includedir=/opt/include --datarootdir=/opt/usr/share --enable-agent --build=mipsel-unknown-linux-gnu make install

6. Для запуска нам потребует пользователь, устанавливаем пакет для создания пользователя и создаем его:

ipkg-opt install adduser 
adduser zabbix
chmod +x /opt/sbin/zabbix_agentd /opt/sbin/zabbix_agentd -c /opt/etc/zabbix/zabbix_agentd.conf

Добавляем в параметры запуска из web-морды роутера (пример моего автозапуска):

mount -o noatime /dev/scsi/host0/bus0/target0/lun0/part6 /jffs 
sleep 10
unset LD_PRELOAD
unset LD_LIBRARY_PATH adduser zabbix
/opt/sbin/zabbix_agentd -c /opt/etc/zabbix/zabbix_agentd.conf

Источник

Zabbix + ASUS

Команда интеграторов Zabbix разработает индивидуальную интеграцию на основе ваших требований и лучших практик Zabbix.

Предложите свою интеграцию

Вы уже разработали качественную интеграцию и хотите добавить ее в базу готовых интеграций Zabbix?

  • Возможности
  • Что нового в Zabbix 6.4
  • Снимки экрана
  • Требования к системе
  • Жизненный цикл и политика релизов
  • Лицензия
  • Документация
  • План развития
  • По тематике
  • По отраслям
  • Крупные инфраструктуры
  • Опыт клиентов
  • Клиенты и пользователи
  • Integrations & Templates
  • Техническая поддержка
  • Консалтинг
  • Решения «под ключ»
  • Создание шаблонов
  • Обновление
  • Услуги разработки
  • Удаленное устранение неполадок
  • Услуги интеграции
  • Сертифицированный пользователь
  • Сертифицированный специалист
  • Сертифицированный профессионал
  • Сертифицированный эксперт
  • Отзывы
  • Часто задаваемые вопросы
  • Форма регистрации
  • Вебинары
  • Партнёрская программа
  • Станьте партнёром
  • Стратегическое партнёрство
  • Дистрибьютеры
  • Карта партнёров
  • Мероприятия
  • Форум
  • Блог
  • Баги и новая функциональность
  • Разработчики
  • Community templates
  • Архив рассылок
  • О нас
  • Вакансии
  • Обратная связь
  • Пресс-релизы
  • Торговый знак
Читайте также:  Роутер ws329 huawei прошивка
Присоединяйтесь! Мы ищем сотрудников!

© 2001-2023, Zabbix LLC. Все права защищены.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Zabbix template for monitoring Asus ADSL Modem router running asuswrt.

mkgin/zabbix_TEMPLATE_asuswrt_adsl

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Zabbix template for monitoring Asus ADSL Modem router running asuswrt.

  • Used and tested on an Asus DSL-AC68U
  • works with ADSL and VDSL, some parameters are different
  • Requires zabbix-agent running on the modem.
    • tested using zabbix packages from Entware-ng.
    • The zabbix-agent needs to be able to read the file ( chmod 755 /tmp/adsl ) if zabbix-agent is not running as the admin user
    • this file might not always be present or not always contain a line with the parameter being checked so at times a value may be empty. Possibly zabbix is tring collect information when the file is being updated.
    • Checking the Asus wrt firmware version needs a user parameter UserParameter=nvram.get_version,echo «$(nvram get firmver).$(nvram get buildno)_$(nvram get extendno)»

    Some of the items collected:

    • Line Status
    • DSL Connection Standard and mode info
    • SNR
    • Data rate
    • Error counts UP and down:
      • FEC (forward error checksum)
      • CRC
      • HEC (header error checksum)
      cd /opt/etc/init.d/ ./S07zabbix_agentd restart 
      • Many of the items changed to Dependent items and take advantage of preprocessing
      • proper DSL uptime calculated with some regex and javascript
        • but likely needs testing

        About

        Zabbix template for monitoring Asus ADSL Modem router running asuswrt.

        Источник

Оцените статью
Adblock
detector