mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-23 06:35:42 +00:00
Filter, line colours match Spotweb categories
This commit is contained in:
parent
7f8ae73b48
commit
63357b6bbf
1 changed files with 15 additions and 9 deletions
|
@ -29,7 +29,7 @@
|
|||
#
|
||||
# [spotweb_cat_average]
|
||||
# env.period 1800 # The period over wich to check in seconds, default to 30 minutes (1800 seconds)
|
||||
# env.countporn = 'no' # Also count porn? Default is 'yes'
|
||||
# env.countporn 'no' # Also count porn? Default is 'yes'
|
||||
#
|
||||
|
||||
use strict;
|
||||
|
@ -55,9 +55,13 @@ graph_title $TITLE
|
|||
graph_vlabel Spots
|
||||
graph_category spotweb
|
||||
cat0.label Videos/images
|
||||
cat0.colour 008edf
|
||||
cat1.label Music
|
||||
cat1.colour e9a213
|
||||
cat2.label Games
|
||||
cat2.colour 00de00
|
||||
cat3.label Applications
|
||||
cat3.colour de2500
|
||||
EOC
|
||||
;
|
||||
exit 0;
|
||||
|
@ -69,7 +73,9 @@ if($COUNTPORN eq 'yes') {
|
|||
&print_value(0);
|
||||
}
|
||||
else {
|
||||
&print_value(0, " AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%'");
|
||||
# 11-04-2011 - New pr0n filters
|
||||
# &print_value(0, " AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%'");
|
||||
&print_value(0, " AND subcatz NOT LIKE '%4%' AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%' AND subcatd NOT LIKE '%72%' AND subcatd NOT LIKE '%73%' AND subcatd NOT LIKE '%74%' AND subcatd NOT LIKE '%75%' AND subcatd NOT LIKE '%76%' AND subcatd NOT LIKE '%77%' AND subcatd NOT LIKE '%78%' AND subcatd NOT LIKE '%79%' AND subcatd NOT LIKE '%80%' AND subcatd NOT LIKE '%81%' AND subcatd NOT LIKE '%82%' AND subcatd NOT LIKE '%83%' AND subcatd NOT LIKE '%84%' AND subcatd NOT LIKE '%85%' AND subcatd NOT LIKE '%86%' AND subcatd NOT LIKE '%87%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%89%'");
|
||||
}
|
||||
&print_value(1);
|
||||
&print_value(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue