Catalogue
Zabbix Alert Notifications via LINE Notify

Zabbix Alert Notifications via LINE Notify

🌐 日本語で読む

Overview

I configured Zabbix alerts to send messages to LINE using LINE Notify.

Steps

Access LINE Notify

[https://notify-bot.line.me/ja/]

Sign up and log in

Register a service

There didn’t seem to be any actual review of this information, but I went ahead and registered with reasonably accurate details just in case.

Select a talk room and issue a token

Copy the issued token

Configure the Zabbix script

Env

  • Zabbix 3.0
  • CentOS Linux release 7.2.1511 (Core)

Install Steps

1
2
3
4
5
[Zabbix-Server]$ cd /usr/lib/zabbix/alertscripts    # AlertScriptsPath
[Zabbix-Server]$ git clone https://github.com/kenzo0107/zabbix3-linenotify
[Zabbix-Server]$ mv zabbix3-slack/line_notify.sh .
[Zabbix-Server]$ rm -r zabbix3-linenotify
[Zabbix-Server]$ chmod 755 line_notify.sh

Configure Media Types

Configure Users > Media

Notification test

In a test environment, I set up an alert to fire when the number of Nginx processes exceeds one, and here is the result.

Thoughts

I found that some people feel uneasy about joining a talk room, since a LINE account is a private account and they would rather not have it known.

Use it wisely.

What I’d like to see in the future

Personally, I’d be happy if LINE Notify could deliver notifications via phone call, like Twilio.

First and foremost, here’s to a world without incidents. ♪

That’s all.

kenzo0107

kenzo0107