Code Monkey home page Code Monkey logo

grafana-dashboards's People

Contributors

chimo avatar waterbywind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grafana-dashboards's Issues

executable file not found in $PATH

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

Error with HP Dashboard

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.

telegraf-inputs.conf is not liked by telegraf (EdgeRouter)

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 :)

No Field unifiVapCcq, No Client Connection Quality (Unifi AP Dashboard)

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.

Error in Grafana Dashboard

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')

Edgerouter lite

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?

Improvement Hint: inherit_tags = ["sysName"]

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"

Agents not appearing

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.

UniFi APs (Gen 2/Gen 3)

[[inputs.snmp]]

List of agents to poll

agents = [ "172.16.2.128:161", "172.16.2.129:161" ]

influxdbv2

is it possible to update the json for influxdbv2?

sysUpTime looks incorrct.

I'm using EdgeMAX EdgeRouter 4 v2.0.9-hotfix.2

Here is the uptime showing on the device.
image

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

image

So, which part is going wrong to caused this issue?

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 }

I also tried inquiry SNMP OID

below OID comes from https://github.com/grafana/jsonnet-libs/tree/master/ubnt-edgerouter-mixin

https://github.com/grafana/jsonnet-libs/blob/02db06f540086fa3f67d487bd01e1b314853fb8f/ubnt-edgerouter-mixin/snmp_generator/snmp.yml#L1036C25-L1036C25

  - 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

According to the below info, I think what you were using hrSystemUptime is correct.

The difference between the OIDs 1.3.6.1.2.1.25.1.1 and 1.3.6.1.2.1.1.3.0 in SNMP lies in their origin and specific use cases:

  1. OID 1.3.6.1.2.1.1.3.0 (sysUpTime):
  • This OID comes from the SNMP MIB-II (Management Information Base II) standard.
  • sysUpTime represents the time since the network management portion of the system was last re-initialized.
  • It is widely used for general network management purposes.
  • The uptime reported by sysUpTime resets to zero whenever the SNMP agent (the network management part) is restarted, which can happen independently of the host system's restarts or reboots.
  • It is a part of the System group in the MIB-II.
  1. OID 1.3.6.1.2.1.25.1.1 (hrSystemUptime):
  • This OID is from the Host Resources MIB.
  • hrSystemUptime provides the amount of time since the host (the entire system) was last initialized.
  • It's more host-centric and is often used for tracking the uptime of the actual computing device (server, workstation, etc.) rather than just the network management aspect.
  • The uptime reported by hrSystemUptime resets only when the host system is rebooted or restarted.
  • It belongs to the Host Resources MIB, which includes more detailed information about the host's resources like storage, installed software, and device performance.
  • 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.

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.

UAP dashboard broken with 3.9.x firmware

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.

Cannot find module IF-MIB

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 ...

Provide more information on Telegraf installation

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

I can't get SNMP to work

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.

Works great!

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.

Problems with SNMP or something else?

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

what to do with .mib files?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.