mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
[sickbeard_] Show counts as stacked areas
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
parent
6ca9f65af9
commit
118457fa44
2 changed files with 10 additions and 5 deletions
|
@ -46,9 +46,12 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config')
|
||||||
graph_title Episodes
|
graph_title Episodes
|
||||||
graph_vlabel Episodes
|
graph_vlabel Episodes
|
||||||
graph_category tv
|
graph_category tv
|
||||||
down.label Downloaded
|
|
||||||
snatched.label Snatched
|
|
||||||
total.label Total
|
total.label Total
|
||||||
|
total.draw AREA
|
||||||
|
down.label Downloaded
|
||||||
|
down.draw AREA
|
||||||
|
snatched.label Snatched
|
||||||
|
snatched.draw STACK
|
||||||
EOC
|
EOC
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -60,9 +63,9 @@ my $req = $get->get($sURL);
|
||||||
my $json = JSON::Any->jsonToObj($req->content());
|
my $json = JSON::Any->jsonToObj($req->content());
|
||||||
|
|
||||||
if ($json->{result} eq 'success') {
|
if ($json->{result} eq 'success') {
|
||||||
|
print "total.value $json->{data}->{ep_total}\n";
|
||||||
print "down.value $json->{data}->{ep_downloaded}\n";
|
print "down.value $json->{data}->{ep_downloaded}\n";
|
||||||
print "snatched.value $json->{data}->{ep_snatched}\n";
|
print "snatched.value $json->{data}->{ep_snatched}\n";
|
||||||
print "total.value $json->{data}->{ep_total}\n";
|
|
||||||
exit 0;
|
exit 0;
|
||||||
} else {
|
} else {
|
||||||
print "$json->{message}\n";
|
print "$json->{message}\n";
|
||||||
|
|
|
@ -46,8 +46,10 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config')
|
||||||
graph_title Shows
|
graph_title Shows
|
||||||
graph_vlabel Shows
|
graph_vlabel Shows
|
||||||
graph_category tv
|
graph_category tv
|
||||||
active.label Active
|
|
||||||
total.label Total
|
total.label Total
|
||||||
|
total.draw AREA
|
||||||
|
active.label Active
|
||||||
|
active.draw AREA
|
||||||
EOC
|
EOC
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -59,8 +61,8 @@ my $req = $get->get($sURL);
|
||||||
my $json = JSON::Any->jsonToObj($req->content());
|
my $json = JSON::Any->jsonToObj($req->content());
|
||||||
|
|
||||||
if ($json->{result} eq 'success') {
|
if ($json->{result} eq 'success') {
|
||||||
print "active.value $json->{data}->{shows_active}\n";
|
|
||||||
print "total.value $json->{data}->{shows_total}\n";
|
print "total.value $json->{data}->{shows_total}\n";
|
||||||
|
print "active.value $json->{data}->{shows_active}\n";
|
||||||
exit 0;
|
exit 0;
|
||||||
} else {
|
} else {
|
||||||
print "$json->{message}\n";
|
print "$json->{message}\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue