Modified as per new changes
Merge branch 'master' of https://github.com/manishdevraj/jboss2nagios.git
Modified version with latest changes