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
5d3e958e
Commit
5d3e958e
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add doc page for fs_writable
parent
f232c11d
No related branches found
No related tags found
1 merge request
!127
Update icinga checks and docs
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/20_Checks/_index.md
+1
-1
1 addition, 1 deletion
docs/20_Checks/_index.md
docs/20_Checks/check_fs_writable.md
+68
-0
68 additions, 0 deletions
docs/20_Checks/check_fs_writable.md
with
69 additions
and
1 deletion
docs/20_Checks/_index.md
+
1
−
1
View file @
5d3e958e
...
...
@@ -21,7 +21,7 @@ There is one include script used by all checks:
*
[
check_dns_responsetime
](
check_dns_responsetime.md
)
*
[
check_eol
](
check_eol.md
)
*
[
check_fs_errors
](
check_fs_errors.md
)
*
check_fs_writable
*
[
check_fs_writable
](
check_fs_writable.md
)
*
check_haproxy_health
*
check_haproxy_status
*
check_memory
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_fs_writable.md
0 → 100644
+
68
−
0
View file @
5d3e958e
# Check writable filesystem
## Introduction
**check_fs_writebale**
checks in the given directories a file can be touched.
The response is critical of one of the directory is not writable for the icinga client user.
## Requirements
(none)
## Syntax
```
txt
./check_fs_writable -h
______________________________________________________________________
CHECK_FS_WRITABLE
v1.2
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
______________________________________________________________________
Check if a filesystem is readonly in given directories.
In each of the given directories a random file will be touched.
The response is critical of one of the directory is not writable
for the icinga client user.
SYNTAX:
check_fs_writable [directory [more directories]]
OPTIONS:
-h or --help show this help.
PARAMETERS:
DIRECTORY where to touch a temporary file
default directories:
/tmp /var/tmp
EXAMPLE:
check_fs_writable /tmp /root /var/www
```
### Parameters
Add directories to check.
Set a directory that is writable for world or prepared to be accessible for the icinga user.
## Examples
`$ check_fs_writable`
returns
```
txt
OK: check if filesystem is writable in /tmp /var/tmp
--- touching something into /tmp
-rw-r--r-- 1 axel axel 0 27. Jul 16:00 /tmp/icinga_touch_testfile__7749_15502
--- touching something into /var/tmp
-rw-r--r-- 1 axel axel 0 27. Jul 16:00 /var/tmp/icinga_touch_testfile__30551_11189
```
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