zabbix-module-systemd icon indicating copy to clipboard operation
zabbix-module-systemd copied to clipboard

Template not working with version 3.4

Open leweafan opened this issue 6 years ago • 1 comments

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.

leweafan avatar Aug 06 '18 18:08 leweafan

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?

jangaraj avatar Aug 06 '18 21:08 jangaraj