2020-07-15 03:40:49 +00:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
|
|
|
|
|
|
|
<!DOCTYPE PLUGIN [
|
|
|
|
<!ENTITY name "zabbix_agent">
|
|
|
|
<!ENTITY author "fabianonline">
|
|
|
|
<!ENTITY plgauthor "fabianonline">
|
2020-10-31 10:57:21 +00:00
|
|
|
<!ENTITY baseURL "https://git.schle.nz/fabian/unraid-zabbix_agent/raw/branch/stable">
|
2020-07-15 03:40:49 +00:00
|
|
|
<!ENTITY pluginURL "&baseURL;/zabbix_agent.plg">
|
2024-12-19 10:20:55 +00:00
|
|
|
<!ENTITY version "2024.12.19.1">
|
2020-08-12 04:37:27 +00:00
|
|
|
<!ENTITY packageName "zabbix_agent-&version;-x86_64-1.txz">
|
2020-07-17 04:01:19 +00:00
|
|
|
<!ENTITY packageURL "&baseURL;/&packageName;">
|
2024-12-19 10:20:55 +00:00
|
|
|
<!ENTITY packageMD5 "6e3a4e4b7712ec531a6da1ff946cf0a2">
|
2020-07-15 03:40:49 +00:00
|
|
|
]>
|
|
|
|
|
2020-08-12 04:02:59 +00:00
|
|
|
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" packageMD5="&packageMD5;">
|
2020-07-15 03:40:49 +00:00
|
|
|
|
|
|
|
<CHANGES>
|
2020-09-07 04:21:55 +00:00
|
|
|
## &name;
|
|
|
|
|
2024-12-19 10:20:55 +00:00
|
|
|
### 2024.12.19.1
|
|
|
|
- Sometimes, diskload.ini is not available (at least in Unraid 6.12.6). In that case we now skip omitting disk load data
|
|
|
|
in order to still omit valid JSON.
|
|
|
|
|
|
|
|
### 2020.11.25.1
|
2020-11-25 05:29:57 +00:00
|
|
|
- You can now add a custom zabbix agent configuration file at /boot/config/plugins/zabbix_agent/zabbix_agentd.custom.conf.
|
|
|
|
It won't be overwritten by a future update of this plugin. Please note that the list of usable keys is heavily restricted
|
|
|
|
in zabbix_agentd.conf. To have your custom UserParameters accessible, you can either:
|
|
|
|
- Name them custom.$whatever.
|
|
|
|
- Add the key to the whitelist via AllowKey.
|
2020-11-25 05:49:45 +00:00
|
|
|
- Updated zabbix_agentd from 5.0.3 to 5.2.1.
|
2020-11-25 05:29:57 +00:00
|
|
|
|
2024-12-19 10:20:55 +00:00
|
|
|
### 2020.10.31.1
|
2020-09-07 04:21:55 +00:00
|
|
|
- Updated zabbix_agentd from 5.0.2 to 5.0.3
|
2020-10-31 10:57:21 +00:00
|
|
|
- Download updated plugins from stable instead of main.
|
2020-10-31 10:58:27 +00:00
|
|
|
- Fixed removal of old plugin packages during updates.
|
2020-10-31 10:57:54 +00:00
|
|
|
- Added new zabbix endpoint unraid.ups
|
2020-09-07 04:21:55 +00:00
|
|
|
|
|
|
|
### 2020.09.05.1
|
|
|
|
- Added a new field 'running' to qemu.disk
|
2020-07-15 03:40:49 +00:00
|
|
|
|
2020-08-12 04:02:59 +00:00
|
|
|
### 2020.08.11
|
|
|
|
- Added system temperature metrics. Note: These will only work if you have the Dynamix System Temperature plugin installed.
|
|
|
|
- Fixed the virtual interface detection in unraid.qemu.
|
|
|
|
|
|
|
|
### 2020.07.16
|
2020-07-17 04:01:19 +00:00
|
|
|
- Package based installation process.
|
|
|
|
- Added a zabbix template file.
|
|
|
|
|
2020-08-12 04:02:59 +00:00
|
|
|
### 2020.07.15
|
2020-07-17 04:01:19 +00:00
|
|
|
- More metrics
|
|
|
|
|
2020-08-12 04:02:59 +00:00
|
|
|
### 2020.07.14
|
2020-07-15 03:40:49 +00:00
|
|
|
- Initial commit
|
|
|
|
</CHANGES>
|
|
|
|
|
|
|
|
<FILE Run="/bin/bash"><INLINE>
|
|
|
|
echo "Installation of zabbix_agent plugin started."
|
2020-07-17 04:01:19 +00:00
|
|
|
if [ -e /boot/config/plugins/zabbix_agent/&packageName; ]; then
|
|
|
|
echo "Package already exists."
|
2020-07-15 03:40:49 +00:00
|
|
|
else
|
2020-07-17 04:01:19 +00:00
|
|
|
echo "Current &packageName; not found; removing old packages (if existing)."
|
2020-10-31 10:58:27 +00:00
|
|
|
rm /boot/config/plugins/zabbix_agent/*.txz
|
2020-07-17 04:01:19 +00:00
|
|
|
echo "Downloading current package..."
|
2020-07-15 03:40:49 +00:00
|
|
|
fi
|
2020-07-16 04:09:16 +00:00
|
|
|
</INLINE></FILE>
|
|
|
|
|
2020-07-17 04:01:19 +00:00
|
|
|
<FILE Name="/boot/config/plugins/zabbix_agent/&packageName;">
|
|
|
|
<URL>&packageURL;</URL>
|
|
|
|
<MD5>&packageMD5;</MD5>
|
|
|
|
</FILE>
|
2020-07-15 03:40:49 +00:00
|
|
|
|
|
|
|
<FILE Run="/bin/bash"><INLINE>
|
2020-07-17 04:01:19 +00:00
|
|
|
if [ -x /etc/rc.d/rc.zabbix_agentd ]; then
|
|
|
|
echo "Stopping old zabbix agent..."
|
|
|
|
/etc/rc.d/rc.zabbix_agentd stop
|
|
|
|
fi
|
2020-07-15 03:40:49 +00:00
|
|
|
|
2020-07-17 04:01:19 +00:00
|
|
|
echo "Extracting support files..."
|
2020-08-12 04:37:27 +00:00
|
|
|
upgradepkg --install-new /boot/config/plugins/zabbix_agent/&packageName;
|
2020-07-15 03:40:49 +00:00
|
|
|
|
2020-08-12 04:37:27 +00:00
|
|
|
echo "Starting zabbix_agent..."
|
2020-07-15 03:40:49 +00:00
|
|
|
/etc/rc.d/rc.zabbix_agentd start
|
|
|
|
</INLINE></FILE>
|
|
|
|
|
|
|
|
|
|
|
|
<!--- Uninstall -->
|
|
|
|
|
|
|
|
<FILE Run="/bin/bash" Method="remove"><INLINE>
|
|
|
|
echo "Removal of zabbix_agent plugin started."
|
|
|
|
echo "Stopping zabbix_agentd..."
|
|
|
|
/etc/rc.d/rc.zabbix_agentd stop
|
2020-08-12 04:37:27 +00:00
|
|
|
|
|
|
|
echo "Uninstalling package..."
|
|
|
|
removepkg zabbix_agent
|
|
|
|
|
|
|
|
echo "Removing remaining plugin files..."
|
|
|
|
rm -rf /boot/config/plugins/zabbix_agent
|
|
|
|
|
2020-07-15 03:40:49 +00:00
|
|
|
echo "Removal of zabbix_agent plugin completed."
|
|
|
|
</INLINE></FILE>
|
|
|
|
|
|
|
|
</PLUGIN>
|