Projet

Général

Profil

Révision 42fd0b1a

ID42fd0b1a2c469ab02f736341b3685c6f767edead
Parent 4a7a0de1
Enfant 522104af

Ajouté par Farhad Shahbazi il y a plus de 12 ans

if: one probably wants bit for traffic graphs

Voir les différences:

plugins/network/if
10 10
In the general graphs made key fields for each interface, a subsidiary graphs for each interface there are detailed
11 11

  
12 12
This plugin displays the following charts:
13
Traffic, bytes
13
Traffic, bit
14 14
Traffic, packets
15 15
Average packet size
16 16
Interface errors
......
76 76
# ------------------------ avialable graphs -------------------------
77 77
my $graphs =
78 78
{
79
  'if_bytes' =>
79
  'if_bit' =>
80 80
  {
81 81
    'munin' =>
82 82
    {
83 83
      'category' => 'network',
84
      'args'     => '--base 1024',
85
      'title'    => ':if: traffic, bytes', 
86
      'vlabel'   => 'Bytes in (-) / out (+), avg. per second',
87
      'info'     => 'This graph shows the traffic in bytes of the :if:, averaged value per second from last update'
84
      'args'     => '--base 1000',
85
      'title'    => ':if: traffic, bit',
86
      'vlabel'   => 'Bit in (-) / out (+), avg. per second',
87
      'info'     => 'This graph shows the traffic in bit of the :if:, averaged value per second from last update'
88 88
    },
89 89
    'per_if_fields'  => [qw(rx_bytes tx_bytes)],
90 90
    'general_fields' => [qw(rx_bytes tx_bytes)]
......
290 290
    {
291 291
     'type'  => 'GAUGE',
292 292
     'draw'  => 'LINE1',
293
     'label' => 'RX bytes',
294
     'info'  => 'RX bytes'
293
     'label' => 'RX bit',
294
     'info'  => 'RX bit'
295 295
    },
296 296
    'source' =>
297 297
    {
298 298
      'type'     => 'file',
299 299
      'location' => $ifpath.'/:if:/statistics/rx_bytes'
300 300
    },
301
    'cdef' => '8,*',
301 302
    'peack_protect' => 'max_interface_bps',
302 303
    'negative' =>
303 304
    {
......
552 553
    {
553 554
      'type'  => 'GAUGE',
554 555
      'draw'  => 'LINE1',
555
      'label' => 'TX bytes',
556
      'info'  => 'TX bytes'
556
      'label' => 'TX bit',
557
      'info'  => 'TX bit'
557 558
    },
558 559
    'source' =>
559 560
    {
560 561
      'type' => 'file',
561 562
      'location' => $ifpath.'/:if:/statistics/tx_bytes'
562 563
    },
564
    'cdef' => '8,*',
563 565
    'peack_protect'  => 'max_interface_bps',
564 566
    'difference'     => 'per_secund'
565 567
  },

Formats disponibles : Unified diff