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
3440a724
Commit
3440a724
authored
7 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'simple-task/7546-icinga-check-für-ablaufende-gitlab-tokens' into 'master'
update docs See merge request
!283
parents
7ba45c35
cc9ab760
Branches
Branches containing commit
No related tags found
1 merge request
!283
update docs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/20_Checks/check_gitlab_tokens.md
+16
-4
16 additions, 4 deletions
docs/20_Checks/check_gitlab_tokens.md
with
16 additions
and
4 deletions
docs/20_Checks/check_gitlab_tokens.md
+
16
−
4
View file @
3440a724
...
...
@@ -52,6 +52,10 @@ GITLAB_TOKEN='glpat-1234567890'
# REST_CLIENT='/some/where/rest-api-client.sh'
```
Hint:
If you need to skip the token check but the check was rolled out on a server then you can set
`GITLAB_TOKEN=SKIP`
. You can leave the other variables empty.
## Syntax
```
txt
...
...
@@ -59,7 +63,7 @@ GITLAB_TOKEN='glpat-1234567890'
______________________________________________________________________
CHECK_GITLAB_TOKENS
v1.
0
v1.
1
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
...
...
@@ -89,8 +93,16 @@ OPTIONS:
-c VALUE critical level (default: 10)
-g FILE path to GITLAB_CONFIG; default: /etc/icinga2/gitlab.cfg
-r FILE path to REST client; default: ./../inc/rest-api-client.sh
It overrides the variable REST_CLIENT.
There you can set/ override:
GITLAB_API='https://gitlab.example.com/api/v4'
GITLAB_CONFIG=<TOKEN>
REST_CLIENT="/opt/rest-api-client/rest-api-client.sh"
-r FILE path to REST api client
default: /opt/rest-api-client/rest-api-client.sh
The parameter overrides the variable REST_CLIENT.
-s DAYS Number of days for max age of token; default: 395
PARAMETERS:
...
...
@@ -110,7 +122,7 @@ EXAMPLES:
```
##
Example
##
Output
The execution of
`check_gitlab_tokens`
returns
...
...
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