{"id":15517047,"url":"https://github.com/deric/crashctl","last_synced_at":"2026-03-02T07:31:59.788Z","repository":{"id":136385688,"uuid":"601194030","full_name":"deric/crashctl","owner":"deric","description":"Simple tool for crashing server diagnosis","archived":false,"fork":false,"pushed_at":"2025-03-13T13:13:12.000Z","size":41,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T03:51:37.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-13T15:04:48.000Z","updated_at":"2025-03-13T13:13:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b96a2ea-90c7-4516-b952-0b1c4203e6cf","html_url":"https://github.com/deric/crashctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deric/crashctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fcrashctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fcrashctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fcrashctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fcrashctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deric","download_url":"https://codeload.github.com/deric/crashctl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fcrashctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29994997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T10:11:02.151Z","updated_at":"2026-03-02T07:31:59.773Z","avatar_url":"https://github.com/deric.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crashctl\nA simple tool for crashing server diagnosis. A replacement for `journalctl --list-boots` with additional and more readable information.\n\n```\n$ crashctl\nDistribution        : Debian GNU/Linux 10 (buster)\nKernel              : 4.19.0-23-amd64 #1 SMP Debian 4.19.269-1 (2022-12-20)\nCurrent boot        : 555ebf2e-5cd0-4f52-b6fe-a4734248cc82\nScaled load         : 0.24 0.25 0.23\nSystem installed    : Wed Feb  1 09:41:10 UTC 2023\nSystem started      : Mon Feb 13 11:33:08 UTC 2023\nUptime              : up 4:52\nRunning processes   : 401\nkdump               : kdump-tools not installed. Try: apt install kdump-tools\nBoot First message        Last message             Uptime       Reboot/Crash\n-------------------------------------------------------------------------------------\n-1   2023-02-07 06:29:00 UTC 2023-02-13 11:31:08 UTC  6d 05:02:08  reboot (SIGTERM)\n0    2023-02-13 11:33:16 UTC 2023-02-13 16:25:43 UTC  0d 04:52:27  running\n\n```\n\n## Install\n\nThe script is written Bash, it might work on any distribution using Systemd.\n\n```\nwget https://raw.githubusercontent.com/deric/crashctl/main/crashctl.sh -O /usr/local/bin/crashctl\n```\n\nAsumes existence of basic Unix utils as `cat`, `awk`, `stat`\n\nFollowing utils might require `root` priviledges:\n\n  - `journalctl`\n  - `tune2fs`\n\n## Usage\n\nSee `crashctl -h` for usage.\n\nWith `kdump-tools` installed each session might be matched to a crash log:\n\n```\n-2   2023-09-08 11:35:19 UTC   2023-09-08 11:35:32 UTC  0d 00:00:13  kernel panic. See /var/crash/202309081135\n-1   2023-09-08 11:38:37 UTC   2023-09-08 12:45:32 UTC  0d 01:06:55  CRASH?\n0    2023-09-08 13:39:29 UTC   2023-09-08 21:31:53 UTC  0d 07:52:24  running\n\n```\n\n\n## Advanced usage\n\nDetecting crash is not always reliable sometimes kernel might crash without logging a message or the power could be cut, etc. Reboot or shutdown sequence can be found in logs.\n\n```\n$ crashctl --boots --utc\nBoot First message             Last message             Uptime       Reboot/Crash\n-------------------------------------------------------------------------------------\n-11  2022-12-05 20:43:53 UTC   2022-12-05 20:52:00 UTC  0d 00:08:07  reboot (SIGTERM)\n-10  2022-12-06 07:56:01 UTC   2022-12-06 15:14:36 UTC  0d 07:18:35  CRASH?\n-9   2022-12-07 12:28:07 UTC   2022-12-10 16:33:43 UTC  3d 04:05:36  reboot (SIGTERM)\n-8   2022-12-12 08:56:05 UTC   2022-12-18 08:18:40 UTC  5d 23:22:35  CRASH?\n-7   2022-12-18 08:32:27 UTC   2022-12-25 10:54:03 UTC  7d 02:21:36  reboot (SIGTERM)\n-6   2022-12-28 10:51:54 UTC   2022-12-29 12:12:32 UTC  1d 01:20:38  Power key pressed, but ignored\n-5   2023-01-02 08:45:54 UTC   2023-01-06 08:05:01 UTC  3d 23:19:07  CRASH?\n-4   2023-01-06 10:07:00 UTC   2023-01-12 10:01:25 UTC  5d 23:54:25  Power key pressed, but ignored\n-3   2023-01-12 10:04:36 UTC   2023-01-28 14:07:19 UTC  16d 04:02:43 reboot (SIGTERM)\n-2   2023-01-30 08:43:42 UTC   2023-01-31 07:27:26 UTC  0d 22:43:44  reboot (SIGTERM)\n-1   2023-02-02 12:41:51 UTC   2023-02-04 13:16:19 UTC  2d 00:34:28  reboot (SIGTERM)\n0    2023-02-06 03:12:01 UTC   2023-02-13 18:17:52 UTC  7d 15:05:51  running\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic%2Fcrashctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderic%2Fcrashctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic%2Fcrashctl/lists"}