zabbix-module-systemd
zabbix-module-systemd copied to clipboard
Template not working with version 3.4
Error: Cannot accurately apply filter: no value received for macro "{#SERVICE.STARTUPNAME}". https://www.zabbix.com/documentation/3.2/manual/introduction/whatsnew3210
Example:
{
"{#SERVICE.TYPE}": "service",
"{#SERVICE.NAME}": "systemd-sysctl.service",
"{#SERVICE.DISPLAYNAME}": "Apply Kernel Variables",
"{#SERVICE.PATH}": "/lib/systemd/system/systemd-sysctl.service",
"{#SERVICE.STARTUPNAME}": "static",
"{#SERVICE.CONDITIONRESULT}": "yes"
},
{
"{#SERVICE.TYPE}": "service",
"{#SERVICE.NAME}": "keyboard-setup.service",
"{#SERVICE.DISPLAYNAME}": "LSB: Set preliminary keymap",
"{#SERVICE.PATH}": "/run/systemd/generator.late/keyboard-setup.service",
"{#SERVICE.CONDITIONRESULT}": "yes"
},
As you can see {#SERVICE.STARTUPNAME} is missing.
This value is not available:
$ systemctl show keyboard-setup.service | grep UnitFileState
$ systemctl show systemd-sysctl.service | grep UnitFileState
UnitFileState=static
You can use https://github.com/cavaliercoder/zabbix-module-systemd#debugging for more details.
What will be expected a response in this case?