Plugin-Gallery: Get better 2nd level headings

Review of category "system"
This commit is contained in:
dipohl 2017-02-24 23:54:53 +01:00
parent 54a91c13a4
commit 7fdb4741fe
27 changed files with 18 additions and 12 deletions

View File

@ -37,7 +37,7 @@ fi
if [ "$1" = "config" ] ; then
echo "graph_args --base 1000 -r --lower-limit 0";
echo "graph_title CPU usage, by process";
echo "graph_category system";
echo "graph_category processes";
echo "graph_info This graph shows CPU usage, for monitored processes.";
echo 'graph_vlabel %'
echo 'graph_scale no'

View File

@ -86,7 +86,7 @@ if (@ARGV and $ARGV[0] eq "config")
graph_title CPU time by Process
graph_args --base 1000
graph_vlabel seconds
graph_category system
graph_category processes
graph_info Shows CPU time used by each process name
END

View File

@ -87,3 +87,6 @@ exit 0
# acquire which needs a different pid than watchdog, otherwise watchdog
# could/will kill itself when expiring before the watched process is killed.
# not a POSIX feature.
# for Munin Plugin Gallery
# graph_category 1sec

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

View File

@ -28,7 +28,7 @@ if [ "$1" = "config" ]; then
echo 'graph_vlabel Ko'
echo 'graph_scale no'
echo "graph_info This graph display memory usage for a process"
echo 'graph_category system'
echo 'graph_category processes'
echo 'graph_period second'
echo 'VmExe.label VmExe'

View File

@ -66,7 +66,7 @@ int config() {
"multigraph if_%s_1sec" "\n"
"graph_order down up" "\n"
"graph_title %s traffic" "\n"
"graph_category system::1sec" "\n"
"graph_category 1sec" "\n"
"graph_vlabel bits in (-) / out (+) per ${graph_period}" "\n"
"graph_data_size custom 1d, 10s for 1w, 1m for 1t, 5m for 1y" "\n"
, if_name, if_name

View File

@ -29,7 +29,7 @@ if [ "$1" == "config" ]; then
cut -c9- <<EOF
graph_args --base 1024 -l 0 --vertical-label bytes --upper-limit $limit
graph_title VPS memory usage
graph_category system
graph_category memory
graph_info Shows memory usage and VPS memory limits.
graph_order maxheld held oomguar barrier limit

View File

@ -40,7 +40,7 @@ if [ "$1" = "config" ]
then
cat <<EOF
graph_title CPU Freq 1sec stats
graph_category 1sec::cpu
graph_category 1sec
graph_data_size custom 1d, 10s for 1w, 1m for 1t, 5m for 1y
graph_vlabel Hz
update_rate 1

View File

@ -106,7 +106,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
%known_oids = ('1.3.6.1.2.1.43.10.2.1.4.1.1' =>
{ title => 'Pages',
vlabel => 'Printed pages',
category => 'Printer',
category => 'printing',
info => 'Returns the total number of printed pages per defined printer',
total => 'Total',
units => 'pages'
@ -114,7 +114,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
'1.3.6.1.2.1.43.11.1.1.8.1.1' =>
{ title => 'Total projected capacity of this cartridge',
vlabel => 'Total capacity',
category => 'Printer',
category => 'printing',
info => 'Returns the total projected capacity (in pages) of '.
'the currently installed cartridge',
total => 'Total',
@ -123,7 +123,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
'1.3.6.1.2.1.43.11.1.1.9.1.1' =>
{ title => 'Pages printed with this cartridge',
vlabel => 'Printed pages',
category => 'Printer',
category => 'printing',
info => 'Returns the total number of printed pages per ' .
'defined printer with the current cartridge',
total => 'Total',
@ -239,3 +239,6 @@ sub host_label_for {
$addr =~ s/\./_/g; # Periods not allowed in variable names
return $addr;
}
# for Munin Plugin Gallery
# graph_category printing

View File

@ -26,7 +26,7 @@ fi
if [ "$1" = 'config' ]; then
echo 'graph_title zone memory usage'
echo 'graph_args --upper-limit 100'
echo 'graph_category system'
echo 'graph_category memory'
stack=AREA
$PRSTAT $PRSTAT_OPTS | sed '1,/^ZONEID/d' | grep -v '^Total' | while read i; do
oIFS="$IFS"

View File

@ -75,7 +75,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config") {
print "graph_title UPS
graph_args --base 1000 -l 0
graph_vlabel Status of UPS
graph_category system
graph_category sensors
graph_info This graph shows the status of the attached UPS.
charge.label Charge
charge.info Charge status of battery.

View File

@ -43,7 +43,7 @@ my $command = "$CMCS -ip $IP -pw $PW -xmlstatus";
if (defined($ARGV[0]) and ($ARGV[0] eq 'config')) {
print "graph_title Novra S300\n";
print "graph_vlabel Signal\n";
print "graph_category weather\n";
print "graph_category sensors\n";
print "s300.signal Signal\n";
print "s300.ctn CtN\n";
exit(0);