Added support + docs for FreeBSD #3406

Merged
merged 1 commit into from Apr 21, 2016

Projects

None yet

3 participants

@laf
Member
laf commented Apr 21, 2016

No description provided.

@laf laf Added support + docs for FreeBSD
f90d69c
@murrant murrant commented on the diff Apr 21, 2016
includes/polling/unix-agent.inc.php
@@ -97,7 +97,7 @@
dbDelete('processes', 'device_id = ?', array($device['device_id']));
$data=array();
foreach (explode("\n", $agent_data['ps']) as $process) {
- $process = preg_replace('/\((.*),([0-9]*),([0-9]*),([0-9\:]*),([0-9]*)\)\ (.*)/', '\\1|\\2|\\3|\\4|\\5|\\6', $process);
+ $process = preg_replace('/\((.*),([0-9]*),([0-9]*),([0-9\:\.]*),([0-9]*)\)\ (.*)/', '\\1|\\2|\\3|\\4|\\5|\\6', $process);
@murrant
murrant Apr 21, 2016 edited Contributor

FreeBSD agent has slightly different format?

@murrant murrant merged commit b84c265 into librenms:master Apr 21, 2016

3 checks passed

Auto-Deploy Build finished. No test results found.
Details
Scrutinizer No new issues
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@laf laf deleted the laf:unix-agent-freebsd branch Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment