updated check_ambari.pl
updated lib
re-write using HariSekhon::Ambari