Skip to content

πŸ€– πŸ“² | A simple nagios plugin to send messages through telegram API.

Notifications You must be signed in to change notification settings

rsilveira65/nagios-telegram-notify-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

nagios-telegram-notify-me

alt tag

Project Setup

$ yarn install
$ cp src/config/config.yml.dist src/config/config.yml

Configuration

To configure the script, set the follow parameters:

.
└── src
    └── config
        └── config.yml
  • src/config/config.yml - Add your telegram bot id and chat ids.

RUN

Examples:

$ node index.js --verbose --messenger=telegram --state="OK" --hostname="rsilveira.com" --servicedesc="load" --output="OK - load average: 0.02 0.01 0.01"
$ node index.js --verbose --messenger=telegram --state="WARNING" --hostname="rsilveira.com" --servicedesc="load" --output="WARNING - load average: 3.48 4.19 2.74"
$ node index.js --verbose --messenger=telegram --state="CRITICAL" --hostname="rsilveira.com" --servicedesc="load" --output="CRITICAL - load average: 233.29 154.35 15.05"
$ node index.js --verbose --messenger=telegram --state="UNREACHABLE" --hostname="rsilveira.com" --output="Network Unreachable (rsilveira.com)"
$ node index.js --verbose --messenger=telegram --state="DOWN" --hostname="rsilveira.com" --output="PING CRITICAL - Packet loss = 100%"
$ node index.js --verbose --messenger=telegram --state="UP" --hostname="rsilveira.com" --output="PING OK - Packet loss = 0%, RTA = 3.74 ms"

About

πŸ€– πŸ“² | A simple nagios plugin to send messages through telegram API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published