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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Merge requests
!279
use ph.abort on missing requirements
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
use ph.abort on missing requirements
simple-task/7546-icinga-check-für-ablaufende-gitlab-tokens
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
simple-task/7546-icinga-check-für-ablaufende-gitlab-tokens
into
master
8 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c1cd9347
1 commit,
8 months ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
check_gitlab_tokens
+
3
−
3
View file @ c1cd9347
Edit in single-file editor
Open in Web IDE
Show full file
@@ -194,9 +194,9 @@ GITLAB_CONFIG=$( ph.getValueWithParam $GITLAB_CONFIG g "$@")
# --- check requirements
ph.require curl
.
"
${
GITLAB_CONFIG
}
"
||
exit
1
.
"
${
REST_CLIENT
}
"
||
exit
1
http.help
>
/dev/null
||
exit
1
.
"
${
GITLAB_CONFIG
}
"
||
ph.abort
"UNKNOWN: Could not read gitlab config
$GITLAB_CONFIG
"
.
"
${
REST_CLIENT
}
"
||
ph.abort
"UNKNOWN: Could not read
$REST_CLIENT
"
http.help
>
/dev/null
||
ph.abort
"UNKNOWN: http functions not available. Check -r
$REST_CLIENT
."
iWarnLimit
=
$(
ph.getValueWithParam
$iWarnLimit
w
"
$@
"
)
Loading