SNMP on Flint 2

Hi again,

I would love to have some tools like zabbix or something else to monitoring the Flint 2 via SNMP. Is it possible? If not, can you please suggest me an alternative?

Thanks in adavance.

root@flint:~# opkg update; opkg list | grep zabbix
zabbix-agentd - 5.0.7-2 - Zabbix agentd
zabbix-extra-mac80211 - 5.0.7-2 - An extra package for zabbix-agentd that adds a discovery rule for mac80211 wifi phy and many userparameters. It contains an suid helper to allow zabbix-agentd to still run as zabbix user and not as root. See https://openwrt.org/docs/guide-user/services/network_monitoring/zabbix for ready to use zabbix templates.
zabbix-extra-network - 5.0.7-2 - An extra package for zabbix-agentd that adds a discovery rule for openwrt network interfaces. The idea here is to discover only interfaces listed in /etc/config/network (discover br-lan and not eth0.1 and wlan0) See https://openwrt.org/docs/guide-user/services/network_monitoring/zabbix for ready to use zabbix templates.
zabbix-extra-wifi - 5.0.7-2 - An extra package for zabbix-agentd that adds a discovery rule for wifi interfaces and many userparameters. As it uses libiwinfo, it works with all wifi devices supported by openwrt. See https://openwrt.org/docs/guide-user/services/network_monitoring/zabbix for ready to use zabbix templates.
zabbix-get - 5.0.7-2 - Zabbix get
zabbix-proxy - 5.0.7-2 - Zabbix proxy
zabbix-sender - 5.0.7-2 - Zabbix sender
zabbix-server - 5.0.7-2 - Zabbix server
zabbix-server-frontend - 5.0.7-2 - Zabbix server-frontend
root@flint:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02-SNAPSHOT'
DISTRIB_REVISION='r16399+159-c67509efd7'
DISTRIB_TARGET='ipq807x/ipq60xx'
DISTRIB_ARCH='arm_cortex-a7'
DISTRIB_DESCRIPTION='OpenWrt 21.02-SNAPSHOT r16399+159-c67509efd7'
DISTRIB_TAINTS='no-all busybox override'
DISTRIB_TIP='OpenWrt 21.02-SNAPSHOT r16399+159-c67509efd7 / TIP-devel-d303bd39'
DISTRIB_TIP_VERSION='devel'
snmp-utils - 5.9.1-5 - Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring the health and welfare of network equipment (eg. routers), computer equipment and even devices like UPSs. Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6. . This package contains SNMP client utilities: - snmpget - snmpset - snmpstatus - snmptest - snmptrap - snmpwalk
snmpd - 5.9.1-5 - Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring the health and welfare of network equipment (eg. routers), computer equipment and even devices like UPSs. Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6. . This package contains the SNMP agent, dynamically linked.
snmptrapd - 5.9.1-5 - Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring the health and welfare of network equipment (eg. routers), computer equipment and even devices like UPSs. Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6. . This package contains the SNMP notification receiver.

I think those are the requested ones.

zabbix can be installed outside the router (on raspberry i.e.) and monitor it via snmp or maybe by installing the zabbix agent into the router that send data to an external zabbix server.

Will trying something during these days :slight_smile:

root@flint:~# opkg list-installed | grep -v gl | grep monit
monit - 5.26.0-2
root@flint:~# report
up:            88 (100.0%)
down:           0 (0.0%)
initialising:   0 (0.0%)
unmonitored:    0 (0.0%)
total:         88 services

Feel free to ask for some confs… then decide if dropping 75.00USD for M/Monit or bothering to install SMNP agents is really necessary when processes can just be set to ‘auto heal.’

Thanks a lot @bring.fringe18

The main idea is to have some external tool that can help in monitoring the router, especially disconnection from the network, unexpected shutdown and so on.
SNMP is an option, I see there is also prometheus-node-exporter-lua-snmp6 package available: this could be another option.
I tried also goodcloud service from GLinet: it can help in some cases (it sends an email notification when the router goes down)

Well M/Monit can certainly remotely monitor hosts using Monit as agents but I just use Monit to ping ea. of the other hosts inc. my own router so if something doesn’t respond, I just remote in & check the device… but most times the remote device’s trouble has already been resolved as its Monit agent has restarted whatever was the offender.

I never used GoodCloud or SMNP; ‘less is more’ & all that.

grafana+prometheus+snmp_exporter+alertmanager

The dashboard is not so cool but I least I get what I want from SNMP :wink:

Does similar uptime kuma?

No, it’s not.
uptime kuma can send some data (push) to the server in order to see if the connection is working or getting the data from certain url (pull)

With SNMP (or OpenWRT exporter) you can monitor multiple things (temperature, wifi band, in/out traffic etc etc)

1 Like

Do I need to download all of them? newest version

I’d really recommend learning to use the CLI. It’ll make your life easier in the long term. Here’s a HOW-TO to give you the foundational skills:

1 Like

If you want to install zabbix, then yes. Maybe install just the zabbix agent on the Flint2 and the zabbix server on Raspberry in order to save some resources on the router.

How to check snmp OID? I am trying collect info to home assistant with influxdb + grafana(home assistant). Just problem I can’t install zabbix server because I have installed homeassistant os in raspberry pi4.

Sorry for hijacking this thread but netata might be an better alternative. Install in on flint 2 and add it to home assistant like so

sensor:
  - platform: netdata
    host: "192.168.8.1"
    port: "19999"
    name: Flint2
    resources:
      download_speed_ra0:
        data_group: net.ra0
        element: "received"
        icon: mdi:speedometer
      upload_speed_ra0:
        data_group: net.ra0
        element: "sent"
        icon:  mdi:speedometer

etc for other things. if you already have have sensor inconfiguration.yaml as

sensor: !include sensors.yaml

just rename it to something like sensor custom