mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
allow the ability to rewrite locations
git-svn-id: http://www.observium.org/svn/observer/trunk@3180 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -82,6 +82,13 @@
|
||||
}
|
||||
|
||||
$poll_device['sysLocation'] = str_replace("\"","", $poll_device['sysLocation']);
|
||||
|
||||
/// Rewrite sysLocation if there is a mapping array (database too?)
|
||||
if(!empty($poll_device['sysLocation']) && is_array($config['location_map']))
|
||||
{
|
||||
$poll_device['sysLocation'] = rewrite_location($poll_device['sysLocation']);
|
||||
}
|
||||
|
||||
$poll_device['sysContact'] = str_replace("\"","", $poll_device['sysContact']);
|
||||
|
||||
if ($poll_device['sysLocation'] == "not set")
|
||||
|
Reference in New Issue
Block a user