NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/grafana.cpython-36.opt-1.pyc
3

~�g
�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZdZdZdd�Zdd	�Zd
S)
�Grafanaz0Fetch Grafana configuration, logs and CLI output�grafana�services�	openstack�openstack_controllercCs�|jr"d}d}d}|jddd�nd}d}d	}|j|�d
�|�d�|�d�d
g|jd�|jd�rfdnd}|j|||dg�dS)Nzgrafana.grafana-cliz"/var/snap/grafana/common/data/log/z*/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.6/grafana.py�setups&
z
Grafana.setupcCs>ddddg}|jrdnd}ddj|��d	�}|j||d
�dS)NZadmin_passwordZ
secret_keyZpasswordZ
client_secretz*/var/snap/grafana/current/conf/grafana.iniz/etc/grafana/grafana.iniz(^\s*(�|z
)\s*=\s*)(.*)z\1*********)r	�joinZdo_path_regex_sub)r
Zprotect_keysZinifileZregexprrr�postproc1s
zGrafana.postprocN)rrr)r)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr
rrrrrrsrN)Zsos.report.pluginsrrrrrrr�<module>s

NineSec Team - 2022