Separate Class for generating checkresult file for Nagios Passive checks

GenerateNagiosCheckResult class handles creation of checkresult file and writing to it after processing the metrics from gmetad and the threshold data. The checkresults can be readily consumed by Nagios for passive checks.