https://github.com/gotthardp/zabbix-module-sysrepo
Zabbix Module for Sysrepo Monitoring
https://github.com/gotthardp/zabbix-module-sysrepo
sysrepo zabbix zabbix-loadable
Last synced: over 1 year ago
JSON representation
Zabbix Module for Sysrepo Monitoring
- Host: GitHub
- URL: https://github.com/gotthardp/zabbix-module-sysrepo
- Owner: gotthardp
- License: gpl-2.0
- Created: 2022-11-17T18:03:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T16:03:25.000Z (over 3 years ago)
- Last Synced: 2025-01-15T10:08:31.558Z (over 1 year ago)
- Topics: sysrepo, zabbix, zabbix-loadable
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zabbix Module for Sysrepo Monitoring
[Sysrepo](https://www.sysrepo.org/) is a YANG-based system repository for
all-around configuration management. This loadable module enables the native
[Zabbix agent](https://www.zabbix.com/zabbix_agent) to monitor arbitrary
datastore items.
## Templates
We offer [templates](templates) with most common items. Import the template to
the Zabbix server and link it with your device.
## Available Keys
You can create custom items using the following keys:
| Key | Description |
| ---------------------- | ----------- |
| sysrepo.get[\] | Retrieve a value from the operational store. |
For an XPath with square brackets use double quotes, e.g.:
`sysrepo.get["/ietf-hardware:hardware/component[name='hwmon0/temp1']/sensor-data/value"]`.
You can test the module using:
```bash
zabbix_agentd -t sysrepo.get[/ietf-system:system-state/platform/os-name]
zabbix_agentd -t 'sysrepo.get["/ietf-hardware:hardware/component[name=\"hwmon1/in0\"]/sensor-data/value"]'
```
## Installation
Download [Zabbix sources](https://www.zabbix.com/download_sources) of the version
you got installed.
Build the module using:
```bash
mkdir build; cd build
PKG_CONFIG_PATH=/usr/lib/pkgconfig/ cmake -DCMAKE_INSTALL_PREFIX=/usr -DZABBIX_DIR=/home/user/zabbix-5.0.29 ..
make
make install
```
Make sure the the `/etc/zabbix_agentd.conf` includes
```
Include=/etc/zabbix_agentd.conf.d/*.conf
```
## License
This module is made available under the terms of the
[GNU General Public License v2.0 or later](LICENSE).