Ad Widget

Collapse

How to monitor differents systemd services on differents devices ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Clayzes
    Junior Member
    • May 2022
    • 29

    #1

    How to monitor differents systemd services on differents devices ?

    Hello,

    I have to monitor systemd services on differents devices , I'm using the "Systemd by Zabbix agent 2" ,
    I wonder how I could configure the template to implement a "flexible regex".
    So I could monitor different systemd services on depending of the machine but using the same template.

    Thank you
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Define that Macro on host level... If you look into hosts config and go to macros and then "inherited macros" you should see that one coming from template... if press "change" there, you can "replace" it with host level one.

    Comment

    • Clayzes
      Junior Member
      • May 2022
      • 29

      #3
      Originally posted by cyber
      Define that Macro on host level... If you look into hosts config and go to macros and then "inherited macros" you should see that one coming from template... if press "change" there, you can "replace" it with host level one.
      ow , I will try it , Is it possible to use value in the config of the agent in the HostMetadata ?

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        HostMetadata is used during autoregistration. You can define different (registration) operations based on it. But there is no option to set macros...

        Comment

        • Clayzes
          Junior Member
          • May 2022
          • 29

          #5
          Originally posted by cyber
          HostMetadata is used during autoregistration. You can define different (registration) operations based on it. But there is no option to set macros...
          oh ok , because my goal would be to use value on "hostmetadata" and use it as macro on a template so I can monitor different things using the same template

          Comment

          Working...