c95152ee448f2d98f1dfe9d2167ebaf7422edba0
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool / definitions / processes / ps_state.lua
1 --[[
2
3 Luci statistics - processes plugin diagram definition
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
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
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 ]]--
15
16 module("luci.statistics.rrdtool.definitions.processes.ps_state", package.seeall)
17
18 function rrdargs( graph, plugin, plugin_instance, dtype )
19
20         return {
21                 data = {
22                         instances = {
23                                 ps_state = {
24                                         "sleeping", "running", "paging", "blocked", "stopped", "zombies"
25                                 }
26                         },
27
28                         options = {
29                                 ps_state_sleeping = { color = "0000ff" },
30                                 ps_state_running  = { color = "008000" },
31                                 ps_state_paging   = { color = "ffff00" },
32                                 ps_state_blocked  = { color = "ff5000" },
33                                 ps_state_stopped  = { color = "555555" },
34                                 ps_state_zombies  = { color = "ff0000" }
35                         }
36                 }
37         }
38 end