From: tokkee Date: Tue, 14 Mar 2006 18:51:28 +0000 (+0000) Subject: Added vserver support to collection.cgi. X-Git-Tag: collectd-3.8.6^2~106 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e14f6794143550d945bbf2163862b0d91504adfa;p=collectd.git Added vserver support to collection.cgi. --- diff --git a/contrib/collection.cgi b/contrib/collection.cgi index 5684475e..ef36b21c 100755 --- a/contrib/collection.cgi +++ b/contrib/collection.cgi @@ -718,7 +718,87 @@ our $GraphDefs; 'GPRINT:avg:AVERAGE:%5.1lf%sV Avg,', 'GPRINT:max:MAX:%5.1lf%sV Max,', 'GPRINT:avg:LAST:%5.1lf%sV Last\l' - ] + ], + threads => [ + "DEF:total_avg={file}:total:AVERAGE", + "DEF:total_min={file}:total:MIN", + "DEF:total_max={file}:total:MAX", + "DEF:running_avg={file}:running:AVERAGE", + "DEF:running_min={file}:running:MIN", + "DEF:running_max={file}:running:MAX", + "DEF:uninterruptible_avg={file}:uninterruptible:AVERAGE", + "DEF:uninterruptible_min={file}:uninterruptible:MIN", + "DEF:uninterruptible_max={file}:uninterruptible:MAX", + "DEF:onhold_avg={file}:onhold:AVERAGE", + "DEF:onhold_min={file}:onhold:MIN", + "DEF:onhold_max={file}:onhold:MAX", + "LINE1:total_avg#$FullYellow:Total ", + 'GPRINT:total_min:MIN:%5.1lf Min,', + 'GPRINT:total_avg:AVERAGE:%5.1lf Avg.,', + 'GPRINT:total_max:MAX:%5.1lf Max,', + 'GPRINT:total_avg:LAST:%5.1lf Last\l', + "LINE1:running_avg#$FullRed:Running ", + 'GPRINT:running_min:MIN:%5.1lf Min,', + 'GPRINT:running_avg:AVERAGE:%5.1lf Avg.,', + 'GPRINT:running_max:MAX:%5.1lf Max,', + 'GPRINT:running_avg:LAST:%5.1lf Last\l', + "LINE1:uninterruptible_avg#$FullGreen:Unintr ", + 'GPRINT:uninterruptible_min:MIN:%5.1lf Min,', + 'GPRINT:uninterruptible_avg:AVERAGE:%5.1lf Avg.,', + 'GPRINT:uninterruptible_max:MAX:%5.1lf Max,', + 'GPRINT:uninterruptible_avg:LAST:%5.1lf Last\l', + "LINE1:onhold_avg#$FullBlue:Onhold ", + 'GPRINT:onhold_min:MIN:%5.1lf Min,', + 'GPRINT:onhold_avg:AVERAGE:%5.1lf Avg.,', + 'GPRINT:onhold_max:MAX:%5.1lf Max,', + 'GPRINT:onhold_avg:LAST:%5.1lf Last\l' + ], + vs_memory => [ + 'DEF:vm_avg={file}:vm:AVERAGE', + 'DEF:vm_min={file}:vm:MIN', + 'DEF:vm_max={file}:vm:MAX', + 'DEF:vml_avg={file}:vml:AVERAGE', + 'DEF:vml_min={file}:vml:MIN', + 'DEF:vml_max={file}:vml:MAX', + 'DEF:rss_avg={file}:rss:AVERAGE', + 'DEF:rss_min={file}:rss:MIN', + 'DEF:rss_max={file}:rss:MAX', + 'DEF:anon_avg={file}:anon:AVERAGE', + 'DEF:anon_min={file}:anon:MIN', + 'DEF:anon_max={file}:anon:MAX', + "LINE1:vm_avg#$FullYellow:VM ", + 'GPRINT:vm_min:MIN:%5.1lf%s Min,', + 'GPRINT:vm_avg:AVERAGE:%5.1lf%s Avg.,', + 'GPRINT:vm_max:MAX:%5.1lf%s Avg.,', + 'GPRINT:vm_avg:LAST:%5.1lf%s Last\l', + "LINE1:vml_avg#$FullRed:Locked ", + 'GPRINT:vml_min:MIN:%5.1lf%s Min,', + 'GPRINT:vml_avg:AVERAGE:%5.1lf%s Avg.,', + 'GPRINT:vml_max:MAX:%5.1lf%s Avg.,', + 'GPRINT:vml_avg:LAST:%5.1lf%s Last\l', + "LINE1:rss_avg#$FullGreen:RSS ", + 'GPRINT:rss_min:MIN:%5.1lf%s Min,', + 'GPRINT:rss_avg:AVERAGE:%5.1lf%s Avg.,', + 'GPRINT:rss_max:MAX:%5.1lf%s Avg.,', + 'GPRINT:rss_avg:LAST:%5.1lf%s Last\l', + "LINE1:anon_avg#$FullBlue:Anon. ", + 'GPRINT:anon_min:MIN:%5.1lf%s Min,', + 'GPRINT:anon_avg:AVERAGE:%5.1lf%s Avg.,', + 'GPRINT:anon_max:MAX:%5.1lf%s Avg.,', + 'GPRINT:anon_avg:LAST:%5.1lf%s Last\l', + ], + vs_processes => [ + 'DEF:proc_avg={file}:total:AVERAGE', + 'DEF:proc_min={file}:total:MIN', + 'DEF:proc_max={file}:total:MAX', + "AREA:proc_max#$HalfBlue", + "AREA:proc_min#$Canvas", + "LINE1:proc_avg#$FullBlue:Processes", + 'GPRINT:proc_min:MIN:%4.1lf Min,', + 'GPRINT:proc_avg:AVERAGE:%4.1lf Avg.,', + 'GPRINT:proc_max:MAX:%4.1lf Max,', + 'GPRINT:proc_avg:LAST:%4.1lf Last\l' + ], }; $GraphDefs->{'disk'} = $GraphDefs->{'partition'}; $GraphDefs->{'meminfo'} = $GraphDefs->{'memory'}; @@ -749,7 +829,10 @@ our $GraphArgs = swap => ['-t', '{host} swap usage', '-v', 'Bytes', '-b', '1024', '-l', '0'], traffic => ['-t', '{host} {inst} traffic', '-v', 'Bit/s'], users => ['-t', '{host} users', '-v', 'Users'], - voltage => ['-t', '{host} voltage', '-v', 'Volts'] + voltage => ['-t', '{host} voltage', '-v', 'Volts'], + threads => ['-t', '{host} threads', '-v', 'Threads'], + vs_memory => ['-t', '{host} memory usage', '-v', 'Bytes'], + vs_processes => ['-t', '{host} processes', '-v', 'Processes'], }; our $GraphMulti =