{"id":24998910,"url":"https://github.com/thiswillbeyourgithub/ntfy_systemd","last_synced_at":"2025-10-08T16:07:43.819Z","repository":{"id":273046257,"uuid":"899647524","full_name":"thiswillbeyourgithub/ntfy_systemd","owner":"thiswillbeyourgithub","description":"Get ntfy notifications when a systemd unit is degraded","archived":false,"fork":false,"pushed_at":"2025-09-10T08:14:15.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"github","last_synced_at":"2025-09-10T11:56:55.093Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thiswillbeyourgithub.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":"2024-12-06T17:49:09.000Z","updated_at":"2025-09-10T08:14:19.000Z","dependencies_parsed_at":"2025-06-15T18:04:02.247Z","dependency_job_id":"ed61fb35-9674-4c47-a63d-165e5257d95d","html_url":"https://github.com/thiswillbeyourgithub/ntfy_systemd","commit_stats":null,"previous_names":["thiswillbeyourgithub/ntfy_systemd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thiswillbeyourgithub/ntfy_systemd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2Fntfy_systemd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2Fntfy_systemd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2Fntfy_systemd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2Fntfy_systemd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiswillbeyourgithub","download_url":"https://codeload.github.com/thiswillbeyourgithub/ntfy_systemd/tar.gz/refs/heads/github","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2Fntfy_systemd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278972639,"owners_count":26078083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":"2025-02-04T18:52:14.547Z","updated_at":"2025-10-08T16:07:43.814Z","avatar_url":"https://github.com/thiswillbeyourgithub.png","language":"Shell","readme":"# Systemd Outage Notifier\n\nA simple shell script that monitors systemd units and sends notifications via ntfy when it detects failed or degraded services.\n\n## Features\n\n- Monitors systemd units for failed or degraded states\n- Sends detailed notifications including unit status via ntfy\n- Configurable notification endpoint\n- High priority notifications with warning tags\n\n## Prerequisites\n\n- zsh shell\n- systemd\n- curl\n- An ntfy server or subscription (for notifications)\n\n## Setup\n\n1. Clone this repository\n2. Make the script executable:\n   ```bash\n   chmod +x ntfy_sydtemd_outages.sh\n   ```\n\n## Usage\n\nRun the script manually by passing your ntfy url/topic as an argument:\n```bash\n./ntfy_sydtemd_outages.sh ntfy.sh/your-topic\n```\n\nTo test without sending notifications, use 'print':\n```bash\n./ntfy_sydtemd_outages.sh print\n```\n\nFor automated monitoring, set up a cron job or systemd timer.\n\nExample crontab entry (check every 5 minutes):\n```\n*/5 * * * * /path/to/ntfy_sydtemd_outages.sh ntfy.sh/your-topic\n```\n\n## Notifications\n\nWhen a problematic unit is detected, you'll receive a notification with:\n- Unit name\n- Current status\n- Detailed information from systemctl\n- High priority flag\n- Warning tag for visibility\n\n## License\n\nGPLv3\n\n## Contributing\n\nFeel free to open issues or submit pull requests for improvements.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiswillbeyourgithub%2Fntfy_systemd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiswillbeyourgithub%2Fntfy_systemd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiswillbeyourgithub%2Fntfy_systemd/lists"}