mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Reduce number of categories
This commit is contained in:
parent
81ad9f2bc7
commit
81db94e2d3
43 changed files with 60 additions and 54 deletions
|
@ -571,7 +571,7 @@ multigraph currentcost
|
||||||
graph_title CurrentCost Consumption
|
graph_title CurrentCost Consumption
|
||||||
graph_args --base 1000 -l 0
|
graph_args --base 1000 -l 0
|
||||||
graph_vlabel $unit
|
graph_vlabel $unit
|
||||||
graph_category currentcost
|
graph_category sensors
|
||||||
graph_info This graph shows the 'whole house' data.
|
graph_info This graph shows the 'whole house' data.
|
||||||
EOF
|
EOF
|
||||||
if ( scalar( @{ $datum->{data} } ) > 1 ) {
|
if ( scalar( @{ $datum->{data} } ) > 1 ) {
|
||||||
|
@ -608,7 +608,7 @@ multigraph currentcost_cumulative
|
||||||
graph_title CurrentCost Total Usage
|
graph_title CurrentCost Total Usage
|
||||||
graph_args --base 1000 -l 0
|
graph_args --base 1000 -l 0
|
||||||
graph_vlabel $unit * hours
|
graph_vlabel $unit * hours
|
||||||
graph_category currentcost
|
graph_category sensors
|
||||||
EOF
|
EOF
|
||||||
print "graph_order ";
|
print "graph_order ";
|
||||||
my $confstr = '';
|
my $confstr = '';
|
||||||
|
@ -639,7 +639,7 @@ multigraph currentcost_cost
|
||||||
graph_title CurrentCost Estimated Cost
|
graph_title CurrentCost Estimated Cost
|
||||||
graph_args --base 1000 -l 0
|
graph_args --base 1000 -l 0
|
||||||
graph_vlabel ${currency}
|
graph_vlabel ${currency}
|
||||||
graph_category currentcost
|
graph_category sensors
|
||||||
EOF
|
EOF
|
||||||
if ( scalar( @{ $datum->{data} } ) > 1 ) {
|
if ( scalar( @{ $datum->{data} } ) > 1 ) {
|
||||||
print "graph_total Total\n";
|
print "graph_total Total\n";
|
||||||
|
@ -663,7 +663,7 @@ multigraph currentcost.appliance$sensor
|
||||||
graph_title CurrentCost Consumption (Appliance $sensor)
|
graph_title CurrentCost Consumption (Appliance $sensor)
|
||||||
graph_args --base 1000 -l 0
|
graph_args --base 1000 -l 0
|
||||||
graph_vlabel $unit
|
graph_vlabel $unit
|
||||||
graph_category currentcost
|
graph_category sensors
|
||||||
graph_info This graph shows the data for Appliance $sensor
|
graph_info This graph shows the data for Appliance $sensor
|
||||||
EOF
|
EOF
|
||||||
if ( scalar( @{ $datum->{data} } ) > 1 ) {
|
if ( scalar( @{ $datum->{data} } ) > 1 ) {
|
||||||
|
@ -691,7 +691,7 @@ multigraph currentcost_cumulative.appliance$sensor
|
||||||
graph_title CurrentCost Total Usage (Appliance $sensor)
|
graph_title CurrentCost Total Usage (Appliance $sensor)
|
||||||
graph_args --base 1000 -l 0
|
graph_args --base 1000 -l 0
|
||||||
graph_vlabel $unit * hours
|
graph_vlabel $unit * hours
|
||||||
graph_category currentcost
|
graph_category sensors
|
||||||
EOF
|
EOF
|
||||||
print "graph_order ";
|
print "graph_order ";
|
||||||
my $confstr = '';
|
my $confstr = '';
|
||||||
|
@ -713,7 +713,7 @@ multigraph currentcost_cost.appliance$sensor
|
||||||
graph CurrentCost Estimated Cost (Appliance $sensor)
|
graph CurrentCost Estimated Cost (Appliance $sensor)
|
||||||
graph_args --base 1000 -l 0
|
graph_args --base 1000 -l 0
|
||||||
graph_vlabel ${currency}
|
graph_vlabel ${currency}
|
||||||
graph_category currentcost
|
graph_category sensors
|
||||||
EOF
|
EOF
|
||||||
if ( scalar( @{ $datum->{data} } ) > 1 ) {
|
if ( scalar( @{ $datum->{data} } ) > 1 ) {
|
||||||
print "graph_total Total\n";
|
print "graph_total Total\n";
|
||||||
|
|
|
@ -62,7 +62,7 @@ echo "host_name $hostname"
|
||||||
echo "graph_args --base 1000"
|
echo "graph_args --base 1000"
|
||||||
echo "graph_title Carrier/Noise Ratio"
|
echo "graph_title Carrier/Noise Ratio"
|
||||||
echo "graph_vlabel dB"
|
echo "graph_vlabel dB"
|
||||||
echo "graph_category status"
|
echo "graph_category dvb"
|
||||||
echo "graph_scale no"
|
echo "graph_scale no"
|
||||||
echo "graph_info Calculated carrier/noise ratio of the signal. To avoid data errors, the decoding of a received signal requires a minimum C/N ratio that depends on the FEC rate."
|
echo "graph_info Calculated carrier/noise ratio of the signal. To avoid data errors, the decoding of a received signal requires a minimum C/N ratio that depends on the FEC rate."
|
||||||
echo "cpn.label C/N"
|
echo "cpn.label C/N"
|
||||||
|
@ -74,7 +74,7 @@ echo "host_name $hostname"
|
||||||
echo "graph_args --base 1000"
|
echo "graph_args --base 1000"
|
||||||
echo "graph_title Carrier Frequency Offset"
|
echo "graph_title Carrier Frequency Offset"
|
||||||
echo "graph_vlabel MHz"
|
echo "graph_vlabel MHz"
|
||||||
echo "graph_category status"
|
echo "graph_category dvb"
|
||||||
echo "graph_scale no"
|
echo "graph_scale no"
|
||||||
echo "graph_info Incoming signals from the LNB are subject to frequency tolerances, thus check the 'CFO Error' under menu item 'Status>Tuner'. This value represents the margin by which the entered frequency deviates from the actual frequency. In order to maximize reception quality the CFO error should be minimized."
|
echo "graph_info Incoming signals from the LNB are subject to frequency tolerances, thus check the 'CFO Error' under menu item 'Status>Tuner'. This value represents the margin by which the entered frequency deviates from the actual frequency. In order to maximize reception quality the CFO error should be minimized."
|
||||||
echo "cfo.label CFO"
|
echo "cfo.label CFO"
|
||||||
|
@ -86,7 +86,7 @@ echo "host_name $hostname"
|
||||||
echo "graph_args --base 1000"
|
echo "graph_args --base 1000"
|
||||||
echo "graph_title RF Signal Level"
|
echo "graph_title RF Signal Level"
|
||||||
echo "graph_vlabel dBm"
|
echo "graph_vlabel dBm"
|
||||||
echo "graph_category status"
|
echo "graph_category dvb"
|
||||||
echo "graph_scale no"
|
echo "graph_scale no"
|
||||||
echo "graph_info Input for the connection of the receiving LNB of the satellite antenna. Admissible RF signal input range is -82 to -10 dBm."
|
echo "graph_info Input for the connection of the receiving LNB of the satellite antenna. Admissible RF signal input range is -82 to -10 dBm."
|
||||||
echo "inp.label RF level"
|
echo "inp.label RF level"
|
||||||
|
@ -98,7 +98,7 @@ echo "host_name $hostname"
|
||||||
echo "graph_args --base 1000"
|
echo "graph_args --base 1000"
|
||||||
echo "graph_title Tuner system Status"
|
echo "graph_title Tuner system Status"
|
||||||
echo "graph_vlabel 1=OK, 0=BAD"
|
echo "graph_vlabel 1=OK, 0=BAD"
|
||||||
echo "graph_category status"
|
echo "graph_category dvb"
|
||||||
echo "graph_scale no"
|
echo "graph_scale no"
|
||||||
echo "graph_info Tuner system status: 1 = 'OK' or 0 = 'BAD'. It is OK if all the following values are OK: AGC (Automatic Gain Control), CE (Carrier Frequency Offset Estimation), Symbol Timing, Carrier Locked, Viterbi error correction."
|
echo "graph_info Tuner system status: 1 = 'OK' or 0 = 'BAD'. It is OK if all the following values are OK: AGC (Automatic Gain Control), CE (Carrier Frequency Offset Estimation), Symbol Timing, Carrier Locked, Viterbi error correction."
|
||||||
echo "tnr.label Tuner status"
|
echo "tnr.label Tuner status"
|
||||||
|
@ -110,7 +110,7 @@ echo "host_name $hostname"
|
||||||
echo "graph_args --base 1000"
|
echo "graph_args --base 1000"
|
||||||
echo "graph_title Warning LED"
|
echo "graph_title Warning LED"
|
||||||
echo "graph_vlabel 0=OFF; >0=ON"
|
echo "graph_vlabel 0=OFF; >0=ON"
|
||||||
echo "graph_category status"
|
echo "graph_category dvb"
|
||||||
echo "graph_scale no"
|
echo "graph_scale no"
|
||||||
echo "graph_info Every monitoring function has a checkbox 'warning LED on' to select if the 'Warning' LED on the web interface and the front panel of the device is activated on alarms or not."
|
echo "graph_info Every monitoring function has a checkbox 'warning LED on' to select if the 'Warning' LED on the web interface and the front panel of the device is activated on alarms or not."
|
||||||
echo "ld2.label Warning"
|
echo "ld2.label Warning"
|
||||||
|
@ -122,7 +122,7 @@ echo "host_name $hostname"
|
||||||
echo "graph_args --base 1000 --logarithmic"
|
echo "graph_args --base 1000 --logarithmic"
|
||||||
echo "graph_title BER Viterbi/LDPC"
|
echo "graph_title BER Viterbi/LDPC"
|
||||||
echo "graph_vlabel Bit Error Rate"
|
echo "graph_vlabel Bit Error Rate"
|
||||||
echo "graph_category status"
|
echo "graph_category dvb"
|
||||||
#echo "graph_scale no"
|
#echo "graph_scale no"
|
||||||
echo "graph_info Detected bit error rate (BER) before the Viterbi error correction."
|
echo "graph_info Detected bit error rate (BER) before the Viterbi error correction."
|
||||||
echo "ber_vt.label Viterbi/LDPC BER"
|
echo "ber_vt.label Viterbi/LDPC BER"
|
||||||
|
@ -134,7 +134,7 @@ echo "host_name $hostname"
|
||||||
echo "graph_args --base 1000 --logarithmic"
|
echo "graph_args --base 1000 --logarithmic"
|
||||||
echo "graph_title BER Reed Solomon/BCH"
|
echo "graph_title BER Reed Solomon/BCH"
|
||||||
echo "graph_vlabel Bit Error Rate"
|
echo "graph_vlabel Bit Error Rate"
|
||||||
echo "graph_category status"
|
echo "graph_category dvb"
|
||||||
#echo "graph_scale no"
|
#echo "graph_scale no"
|
||||||
echo "graph_info Detected bit error rate (BER) before the Reed Solomon error correction."
|
echo "graph_info Detected bit error rate (BER) before the Reed Solomon error correction."
|
||||||
echo "ber_rs.label RS/BCH BER"
|
echo "ber_rs.label RS/BCH BER"
|
||||||
|
|
|
@ -42,7 +42,7 @@ function printMultigraph($ini_array, $machine_name, $title, $info, $max) {
|
||||||
p("multigraph $machine_name");
|
p("multigraph $machine_name");
|
||||||
p("graph_title $title");
|
p("graph_title $title");
|
||||||
p("graph_vlabel players");
|
p("graph_vlabel players");
|
||||||
p("graph_category gameserver");
|
p("graph_category games");
|
||||||
p("graph_info $info");
|
p("graph_info $info");
|
||||||
p("graph_printf %6.0lf");
|
p("graph_printf %6.0lf");
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ for (my $i = 0; $i < $gpuCount; $i++)
|
||||||
print "graph_title GPU\n";
|
print "graph_title GPU\n";
|
||||||
print "graph_args --upper-limit 120 -l 0\n";
|
print "graph_args --upper-limit 120 -l 0\n";
|
||||||
print "graph_vlabel Percent or Degrees C\n";
|
print "graph_vlabel Percent or Degrees C\n";
|
||||||
print "graph_category GPU Metrics\n";
|
print "graph_category GPU\n";
|
||||||
print "graph_info Information for NVIDIA GPUs using driver version $driverVersion\n";
|
print "graph_info Information for NVIDIA GPUs using driver version $driverVersion\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ config_common()
|
||||||
echo 'graph_vlabel GC Count(times)'
|
echo 'graph_vlabel GC Count(times)'
|
||||||
echo 'graph_total total'
|
echo 'graph_total total'
|
||||||
echo 'graph_info GC Count'
|
echo 'graph_info GC Count'
|
||||||
echo 'graph_category JVM'
|
echo 'graph_category java'
|
||||||
}
|
}
|
||||||
|
|
||||||
config_sun_jdk()
|
config_sun_jdk()
|
||||||
|
|
|
@ -86,7 +86,7 @@ config_common()
|
||||||
echo 'graph_vlabel GC Time(sec)'
|
echo 'graph_vlabel GC Time(sec)'
|
||||||
echo 'graph_total total'
|
echo 'graph_total total'
|
||||||
echo 'graph_info GC Time'
|
echo 'graph_info GC Time'
|
||||||
echo 'graph_category JVM'
|
echo 'graph_category java'
|
||||||
}
|
}
|
||||||
|
|
||||||
config_sun_jdk()
|
config_sun_jdk()
|
||||||
|
|
|
@ -85,7 +85,7 @@ config_common()
|
||||||
echo "graph_args --base 1024 -l 0"
|
echo "graph_args --base 1024 -l 0"
|
||||||
echo "graph_vlabel Heap Usage(Bytes)"
|
echo "graph_vlabel Heap Usage(Bytes)"
|
||||||
echo "graph_info Heap Usage"
|
echo "graph_info Heap Usage"
|
||||||
echo "graph_category JVM"
|
echo "graph_category java"
|
||||||
}
|
}
|
||||||
|
|
||||||
config_sun_jdk()
|
config_sun_jdk()
|
||||||
|
|
|
@ -26,7 +26,7 @@ then
|
||||||
# Status graph
|
# Status graph
|
||||||
echo "multigraph mod_jk_status"
|
echo "multigraph mod_jk_status"
|
||||||
echo "graph_title mod_jk Status"
|
echo "graph_title mod_jk Status"
|
||||||
echo "graph_category mod_jk"
|
echo "graph_category tomcat"
|
||||||
echo "graph_info This graph shows the status of the different mod_jk nodes."
|
echo "graph_info This graph shows the status of the different mod_jk nodes."
|
||||||
echo "graph_vlabel Status"
|
echo "graph_vlabel Status"
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ then
|
||||||
do
|
do
|
||||||
echo "multigraph mod_jk_requests_$i"
|
echo "multigraph mod_jk_requests_$i"
|
||||||
echo "graph_title mod_jk Requests $i"
|
echo "graph_title mod_jk Requests $i"
|
||||||
echo "graph_category mod_jk"
|
echo "graph_category tomcat"
|
||||||
echo "graph_info This graph shows the status of requests to the mod_jk node: $i"
|
echo "graph_info This graph shows the status of requests to the mod_jk node: $i"
|
||||||
echo "graph_vlabel Request"
|
echo "graph_vlabel Request"
|
||||||
echo "busy.label Current"
|
echo "busy.label Current"
|
||||||
|
@ -59,7 +59,7 @@ then
|
||||||
do
|
do
|
||||||
echo "multigraph mod_jk_traffic_$i"
|
echo "multigraph mod_jk_traffic_$i"
|
||||||
echo "graph_title mod_jk Traffic $i"
|
echo "graph_title mod_jk Traffic $i"
|
||||||
echo "graph_category mod_jk"
|
echo "graph_category tomcat"
|
||||||
echo "graph_info This graph shows the traffic statistics to the mod_jk node: $i"
|
echo "graph_info This graph shows the traffic statistics to the mod_jk node: $i"
|
||||||
echo "graph_vlabel Bytes/min"
|
echo "graph_vlabel Bytes/min"
|
||||||
echo "transferred.label Write to node (bytes/min)"
|
echo "transferred.label Write to node (bytes/min)"
|
||||||
|
|
|
@ -63,7 +63,7 @@ when 'config'
|
||||||
first = true
|
first = true
|
||||||
puts <<CONFIG
|
puts <<CONFIG
|
||||||
graph_title Netstat: #{desc}
|
graph_title Netstat: #{desc}
|
||||||
graph_category netstat
|
graph_category network
|
||||||
graph_vlabel current
|
graph_vlabel current
|
||||||
graph_order #{values.map { |name, _| name.to_s.escape }.join ' '}
|
graph_order #{values.map { |name, _| name.to_s.escape }.join ' '}
|
||||||
CONFIG
|
CONFIG
|
||||||
|
|
|
@ -66,7 +66,7 @@ class Graph
|
||||||
config_options.concat [
|
config_options.concat [
|
||||||
"multigraph #{name(unit)}",
|
"multigraph #{name(unit)}",
|
||||||
"graph_title Netstat: #{@protocol}: #{@name}#{" (#{unit})" if multigraphs.size > 1}",
|
"graph_title Netstat: #{@protocol}: #{@name}#{" (#{unit})" if multigraphs.size > 1}",
|
||||||
"graph_category netstat",
|
"graph_category network",
|
||||||
"graph_order #{labels_and_negatives.map { |label, _negative| label.escape }.join(' ')}"
|
"graph_order #{labels_and_negatives.map { |label, _negative| label.escape }.join(' ')}"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ pass=''
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo "graph_title Transmission seed ratios"
|
echo "graph_title Transmission seed ratios"
|
||||||
echo "graph_vlabel Seed ratio %"
|
echo "graph_vlabel Seed ratio %"
|
||||||
echo "graph_category Transmission"
|
echo "graph_category torrent"
|
||||||
echo "graph_info This plugin shows your transmission ratios per torrent"
|
echo "graph_info This plugin shows your transmission ratios per torrent"
|
||||||
transmission-remote -n $user:$pass -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels
|
transmission-remote -n $user:$pass -l | gawk -f /usr/share/munin/plugins/tr_ratios_labels
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -43,7 +43,7 @@ my $command = "$CMCS -ip $IP -pw $PW -xmlstatus";
|
||||||
if (defined($ARGV[0]) and ($ARGV[0] eq 'config')) {
|
if (defined($ARGV[0]) and ($ARGV[0] eq 'config')) {
|
||||||
print "graph_title Novra S300\n";
|
print "graph_title Novra S300\n";
|
||||||
print "graph_vlabel Signal\n";
|
print "graph_vlabel Signal\n";
|
||||||
print "graph_category NOAAPort\n";
|
print "graph_category weather\n";
|
||||||
print "s300.signal Signal\n";
|
print "s300.signal Signal\n";
|
||||||
print "s300.ctn CtN\n";
|
print "s300.ctn CtN\n";
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
|
@ -51,7 +51,7 @@ if ($#ARGV eq 0) {
|
||||||
if ($ARGV[0] eq 'config') {
|
if ($ARGV[0] eq 'config') {
|
||||||
print "eAccelerator\n";
|
print "eAccelerator\n";
|
||||||
print "graph_title eAccelerator\n";
|
print "graph_title eAccelerator\n";
|
||||||
print "graph_category php-cgi\n";
|
print "graph_category php\n";
|
||||||
print "memusage.label Memory Usage %\n";
|
print "memusage.label Memory Usage %\n";
|
||||||
print "memusage.warning 95\n";
|
print "memusage.warning 95\n";
|
||||||
print "memusage.critical 95\n";
|
print "memusage.critical 95\n";
|
||||||
|
|
|
@ -90,7 +90,7 @@ if (exists $ARGV[0] and $ARGV[0] eq "config") {
|
||||||
|
|
||||||
print "graph_title PHP CGI [MB]\n";
|
print "graph_title PHP CGI [MB]\n";
|
||||||
print "graph_vlabel PHP CGI Memory usage\n";
|
print "graph_vlabel PHP CGI Memory usage\n";
|
||||||
print "graph_category php-cgi\n";
|
print "graph_category php\n";
|
||||||
print "graph_args -l 0\n";
|
print "graph_args -l 0\n";
|
||||||
print "php_cgi_ram.label PHP CGI Used RAM\n";
|
print "php_cgi_ram.label PHP CGI Used RAM\n";
|
||||||
print "php_cgi_ram.draw LINE2\n";
|
print "php_cgi_ram.draw LINE2\n";
|
||||||
|
|
|
@ -31,7 +31,7 @@ case $1 in
|
||||||
host_name printers
|
host_name printers
|
||||||
graph_title HP 2600 pages by cartridge statistics
|
graph_title HP 2600 pages by cartridge statistics
|
||||||
graph_vlabel Count (Pages)
|
graph_vlabel Count (Pages)
|
||||||
graph_category HP2600 Printer
|
graph_category printer
|
||||||
graph_info Pages count by color.
|
graph_info Pages count by color.
|
||||||
graph_args -l 0
|
graph_args -l 0
|
||||||
graph_scale no
|
graph_scale no
|
||||||
|
|
|
@ -31,7 +31,7 @@ case $1 in
|
||||||
host_name printers
|
host_name printers
|
||||||
graph_title HP 2600 cartridge status
|
graph_title HP 2600 cartridge status
|
||||||
graph_vlabel Status (%)
|
graph_vlabel Status (%)
|
||||||
graph_category HP2600 Printer
|
graph_category printer
|
||||||
graph_info Toner status.
|
graph_info Toner status.
|
||||||
graph_args --upper-limit 400 -l 0
|
graph_args --upper-limit 400 -l 0
|
||||||
line.label ---
|
line.label ---
|
||||||
|
|
|
@ -53,9 +53,9 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
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 ".${category}."\n";
|
print "graph_category torrent ".${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 usage of rTorrent\n";
|
||||||
print "mem.type GAUGE\n";
|
print "mem.type GAUGE\n";
|
||||||
print "mem.draw LINE2\n";
|
print "mem.draw LINE2\n";
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
|
@ -51,7 +51,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
print "graph_title rTorrent peer statistics\n";
|
print "graph_title rTorrent peer statistics\n";
|
||||||
print "graph_args --base 1000 --lower-limit 0\n";
|
print "graph_args --base 1000 --lower-limit 0\n";
|
||||||
print "graph_vlabel peers\n";
|
print "graph_vlabel peers\n";
|
||||||
print "graph_category rTorrent ".${category}."\n";
|
print "graph_category torrent ".${category}."\n";
|
||||||
print "outgoing.label outgoing\n";
|
print "outgoing.label outgoing\n";
|
||||||
print "outgoing.draw AREA\n";
|
print "outgoing.draw AREA\n";
|
||||||
print "outgoing.info number of outgoing connections\n";
|
print "outgoing.info number of outgoing connections\n";
|
||||||
|
|
|
@ -65,7 +65,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
print "graph_title rTorrent speeds\n";
|
print "graph_title rTorrent speeds\n";
|
||||||
print "graph_args --base 1024\n";
|
print "graph_args --base 1024\n";
|
||||||
print "graph_vlabel Bytes per \${graph_period}\n";
|
print "graph_vlabel Bytes per \${graph_period}\n";
|
||||||
print "graph_category rTorrent ".${category}."\n";
|
print "graph_category torrent ".${category}."\n";
|
||||||
print "down.label Download B/s\n";
|
print "down.label Download B/s\n";
|
||||||
print "down.info Download speed in Bytes per seconds\n";
|
print "down.info Download speed in Bytes per seconds\n";
|
||||||
print "down.type DERIVE\n";
|
print "down.type DERIVE\n";
|
||||||
|
|
|
@ -52,7 +52,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
print "graph_args --base 1000 -r --lower-limit 0\n";
|
print "graph_args --base 1000 -r --lower-limit 0\n";
|
||||||
print "graph_title rTorrent volume\n";
|
print "graph_title rTorrent volume\n";
|
||||||
print "graph_vlabel active torrents\n";
|
print "graph_vlabel active torrents\n";
|
||||||
print "graph_category rTorrent ".${category}."\n";
|
print "graph_category torrent ".${category}."\n";
|
||||||
print "complete.label complete\n";
|
print "complete.label complete\n";
|
||||||
print "complete.draw AREA\n";
|
print "complete.draw AREA\n";
|
||||||
print "complete.info complete torrents\n";
|
print "complete.info complete torrents\n";
|
||||||
|
|
|
@ -53,7 +53,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
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 ".${category}."\n";
|
print "graph_category torrent ".${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";
|
||||||
|
|
|
@ -53,7 +53,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
print "graph_title rTorrent peer statistics\n";
|
print "graph_title rTorrent peer statistics\n";
|
||||||
print "graph_args --base 1000 --lower-limit 0\n";
|
print "graph_args --base 1000 --lower-limit 0\n";
|
||||||
print "graph_vlabel peers\n";
|
print "graph_vlabel peers\n";
|
||||||
print "graph_category rTorrent ".${category}."\n";
|
print "graph_category torrent ".${category}."\n";
|
||||||
print "outgoing.label outgoing\n";
|
print "outgoing.label outgoing\n";
|
||||||
print "outgoing.draw AREA\n";
|
print "outgoing.draw AREA\n";
|
||||||
print "outgoing.info number of outgoing connections\n";
|
print "outgoing.info number of outgoing connections\n";
|
||||||
|
|
|
@ -68,7 +68,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
print "graph_title rTorrent speeds\n";
|
print "graph_title rTorrent speeds\n";
|
||||||
print "graph_args --base 1024\n";
|
print "graph_args --base 1024\n";
|
||||||
print "graph_vlabel Bytes per \${graph_period}\n";
|
print "graph_vlabel Bytes per \${graph_period}\n";
|
||||||
print "graph_category rTorrent ".${category}."\n";
|
print "graph_category torrent ".${category}."\n";
|
||||||
print "down.label Download B/s\n";
|
print "down.label Download B/s\n";
|
||||||
print "down.info Download speed in Bytes per seconds\n";
|
print "down.info Download speed in Bytes per seconds\n";
|
||||||
print "down.type DERIVE\n";
|
print "down.type DERIVE\n";
|
||||||
|
|
|
@ -54,7 +54,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
print "graph_args --base 1000 -r --lower-limit 0\n";
|
print "graph_args --base 1000 -r --lower-limit 0\n";
|
||||||
print "graph_title rTorrent volume\n";
|
print "graph_title rTorrent volume\n";
|
||||||
print "graph_vlabel active torrents\n";
|
print "graph_vlabel active torrents\n";
|
||||||
print "graph_category rTorrent ".${category}."\n";
|
print "graph_category torrent ".${category}."\n";
|
||||||
print "complete.label complete\n";
|
print "complete.label complete\n";
|
||||||
print "complete.draw AREA\n";
|
print "complete.draw AREA\n";
|
||||||
print "complete.info complete torrents\n";
|
print "complete.info complete torrents\n";
|
||||||
|
|
|
@ -84,7 +84,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||||
print "graph_title $host CIFS sessions\n";
|
print "graph_title $host CIFS sessions\n";
|
||||||
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
||||||
print "graph_vlabel CIFS\n";
|
print "graph_vlabel CIFS\n";
|
||||||
print "graph_category CIFS\n";
|
print "graph_category netapp\n";
|
||||||
print "graph_info This graph shows CIFS sessions status for the $host.\n";
|
print "graph_info This graph shows CIFS sessions status for the $host.\n";
|
||||||
print "graph_order ";
|
print "graph_order ";
|
||||||
foreach (sort keys %oids)
|
foreach (sort keys %oids)
|
||||||
|
|
|
@ -91,7 +91,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||||
print "graph_title $host CIFS calls\n";
|
print "graph_title $host CIFS calls\n";
|
||||||
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
||||||
print "graph_vlabel calls / \${graph_period}\n";
|
print "graph_vlabel calls / \${graph_period}\n";
|
||||||
print "graph_category cifs\n";
|
print "graph_category netapp\n";
|
||||||
print "graph_info This graph shows cifs calls for the $host NetApp equipment.\n";
|
print "graph_info This graph shows cifs calls for the $host NetApp equipment.\n";
|
||||||
print "graph_order ";
|
print "graph_order ";
|
||||||
foreach (sort keys %oids)
|
foreach (sort keys %oids)
|
||||||
|
|
|
@ -93,7 +93,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||||
print "graph_title $host CPU \n";
|
print "graph_title $host CPU \n";
|
||||||
print "graph_args --base 1000 -r --lower-limit 0 --upper-limit 100\n";
|
print "graph_args --base 1000 -r --lower-limit 0 --upper-limit 100\n";
|
||||||
print "graph_vlabel CPU \n";
|
print "graph_vlabel CPU \n";
|
||||||
print "graph_category CPU\n";
|
print "graph_category netapp\n";
|
||||||
print "graph_info This graph shows cpu busy value for the $host in percent.\n";
|
print "graph_info This graph shows cpu busy value for the $host in percent.\n";
|
||||||
print "graph_order ";
|
print "graph_order ";
|
||||||
foreach (sort keys %oids)
|
foreach (sort keys %oids)
|
||||||
|
|
|
@ -63,6 +63,8 @@ sub do_collect
|
||||||
|
|
||||||
sub do_config_root
|
sub do_config_root
|
||||||
{
|
{
|
||||||
|
# graph_category netapp # To show plugin in Gallery also in this category
|
||||||
|
|
||||||
my ($host) = @_;
|
my ($host) = @_;
|
||||||
|
|
||||||
print "multigraph diskbusy\n";
|
print "multigraph diskbusy\n";
|
||||||
|
|
|
@ -135,6 +135,7 @@ sub do_config_vol
|
||||||
}
|
}
|
||||||
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";
|
||||||
|
# graph_category netapp # To show plugin in Gallery also in this category
|
||||||
print "graph_category disk\n";
|
print "graph_category disk\n";
|
||||||
print "graph_order df64UsedKBytes df64SnapShotUsedKBytes df64SisSavedKBytes df64TotalKBytes df64SnapShotTotalKBytes df64TotalAndSnapTotalKBytes \n";
|
print "graph_order df64UsedKBytes df64SnapShotUsedKBytes df64SisSavedKBytes df64TotalKBytes df64SnapShotTotalKBytes df64TotalAndSnapTotalKBytes \n";
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||||
print "graph_title $host Disk throughput\n";
|
print "graph_title $host Disk throughput\n";
|
||||||
print "graph_args --base 1024\n";
|
print "graph_args --base 1024\n";
|
||||||
print "graph_vlabel Bytes/\${graph_period} write (-) / read (+)\n";
|
print "graph_vlabel Bytes/\${graph_period} write (-) / read (+)\n";
|
||||||
|
# graph_category netapp # To show plugin in Gallery also in this category
|
||||||
print "graph_category disk\n";
|
print "graph_category disk\n";
|
||||||
print "graph_info This graph shows DiskUtil calls for the $host NetApp equipment.\n";
|
print "graph_info This graph shows DiskUtil calls for the $host NetApp equipment.\n";
|
||||||
print "graph_order misc64DiskWriteBytes misc64DiskReadBytes\n";
|
print "graph_order misc64DiskWriteBytes misc64DiskReadBytes\n";
|
||||||
|
|
|
@ -84,7 +84,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||||
print "graph_title $host NDMP \n";
|
print "graph_title $host NDMP \n";
|
||||||
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
||||||
print "graph_vlabel NDMP status\n";
|
print "graph_vlabel NDMP status\n";
|
||||||
print "graph_category NDMP\n";
|
print "graph_category netapp\n";
|
||||||
print "graph_info This graph shows NDMP status for the $host NetApp equipment.\n";
|
print "graph_info This graph shows NDMP status for the $host NetApp equipment.\n";
|
||||||
print "graph_order ";
|
print "graph_order ";
|
||||||
foreach (sort keys %oids)
|
foreach (sort keys %oids)
|
||||||
|
|
|
@ -82,6 +82,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||||
print "graph_title $host Network interface traffic\n";
|
print "graph_title $host Network interface traffic\n";
|
||||||
print "graph_args --base 1000\n";
|
print "graph_args --base 1000\n";
|
||||||
print "graph_vlabel Bytes in (-) / out (+) per \${graph_period}\n";
|
print "graph_vlabel Bytes in (-) / out (+) per \${graph_period}\n";
|
||||||
|
# graph_category netapp # To show plugin in Gallery also in this category
|
||||||
print "graph_category network\n";
|
print "graph_category network\n";
|
||||||
print "graph_info This graph shows net stats for the $host NetApp equipment.\n";
|
print "graph_info This graph shows net stats for the $host NetApp equipment.\n";
|
||||||
print "graph_order misc64NetRcvdBytes misc64NetSentBytes\n";
|
print "graph_order misc64NetRcvdBytes misc64NetSentBytes\n";
|
||||||
|
|
|
@ -120,6 +120,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config") {
|
||||||
print "graph_title $host NFSv3 calls\n";
|
print "graph_title $host NFSv3 calls\n";
|
||||||
print "graph_args --base 1000\n";
|
print "graph_args --base 1000\n";
|
||||||
print "graph_vlabel calls / \${graph_period}\n";
|
print "graph_vlabel calls / \${graph_period}\n";
|
||||||
|
# graph_category netapp # To show plugin in Gallery also in this category
|
||||||
print "graph_category nfs\n";
|
print "graph_category nfs\n";
|
||||||
print "graph_info This graph shows NFSv3 calls for the $host NetApp equipment.\n";
|
print "graph_info This graph shows NFSv3 calls for the $host NetApp equipment.\n";
|
||||||
print "graph_order ";
|
print "graph_order ";
|
||||||
|
|
|
@ -112,7 +112,7 @@ sub do_config_vol
|
||||||
}
|
}
|
||||||
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
||||||
print "graph_vlabel reallocate_status status\n";
|
print "graph_vlabel reallocate_status status\n";
|
||||||
print "graph_category reallocate\n";
|
print "graph_category netapp\n";
|
||||||
foreach my $state ("reallocating", "redirecting", "quiesce", "debug")
|
foreach my $state ("reallocating", "redirecting", "quiesce", "debug")
|
||||||
{
|
{
|
||||||
print "$state.label $state\n";
|
print "$state.label $state\n";
|
||||||
|
|
|
@ -110,7 +110,7 @@ sub do_config_vol
|
||||||
}
|
}
|
||||||
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
|
||||||
print "graph_vlabel sis status\n";
|
print "graph_vlabel sis status\n";
|
||||||
print "graph_category sis\n";
|
print "graph_category netapp\n";
|
||||||
print "graph_order sisInitialising sisRunning sisPending sisDebug\n";
|
print "graph_order sisInitialising sisRunning sisPending sisDebug\n";
|
||||||
foreach my $state ("debug", "initialising", "running", "pending")
|
foreach my $state ("debug", "initialising", "running", "pending")
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,7 +49,7 @@ if [ "$1" = "config" ]; then
|
||||||
echo 'graph_title Chrony Tracking Stats'
|
echo 'graph_title Chrony Tracking Stats'
|
||||||
echo 'graph_args --base 1000 -l 0'
|
echo 'graph_args --base 1000 -l 0'
|
||||||
echo 'units (seconds,ppm)'
|
echo 'units (seconds,ppm)'
|
||||||
echo 'graph_category NTP'
|
echo 'graph_category time'
|
||||||
i=0
|
i=0
|
||||||
for a in $fields ; do
|
for a in $fields ; do
|
||||||
i=$(expr $i + 1);
|
i=$(expr $i + 1);
|
||||||
|
|
|
@ -85,7 +85,7 @@ if ($ARGV[0] and $ARGV[0] eq 'config') {
|
||||||
print "graph_title NTP peer offsets\n";
|
print "graph_title NTP peer offsets\n";
|
||||||
print "graph_args --base 1000\n";
|
print "graph_args --base 1000\n";
|
||||||
print "graph_vlabel ms\n";
|
print "graph_vlabel ms\n";
|
||||||
print "graph_category ntp\n";
|
print "graph_category time\n";
|
||||||
print "graph_info Offset (in ms) to the server's NTP peers\n";
|
print "graph_info Offset (in ms) to the server's NTP peers\n";
|
||||||
print "graph_order ";
|
print "graph_order ";
|
||||||
foreach my $key (sort keys %peers) {
|
foreach my $key (sort keys %peers) {
|
||||||
|
|
|
@ -110,7 +110,7 @@ if ($ARGV[0] and $ARGV[0] eq 'config') {
|
||||||
print "graph_title NTP Queries\n";
|
print "graph_title NTP Queries\n";
|
||||||
print "graph_args --base 1000\n";
|
print "graph_args --base 1000\n";
|
||||||
print "graph_vlabel qps\n";
|
print "graph_vlabel qps\n";
|
||||||
print "graph_category ntp\n";
|
print "graph_category time\n";
|
||||||
print "graph_info Queries to the NTP server\n";
|
print "graph_info Queries to the NTP server\n";
|
||||||
print "queries.label Queries per second\n";
|
print "queries.label Queries per second\n";
|
||||||
print "queries.type DERIVE\n";
|
print "queries.type DERIVE\n";
|
||||||
|
|
|
@ -25,7 +25,7 @@ def config(vm_names):
|
||||||
|
|
||||||
base_config = """graph_title KVM Virtual Machine CPU usage
|
base_config = """graph_title KVM Virtual Machine CPU usage
|
||||||
graph_vlabel %%
|
graph_vlabel %%
|
||||||
graph_category KVM
|
graph_category Virtualization
|
||||||
graph_scale no
|
graph_scale no
|
||||||
graph_period second
|
graph_period second
|
||||||
graph_info This graph shows the current CPU used by virtual machines
|
graph_info This graph shows the current CPU used by virtual machines
|
||||||
|
|
|
@ -23,7 +23,7 @@ def config(vm_names):
|
||||||
'''
|
'''
|
||||||
base_config = """graph_title KVM Virtual Machine IO usage
|
base_config = """graph_title KVM Virtual Machine IO usage
|
||||||
graph_vlabel Bytes read(-)/written(+) per second
|
graph_vlabel Bytes read(-)/written(+) per second
|
||||||
graph_category KVM
|
graph_category Virtualization
|
||||||
graph_info This graph shows the block device I/O used of virtual machines
|
graph_info This graph shows the block device I/O used of virtual machines
|
||||||
graph_args --base 1024
|
graph_args --base 1024
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -23,7 +23,7 @@ def config(vm_names):
|
||||||
'''
|
'''
|
||||||
base_config = """graph_title KVM Virtual Machine Memory usage
|
base_config = """graph_title KVM Virtual Machine Memory usage
|
||||||
graph_vlabel Bytes
|
graph_vlabel Bytes
|
||||||
graph_category KVM
|
graph_category Virtualization
|
||||||
graph_info This graph shows the current amount of memory used by virtual machines
|
graph_info This graph shows the current amount of memory used by virtual machines
|
||||||
graph_args --base 1024
|
graph_args --base 1024
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -24,7 +24,7 @@ def config(vm_names):
|
||||||
'''
|
'''
|
||||||
base_config = """graph_title KVM Network I/O
|
base_config = """graph_title KVM Network I/O
|
||||||
graph_vlabel Bytes rx(-)/tx(+) per second
|
graph_vlabel Bytes rx(-)/tx(+) per second
|
||||||
graph_category KVM
|
graph_category Virtualization
|
||||||
graph_info This graph shows the network I/O of the virtual machines
|
graph_info This graph shows the network I/O of the virtual machines
|
||||||
graph_args --base 1024
|
graph_args --base 1024
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -37,7 +37,7 @@ if len(sys.argv) == 2:
|
||||||
print "graph_title KVM Domain CPU Utilization"
|
print "graph_title KVM Domain CPU Utilization"
|
||||||
print "graph_vlabel CPU use in seconds"
|
print "graph_vlabel CPU use in seconds"
|
||||||
print "graph_args --base 1000"
|
print "graph_args --base 1000"
|
||||||
print "graph_category kvm"
|
print "graph_category Virtualization"
|
||||||
|
|
||||||
for id in ids:
|
for id in ids:
|
||||||
dom = conn.lookupByID(id)
|
dom = conn.lookupByID(id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue