diff options
Diffstat (limited to 'plugin/netlink.php')
| -rw-r--r-- | plugin/netlink.php | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/plugin/netlink.php b/plugin/netlink.php index f9b4fa6..9352f66 100644 --- a/plugin/netlink.php +++ b/plugin/netlink.php | |||
| @@ -23,7 +23,7 @@ switch($obj->args['type']) { | |||
| 23 | case 'if_dropped': | 23 | case 'if_dropped': |
| 24 | $obj->data_sources = array('rx', 'tx'); | 24 | $obj->data_sources = array('rx', 'tx'); |
| 25 | $obj->ds_names = array( | 25 | $obj->ds_names = array( |
| 26 | 'rx' => 'Receive ', | 26 | 'rx' => 'Receive', |
| 27 | 'tx' => 'Transmit', | 27 | 'tx' => 'Transmit', |
| 28 | ); | 28 | ); |
| 29 | $obj->colors = array( | 29 | $obj->colors = array( |
| @@ -36,7 +36,7 @@ switch($obj->args['type']) { | |||
| 36 | case 'if_errors': | 36 | case 'if_errors': |
| 37 | $obj->data_sources = array('rx', 'tx'); | 37 | $obj->data_sources = array('rx', 'tx'); |
| 38 | $obj->ds_names = array( | 38 | $obj->ds_names = array( |
| 39 | 'rx' => 'Receive ', | 39 | 'rx' => 'Receive', |
| 40 | 'tx' => 'Transmit', | 40 | 'tx' => 'Transmit', |
| 41 | ); | 41 | ); |
| 42 | $obj->colors = array( | 42 | $obj->colors = array( |
| @@ -56,7 +56,7 @@ switch($obj->args['type']) { | |||
| 56 | case 'if_octets': | 56 | case 'if_octets': |
| 57 | $obj->data_sources = array('rx', 'tx'); | 57 | $obj->data_sources = array('rx', 'tx'); |
| 58 | $obj->ds_names = array( | 58 | $obj->ds_names = array( |
| 59 | 'rx' => 'Receive ', | 59 | 'rx' => 'Receive', |
| 60 | 'tx' => 'Transmit', | 60 | 'tx' => 'Transmit', |
| 61 | ); | 61 | ); |
| 62 | $obj->colors = array( | 62 | $obj->colors = array( |
| @@ -69,7 +69,7 @@ switch($obj->args['type']) { | |||
| 69 | case 'if_packets': | 69 | case 'if_packets': |
| 70 | $obj->data_sources = array('rx', 'tx'); | 70 | $obj->data_sources = array('rx', 'tx'); |
| 71 | $obj->ds_names = array( | 71 | $obj->ds_names = array( |
| 72 | 'rx' => 'Receive ', | 72 | 'rx' => 'Receive', |
| 73 | 'tx' => 'Transmit', | 73 | 'tx' => 'Transmit', |
| 74 | ); | 74 | ); |
| 75 | $obj->colors = array( | 75 | $obj->colors = array( |
| @@ -79,16 +79,15 @@ switch($obj->args['type']) { | |||
| 79 | $obj->rrd_title = sprintf('Interface Packets (%s)', $obj->args['pinstance']); | 79 | $obj->rrd_title = sprintf('Interface Packets (%s)', $obj->args['pinstance']); |
| 80 | $obj->rrd_vertical = 'Packets/s'; | 80 | $obj->rrd_vertical = 'Packets/s'; |
| 81 | break; | 81 | break; |
| 82 | break; | ||
| 83 | case 'if_rx_errors': | 82 | case 'if_rx_errors': |
| 84 | $obj->data_sources = array('value'); | 83 | $obj->data_sources = array('value'); |
| 85 | $obj->ds_names = array( | 84 | $obj->ds_names = array( |
| 86 | 'crc' => 'CRC ', | 85 | 'crc' => 'CRC', |
| 87 | 'fifo' => 'FiFo ', | 86 | 'fifo' => 'FiFo', |
| 88 | 'frame' => 'Frame ', | 87 | 'frame' => 'Frame', |
| 89 | 'length' => 'Lenght', | 88 | 'length' => 'Lenght', |
| 90 | 'missed' => 'Missed', | 89 | 'missed' => 'Missed', |
| 91 | 'over' => 'Over ', | 90 | 'over' => 'Over', |
| 92 | ); | 91 | ); |
| 93 | $obj->colors = array( | 92 | $obj->colors = array( |
| 94 | 'crc' => '00e000', | 93 | 'crc' => '00e000', |
| @@ -104,11 +103,11 @@ switch($obj->args['type']) { | |||
| 104 | case 'if_tx_errors': | 103 | case 'if_tx_errors': |
| 105 | $obj->data_sources = array('value'); | 104 | $obj->data_sources = array('value'); |
| 106 | $obj->ds_names = array( | 105 | $obj->ds_names = array( |
| 107 | 'aborted' => 'Aborted ', | 106 | 'aborted' => 'Aborted', |
| 108 | 'carrier' => 'Carrier ', | 107 | 'carrier' => 'Carrier', |
| 109 | 'fifo' => 'FiFo ', | 108 | 'fifo' => 'FiFo', |
| 110 | 'heartbeat'=> 'Heartbeat', | 109 | 'heartbeat'=> 'Heartbeat', |
| 111 | 'window' => 'Window ', | 110 | 'window' => 'Window', |
| 112 | ); | 111 | ); |
| 113 | $obj->colors = array( | 112 | $obj->colors = array( |
| 114 | 'aborted' => 'f00000', | 113 | 'aborted' => 'f00000', |
