feature: validate.php: check poller and discovery status (#4663)

This commit is contained in:
Tony Murray
2016-10-03 11:48:19 -05:00
committed by Neil Lathwood
parent d712f4ca69
commit c5177c26af
2 changed files with 97 additions and 60 deletions

View File

@@ -1118,7 +1118,7 @@ function version_info($remote = true)
$output['php_ver'] = phpversion();
$output['mysql_ver'] = dbFetchCell('SELECT version()');
$output['rrdtool_ver'] = implode(' ', array_slice(explode(' ', shell_exec($config['rrdtool'].' --version |head -n1')), 1, 1));
$output['netsnmp_ver'] = shell_exec($config['snmpget'].' --version 2>&1');
$output['netsnmp_ver'] = str_replace('version: ', '', rtrim(shell_exec($config['snmpget'].' --version 2>&1')));
return $output;
}//end version_info()