====== PPP (Point to Point Protocol) plugin ====== This plugin provides statistic informations from PPP devices. ---- ===== Functions ===== |ppp(key, delay)|gather PPP statistics| 'key' is either 'Rx:' or 'Tx:', where is the PPP device number. The 'delay' value specifies a period of time (in milliseconds) for a delta computation. If you use a delta of 0 (zero), you get the absolute values. For delay values > 0 you get the delta value in 1/sec unit. Using a delta value of 500 msec seems to be a good choice. Note that the PPP plugin should be considered obsolte, for two reasons: First, the used system call seems to be quite slow, so this plugin burns a lot of cpu cycles. Second, the [[:plugin_netdev|netdev-plugin]] provides the same (and mor) information. In short: **Use the netdev-plugin!** ---- ===== Example ===== Widget PPP { class 'Text' expression ppp('Rx:0', 500) + ppp('Tx:0', 500) prefix 'PPP' width 9 precision 0 align 'R' update 200 } ----