canonical / charm-nrpe

A subordinate charm used to configure nrpe (Nagios Remote Plugin Executor)
Apache License 2.0
1 stars 6 forks source link

check_xfs_errors is missing some errors #58

Closed sudeephb closed 9 months ago

sudeephb commented 9 months ago

Given the following errors in dmesg:

[Thu Oct 8 23:11:44 2020] sd 0:2:17:0: [sdq] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [Thu Oct 8 23:11:44 2020] sd 0:2:17:0: [sdq] tag#2 Sense Key : Medium Error [current] [Thu Oct 8 23:11:44 2020] sd 0:2:17:0: [sdq] tag#2 Add. Sense: No additional sense information [Thu Oct 8 23:11:44 2020] sd 0:2:17:0: [sdq] tag#2 CDB: Read(10) 28 00 53 1e 5a f0 00 00 10 00 [Thu Oct 8 23:11:44 2020] blk_update_request: I/O error, dev sdq, sector 1394498288 [Thu Oct 8 23:11:44 2020] XFS (sdq): metadata I/O error: block 0x531e5af0 ("xfs_trans_read_buf_map") error 5 numblks 16 [Thu Oct 8 23:11:44 2020] XFS (sdq): xfs_imap_to_bp: xfs_trans_read_buf() returned error -5.

...check_xfs_errors.py will return OK.

We should probably use a more generic regex and catch anything matching 'XFS.*error'.


Imported from Launchpad using lp2gh.

sudeephb commented 9 months ago

(by eric-chen) Close this issue because of no update of this issue over 1 year. Please consider using the new Canonical Observability Stack instead. (https://charmhub.io/topics/canonical-observability-stack)