{"id":13647861,"url":"https://github.com/pinterest/pagerduty-monit","last_synced_at":"2025-12-17T06:31:09.275Z","repository":{"id":2177106,"uuid":"3124094","full_name":"pinterest/pagerduty-monit","owner":"pinterest","description":"Wrapper scripts to integrate monit and PagerDuty.","archived":true,"fork":false,"pushed_at":"2017-05-12T22:18:32.000Z","size":4,"stargazers_count":60,"open_issues_count":3,"forks_count":24,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-09T22:40:48.519Z","etag":null,"topics":["archived","monit","pagerduty"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"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/pinterest.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":"2012-01-07T11:21:25.000Z","updated_at":"2024-03-28T03:15:39.000Z","dependencies_parsed_at":"2022-07-21T11:29:12.485Z","dependency_job_id":null,"html_url":"https://github.com/pinterest/pagerduty-monit","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/pinterest%2Fpagerduty-monit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fpagerduty-monit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fpagerduty-monit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fpagerduty-monit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinterest","download_url":"https://codeload.github.com/pinterest/pagerduty-monit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250183331,"owners_count":21388697,"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":["archived","monit","pagerduty"],"created_at":"2024-08-02T01:03:48.479Z","updated_at":"2025-12-17T06:31:04.222Z","avatar_url":"https://github.com/pinterest.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"**Note:** This project is no longer actively maintained by Pinterest.\n\n---\n\n## pagerduty-monit\n\nThe scripts in this repository are wrappers for the PagerDuty API which will\nopen and close PagerDuty incidents from the command line. These scripts are\ndesigned to help you integrate monit with PagerDuty.\n\nCopyright (c) 2012 Cold Brew Labs, Inc. See LICENSE for details.\n\n**Usage:** `pagerduty-trigger \u003cservice-name\u003e`\n\n**Example:** `pagerduty-trigger nginx` on the server \"webserver1.example.com\"\nwill trigger a PagerDuty incident with the subject \"nginx failed on\nwebserver1\".\n\n**Prerequisites:** Requires pagerduty library for Python. You can download this\nfrom http://pypi.python.org/pypi/pagerduty/0.2.1, or run `pip install\npagerduty` to download and install automatically.\n\n**To configure PagerDuty:** To configure PagerDuty, login as an administrator\nand go to the Services tab; then click \"Add New Service\". You can give the\nservice any name you'd like, and choose \"Generic API system.\" PagerDuty will\ngive you an API service key for this service. Be sure to set the \n`PAGERDUTY_SERVICE_KEY` variable in both scripts.\n\n**To configure Monit:** To configure Monit to trigger an event with this\nscript, save the script in a location like /etc/monit; make sure it's executable;\nand use an action like this in your monitrc file:\n\n    exec \"/etc/monit/pagerduty-trigger \u003cservice-name\u003e\"\n\nExample monit stanza to trigger an incident if nginx is not present:\n\n    check process nginx with pidfile /var/run/nginx.pid\n        if does not exist for 3 cycles\n            then exec \"/etc/monit/pagerduty-trigger nginx\"\n        else if passed for 3 cycles\n            then exec \"/etc/monit/pagerduty-resolve nginx\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinterest%2Fpagerduty-monit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinterest%2Fpagerduty-monit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinterest%2Fpagerduty-monit/lists"}