Minor style fix
Restart nagios demon after cfg was added
Moved code
Check jmx feature for nagios