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:
Tom Laermans
2010-06-10 19:46:55 +00:00
parent 7233830e17
commit a82d81eb37
2 changed files with 7 additions and 0 deletions

View File

@@ -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 = ", ";