mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
whoopsiedoo, dmi include file to parse the output of the dmi plugin
git-svn-id: http://www.observium.org/svn/observer/trunk@3235 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
14
includes/polling/unix-agent/dmi.inc.php
Normal file
14
includes/polling/unix-agent/dmi.inc.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$dmi = $agent_data['dmi'];
|
||||
unset($agent_data['dmi']);
|
||||
|
||||
foreach (explode("\n",$dmi) as $line)
|
||||
{
|
||||
list($field,$contents) = explode("=",$line,2);
|
||||
$agent_data['dmi'][$field] = trim($contents);
|
||||
}
|
||||
|
||||
unset($dmi);
|
||||
|
||||
?>
|
Reference in New Issue
Block a user