3 Luci statistics - processes plugin diagram definition
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 module("luci.statistics.rrdtool.definitions.processes", package.seeall)
18 function rrdargs( graph, plugin, plugin_instance )
20 if plugin_instance == "" then
25 "sleeping", "running", "paging", "blocked", "stopped", "zombies"
30 ps_state_sleeping = { color = "0000ff" },
31 ps_state_running = { color = "008000" },
32 ps_state_paging = { color = "ffff00" },
33 ps_state_blocked = { color = "ff5000" },
34 ps_state_stopped = { color = "555555" },
35 ps_state_zombies = { color = "ff0000" }
45 ps_cputime = { "syst", "user" }
65 ps_count = { "threads", "processes" }
69 ps_count__threads = { color = "00ff00" },
70 ps_count__processes = { color = "0000bb" }
78 ps_pagefaults = { "minflt", "majflt" }
82 ps_pagefaults__minflt = { color = "ff0000" },
83 ps_pagefaults__majflt = { color = "ff5500" }
89 number_format = "%5.1lf%s",
95 ps_rss = { color = "0000ff" }