403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/grafana.cpython-39.pyc
a

ܓ�i
�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�Grafanaz0Fetch Grafana configuration, logs and CLI output�grafana)ZservicesZ	openstackZopenstack_controller)rcCs�|jr"d}d}d}|jddd�nd}d}d	}|j|�d
�|�d�|�d�d
g|jd�|�d�rfdnd}|�|||dg�dS)Nzgrafana.grafana-cliz"/var/snap/grafana/common/data/log/�*/var/snap/grafana/current/conf/grafana.inizsnap info grafanaT)Zsnap_cmdzgrafana-cliz/var/log/grafana/z
/etc/grafana/z plugins lsz plugins list-remotez -vzgrafana-server -vZall_logsz*.log*z*.logz/etc/sysconfig/grafana-server)�is_snapZadd_cmd_outputZ
get_optionZ
add_copy_spec)�selfZgrafana_cliZlog_pathZconfig_pathZlog_file_pattern�r	�>/usr/lib/python3.9/site-packages/sos/report/plugins/grafana.py�setups,���z
Grafana.setupcCs:gd�}|jrdnd}dd�|��d�}|�||d�dS)N)Zadmin_passwordZ
secret_key�passwordZ
client_secretrz/etc/grafana/grafana.iniz(^\s*(�|z
)\s*=\s*)(.*)z\1*********)r�joinZdo_path_regex_sub)rZprotect_keysZinifileZregexpr	r	r
�postproc1s��zGrafana.postprocN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrr	r	r	r
rsrN)Zsos.report.pluginsrrrr	r	r	r
�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit