HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/grafana.cpython-36.pyc
3

\��h
�@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