refactor nagios html page parser