A Java API for accessing Nagios