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
c1e91773
Commit
c1e91773
authored
1 month ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update check_ceph_diskfree
parent
0fecb6de
No related branches found
No related tags found
1 merge request
!297
Simple task/7546 icinga check für ablaufende gitlab tokens
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
check_ceph_diskfree
+7
-3
7 additions, 3 deletions
check_ceph_diskfree
docs/20_Checks/check_ceph_diskfree.md
+8
-2
8 additions, 2 deletions
docs/20_Checks/check_ceph_diskfree.md
with
15 additions
and
5 deletions
check_ceph_diskfree
+
7
−
3
View file @
c1e91773
...
...
@@ -22,11 +22,12 @@
# 2023-06-19 v1.4 <axel.hahn@unibe.ch> no more tmpfile
# 2023-07-27 v1.5 <axel.hahn@unibe.ch> update help page
# 2023-10-20 v1.6 <axel.hahn@unibe.ch> harden sudo command execution
# 2025-02-12 v1.7 <axel.hahn@unibe.ch> Show -w and -c param in help
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
export
self_APPVERSION
=
1.
6
export
self_APPVERSION
=
1.
7
typeset
-i
iWarning
=
0
typeset
-i
iCritical
=
0
...
...
@@ -48,6 +49,9 @@ $(basename $0)
OPTIONS:
-h or --help show this help.
-w VALUE warning level (default: 70)
-c VALUE critical level (default: 90)
EOF
}
...
...
@@ -68,8 +72,8 @@ esac
ph.require ceph
# set default / override from command line params
typeset
-i
iWarnLimit
=
$(
ph.getValueWithParam 70 w
"
$@
"
)
typeset
-i
iCriticalLimit
=
$(
ph.getValueWithParam 90 c
"
$@
"
)
typeset
-i
iWarnLimit
;
iWarnLimit
=
$(
ph.getValueWithParam 70 w
"
$@
"
)
typeset
-i
iCriticalLimit
;
iCriticalLimit
=
$(
ph.getValueWithParam 90 c
"
$@
"
)
if
!
data
=
$(
sudo
-n
/bin/ceph
df
2>&1
)
then
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_ceph_diskfree.md
+
8
−
2
View file @
c1e91773
...
...
@@ -27,11 +27,13 @@ From this repository ypu need next to this script:
$ check_ceph_diskfree -h
______________________________________________________________________
CHECK_CEPH_DISKFREE
v1.
6
CHECK_CEPH_DISKFREE
v1.
7
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_ceph_diskfree.html
______________________________________________________________________
Show available and free space on a ceph cluster.
...
...
@@ -44,6 +46,10 @@ check_ceph_diskfree
OPTIONS:
-h or --help show this help.
-w VALUE warning level (default: 70)
-c VALUE critical level (default: 90)
```
### Parameters
...
...
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