관리-도구
편집 파일: cm_collector.cpython-311.pyc
� �CgQ* � �� � d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlm Z m Z d dlmZm Z d dlmZmZmZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZ d ZdZedz Z dZ!dZ" G d� de� � Z#dS )� N)�clpwd)�jwt_token_check)�is_cmt_disabled�is_client_enabled)�ProcLve�LIMIT_LVP_ID)� MySQLGovernor�MySQLGovException�MySQLGovernorAbsent)�LVEStat)�LveStatsPlugin)�mempages_to_bytes)�get_domains)�LVEUsage)�write_file_via_tempfilezbThere was detected MySQL Governor and information about limits will be collected starting from nowz/Error while getting Mysql Governor limits: %s. z�Since the governor doesn't seem to be well configured, the limits statistics won't be collected. This warning won't be repeated to prevent annoying spam in logs.zxCentralized Monitoring isn't enabled. CMCollector plugin won't collect data. It's expected behaviour for non CL+ clientsz}Centralized Monitoring has been detected! From now, CMCollector will gather limits statistics for it gently and affectionate.c �t � e Zd ZdZ G d� d� � Zd� Zd� Zdd�Zd� Ze dd e defd�� � Zd � Z d� ZdS )�CMCollectorzA Collector plugin for Cloudlinux+ Centralized Monitoring c �0 � e Zd ZdZd� Zd� Zd� Zd� Zd� ZdS )�CMCollector.DomainsCachez= Sub-class for keeping username:domain pairs c �>