mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
plugin categories: reorganize multiple plugins
This commit is contained in:
parent
5a45d49760
commit
34eeebbe37
19 changed files with 21 additions and 29 deletions
|
@ -12,6 +12,7 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_args --base 1000 -l 0'
|
||||
echo 'graph_vlabel MB/s'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_category network'
|
||||
echo "download.label download"
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
@ -120,7 +120,7 @@ my $graphs =
|
|||
{
|
||||
'munin' =>
|
||||
{
|
||||
'category' => 'wifi',
|
||||
'category' => 'wireless',
|
||||
'args' => '--base 1000 -u 0',
|
||||
'title' => ':if: signal and noise levels',
|
||||
'vlabel' => 'dB',
|
||||
|
@ -134,7 +134,7 @@ my $graphs =
|
|||
{
|
||||
'munin' =>
|
||||
{
|
||||
'category' => 'wifi',
|
||||
'category' => 'wireless',
|
||||
'args' => '--base 1000',
|
||||
'title' => ':if: link quality',
|
||||
'vlabel' => '%',
|
||||
|
@ -148,7 +148,7 @@ my $graphs =
|
|||
{
|
||||
'munin' =>
|
||||
{
|
||||
'category' => 'wifi',
|
||||
'category' => 'wireless',
|
||||
'args' => '--base 1000',
|
||||
'title' => ':if: errors',
|
||||
'vlabel' => 'Errors RX (-) / TX (+)',
|
||||
|
|
|
@ -102,7 +102,6 @@ if (!defined $ENV{MUNIN_PLUGSTATE}) {
|
|||
sub pidfile() { "$ENV{MUNIN_PLUGSTATE}/munin.$plugin.pid" }
|
||||
sub cachefile() { "$ENV{MUNIN_PLUGSTATE}/munin.$plugin.cache" }
|
||||
|
||||
sub graph_section() { "system:network" }
|
||||
sub graph_name() { "interfaces" }
|
||||
#sub graph_title() { "interfaces" }
|
||||
#sub graph_title_all() { "Overall CPU usage" }
|
||||
|
@ -327,7 +326,7 @@ sub show_config()
|
|||
}
|
||||
print <<EOF;
|
||||
multigraph @{[ graph_name() ]}
|
||||
graph_category @{[ graph_section() ]}
|
||||
graph_category network
|
||||
graph_title overall bits per seconds
|
||||
graph_vlabel bits per seconds
|
||||
update_rate 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue