OPTIONAL feature
in progress
Install Zabbix server
supported versions
6.4 link
7.2 link
...
Configuration Zabbix server
Create API token, see Zabbix doc API token
Configuration SmartYard-Server
- Edit server config file:
/opt/server/config/config.json
| Param mane | Description |
|---|---|
| zbx_api_url | Set Zabbix API url |
| cron_sync_data_scheduler | Set scheduler sync data, default 5min |
| zbx_token | Create API token, see Zabbix doc API token |
| zbx_store_days | "Soft delete", days after which the host will be deleted from the Zabbix database |
| zbx_data_collection | Used Templates |
| use_cache | Cache template IDs - set true, update every request - set false |
| logging | Optional, set true/false for enable debug log |
| example: |
"backends": {
"monitoring": {
"backend": "zabbix",
"logging": false,
"cron_sync_data_scheduler": "5min",
"use_cache": true,
"zbx_api_url": "http://zabbix.example.com/api_jsonrpc.php",
"zbx_token": "ZBX_API_TOKEN",
"zbx_store_days": 7,
"zbx_data_collection": {
"host_groups": [
"Intercoms",
"Cameras"
],
"template_groups": [
"Templates/Intercoms",
"Templates/Cameras",
"Templates/SmartYard-Server"
],
"intercom_template_names": [
"Intercom_AKUVOX_E12",
"Intercom_BEWARD_DKS",
"Intercom_BEWARD_DS",
"Intercom_QTECH_QDB-27C-H",
"Intercom_IS_ISCOM_X1_REV.2",
"Intercom_IS_ISCOM_X1_REV.5",
"Intercom_RUBETEK_RV-3434",
"Intercom_UFANET_SECRET_TOP",
"Intercom_SILINES_RODOS"
],
"camera_template_names": ["Camera_simple"],
"plugged_template_names": ["ICMP Ping"],
"templates_dir": "/install/monitoring/zabbix/templates/v7.x"
}
}
}
````
2. Run cli command for create initial config. Create group hosts, group templates, templates
```shell
php /opt/rbt/server/cli.php --init-monitoring-config
```
After adding cameras and intercoms to SmartYard-Server, they will automatically synchronize with your Zabbix server every 5 minutes
# Configuration Zabbix agent on SmartYard-Server
1. Install zabbix-agent2 on SmartYard-Server
```shell
apt install zabbix-agent2
```
2. Edit zabbix-agent2 config:
```shell
/etc/zabbix/zabbix_agent2.conf
Set allowed server addresses in config, replace "Server=127.0.0.1" to your Zabbix server host.
Example:
sed -i 's/Server=127\.0\.0\.1/Server=192.168.13.39/g' /etc/zabbix/zabbix_agent2.conf
- Configure zabbix-agent 2 user parameters
cp /opt/rbt/install/zabbix/agent/rbt/systemd_services.conf /etc/zabbix/zabbix_agent2.d/
- Restart zabbix-agent2
systemctl restart zabbix-agent2.service
Monitoring SmartYard-Server
- add host
- set zabbix agent interface
- add templates from group: "Templates/SmartYard-Server" templates: "SmartYard-Server" and "SmartYard-Server | Asterisk"
- modify macros:
| macros | description |
|---|---|
| {$AMI.PORT} | The Asterisk AMI port |
| {$AMI.SECRET} | The Asterisk Manager secret. |
| {$AMI.URL} | The Asterisk Manager API URL in the format <scheme>://<host>:<port>/<prefix>/rawman. Example: https://example.com:55458/rawman |
Monitoring FRS
- add host
- set zabbix agent interface
- add templates from group: "Templates/SmartYard-Server" template: "SmartYard-Server | FRS"
Monitoring Flussonic Media Server
- add host
- set IPMI interface
- add templates from group: "Templates/SmartYard-Server" template: "SmartYard-Server | Flussonic Media Server"
- modify macros:
| macros | description |
|---|---|
| {$FL.USER} | Flussonic Media Server API username |
| {$FL.PASSWORD} | Flussonic Media Server API password |
| {$FL.PORT} | Flussonic Media Server listen port |
Check SSL certificate
- add Zabbix template to host "Website certificate by Zabbix agent 2"
- add macros, example:
| macros | description |
|---|---|
| {$CERT.WEBSITE.HOSTNAME} | Server domain name, example rbt.demo.lanta.me |
| {$CERT.WEBSITE.PORT} | server port |