Skip to content

Commit 5ab3bc9

Browse files
authored
Merge pull request #21 from wpoely86/fixes
Again fixes for Pixiu logs #AB18742
2 parents 0930fe1 + 2557683 commit 5ab3bc9

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

files/pixiu

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ PIXIU_QUOTA_SIZE_TYPE (?:(?<used_files>%{NUMBER:int})|(?<used_space>%{PIXIU_BYTE
1616

1717
PIXIU_ALARM_COMMON The used (?<quota_used_type>%{WORD}) \(%{PIXIU_QUOTA_SIZE_TYPE}\) of (?:the )?quota \(type (?<quota_type>%{WORD}) quota(?:, %{PIXIU_ALARM_USER_TYPE})?\) of dtree \(name (?<dtree>%{NOTSPACE}), ID (?<dtree_id>%{NUMBER:int})\) at %{UNIXPATH:path} in namespace \(name (?<namespace>%{NOTSPACE}), ID (?<namespace_id>%{NUMBER:int})\)
1818

19-
PIXIU_USER_INODE_ALARM %{PIXIU_ALARM_PREFIX} %{PIXIU_ALARM_COMMON} reaches (?:or approaches )?to the (:?(?<quota_limit_type>%{WORD}) (?:file|space) quantity quota of|(?:file|space) quantity (?<quota_limit_type>%{WORD}) quota of) \((?<quota_files_limit>%{NUMBER:int})\)\..*
19+
PIXIU_USER_INODE_ALARM %{PIXIU_ALARM_PREFIX} %{PIXIU_ALARM_COMMON} reaches (?:or approaches )?(?:to )?the (:?(?<quota_limit_type>%{WORD}) (?:file|space) quantity quota of|(?:file|space) quantity (?<quota_limit_type>%{WORD}) quota of) \((?<quota_files_limit>%{NUMBER:int})\).*
2020

21-
PIXIU_USER_SPACE_ALARM %{PIXIU_ALARM_PREFIX} %{PIXIU_ALARM_COMMON} reaches (?:or approaches )?to the (:?(?<quota_limit_type>%{WORD}) space(?: quantity)? quota of|space(?: quantity)? (?<quota_limit_type>%{WORD}) quota of) \((?<quota_space_limit>%{PIXIU_BYTES})\)\..*
21+
PIXIU_USER_SPACE_ALARM %{PIXIU_ALARM_PREFIX} %{PIXIU_ALARM_COMMON} reaches (?:or approaches )?(?:to )?the (:?(?<quota_limit_type>%{WORD}) space(?: quantity)? quota of|space(?: quantity)? (?<quota_limit_type>%{WORD}) quota of) \((?<quota_space_limit>%{PIXIU_BYTES})\).*
2222

2323
PIXIU_LOGIN_STATUS failed|succeeded
2424
PIXIU_LOGIN_ACTION in|out

tests/data/pixiu

+20
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,24 @@ data = [
246246
"action": "out",
247247
},
248248
},
249+
{
250+
"raw": "<187>Jun 17 14:08:15 C4STO01-Node1 alarm[4162768]: <186>2024-06-17 14:08:13 DST 172.19.104.10 OceanStor-Distributed-Storage 1214022 0xFEA6A000C Major(1): The used files (19340) of the quota (type user quota, user name, owner name vsc10831) of dtree (name 108, ID 8200) at /108 in namespace (name user, ID 70) reaches the soft file quantity quota of (19047) and the grace period ended (7) days ago. The user or user group will fail to write data.",
251+
"expected": {
252+
"program": "alarm",
253+
"alarm_severity": "Major",
254+
"alarm_object": "OceanStor-Distributed-Storage",
255+
"alarm_id": "0xFEA6A000C",
256+
"used_files": 19340,
257+
"username": "vsc10831",
258+
"quota_type": "user",
259+
"quota_used_type": "files",
260+
"dtree": "108",
261+
"dtree_id": 8200,
262+
"namespace": "user",
263+
"namespace_id": 70,
264+
"quota_limit_type": "soft",
265+
"quota_files_limit": 19047,
266+
"path": "/108",
267+
},
268+
},
249269
]

0 commit comments

Comments
 (0)