(self, instance)
Parse until the end of each tailer associated with this instance.
        We match instance and tailers based on the path to the Nagios configuration file

        Special case: Compatibility with the old conf when no conf file is specified
        but the path to the event_log is given
Parse until the end of each tailer associated with this instance.
        We match instance and tailers based on the path to the Nagios configuration file
Parse until the end of each tailer associated with this instance . We match instance and tailers based on the path to the Nagios configuration file
def check(self, instance):
        """
        Parse until the end of each tailer associated with this instance.
        We match instance and tailers based on the path to the Nagios configuration file

        Special case: Compatibility with the old conf when no conf file is specified
        but the path to the event_log is given
        """
        instance_key = instance.get('nagios_conf', instance.get('nagios_perf_cfg', instance.get('nagios_log')))

        # Bad configuration: This instance does not contain any necessary configuration
        if not instance_key or instance_key not in self.nagios_tails:
            raise Exception('No Nagios configuration file specified')
        for tailer in self.nagios_tails[instance_key]:
            try:
                tailer.check()
            except (RuntimeError, StopIteration) as e:
                self.log.exception(e)
                self.warning(
                    "Can't tail %s file, will retry from the end of file on the next check run.", tailer.log_path
                )
                tailer.reset()
def check ( self , instance ) : instance_key = instance . get ( 'nagios_conf' , instance . get ( 'nagios_perf_cfg' , instance . get ( 'nagios_log' ) ) ) # Bad configuration: This instance does not contain any necessary configuration if not instance_key or instance_key not in self . nagios_tails : raise Exception ( 'No Nagios configuration file specified' ) for tailer in self . nagios_tails [ instance_key ] : try : tailer . check ( ) except ( RuntimeError , StopIteration ) as e : self . log . exception ( e ) self . warning ( "Can't tail %s file, will retry from the end of file on the next check run." , tailer . log_path ) tailer . reset ( )