Skip to content

Latest commit

 

History

History
71 lines (61 loc) · 2.34 KB

README.md

File metadata and controls

71 lines (61 loc) · 2.34 KB

Magic Mirror Module: mmm-zabbix-alerts

This MagicMirror2 module allows you to download JSON and show alerts from Zabbix API

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/spectroman/mmm-zabbix-alerts.git

Configure the module in your config.js file.

Using the module

Now add the module to the modules array in the config/config.js file:

                {
                        module: 'mmm-zabbix-alerts',
                        position: 'top_left',
                        header: 'Zabbix Alerts',
                        config: {
                                apiSearch: "http://monitor.domain.net/api_jsonrpc.php"
                                zbx_user: "admin", // after creating a user there u can access
                                zbx_pass: "admin", // user a password for the remote user
                                listSize: 4,
                                triggerIds: [ "1234", "1234", "1234", "1234" ] // for each trigger there is a status block
                        }
                },

Configuration options

The following properties can be configured:

Option Description
apiSearch API URL from zabbix to consult
zbx_user UserName on the zabbix server
zbx_pass Password for user on the zabbix server
listSize Amount of triggers to show
triggerIds Trigger ids to collect information from zabbix