Ad Widget

Collapse

How to monitor a specific service running on the system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcino
    Junior Member
    • Nov 2024
    • 13

    #1

    How to monitor a specific service running on the system

    Hi,
    I want to monitor a service on a specific system. Currently, identical services are detected via discovery. However, sometimes a new server is created where I want to monitor a specific service. Adding it to the template doesn’t make sense, because I don’t want to monitor this service on every server — only on that specific one.

    There is a macro {$SERVICE.NAME.MATCHES}, but if I assign it to the host, it will overwrite what's already defined in the template. How can I set it up so that the template (used in discovery) includes several predefined services to monitor, and additionally I can manually specify a custom service using a macro per host?
  • ANGEL OLIVARES
    Junior Member
    • Jul 2025
    • 2

    #2
    Perhaps, create a macro just on that host and use it on the item's key

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #3
      You could add another user macro in the template for those additional services (to be overridden at the host level) and then modify the LLD rule of the template to include the new macro with correct AND/OR condition combination.

      Markku

      Comment

      • marcino
        Junior Member
        • Nov 2024
        • 13

        #4
        Originally posted by Markku
        You could add another user macro in the template for those additional services (to be overridden at the host level) and then modify the LLD rule of the template to include the new macro with correct AND/OR condition combination.

        Markku
        I don't understand how to use this new macro in an item.

        have filters like this:



        In the template, I have a macro defined by default:




        And now, if I set the macro value {$SERVICE.NAME.MATCHES} for a host, I will overwrite what I already have in the template.​​

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #5
          I don't see your images in the post. Maybe try to add them differently? This is a common problem here, but I don't know how people fix it. I've always just pasted the image snippets and they have worked.

          Markku

          Comment

          Working...