StorageGRIDアラート外部syslogサーバの転送エラー
環境
問題
StorageGRIDがExternal syslog server forwarding error
以下のようにアラート""を受信しています
- トリガーされたアラート:
MON.I.NAP.00002: - Node: <Nodename>
Trap ID: 7
Alert Start Time:
AlertInstance/Node: <Nodename>
Alert ID: 35eeb7ccc24d2de9
Alert name: 'External syslog server forwarding error'
DeviceAlertSev: major -
AlertKey: NCOSnmpProbe:CRITICAL
Minor alert [Alert1103938]
Created on Node: [<Nodename>]of type [Storage] from data source [netcool].
- 観察されたエラー
miscd.log
:
[2023-08-19T14:10:08.053] syslMonCertExp-remoteSyslogServerA - ERROR -- Failed to load certificate due to error: cannot use a string pattern on a bytes-like object
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/miscd/helpers/certificates.py", line 84, in from_file
certs = _load_certificates(open(filename, "r").read())
File "/usr/lib/python3/dist-packages/miscd/helpers/certificates.py", line 111, in _load_certificates
return [x509.load_pem_x509_certificate(cert, default_backend()) for cert in PEM_CERTIFICATE_PATTERN.findall(data)]
TypeError: cannot use a string pattern on a bytes-like object
[2023-08-19T14:10:08.053] syslMonCertExp-remoteSyslogServerA - ERROR -- Couldn't parse cert file /var/local/syslog/remoteSyslogServerA/certs/cacert.pem: cannot use a string pattern on a bytes-like object
[2023-08-19T14:10:08.054] syslMonCertExp-remoteSyslogServerA - ERROR -- Failed to load certificate due to error: cannot use a string pattern on a bytes-like object