This shows you the differences between two versions of the page.
| — |
zabbix_integration [2016/06/14 16:35] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Zabbix integration for SMS alerts ===== | ||
| + | This article explains how to integrate a Zabbix network monitoring system with your FoxBox, in order to use it as an external SMS notification system. | ||
| + | === #1: Installation on the FoxBox side === | ||
| + | Your FoxBox is specifically designed for these kind of communication tasks, thus there is not much to do here except: | ||
| + | * Providing a valid IP address, reachable from your monitoring server; | ||
| + | * Inserting a tested and full working SIM card, to send the SMS. | ||
| + | |||
| + | === #2: Installation on the Server side === | ||
| + | First of all you have to download the script to enable SMS notifications, available [[http://www.kdev.it/cli_foxbox.tar.bz2|here]]. \\ | ||
| + | Before installing it, you have to edit these lines inserting your specific values: | ||
| + | <code> | ||
| + | //Set the following three values: | ||
| + | $foxbox_ip = "192.168.0.98"; | ||
| + | $login = "user"; | ||
| + | $password = "password"; | ||
| + | </code> | ||
| + | |||
| + | This script, with right permissions in order to allow the Zabbix user executing it, has to be placed inside of the directory// /etc/zabbix/alert.d/ //. | ||
| + | |||
| + | At this point you can already verify the behavior of the script, launching this command: | ||
| + | <code> | ||
| + | /etc/zabbix/alert.d/cli_foxbox.php 391234567890 "Test message" | ||
| + | </code> | ||
| + | |||
| + | The last step is enabling this new notification channel from inside the Zabbix system. First of all you need to register the new script, selecting //Create Media Type// from the menu //Administration// -> //Media Types// with these parameters: | ||
| + | <code> | ||
| + | Description: FoxBox | ||
| + | Type: Script | ||
| + | Script name: /etc/zabbix/alert.d/cli_foxbox.php | ||
| + | </code> | ||
| + | |||
| + | Now, from the menu //Administration// -> //Users// select an existing user and assign it the //FoxBox// notification channel adding a new media. The configuration is now complete. | ||