Ad Widget

Collapse

Template systemd warnings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • klowet
    Junior Member
    • Jun 2019
    • 10

    #1

    Template systemd warnings

    Hello

    I'm using Zabbix 5.0 and I have imported the new systemd template. The problem I have is that the problems are flooded with warnings "service is not running" about services that are enabled but not started (like dmesg.service, rsync.service, netplan-ovs-cleanup.serivce, etc.).
    What is the best method to handle this?

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

    #2
    Hi, apparently the template uses macro {$SYSTEMD.NAME.SERVICE.NOT_MATCHES} that you can set in host level, use value (regex) like "^(dmesg|rsync)\.service)" to ignore specific services.

    Note that since the service discovery (LLD) is already done you may need to manually delete the items for those services.

    Markku

    Comment

    • klowet
      Junior Member
      • Jun 2019
      • 10

      #3
      Hi Markku. That is indeed a solution.
      Thanks!

      Comment

      • amanogue
        Member
        • Mar 2015
        • 34

        #4
        Hi all


        I'm having the same issue as you. how were you able to solve it?


        This is the content of my macro
        Code:
        {$SYSTEMD.NAME.SERVICE.NOT_MATCHES}
        =
        Code:
        ^(sssd\.service|smartd\.service|selinux-autorelabel-mark\.service|microcode\.service|nvmefc-boot-connections\.service| ostree-remount\.service|multipathd\.service)$
        . I've detached/atached the macro serveral times but warnings still apears.

        BR​

        Comment

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

          #5
          Did you try this:

          Note that since the service discovery (LLD) is already done you may need to manually delete the items for those services.
          Markku

          Comment

          • klowet
            Junior Member
            • Jun 2019
            • 10

            #6
            I use it like this:

            Macro:
            Code:
            {$SYSTEMD.NAME.SERVICE.MATCHES}
            Value:
            Code:
            ^(firewalld|fail2ban)\.service

            Comment

            Working...