ping.lua 773 B

12345678910111213141516171819202122232425262728
  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. }
  25. end