H:jQ* 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_disabledis_client_enabled)ProcLveLIMIT_LVP_ID) MySQLGovernorMySQLGovExceptionMySQLGovernorAbsent)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. zSince 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 ZddZd 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 > || _ i | _ d| _ d| _ d S )Nr iQ )logcachecache_creation_timecache_expiration_interval)selfloggers /builddir/build/BUILDROOT/lve-stats-5.0.4-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/plugins/generic/cm_collector.py__init__z!CMCollector.DomainsCache.__init__: s&