mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Update rtom_mem
Add category for people who have multiple sessions
This commit is contained in:
parent
84866ca679
commit
e55e233b22
@ -26,7 +26,7 @@
|
|||||||
# socket rTorrent's rpc socket (scgi_local) - using scgi_local - needed, when "src" is set to "socket"
|
# socket rTorrent's rpc socket (scgi_local) - using scgi_local - needed, when "src" is set to "socket"
|
||||||
# ip rTorrent's ip address - using scgi_port - needed, when "src" is NOT set to "socket"
|
# ip rTorrent's ip address - using scgi_port - needed, when "src" is NOT set to "socket"
|
||||||
# port rTorrent's scgi port (scgi_port) - using scgi_port - needed, when "src" is NOT set to "socket"
|
# port rTorrent's scgi port (scgi_port) - using scgi_port - needed, when "src" is NOT set to "socket"
|
||||||
#
|
# category Change graph category
|
||||||
#
|
#
|
||||||
# Configuration example
|
# Configuration example
|
||||||
#
|
#
|
||||||
@ -34,6 +34,7 @@
|
|||||||
# user username
|
# user username
|
||||||
# env.src socket
|
# env.src socket
|
||||||
# env.socket /home/user/torrent/.socket/rpc.socket
|
# env.socket /home/user/torrent/.socket/rpc.socket
|
||||||
|
# env.category Category
|
||||||
#
|
#
|
||||||
# [rtom_mem]
|
# [rtom_mem]
|
||||||
# env.ip 127.0.0.1
|
# env.ip 127.0.0.1
|
||||||
@ -48,10 +49,11 @@ if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
|
my $category = $ENV{"category"} || "";
|
||||||
print "graph_title rTorrent memory usage\n";
|
print "graph_title rTorrent memory usage\n";
|
||||||
print "graph_args --base 1024 --lower-limit 0\n";
|
print "graph_args --base 1024 --lower-limit 0\n";
|
||||||
print "graph_vlabel Bytes\n";
|
print "graph_vlabel Bytes\n";
|
||||||
print "graph_category rTorrent\n";
|
print "graph_category rTorrent ".${category}."\n";
|
||||||
print "mem.label Memory usage\n";
|
print "mem.label Memory usage\n";
|
||||||
print "mem.info Memory osage of rTorrent\n";
|
print "mem.info Memory osage of rTorrent\n";
|
||||||
print "mem.type GAUGE\n";
|
print "mem.type GAUGE\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user