def nagios_status(self):
        fd = open(self._status_file, 'r')
        try:
            stat = os.fstat(fd.fileno())
            if self._status_mtime < stat.st_mtime:
                self._status_cache = nagios_objects.ObjectParser(fd)
                self._status_mtime = stat.st_mtime
            return self._status_cache
        finally:
            fd.close()
dataset/ETHPy150Open marineam/nagcat/python/nagcat/nagios.py/NagcatNagios.nagios_status/original