mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
correctly let the user know if the host could not be added
git-svn-id: http://www.observium.org/svn/observer/trunk@1934 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
parent
afb40ceac9
commit
9cef58a8b3
@ -61,6 +61,8 @@ if (isset($argv[1]) && $argv[1])
|
||||
} else { echo("Given hostname does not match SNMP-read hostname ($snmphost)!\n"); }
|
||||
}
|
||||
}
|
||||
|
||||
if (!$added) { echo("Could not reach $host with given SNMP community\n"); }
|
||||
} else { echo("Could not ping $host\n"); }
|
||||
} else { echo("Could not resolve $host\n"); }
|
||||
} else { echo("Already got host $host\n"); }
|
||||
|
Loading…
Reference in New Issue
Block a user