https://github.com/netways/notify_rocketchat
Icinga notification cli tool to write messages to Rocket.Chat channels
https://github.com/netways/notify_rocketchat
icinga notifications plugin rocketchat
Last synced: about 1 year ago
JSON representation
Icinga notification cli tool to write messages to Rocket.Chat channels
- Host: GitHub
- URL: https://github.com/netways/notify_rocketchat
- Owner: NETWAYS
- License: gpl-2.0
- Created: 2019-02-21T12:08:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T09:43:23.000Z (over 2 years ago)
- Last Synced: 2025-03-27T22:12:24.524Z (about 1 year ago)
- Topics: icinga, notifications, plugin, rocketchat
- Language: Python
- Homepage: https://netways.de/
- Size: 24.4 KB
- Stars: 4
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: COPYING
Awesome Lists containing this project
README
Rocket.Chat notification Plugin for Icinga
==============
This plugin will allow you to send notifications from Icinga directly to your Rocket.Chat Server.
## Example usage
```
./notify_rocketchat.py --user icinga --password icinga --url "https://example.com" --channel general --message 'Test notification'
```
### Icinga Notification Command Definition
```
object NotificationCommand "Notify Rocket.Chat" {
import "plugin-notification-command"
command = [ PluginDir + "/notify_rocketchat.py" ]
arguments += {
"--channel" = "$notify_rocketchat_channel$"
"--password" = "$notify_rocketchat_password$"
"--url" = "$notify_rocketchat_url$"
"--user" = "$notify_rocketchat_user$"
"--message" = "$notify_rocketchat_message$"
}
}
```
### Host Notification Message example
```
$notification.type$ $host.name$ is $host.state$ $icinga.long_date_time$ $host.output$
```
### Service Notification Message example
```
$notification.type$ $host.display_name$.$service.name$ is $service.state$ $icinga.long_date_time$ $service.output$
```