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:
Tom Laermans 2011-03-19 10:24:44 +00:00
parent afb40ceac9
commit 9cef58a8b3

View File

@ -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"); }