Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template not working with version 3.4 #29

Open
leweafan opened this issue Aug 6, 2018 · 1 comment
Open

Template not working with version 3.4 #29

leweafan opened this issue Aug 6, 2018 · 1 comment

Comments

@leweafan
Copy link

leweafan commented Aug 6, 2018

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.

@jangaraj
Copy link
Collaborator

jangaraj commented Aug 6, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants