waterbywind / grafana-dashboards Goto Github PK
View Code? Open in Web Editor NEWGrafana Dashboards
License: MIT License
Grafana Dashboards
License: MIT License
I am receiving the following error when using your config:
Error in plugin [inputs.snmp]: initializing table unifi: initializing field ifDescr: translating: exec: "snmptranslate": executable file not found in $PATH
I did see the other thread here but the solution was clear.
Any help would be greatly appreciated.
Ubuntu Server 16.04
I was getting a templating error with the HP LaserHet dashboard in Grafana 5.0. I fixed the issue by changing line 5104 of hp-laserjet-dashboard.json to
"query": "SHOW TAG VALUES FROM \"ifTable\" WITH KEY = \"ifDescr\" WHERE \"agent_host\" =~ /^$host$/",
I don't know how else to submit this fix, sorry.
Nice work!
Would it be possible to show the ESSID instead of "ath0", "ath1" and so on, for the "unifiVapName" ?
Hello, hasn't found unifi mibs in update blog (probably buried too deep)
Here is official links AFAIK:
http://dl.ubnt-ut.com/snmp/UBNT-MIB
http://dl.ubnt-ut.com/snmp/UBNT-UniFi-MIB
I added the content of "telegraf-inputs.conf" to /etc/telegraf/telegraf.conf, and tries to restart telegraf.
May 21 21:23:53 localhost.localdomain systemd[1]: telegraf.service: main process exited, code=exited, status=1/FAILURE
May 21 21:23:53 localhost.localdomain systemd[1]: Unit telegraf.service entered failed state.
May 21 21:23:53 localhost.localdomain systemd[1]: telegraf.service failed.
May 21 21:23:54 localhost.localdomain systemd[1]: telegraf.service holdoff time over, scheduling restart.
May 21 21:23:54 localhost.localdomain systemd[1]: start request repeated too quickly for telegraf.service
May 21 21:23:54 localhost.localdomain systemd[1]: Failed to start The plugin-driven server agent for reporting metrics into InfluxDB.
May 21 21:23:54 localhost.localdomain systemd[1]: Unit telegraf.service entered failed state.
May 21 21:23:54 localhost.localdomain systemd[1]: telegraf.service failed.
Being a total newbie on telegraf, grafana and influx - I have no idea how to troubleshoot it. Would appreciate any help/guidance :)
I am getting data for all panels except for 'Client Connection Quality'. I see the query begins with:
SELECT last(\"unifiVapCcq\") / 10 FROM \"unifiVapTable\"
However I have no unifiVapCcq field in unifiVapTable. Here is a sample write point (some values obscured):
> unifiVapTable,agent_host=unifi01,host=host001,unifiVapName=ath0,unifiVapRadio=ng unifiVapBssId="80:2b:a2:3a:44:2",unifiVapChannel=11i,unifiVapEssId="ssid001",unifiVapExtChannel=0i,unifiVapNumStations=3i,unifiVapRxBytes=3226148884i,unifiVapRxCrypts=108140i,unifiVapRxDropped=108610i,unifiVapRxErrors=108610i,unifiVapRxFrags=0i,unifiVapRxPackets=22051767i,unifiVapTxBytes=1317084149i,unifiVapTxDropped=62653i,unifiVapTxErrors=0i,unifiVapTxPackets=38486213i,unifiVapTxPower=20i,unifiVapTxRetries=1305891i,unifiVapUp=1i,unifiVapUsage="user" 1543803019000000000
I'm unsure if the missing comma following unifiVapRadio=ng is intentional (could this be the separation between tags and fields?). This is consistent across all the write points I see.
I am using the same MIBS, including UBNT-UniFi-MIB, as in this repository.
This could be something missing in the inputs. This could also be SNMP on my APs (2x UAP-AC-Lite 3.9.54.9373, GEN2). I could use help here.
Evening,
I posted this but my internet dropped out as I did it. In Grafana I get the following error... I don't suppose you know why. Cheers.
Templating init failed
undefined is not an object (evaluating 'e.results.length')
Hi,
After starting telegraf with your configuration and mibs, I get these error messages:
2017-06-15T13:56:16Z E! Error in plugin [inputs.snmp]: agent 192.168.1.1: gathering table ifXTable: performing bulk walk for field ifConnectorPresent: Request timeout (after 3 retries)
2017-06-15T13:56:26Z E! Error in plugin [inputs.snmp]: agent 192.168.1.1: gathering table ipSystemStatsTable: performing bulk walk for field ipSystemStatsInReceives: Request timeout (after 3 retries)
The grafana dashboard shows most metrics, however both Interface Traffic graphs are empty.
Any idea what might be causing this?
Hi,
I saw your post on the Ubiquiti forums and it helped a lot.
I noticed, that all the SNMP tables did lack the sysName information.
If you add inherit_tags = ["sysName"]
to each table, you can get the name of the Device from Unifi into your series to group by device name or so on
# Ethernet interfaces
[[inputs.snmp.table]]
oid = "UBNT-UniFi-MIB::unifiIfTable"
inherit_tags = ["sysName"]
[[inputs.snmp.table.field]]
is_tag = true
oid = "UBNT-UniFi-MIB::unifiIfName"
I may be doing something really stupid. But I added two of my AP's as below in the telegraf.conf however I can't find where to see the AP's. In Grafana it just lists NONE.
Am I doing something wrong? Cheers.
[[inputs.snmp]]
agents = [ "172.16.2.128:161", "172.16.2.129:161" ]
The only downside I'm seeing with using this is that it creates a lot of different measurements in my influxdb. Is there a way to make them all under one measurement like UBNT or something and not hrDeviceTable IfTable, IfXTable, etc?
is it possible to update the json for influxdbv2?
I'm using EdgeMAX EdgeRouter 4 v2.0.9-hotfix.2
Here is the uptime showing on the device.
Your Grafana's Dashborad Uptime section query result is 1882461 by below SQL inquiry.
`SELECT "sysUpTime" / 100 FROM "snmp.EdgeOS" WHERE ("agent_host" =~ /^$host$/) AND $timeFilter
telegraf related config
[[inputs.snmp.field]]
name = "sysUpTime"
oid = "HOST-RESOURCES-MIB::hrSystemUptime.0"
The HOST-RESOURCES-MIB.txt
file in telegraf docker was copied from EdgeRouter /usr/share/snmp/mibs
folder
hrSystemUptime OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The amount of time since this host was last
initialized. Note that this is different from
sysUpTime in the SNMPv2-MIB [RFC1907] because
sysUpTime is the uptime of the network management
portion of the system."
::= { hrSystem 1 }
below OID comes from https://github.com/grafana/jsonnet-libs/tree/master/ubnt-edgerouter-mixin
- name: hrSystemUptime
oid: 1.3.6.1.2.1.25.1.1
type: gauge
help: The amount of time since this host was last initialized - 1.3.6.1.2.1.25.1.1
OID 1.3.6.1.2.1.25.1.1 corresponds to HOST-RESOURCES-MIB::hrSystemUptime.
hrSystemUptime
is similar to sysUpTime in the SNMP MIB-II, but it's part of the Host Resources MIB. It represents the amount of time since the host was last initialized.
telegraf@abf4573b2ca9:/$ snmpget -v2c -c ouzycn 192.168.1.253 1.3.6.1.2.1.25.1.1.0
iso.3.6.1.2.1.25.1.1.0 = Timeticks: (188642200) 21 days, 20:00:22.00
telegraf@abf4573b2ca9:/$ snmpget -v2c -c ouzycn 192.168.1.253 HOST-RESOURCES-MIB::hrSystemUptime.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (188642537) 21 days, 20:00:25.37
- name: sysUpTime
oid: 1.3.6.1.2.1.1.3
type: gauge
help: The time (in hundredths of a second) since the network management portion
of the system was last re-initialized. - 1.3.6.1.2.1.1.3
iso.3.6.1.2.1.1.3.0 is the full OID for the sysUpTime
object, representing the time since the last system start-up.
telegraf@abf4573b2ca9:/$ snmpget -v2c -c ouzycn 192.168.1.253 1.3.6.1.2.1.1.3.0
iso.3.6.1.2.1.1.3.0 = Timeticks: (6095747) 16:55:57.47
hrSystemUptime
is correct.sysUpTime
):sysUpTime
represents the time since the network management portion of the system was last re-initialized.hrSystemUptime
):hrSystemUptime
provides the amount of time since the host (the entire system) was last initialized.In summary, while both OIDs report uptime, sysUpTime
is specific to the network management subsystem and can reset independently of the host system, whereas hrSystemUptime
is specific to the host system's uptime and resets only when the entire system restarts. This distinction is important when monitoring the uptime for network devices vs. the actual hosts/servers they are part of.
Hey,
would you rather suggest to merge the configs or run two instances. I struggle to merge them both - how did you manage it?
Thanks for all your work!
I've followed all of the instructions and the dashboard is almsot working 100%, but i cant get the graphs for Interface Traffic and Interface Traffic Distribution populate.
Any input? @WaterByWind
UAPs with 3.9.x firmware, at least Gen 3 and possibly Gen 2, no longer display properly in this dashboard.
This firmware changed from tinysnmp to the more-standard net-snmp which requires an updated telegraf inputs stanza with this dashboard to collect the needed metrics.
This update is forthcoming.
Hello,
just a small error in log about a module not found:
Apr 13 16:28:00 my_server telegraf[25612]: 2017-04-13T14:28:00Z E! ERROR in input [inputs.snmp]: initializing table : translating: exit status 2: MIB search path: /etc/telegraf/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Apr 13 16:28:00 my_server telegraf[25612]: Cannot find module (IF-MIB): At line 1 in (none)
Apr 13 16:28:00 my_server telegraf[25612]: IF-MIB::ifTable: Unknown Object Identifier
Maybe I forgot to install something ...
Please could you provide more information on how you managed to get Telegraf running on your EdgeRouter?
I have done a fair amount of Googling and I'm struggling to find any information on how to do this and there don't appear to be any binaries as requested here
snmp.UAP.sysUptime returns seconds. It is divided by math / 100 on the dashboard.
Hi,
Being a total novice in setting up SNMP stuff, I am now reaching out to you.
I have set up the EdgeOS device (ERX SFP) with following config:
snmp {
community public {
authorization ro
network 192.168.2.0/24
}
listen-address 192.168.2.1 {
port 161
}
}
But I can't manage it to work. I have placed telegraf-inputs.conf info /etc/telegraf/telegraf.d/ and installed the dependencies (net-snmp
and net-snmp-utils
) in order to remove the error messages about "snmptranslate not found in $PATH
".
Now I get the following instead:
telegraf: 2017-05-22T07:49:07Z E! Error in plugin [inputs.snmp]: took longer to collect than collection interval (5s)
Being a novice in SNMP stuff (as mentioned earlier) I would really appreciate some pointers.
NOTE:
I am running CentOS 7 core.
I managed to get this running after compiling all the latest versions of golang, telegraf, etc. Is there any way you've found to display traffic totals for interfaces? The traffic stats on the edgerouter suck since they reset after a few hours of inactivity.
Hi @WaterByWind ,
New to Grafana/Telegraf/Influx. Having some problems with SNMP with the edgerouter dashboard. I have everything configured properly i believe. Another set of eyes and any suggestions would be great.
Error Log
2017-06-11T18:43:00Z E! Error in plugin [inputs.snmp]: initializing table : translating: exec: "snmptranslate": executable file not found in $PATH 2017-06-11T18:43:00Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics. 2017-06-11T18:43:10Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics. 2017-06-11T18:43:20Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics. 2017-06-11T18:43:30Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics. 2017-06-11T18:43:40Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics. 2017-06-11T18:43:50Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics. 2017-06-11T18:44:00Z E! Error in plugin [inputs.snmp]: initializing table : translating: exec: "snmptranslate": executable file not found in $PATH
Telegraf
[root@brain snmp]# telegraf version Telegraf v1.3.1 (git: release-1.3 f93615672b02a41d9bc867bd92bf31c1d777989b)
Influx
[root@brain snmp]# influx version Connected to http://localhost:8086 version 1.2.4 InfluxDB shell version: 1.2.4
Inputs
[[inputs.snmp]] ; List of agents to poll agents = [ "10.0.1.1:161" ] ; Polling interval interval = "60s" ; Timeout for each SNMP query. timeout = "5s" ; Number of retries to attempt within timeout. retries = 3 ; SNMP version, values can be 1, 2, or 3 version = 2 ; SNMP community string. community = "blah" ; The GETBULK max-repetitions parameter max_repetitions = 50
Influx Output
[[outputs.influxdb]] urls = ["http://127.0.0.1:8086"] # required database = "telegraf" # required retention_policy = "" write_consistency = "any" timeout = "5s" user_agent = "telegraf"
Snmpwalk
[root@brain snmp]# snmpwalk -c something -v 2c 10.0.1.1 SNMPv2-MIB::sysName.0 SNMPv2-MIB::sysName.0 = STRING: doodie [root@brain snmp]# snmpwalk -c something -v 2c 10.0.1.1 HOST-RESOURCES-MIB::hrSystemNumUsers.0 HOST-RESOURCES-MIB::hrSystemNumUsers.0 = Gauge32: 0 [root@brain snmp]# snmpwalk -c something -v 2c 10.0.1.1 HOST-RESOURCES-MIB::hrDeviceIndex HOST-RESOURCES-MIB::hrDeviceIndex.196608 = INTEGER: 196608 HOST-RESOURCES-MIB::hrDeviceIndex.196609 = INTEGER: 196609 HOST-RESOURCES-MIB::hrDeviceIndex.262145 = INTEGER: 262145 HOST-RESOURCES-MIB::hrDeviceIndex.262146 = INTEGER: 262146 HOST-RESOURCES-MIB::hrDeviceIndex.262147 = INTEGER: 262147 HOST-RESOURCES-MIB::hrDeviceIndex.262148 = INTEGER: 262148 HOST-RESOURCES-MIB::hrDeviceIndex.262149 = INTEGER: 262149 HOST-RESOURCES-MIB::hrDeviceIndex.262153 = INTEGER: 262153 HOST-RESOURCES-MIB::hrDeviceIndex.262154 = INTEGER: 262154 HOST-RESOURCES-MIB::hrDeviceIndex.262155 = INTEGER: 262155 HOST-RESOURCES-MIB::hrDeviceIndex.262156 = INTEGER: 262156 HOST-RESOURCES-MIB::hrDeviceIndex.786432 = INTEGER: 786432
I am wandering if you know the answer to this. UBNT have some .mib files. Do I need to save these the /usr/share/snmp/mibs folder for this to work?
Your edge router script also works perfect with my USG PRO.
Thanks !! awesome job.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.