diff --git a/docs/20_Checks/check_systemdunit.md b/docs/20_Checks/check_systemdunit.md index b0fce25256acd962f3a99aec42613f6ca28f5b88..631acfee325c5f1d0ec97c379b749360cac22499 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'``