\DHCPZen
Just meditative dhcp-log viewer
Synopsis
class DHCPZen
{
- // constants
- const URL_ME = '?module=dhcpdzen';
- // members
- protected array $billCfg = ;
- protected string $logPath = '/var/log/messages';
- protected string $flowId = 'dhzjcb';
- protected integer $linesRead = 200;
- protected integer $linesRender = 40;
- protected integer $timeout = 1000;
- protected string $grep = '';
- protected string $tail = '';
- protected string $sudo = '';
- protected string $renderStyle = 'font-family: monospace;';
- // methods
- public void __construct()
- protected void loadConfigs()
- protected bool dataSourceExists()
- public string render()
- public string getFlowId()
- public int getTimeout()
Constants
Name | Value |
---|---|
URL_ME | '?module=dhcpdzen' |
Members
protected
- $billCfg
—
array
Contains billing.ini config as key=>value - $flowId
—
string
Default flow identifier to ignore self requests - $grep
—
string
Contains system grep path - $linesRead
—
int
Count of lines to read from log - $linesRender
—
int
Count of lines to render in viewport - $logPath
—
string
Default datasource file to read - $renderStyle
—
string
Dynamic view-port default style - $sudo
—
string
Contains sudo command path - $tail
—
string
Contains system tail path - $timeout
—
int
Default container refresh timeout in ms.
Methods
protected
- dataSourceExists() — Checks is datasource file exists
- loadConfigs() — Preloads required configs for further usage
public
- __construct() — owls are not what they seem
- getFlowId() — Returns current container flowID
- getTimeout() — Returns current instance refresh timeout
- render() — Renders the few last lines from data source.