Hi.
I am a trainee in a small ISP that provides internet access to more than 400 clients.
Currently we are undertaking a big move (migrating all the configuration files from Nagios to Icinga2).
So I figured it would be pretty awesome to add a few extra snippets. Namely, remote monitoring of client signal strength and several other features that could be monitored using SNMP.
So far, I have been able to make Icinga2 accept the oid’s with adding this little service to the conf files:
apply Service for (identifier => oid in host.vars.oids) {
check_command = "snmp"
display_name = identifier
vars.snmp_oid = oid
}
In my host objects i am using the following config:
object Host "MikroExample" {
import "mikrotik-host"
address = "10.10.80.60"
vars.os = "RouterOS"
vars.model = "mikrotik_station"
vars.link = "ether"
vars.oids["signal"] = ".1.3.6.1.4.1.14988.1.1.1.2.1.3.204.250.0.172.121.143.6"
vars.oids["txccq"] = ".1.3.6.1.4.1.14988.1.1.1.3.1.10.204.250.0.172.121.143.6"
vars.oids["txccq-nomac"] = ".1.3.6.1.4.1.14988.1.1.1.3.1.10"
vars.oids["RouterOSVersion"] = ".1.3.6.1.4.1.14988.1.1.4.4.0"
vars.oids["Model"] = ".1.3.6.1.2.1.1.1.0"
}
The “204.250.0.172.121.143.6” is the MAC address of the given router.
However, when applying this and looking at the results in Icinga-web i get the following error on the TXCCQ part:
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.14988.1.1.1.3.1.10.204.250.0.172.121.143.6Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.14988.1.1.1.3.1.10
Thing is, using this oid: .1.3.6.1.4.1.14988.1.1.1.3.1.10 (TXCCQ) without the MAC address added, in the MibBrowser and connecting to the router, i get good results:
mtxrWlApOverallTxCCQ.6 98
Also, another problem is the signal oid. Because right now it is only showing me ONE signal. How could I access both Rx/Tx?