Révision ed77c82d
Category Tree: Reduce number of categories
multiple plugins -> "mail" (qsmtpd, zimbra)
ossec -> "security" (ossec)
zeo -> appserver (zope)
| plugins/newznab/nn_ | ||
|---|---|---|
| 218 | 218 |
while (my ($k, $v) = each %conf) {
|
| 219 | 219 |
print "graph_$k $v\n"; |
| 220 | 220 |
} |
| 221 |
print "graph_category newznab\n";
|
|
| 221 |
print "graph_category search\n";
|
|
| 222 | 222 |
|
| 223 | 223 |
my $i = 0; |
| 224 | 224 |
for my $ds (@{$graph->{data_sources}}) {
|
| plugins/ossec/ossec_active_response | ||
|---|---|---|
| 9 | 9 |
echo "graph_title OSSEC Active Response" |
| 10 | 10 |
echo "graph_args --base 1000 -l 0" |
| 11 | 11 |
echo "graph_vlabel Number of responses" |
| 12 |
echo "graph_category ossec"
|
|
| 12 |
echo "graph_category security"
|
|
| 13 | 13 |
echo "graph_scale no" |
| 14 | 14 |
echo "c_add_actions.label rules added" |
| 15 | 15 |
echo "c_add_actions.draw LINE2" |
| plugins/ossec/ossec_agents | ||
|---|---|---|
| 9 | 9 |
echo "graph_title Ossec agents status" |
| 10 | 10 |
echo "graph_args --base 1000 -l 0" |
| 11 | 11 |
echo "graph_vlabel Number of ossec agents" |
| 12 |
echo "graph_category ossec"
|
|
| 12 |
echo "graph_category security"
|
|
| 13 | 13 |
echo "graph_scale no" |
| 14 | 14 |
echo "active.label active" |
| 15 | 15 |
echo "active.draw LINE2" |
| plugins/ossec/ossec_alerts | ||
|---|---|---|
| 9 | 9 |
echo "graph_title Ossec alerts per service" |
| 10 | 10 |
echo "graph_args --base 1000 -l 0" |
| 11 | 11 |
echo "graph_vlabel Number of alerts per service" |
| 12 |
echo "graph_category ossec"
|
|
| 12 |
echo "graph_category security"
|
|
| 13 | 13 |
echo "graph_scale no" |
| 14 | 14 |
echo "apache.label httpd" |
| 15 | 15 |
echo "apache.draw LINE2" |
| plugins/php/hhvm_ | ||
|---|---|---|
| 89 | 89 |
multigraph hhvm_${graphName}_threads
|
| 90 | 90 |
graph_title HHVM Threads ${name}
|
| 91 | 91 |
graph_args --base 1000 |
| 92 |
graph_category php
|
|
| 92 |
graph_category webserver
|
|
| 93 | 93 |
threads.label Threads |
| 94 | 94 |
load.label Active Workers |
| 95 | 95 |
queued.label Queued Jobs |
| ... | ... | |
| 97 | 97 |
multigraph hhvm_${graphName}_sizes
|
| 98 | 98 |
graph_title HHVM Sizes ${name}
|
| 99 | 99 |
graph_args --base 1024 |
| 100 |
graph_category php
|
|
| 100 |
graph_category webserver
|
|
| 101 | 101 |
hhbc-roarena-capac.label HHBC Arena Capacity |
| 102 | 102 |
tc-hotsize.label TC Hot Size |
| 103 | 103 |
tc-hotsize.info Translation Cache Hot Size |
| plugins/powermta/pmta_ | ||
|---|---|---|
| 225 | 225 |
;; |
| 226 | 226 |
config) |
| 227 | 227 |
if [ -n "$CONF_TITLE" ] && [ -n "$CONF_LABEL" ]; then |
| 228 |
echo "graph_category PowerMTA"
|
|
| 228 |
echo "graph_category mail"
|
|
| 229 | 229 |
echo "graph_title $CONF_TITLE on ${REMOTEHOST}"
|
| 230 | 230 |
echo "graph_vlabel $CONF_LABEL" |
| 231 | 231 |
echo "graph_scale yes" |
| plugins/qpsmtpd/qpsmtpd_mailstats | ||
|---|---|---|
| 96 | 96 |
my $k; |
| 97 | 97 |
|
| 98 | 98 |
print "graph_title QPSMTPD Responses |
| 99 |
graph_category QPSMTPD
|
|
| 99 |
graph_category mail
|
|
| 100 | 100 |
graph_args --base 1000 -l 0 |
| 101 | 101 |
graph_vlabel responses / \${graph_period}
|
| 102 | 102 |
graph_scale no |
| plugins/uwsgi/uwsgi_ | ||
|---|---|---|
| 21 | 21 |
if [ "$1" = "config" ]; then |
| 22 | 22 |
echo "graph_title Total uWSGI Memory" |
| 23 | 23 |
echo "graph_vlabel Total RAM" |
| 24 |
echo "graph_category uWSGI"
|
|
| 24 |
echo "graph_category appserver"
|
|
| 25 | 25 |
echo "graph_args --base 1024" |
| 26 | 26 |
echo "ram.label Total RAM" |
| 27 | 27 |
exit 0 |
| ... | ... | |
| 42 | 42 |
if [ "$1" = "config" ]; then |
| 43 | 43 |
echo "graph_title uWSGI Processes" |
| 44 | 44 |
echo "graph_vlabel Processes" |
| 45 |
echo "graph_category uWSGI"
|
|
| 45 |
echo "graph_category appserver"
|
|
| 46 | 46 |
echo "processes.label active processes" |
| 47 | 47 |
else |
| 48 | 48 |
echo -n "processes.value " |
| ... | ... | |
| 55 | 55 |
echo 'graph_title uWSGI Average Process Size' |
| 56 | 56 |
echo 'graph_args --base 1024 -l 0 ' |
| 57 | 57 |
echo 'graph_vlabel Average Process Size' |
| 58 |
echo 'graph_category uWSGI'
|
|
| 58 |
echo 'graph_category appserver'
|
|
| 59 | 59 |
echo 'uwsgi_average.label Average Process Size' |
| 60 | 60 |
echo 'uwsgi_average.draw LINE2' |
| 61 | 61 |
echo 'uwsgi_average.info The average process size for uWSGI' |
| plugins/zimbra/zimbra-mailboxsizes | ||
|---|---|---|
| 58 | 58 |
echo 'graph_args --base 1024 -l 0 ' |
| 59 | 59 |
echo 'graph_scale yes' |
| 60 | 60 |
echo 'graph_vlabel Mailboxsize' |
| 61 |
echo 'graph_category Zimbra'
|
|
| 61 |
echo 'graph_category mail'
|
|
| 62 | 62 |
/opt/zimbra/bin/zmprov gqu $(hostname)|awk '$3>102400 {sub (/@.*/, "",$1); sub(/\./, "_" ,$1); print $1".label "$1}'
|
| 63 | 63 |
exit 0 |
| 64 | 64 |
fi |
| plugins/znc/znc_logs.py | ||
|---|---|---|
| 152 | 152 |
|
| 153 | 153 |
def emit_config(): |
| 154 | 154 |
print('graph_title Lines in the ZNC-log')
|
| 155 |
print('graph_category znc')
|
|
| 155 |
print('graph_category chat')
|
|
| 156 | 156 |
print('graph_vlabel lines / ${graph_period}')
|
| 157 | 157 |
print('graph_scale no')
|
| 158 | 158 |
print('graph_args --base 1000 --lower-limit 0')
|
| plugins/zope/zeo_monitor_ | ||
|---|---|---|
| 136 | 136 |
graph_title ZEO $mode for storage $storage_name |
| 137 | 137 |
graph_args --base 1000 --lower-limit 0 |
| 138 | 138 |
graph_vlabel events per \${graph_period}
|
| 139 |
graph_category zeo
|
|
| 139 |
graph_category appserver
|
|
| 140 | 140 |
graph_info ZEO performance monitoring |
| 141 | 141 |
EOF |
| 142 | 142 |
|
Formats disponibles : Unified diff