{"id":19404583,"url":"https://github.com/seven-io/nagios","last_synced_at":"2026-06-13T02:06:57.383Z","repository":{"id":106114127,"uuid":"329726239","full_name":"seven-io/nagios","owner":"seven-io","description":"Official Nagios Plugin for seven.io","archived":false,"fork":false,"pushed_at":"2026-04-28T12:15:34.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-28T14:25:59.972Z","etag":null,"topics":["nagios","nagios-plugin","seven-plugin","sms"],"latest_commit_sha":null,"homepage":"https://www.seven.io/en/solutions/integrations/nagios/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seven-io.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-14T20:26:13.000Z","updated_at":"2026-04-28T12:15:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f547e56-32ae-48cf-b76f-50fa9e89a982","html_url":"https://github.com/seven-io/nagios","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/seven-io/nagios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fnagios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fnagios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fnagios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fnagios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seven-io","download_url":"https://codeload.github.com/seven-io/nagios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven-io%2Fnagios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34269377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":["nagios","nagios-plugin","seven-plugin","sms"],"created_at":"2024-11-10T11:35:34.309Z","updated_at":"2026-06-13T02:06:57.378Z","avatar_url":"https://github.com/seven-io.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://www.seven.io/wp-content/uploads/Logo.svg\" width=\"250\" alt=\"seven logo\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eseven SMS for Nagios Core\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Plugin for \u003ca href=\"https://www.nagios.com/products/nagios-core/\"\u003eNagios Core\u003c/a\u003e that sends SMS notifications via the seven gateway.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-teal.svg\" alt=\"MIT License\" /\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Nagios-Core-orange\" alt=\"Nagios Core\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Python-2%20|%203-yellow\" alt=\"Python 2 | 3\" /\u003e\n\u003c/p\u003e\n\n---\n\n## Features\n\n- **Native Nagios Plugin** - Drop-in `seven.py` script for `notify-host-by-sms` and `notify-service-by-sms` commands\n- **Custom Sender** - Override the displayed sender via `--from`\n- **Advanced SMS Options** - Flash, TTL, performance tracking, foreign ID, label\n\n## Prerequisites\n\n- Nagios Core\n- Python 2 or 3\n- A [seven account](https://www.seven.io/) with API key ([How to get your API key](https://help.seven.io/en/developer/where-do-i-find-my-api-key))\n\n## Installation\n\nCopy `seven.py` into the Nagios plugins directory (typically `/usr/local/nagios/libexec`).\n\n## Configuration\n\n### 1. Wire the contact\n\nEdit `/usr/local/nagios/etc/objects/contacts.cfg`:\n\n```cfg\ndefine contact {\n    # ...\n    pager                         +491234567890\n    host_notification_commands    notify-host-by-sms\n    service_notification_commands notify-service-by-sms\n}\n```\n\n### 2. Define commands\n\nAppend to `/usr/local/nagios/etc/objects/commands.cfg`:\n\n```cfg\ndefine command {\n    command_name notify-service-by-sms\n    command_line python $USER1$/seven.py MY_SEVEN_API_KEY $CONTACTPAGER$ \"$NOTIFICATIONTYPE$:$SERVICEDESC$ on $HOSTADDRESS$@$HOSTNAME$, State $SERVICESTATE$, Output: $SERVICEOUTPUT$, Date: $SHORTDATETIME$\" --from=Nagios\n}\n\ndefine command {\n    command_name notify-host-by-sms\n    command_line python $USER1$/seven.py MY_SEVEN_API_KEY $CONTACTPAGER$ \"$NOTIFICATIONTYPE$ on $HOSTADDRESS$@$HOSTNAME$, State: $HOSTSTATE$, Output: $HOSTOUTPUT$, Date: $SHORTDATETIME$\" --from=Nagios\n}\n```\n\n### 3. (optional) Add a quick-test service\n\nAppend to `/usr/local/nagios/etc/objects/localhost.cfg`:\n\n```cfg\ndefine service {\n    use                  local-service\n    host_name            localhost\n    service_description  SMS\n    check_command        notify-host-by-sms\n}\n```\n\n## Usage\n\n```text\nseven.py [-h] [--delay DELAY] [--flash] [--foreign_id FOREIGN_ID]\n         [--from FROM] [--label LABEL] [--performance_tracking]\n         [--ttl TTL] [--udh UDH]\n         api_key to text\n```\n\n## Support\n\nNeed help? Feel free to [contact us](https://www.seven.io/en/company/contact/) or [open an issue](https://github.com/seven-io/nagios/issues).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven-io%2Fnagios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseven-io%2Fnagios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven-io%2Fnagios/lists"}