# pm2-restart-notifier

> Get restart notifications on various channels (slack, pagerduty, etc.)

Latest version **1.0.4** (published 2018-01-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install pm2-restart-notifier
pnpm add pm2-restart-notifier
yarn add pm2-restart-notifier
bun add pm2-restart-notifier
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-01-02 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alon Weiss |
| Maintainers | sealights |
| Keywords | pm2, slack, pagerduty, notifications |

## Links

- npm: https://www.npmjs.com/package/pm2-restart-notifier
- Repository: https://github.com/Sealights/pm2-restart-notifier
- Issues: https://github.com/Sealights/pm2-restart-notifier/issues
- npm.io page: https://npm.io/package/pm2-restart-notifier

## Dependencies (4)

- [pm2](https://npm.io/package/pm2.md) *
- [pmx](https://npm.io/package/pmx.md) latest
- [pagerduty](https://npm.io/package/pagerduty.md) 0.0.3
- [read-last-lines](https://npm.io/package/read-last-lines.md) ^1.3.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2018-01-02
- 1.0.3 — 2018-01-02
- 1.0.2 — 2018-01-02
- 1.0.1 — 2018-01-02
- 1.0.0 — 2018-01-02

## README

# pm2-restart-notifier
This pm2 module sends notifications in various channels on the occasion of service restarts.

# Installation
`pm2 install pm2-restart-notifier`

# Configuration:
`pm2 set pm2-restart-notifier:[KEY] [VALUE]`

e.g.

`pm2 set pm2-restart-notifier:errorLines 50`

* errorLines - number of error lines to include in the alert (default is 50 lines)
* logLines - number of log lines to include in the alert (default is 50 lines)
* pollInterval - number of ms between pm2 polling operations (default is 30 sec)
* prefix - A prefix to show on every message (default is the host name)

## Pager Duty settings
* pagerdutyServiceKey - pager duty service key (required in order to turn on the pagerDuty notifier)
* pagerdutyNotificationInterval - minimal interval between alerts for the same service (default to 60 seconds)

## Pager Duty settings
* slackToken - slack webhook token, in the form of xxxxxxxxx/xxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxx (required in order to turn on the slack notifier)
* slackNotificationInterval - minimal interval between alerts for the same service (default to 60 seconds)
* slackEmoji - an emoji to show on slack alerts (default to :boom:)

---
_Source: https://npm.io/package/pm2-restart-notifier · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
