Ad Widget

Collapse

Unknown metric systemd.service.active_state

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snakefox
    Junior Member
    • Jan 2023
    • 11

    #1

    Unknown metric systemd.service.active_state

    Hello.

    I'm trying to set up a service check on a linux server. I've installed zabbix-agent2 on it and have configured the discovery rule with key: "systemd.service.active_state["{#UNIT.NAME}"]". If I use "test" option in the discovery configuration menu, it works so I know they key is correct. I've set up an item prototype with key "systemd.service.active_state["{#UNIT.NAME}"]", which should display all the information about a service. I've copied the preprocessing steps from https://www.zabbix.com/integrations/systemd.

    But when I check to see if the set up works, the item prototype is not active and I get the error Unknown metric systemd.service.active_state. I don't understand what's causing the error. Can someone help please?
  • snakefox
    Junior Member
    • Jan 2023
    • 11

    #2
    Nvm, I have realized my own mistake. I failed to consider that the item prototype I wanted is a dependent item.

    Comment

    Working...