You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is apparent Unicode issue with the service status check for psutil.
Service names that have a non-standard UTF character will fail a lookup in service status:
File "psutil_pswindows.py", line 628, in status
File "psutil_pswindows.py", line 558, in _query_status
File "contextlib.py", line 158, in exit
File "psutil_pswindows.py", line 583, in _wrap_exceptions
psutil.NoSuchProcess: service 'ČSOB Business Connector' does not exist (name='ČSOB Business Connector')
I note that PSUTIL in the service iteration is doing a Unicode conversion.
PyUnicode_FromWideChar(*)
But...when looking up a specific service, it's not doing the transverse, which may be what causes this problem
def description(self):
"""Service long description."""
return cext.winservice_query_descr(self.name())
AKA, converting self.name() via PyUnicode_AsWideChar(*) back to wchar format.
The text was updated successfully, but these errors were encountered:
Summary
Description
From Nagios NCPA.
There is apparent Unicode issue with the service status check for psutil.
Service names that have a non-standard UTF character will fail a lookup in service status:
File "psutil_pswindows.py", line 628, in status
File "psutil_pswindows.py", line 558, in _query_status
File "contextlib.py", line 158, in exit
File "psutil_pswindows.py", line 583, in _wrap_exceptions
psutil.NoSuchProcess: service 'ČSOB Business Connector' does not exist (name='ČSOB Business Connector')
I note that PSUTIL in the service iteration is doing a Unicode conversion.
PyUnicode_FromWideChar(*)
But...when looking up a specific service, it's not doing the transverse, which may be what causes this problem
AKA, converting self.name() via PyUnicode_AsWideChar(*) back to wchar format.
The text was updated successfully, but these errors were encountered: