Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
� i��d� � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�IndependentPluginc �( � e Zd ZdZdZdZdZd� Zd� Zy)�Grafanaz0Fetch Grafana configuration, logs and CLI output�grafana)�services� openstack�openstack_controller)r c � � | j d� r| j d� n| j d� | j g d�� | j ddg� y )N�all_logsz/var/log/grafana/*.log*z/var/log/grafana/*.log)zgrafana-cli plugins lszgrafana-cli plugins list-remotezgrafana-cli -vzgrafana-server -vz /etc/grafana/z/etc/sysconfig/grafana-server)� get_option� add_copy_spec�add_cmd_output)�selfs �</usr/lib/python3/dist-packages/sos/report/plugins/grafana.py�setupz Grafana.setup sZ � ��?�?�:�&����8�9����7�8���� � � ����+� � � c �Z � ddg}ddj |� z }| j d|d� y )N�admin_password� secret_keyz(^\s*(%s)\s*=\s*)(.*)�|z/etc/grafana/grafana.iniz\1*********)�join�do_path_regex_sub)r �protect_keys�regexps r �postproczGrafana.postproc( s9 � ��l� �� *�C�H�H�\�,B�B�����9�%�~� 7r N) �__name__� __module__�__qualname__� short_desc�plugin_name�profiles�packagesr r � r r r r s � �C�J��K�@�H��H��$7r r N)�sos.report.pluginsr r r r$ r r �<module>r&