Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19999

Zabbix Agent 2 - Unknown metric systemd.service.active_state

    XMLWordPrintable

Details

    • Problem report
    • Status: Confirmed
    • Major
    • Resolution: Unresolved
    • 5.0.15, 5.4.4
    • None
    • Documentation (D)
    • None

    Description

      Based on the documentation there's no required configuration to use the systemd template, but even though the "systemd.unit.info" command is working, there are others that are not. Can you please help me?

       

      I am using Zabbix server 5.4.4 and agent v2 5.4.4

      Documentation that I used:

      Zabbix agent 2 template operation [Zabbix Documentation 5.4]

      Browse Zabbix / Zabbix - ZABBIX GIT

      Steps to reproduce:

      1. Configure agent with server IP and hostname only
      2. Start zabbix agent2 service and enabled.
      3. run zabbix get from server: zabbix_get -s <zabbix_agent_ip> -k 'systemd.service.active_state[httpd.service]'

      Result:

      Error from the command:
      ZBX_NOTSUPPORTED: Unknown metric systemd.service.active_state

      Error in logfile from zabbix agent2:

      2021/09/21 15:50:26.070186 received passive check request: 'systemd.service.active_state[httpd.service]' from 'x.x.x.x'
      2021/09/21 15:50:26.070310 [1] processing update request (1 requests)
      2021/09/21 15:50:26.070332 [1] cannot monitor metric "systemd.service.active_state[httpd.service]": Unknown metric systemd.service.active_state
      2021/09/21 15:50:26.070347 sending passive check response: ZBX_NOTSUPPORTED: 'Unknown metric systemd.service.active_state' to 'x.x.x.x'
      

      Expected:

      Attachments

        Activity

          People

            esneiders Eriks Sneiders
            fur93 Felix Ubiera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: