Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Commits
54c44ce6
Commit
54c44ce6
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update docs
parent
5da2f05e
Branches
Branches containing commit
No related tags found
1 merge request
!204
6784 detect multiple systemd instances
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/20_Checks/check_systemdunit.md
+7
-7
7 additions, 7 deletions
docs/20_Checks/check_systemdunit.md
with
7 additions
and
7 deletions
docs/20_Checks/check_systemdunit.md
+
7
−
7
View file @
54c44ce6
...
...
@@ -16,7 +16,7 @@ A unit is everything listed by systemctl command - services, timers, targets, ..
______________________________________________________________________
CHECK_SYSTEMDUNIT
v1.
6
v1.
7
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
...
...
@@ -139,14 +139,14 @@ Here are a few examples for services with regex:
### Check a service with multiple instances
Systemd services with multiple instances c
ontain an @ char
.
In the list of the systemctl command the
@ char is followed
by a number of the instance.
Systemd services with multiple instances c
an be detected automatically
.
In the list of the systemctl command the
an instance
by a number of the instance
in the unit name
.
#### All instances
To check if all instances are running use
``
@
*``
at the end of the servicename (like you would do with
``systemctl status myservice
@
*``
).
To check if all instances are running use
``*``
at the end of the servicename (like you would do with
``systemctl status myservice*``
).
The command
``check_systemdunit myservice
@
*``
will return a status line how many active and existing instanecs were found:
The command
``check_systemdunit myservice*``
will return a status line how many active and existing instanecs were found:
```
txt
OK: 4 of 4 myservice@* units are active
...
...
@@ -155,6 +155,6 @@ OK: 4 of 4 myservice@* units are active
#### A single instance
To check if all instances are running use
``
@
[number]``
at the end of the servicename.
To check if all instances are running use
``
myservice
[number]``
at the end of the servicename.
The command
``check_systemdunit myservice
@
2``
checks the 2nd instance. It is handled like single service check.
The command
``check_systemdunit myservice2``
checks the 2nd instance. It is handled like single service check.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment