mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add device serial number into database, for devices not having entity mib
git-svn-id: http://www.observium.org/svn/observer/trunk@1133 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -175,6 +175,12 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
unset( $update ) ;
|
||||
unset( $seperator) ;
|
||||
|
||||
if ( $serial && $serial != $device['serial'] ) {
|
||||
$poll_update .= $poll_separator . "`serial` = '".mres($serial)."'";
|
||||
$poll_separator = ", ";
|
||||
eventlog("Serial -> $serial", $device['device_id']);
|
||||
}
|
||||
|
||||
if ( $sysContact && $sysContact != $device['sysContact'] ) {
|
||||
$poll_update .= $poll_separator . "`sysContact` = '".mres($sysContact)."'";
|
||||
$poll_separator = ", ";
|
||||
|
||||
Reference in New Issue
Block a user