From ebe42a023d1115cd488f0110a4547544c0f71ca5 Mon Sep 17 00:00:00 2001 From: Carlin Mische Date: Sun, 10 Jul 2016 20:34:10 -0500 Subject: [PATCH] Changed snmp access failed logging to reflect that host could be unreachable too --- includes/discovery/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/discovery/functions.inc.php b/includes/discovery/functions.inc.php index 71c6a6ee82..bba5b48637 100644 --- a/includes/discovery/functions.inc.php +++ b/includes/discovery/functions.inc.php @@ -68,13 +68,13 @@ function discover_new_device($hostname, $device = '', $method = '', $interface = log_event('Device ' . $remote_device['hostname'] . " ($ip) $extra_log autodiscovered through $method on " . $device['hostname'], $remote_device_id, 'discovery'); } else { - log_event("$method discovery of " . $remote_device['hostname'] . " ($ip) failed - Check SNMP access", $device['device_id'], 'discovery'); + log_event("$method discovery of " . $remote_device['hostname'] . " ($ip) failed - Check ping and SNMP access", $device['device_id'], 'discovery'); } return $remote_device_id; } else { - log_event("$method discovery of " . $dst_host . " ($ip) failed - Check SNMP access", $device['device_id'], 'discovery'); + log_event("$method discovery of " . $dst_host . " ($ip) failed - Check ping and SNMP access", $device['device_id'], 'discovery'); } } else { d_echo("$ip not in a matched network - skipping\n");