Ad Widget

Collapse

How to ignore services in systemd template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amanogue
    Member
    • Mar 2015
    • 34

    #1

    How to ignore services in systemd template

    Hi all


    I`d like to exclude certain services to avoid receiving alerts about them. I have tried several regex expressions, but I can't get it to work."


    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 template serveral times but warnings still apears.

    Do you know how to solve it?

    BR
  • llinty
    Junior Member
    • Jan 2024
    • 14

    #2
    Hello,

    just try like this for the fist two services as an example:

    (sssd|selinux-autorelabel-mark)\.service

    It works from my side. Remove de beginning and end pattern characters.

    Hope this helps!

    Comment

    Working...