(self, app_stats)
return stats
Extract metrics from 'programstatus'
Extract metrics from 'programstatus'
Extract metrics from programstatus
def get_icinga_stats(self, app_stats):
        """ Extract metrics from 'programstatus' """
        stats = {}
        stats = dict(stats.items() + self._get_active_stats(app_stats).items())
        stats = dict(stats.items() + self._get_cached_stats(app_stats).items())
        stats = dict(
            stats.items() + self._get_command_execution(app_stats).items())
        stats = dict(
            stats.items() + self._get_externalcmd_stats(app_stats).items())
        stats["uptime"] = self._get_uptime(app_stats)
        return stats
def get_icinga_stats ( self , app_stats ) : stats = { } stats = dict ( stats . items ( ) + self . _get_active_stats ( app_stats ) . items ( ) ) stats = dict ( stats . items ( ) + self . _get_cached_stats ( app_stats ) . items ( ) ) stats = dict ( stats . items ( ) + self . _get_command_execution ( app_stats ) . items ( ) ) stats = dict ( stats . items ( ) + self . _get_externalcmd_stats ( app_stats ) . items ( ) ) stats [ "uptime" ] = self . _get_uptime ( app_stats ) return stats