diff --git a/includes/polling/os.inc.php b/includes/polling/os.inc.php index 356fdd9529..889f6ef5d1 100644 --- a/includes/polling/os.inc.php +++ b/includes/polling/os.inc.php @@ -1,44 +1,44 @@ ".$version, $device, 'system'); - } +if ($version && $device['version'] != $version) +{ + $update_array['version'] = $version; + log_event("OS Version -> ".$version, $device, 'system'); +} - if ($features != $device['features']) - { - $update_array['features'] = $features; - log_event("OS Features -> ".$features, $device, 'system'); - } +if ($features != $device['features']) +{ + $update_array['features'] = $features; + log_event("OS Features -> ".$features, $device, 'system'); +} - if ($hardware && $hardware != $device['hardware']) - { - $update_array['hardware'] = $hardware; - log_event("Hardware -> ".$hardware, $device, 'system'); - } +if ($hardware && $hardware != $device['hardware']) +{ + $update_array['hardware'] = $hardware; + log_event("Hardware -> ".$hardware, $device, 'system'); +} - if ($serial && $serial != $device['serial']) - { - $update_array['serial'] = $serial; - log_event("serial -> ".$serial, $device, 'system'); - } +if ($serial && $serial != $device['serial']) +{ + $update_array['serial'] = $serial; + log_event("Serial -> ".$serial, $device, 'system'); +} - echo("Hardware: ".$hardware." Version: ".$version." Features: ".$features."\n"); +echo("\nHardware: ".$hardware." Version: ".$version." Features: ".$features." Serial: ".$serial."\n"); ?> diff --git a/includes/polling/os/procurve.inc.php b/includes/polling/os/procurve.inc.php index 5b5b4d5f8a..8434117853 100755 --- a/includes/polling/os/procurve.inc.php +++ b/includes/polling/os/procurve.inc.php @@ -1,7 +1,17 @@