{"id":15374711,"url":"https://github.com/mrtazz/notify-by-pushover","last_synced_at":"2025-03-21T02:29:04.435Z","repository":{"id":16458051,"uuid":"19210031","full_name":"mrtazz/notify-by-pushover","owner":"mrtazz","description":"Nagios pushover notification script written in Go","archived":false,"fork":false,"pushed_at":"2014-04-27T16:41:22.000Z","size":128,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-25T23:17:12.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/mrtazz.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}},"created_at":"2014-04-27T16:40:39.000Z","updated_at":"2023-09-08T16:47:12.000Z","dependencies_parsed_at":"2022-08-04T09:30:21.561Z","dependency_job_id":null,"html_url":"https://github.com/mrtazz/notify-by-pushover","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fnotify-by-pushover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fnotify-by-pushover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fnotify-by-pushover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fnotify-by-pushover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtazz","download_url":"https://codeload.github.com/mrtazz/notify-by-pushover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244724861,"owners_count":20499499,"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","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-01T13:59:34.710Z","updated_at":"2025-03-21T02:29:04.409Z","avatar_url":"https://github.com/mrtazz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notify-by-pushover\n\n## Overview\nSimple script to notify about nagios alerts via pushover\n\n## Usage\nThe script can be called standalone like this:\n```\n% ./notify-by-pushover --help\nUsage of ./notify-by-pushover:\n  -H=\"\": the host to alert for\n  -S=\"\": the service to alert for\n  -a=\"\": the pushover auth token\n  -d=\"\": description of the alert\n  -s=\"\": the state\n  -t=\"\": the alert type\n  -u=\"\": pushover recipient ID to send to\n```\nBut you probably want to use it in Nagios. For this define commands like this:\n```\ndefine command{\n  command_name\tnotify-host-pushover\n  command_line  $USER1$/notify-by-pushover -H=\"$HOSTNAME$\" -s=\"$HOSTSTATE$\" -a=\"pushoverKEY\" -t=\"$NOTIFICATIONTYPE$\" -d=\"$HOSTOUTPUT$\" -T=\"$LONGDATETIME$\" -u=\"$CONTACTEMAIL$\"\n}\n\ndefine command{\n  command_name\tnotify-service-pushover\n  command_line  $USER1$/notify-by-pushover -H=\"$HOSTNAME$\" -S=\"$SERVICEDESC$\" -s=\"$SERVICESTATE$\" -a=\"pushoverKEY\" -t=\"$NOTIFICATIONTYPE$\" -d=\"$SERVICEOUTPUT$\" -T=\"$LONGDATETIME$\" -u=\"$CONTACTEMAIL$\"\n}\n```\nAnd then set up a contact to use the commands for notifications like this:\n```\ndefine contact{\n        contact_name                   pushover\n        use                            generic-contact\n        alias                          pushover contact\n        email                          $PUSHOVER_USER_ID\n        service_notification_commands  notify-service-pushover\n        host_notification_commands     notify-host-pushover\n        }\n```\n\n## How to contribute\n1. Fork the repo\n2. Hack away\n3. Push the branch up to GitHub\n4. Send a pull request\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtazz%2Fnotify-by-pushover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtazz%2Fnotify-by-pushover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtazz%2Fnotify-by-pushover/lists"}