1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-08-02 06:08:23 +00:00

[sickbeard_] Show counts as stacked areas

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2019-10-10 12:17:45 +11:00 committed by Lars Kruse
parent 6ca9f65af9
commit 118457fa44
2 changed files with 10 additions and 5 deletions

View file

@ -46,8 +46,10 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config')
graph_title Shows
graph_vlabel Shows
graph_category tv
active.label Active
total.label Total
total.draw AREA
active.label Active
active.draw AREA
EOC
;
@ -59,8 +61,8 @@ my $req = $get->get($sURL);
my $json = JSON::Any->jsonToObj($req->content());
if ($json->{result} eq 'success') {
print "active.value $json->{data}->{shows_active}\n";
print "total.value $json->{data}->{shows_total}\n";
print "active.value $json->{data}->{shows_active}\n";
exit 0;
} else {
print "$json->{message}\n";