adding ishost_up() to check if host is alive or not