From 2cb24743fb01e610e754d2b2dae69b0b5d530e81 Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 8 Jan 2014 12:17:17 +0000 Subject: [PATCH] Added arp discovered device name and ip to eventlog --- includes/discovery/discovery-arp.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/discovery-arp.inc.php b/includes/discovery/discovery-arp.inc.php index 7a312dd52..f621a7a8e 100644 --- a/includes/discovery/discovery-arp.inc.php +++ b/includes/discovery/discovery-arp.inc.php @@ -87,7 +87,7 @@ echo("\n"); foreach ($names as $name) { $remote_device_id = discover_new_device($name); if ($remote_device_id) { - log_event("Device autodiscovered through ARP on $hostname", $remote_device_id, 'interface', $if); + log_event("Device $name (" . $ips[$name] .") autodiscovered through ARP on $hostname", $remote_device_id, 'interface', $if); } else { log_event("ARP discovery of $name (" . $ips[$name] . ") failed - check ping and SNMP access", $deviceid, 'interface', $if);