1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 module("luci.statistics.rrdtool.definitions.processes", package.seeall)
6 function rrdargs( graph, plugin, plugin_instance, dtype )
10 title = "%H: Processes",
11 vlabel = "Processes/s",
15 "sleeping", "running", "paging", "blocked", "stopped", "zombies"
20 ps_state_sleeping = { color = "0000ff" },
21 ps_state_running = { color = "008000" },
22 ps_state_paging = { color = "ffff00" },
23 ps_state_blocked = { color = "ff5000" },
24 ps_state_stopped = { color = "555555" },
25 ps_state_zombies = { color = "ff0000" }
31 title = "%H: CPU time used by %pi",
35 ps_cputime = { "syst", "user" }
53 title = "%H: Threads and processes belonging to %pi",
58 ps_count = { "threads", "processes" }
62 ps_count__threads = { color = "00ff00" },
63 ps_count__processes = { color = "0000bb" }
69 title = "%H: Page faults in %pi",
70 vlabel = "Pagefaults",
74 ps_pagefaults = { "minflt", "majflt" }
78 ps_pagefaults__minflt = { color = "ff0000" },
79 ps_pagefaults__majflt = { color = "ff5500" }
85 title = "%H: Virtual memory size of %pi",
88 number_format = "%5.1lf%sB",
93 ps_rss = { color = "0000ff" }