Currently Nagios server address entered by the user during
auto config was not being verified. This patch helps to verify
the address entered by the user.
If IP address is given as the nagios server address then it
checks the pattern and verifies that it is mapped to one of the
non loopback device in the host
If user enters fqdn name, then it tries to resolve it,
also it verifies that resolved IP address maps to one of
the non loopback device in the host.
Signed-off-by: Ramesh Nachimuthu <firstname.lastname@example.org>
Reviewed-by: darshan n <email@example.com>
Reviewed-by: Sahina Bose <firstname.lastname@example.org>