ping.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.statistics.rrdtool.definitions.ping", package.seeall)
  4. function rrdargs( graph, plugin, plugin_instance, dtype )
  5. return {
  6. -- Ping roundtrip time
  7. { title = "%H: ICMP Round Trip Time",
  8. vlabel = "ms",
  9. number_format = "%5.1lf ms",
  10. data = {
  11. sources = { ping = { "value" } },
  12. options = { ping__value = {
  13. noarea = true, overlay = true, title = "%di" } }
  14. } },
  15. -- Ping droprate
  16. { title = "%H: ICMP Drop Rate",
  17. vlabel = "%",
  18. number_format = "%5.2lf %%",
  19. data = {
  20. types = { "ping_droprate" },
  21. options = { ping_droprate = {
  22. noarea = true, overlay = true, title = "%di" } }
  23. } },
  24. -- Ping standard deviation
  25. { title = "%H: ICMP Standard Deviation",
  26. vlabel = "ms",
  27. number_format = "%5.2lf ms",
  28. data = {
  29. types = { "ping_stddev" },
  30. options = { ping_stddev = {
  31. noarea = true, overlay = true, title = "%di" } }
  32. } },
  33. }
  34. end