관리-도구
편집 파일: send_server_config.cpython-311.opt-1.pyc
� IMgc( � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl mZ d dlm Z mZ d dlmZ d dlmZmZmZmZmZmZmZmZ d dlmZ d d lmZ d d lmZm Z m!Z! d dl"m#Z# d dl$m%Z%m&Z& d d l'm(Z( d dl)m*Z* d dl+m,Z, d dl-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 d dl4m5Z5 dZ6 e e7� � Z8h d�Z9d� Z: ed�� � d� � � Z;e1d� � � Z<e1d� � � Z=e1d� � � Z>e1d� � � Z?e1d� � � Z@e1d� � � ZAe1d� � � ZBd� ZCe1d � � � ZDd!� ZEd"e fd#�ZF G d$� d%ee � � ZGd"e eHeIf fd&�ZJd'� ZKd"eLfd(�ZMd"eHfd)�ZNd"eHfd*�ZOd"eHfd+�ZPdS ),� N)� lru_cache)� getLogger)�Path)�Dict�List)�sentry)� ConfigFile�Core�CustomBillingConfig�Malware�MalwareSignatures�SystemConfig�int_from_envvar�FREEMIUM_FEATURE_FLAG)� LicenseCLN)�MessageType)�MessageSink� MessageSource�expect)�get_myimunify_users)�$is_native_feature_management_enabled�&is_native_feature_management_supported)�IndependentAgentIDAPI)�HostingPanel)�cPanel)�log_error_and_ignore�recurring_check�Scope�stub_unexpected_error�safe_run�system_packages_info)� WhmcsConf)z/var/imunify360/imunify360.dbz!/var/imunify360/imunify360.db-shmz!/var/imunify360/imunify360.db-wal> �ai-bolit� imunify-ui�imunify-core�imunify360-pam�imunify360-venv�imunify-notifier�imunify-antivirus�imunify-realtime-av�imunify360-firewall�imunify360-php-i360�app-version-detector�imunify360-ossec-server�imunify-auditd-log-reader�imunify360-webshield-bundle� imunify360-unified-access-loggerc �| � t d� � 5 } | � � � cd d d � � S # 1 swxY w Y d S )Nz /proc/cpuinfo)�open�read)�fs �_/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/plugins/send_server_config.py� read_cpu_infor7 O s| � � �o� � � �!��v�v�x�x�� � � � � � � � � � � ���� � � � � � s �1�5�5� )�maxsizec � � t � � } t j d| t j �� � }g }i }|D ]-\ }}|dk r|rd|v r|� |� � i }|||<