{"id":37607525,"url":"https://github.com/flyingcircusio/check_journal","last_synced_at":"2026-01-16T10:13:41.881Z","repository":{"id":45132959,"uuid":"136293096","full_name":"flyingcircusio/check_journal","owner":"flyingcircusio","description":"Nagios/Icinga compatible plugin to search `journalctl` output for matching lines","archived":false,"fork":false,"pushed_at":"2023-09-12T13:48:59.000Z","size":130,"stargazers_count":3,"open_issues_count":2,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-09-12T22:45:05.854Z","etag":null,"topics":["journalctl","monitoring"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flyingcircusio.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-06T07:52:49.000Z","updated_at":"2023-07-25T14:17:39.000Z","dependencies_parsed_at":"2022-08-25T23:12:53.773Z","dependency_job_id":null,"html_url":"https://github.com/flyingcircusio/check_journal","commit_stats":null,"previous_names":[],"tags_count":8,"template":null,"template_full_name":null,"purl":"pkg:github/flyingcircusio/check_journal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcircusio%2Fcheck_journal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcircusio%2Fcheck_journal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcircusio%2Fcheck_journal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcircusio%2Fcheck_journal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyingcircusio","download_url":"https://codeload.github.com/flyingcircusio/check_journal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingcircusio%2Fcheck_journal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["journalctl","monitoring"],"created_at":"2026-01-16T10:13:41.811Z","updated_at":"2026-01-16T10:13:41.866Z","avatar_url":"https://github.com/flyingcircusio.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check_journal\n\n[![check-journal](https://snapcraft.io//check-journal/badge.svg)](https://snapcraft.io/check-journal)\n\n\nNagios/Icinga compatible plugin to search `journalctl` output for matching lines.\n\n\n## Usage\n\ncheck_journal takes a YAML document with regular expressions for matches and\nexceptions. Example:\n\n```\ncriticalpatterns:\n  - '[Aa]bort|ABORT'\n  - '[Ee]rror|ERROR'\n\ncriticalexceptions:\n  - 'timestamp:\".*\",level:\"(error|warn)\"'\n  - '0 errors'\n\nwarningpatterns:\n  - '[Ff]ail|FAIL'\n  - '[Ww]arn|WARN'\n\nwarningexceptions:\n  - '0 failures'\n  - 'graylogctl'\n  - 'node\\[.*\\]: Exception'\n```\n\ncheck_journal reports a CRITICAL result if any one of `criticalpatterns` and\nnone of `criticalexceptions` matches. If there is not critical match, the same\nprocedure is repeated for WARNING.\n\nIt is stongly recommended to pass a state file with the `-f` option. The state\nfile helps check_journal to resume exactly where it stopped on the last run so\nthat no log line is reported twice.\n\n\n## Installation\n\nStandard Rust build procedures apply. Basically, invoke\n```\ncargo build --release\n```\nto obtain a binary.\n\nA Makefile is included which also builds the manpage. To compile and install\nunder `/usr/local`, invoke\n```\nmake install PREFIX=/usr/local\n```\n\nBuild requirements:\n\n* *Rust* \u003e= 1.40\n* *ronn* for compiling the man page\n\n## Packaging\n\nThe plugin can be released as a snap package by running\n```bash\nsnapcraft clean\nsnapcraft\n```\n\n### Installing the snap\n\nOnce released, this will download the snap from the snap store and install\non the machine.\n```bash\nsnap install check-journal\n```\n\n### Running the snap\n\n```bash\ncheck-journal\n# -- or -- #\nsnap run check-journal\n```\n\n\n## Journal permissions\n\nThe plugin, which is usually running under the *nagios* user, must be able to\naccess the journal. The recommended way to achieve this is:\n\n1. Grant members of the *adm* group access to the journal:\n      `setfacl -Rnm g:adm:rx,d:g:adm:rx /var/log/journal` -- see\n      systemd-journald.service(8) for details. Some distributions already have\n      that ACL set by default.\n\n2. Add the *nagios* user to the *adm* group.\n\n\n## Author\n\nThe primary author is [Christian Kauhaus](mailto:kc@flyingcircus.io).\n\n\n## License\n\nThis program is distributed under the terms of the [BSD 3-Clause Revised\nLicense](https://opensource.org/licenses/BSD-3-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingcircusio%2Fcheck_journal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyingcircusio%2Fcheck_journal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingcircusio%2Fcheck_journal/lists"}