HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/mssql.cpython-36.pyc
3

3��d��@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�RedHatPlugin�	PluginOptc@s4eZdZdZdZdZd
Zedddd�gZd	d
�Z	dS)�MsSQLzMicrosoft SQL Server on LinuxZmssql�services�mssql-server�
mssql_confz/var/opt/mssql/mssql.confzSQL server configuration file)�defaultZdescc
Cs�|jd�}d}d}d}d}y�x�t|�j�j�D]~}|jd�rB|}q.|jd�}|dj�dkr�|d	krr|d
j�}q�|dkr�|d
j�}q.|dj�dkr.|d
kr.|d
j�}q.WWn2tk
r�}z|jd||f�dSd}~XnXd|}	|dk	�r,|j	|��r"|j
d|�|j
d|�n
|j|	�|j||d|g�|jd��sf|j|d�|j|�n|j|d�|j|�|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_logszmssql-server)Zunits)
Z
get_option�open�read�
splitlines�
startswith�split�strip�IOErrorZ
_log_errorZpath_isfileZadd_cmd_outputZ
add_copy_specZadd_journal)
�selfrZsectionr
Zsqlagent_errorlogfiler�lineZwordsZexZ
keytab_err�r�/usr/lib/python3.6/mssql.py�setupsP


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