admin / Synapse-Cortex
publicSelf Hosted ITSM Tool with RBAC/Tenanting and MFA
Synapse-Cortex / Synapse-Cortexv2 / playbooks / check-oom-killer-history-linux.json
1596 B · main
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | { "name": "Check OOM-Killer History (Linux)", "enabled": true, "allowed_target_os": [ "linux" ], "required_approval_level": "human_in_the_loop", "forbidden_commands": [], "graph_json": { "nodes": [ { "id": "start", "type": "start", "data": {}, "position": { "x": 250, "y": 0 } }, { "id": "cmd_dmesg", "type": "command", "data": { "label": "Kernel log for OOM kills", "command": "dmesg -T | grep -iE \"killed process|out of memory\" | tail -20" }, "position": { "x": 250, "y": 130 } }, { "id": "cmd_journal", "type": "command", "data": { "label": "Journal for OOM events", "command": "journalctl -k --no-pager | grep -i oom | tail -20" }, "position": { "x": 250, "y": 260 } }, { "id": "cmd_free", "type": "command", "data": { "label": "Current memory & swap", "command": "free -h" }, "position": { "x": 250, "y": 390 } } ], "edges": [ { "id": "e_start_cmd_dmesg", "source": "start", "target": "cmd_dmesg" }, { "id": "e_cmd_dmesg_cmd_journal", "source": "cmd_dmesg", "target": "cmd_journal" }, { "id": "e_cmd_journal_cmd_free", "source": "cmd_journal", "target": "cmd_free" } ] } } |