HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/mssql.cpython-38.pyc
U

i��d��@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�RedHatPlugin�	PluginOptc@s4eZdZdZdZdZdZedddd�gZd	d
�Z	dS)�MsSQLzMicrosoft SQL Server on LinuxZmssql)�services)�mssql-server�
mssql_confz/var/opt/mssql/mssql.confzSQL server configuration file)�defaultZdescc

Cs�|�d�}d}d}d}d}z�t|�����D]~}|�d�r@|}q,|�d�}|d��dkr�|d	krp|d
��}q�|dkr�|d
��}q,|d��dkr,|d
kr,|d
��}q,Wn:tk
r�}z|�d||f�WY�dSd}~XYnXd|}	|dk	�r0|�	|��r&|�
d|�|�
d|�n
|�|	�|�||d|g�|�d��sj|�|d�|�|�n|�|d�|�|�|jdgd�dS)Nr�z/var/opt/mssql/logz&/var/opt/mssql/log/sqlagentstartup.log�[�=r�errorlogfilez[filelocation]�z
[sqlagent]�kerberoskeytabfilez	[network]zCould not open conf file %s: %sz:keytab file is specfieid in mssql_conf but not found in %szls -l %szklist -e -k %sz/*Zall_logsr)Zunits)
Z
get_option�open�read�
splitlines�
startswith�split�strip�IOErrorZ
_log_errorZpath_isfileZadd_cmd_outputZ
add_copy_specZadd_journal)
�selfrZsectionr
Zsqlagent_errorlogfiler�lineZwords�exZ
keytab_err�r�:/usr/lib/python3/dist-packages/sos/report/plugins/mssql.py�setupsV


��

�
zMsSQL.setupN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrZoption_listrrrrrrs��rN)Zsos.report.pluginsrrrrrrrr�<module>s