(self, queue_manager, tags)
Get stats from the queue manager
Get stats from the queue manager
Get stats from the queue manager
def queue_manager_stats(self, queue_manager, tags):
        """
        Get stats from the queue manager
        """
        for mname, pymqi_value in iteritems(metrics.queue_manager_metrics()):
            try:
                m = queue_manager.inquire(pymqi_value)
                mname = '{}.queue_manager.{}'.format(metrics.METRIC_PREFIX, mname)
                self.send_metric(GAUGE, mname, m, tags=tags)
                self.service_check(self.QUEUE_MANAGER_SERVICE_CHECK, AgentCheck.OK, tags)
            except pymqi.Error as e:
                self.warning("Error getting queue manager stats: %s", e)
                self.service_check(self.QUEUE_MANAGER_SERVICE_CHECK, AgentCheck.CRITICAL, tags)
def queue_manager_stats ( self , queue_manager , tags ) : for mname , pymqi_value in iteritems ( metrics . queue_manager_metrics ( ) ) : try : m = queue_manager . inquire ( pymqi_value ) mname = '{}.queue_manager.{}' . format ( metrics . METRIC_PREFIX , mname ) self . send_metric ( GAUGE , mname , m , tags = tags ) self . service_check ( self . QUEUE_MANAGER_SERVICE_CHECK , AgentCheck . OK , tags ) except pymqi . Error as e : self . warning ( "Error getting queue manager stats: %s" , e ) self . service_check ( self . QUEUE_MANAGER_SERVICE_CHECK , AgentCheck . CRITICAL , tags )