Added an option to configure the hostname manually. And there was a problem when APC wasn't present.
This commit is contained in:
@@ -30,6 +30,9 @@ function poller_run(&$argv, &$argc){
|
||||
load_config('config');
|
||||
load_config('system');
|
||||
|
||||
if ($hostname = get_config('system', 'hostname'))
|
||||
$a->set_hostname($hostname);
|
||||
|
||||
$maxsysload = intval(get_config('system','maxloadavg'));
|
||||
if($maxsysload < 1)
|
||||
$maxsysload = 50;
|
||||
|
||||
Reference in New Issue
Block a user