From f76eb8d0beec9abf2ac355569bf00de873b12a16 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Thu, 7 Sep 2023 08:50:49 +0200
Subject: [PATCH] check_systemdunit: update doc page

---
 docs/20_Checks/check_systemdunit.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/docs/20_Checks/check_systemdunit.md b/docs/20_Checks/check_systemdunit.md
index b0fce25..631acfe 100644
--- a/docs/20_Checks/check_systemdunit.md
+++ b/docs/20_Checks/check_systemdunit.md
@@ -112,3 +112,16 @@ CRITICAL: Unit justadummy.service could not be found.
 ### Other units
 
 With ``$ ./check_systemdunit -l`` you get a grouped list of all unit types. check_systemdunit handles all types - not only services.
+
+### Regex examples
+
+Here are a few examples for services with regex:
+
+* different names on different os:
+  * ``check_systemdunit -r '(apache2|httpd)\.service'``
+* Some operateing write a service with "d" - some not. To define the service that can have the "d" or not
+  * ``check_systemdunit -r 'nmb[d]{0,1}.service'``
+  * ``check_systemdunit -r 'smb[d]{0,1}.service'``
+  * ``check_systemdunit -r 'ssh[d]{0,1}.service'``
+* Placeholders for version numbers
+  * ``check_systemdunit -r 'php.*fpm\.service'``
-- 
GitLab