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
59b35806
Commit
59b35806
authored
2 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
create markdown help for check_file_age
parent
2d693d4c
Branches
Branches containing commit
No related tags found
1 merge request
!295
Simple task/7546 icinga check für ablaufende gitlab tokens
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/20_Checks/check_file_age.md
+85
-0
85 additions, 0 deletions
docs/20_Checks/check_file_age.md
with
85 additions
and
0 deletions
docs/20_Checks/check_file_age.md
0 → 100644
+
85
−
0
View file @
59b35806
## Check filesystem errors
Script:
`check_file_age`
**check_file_age**
checks if files are not out of date.
You can find non finisheing processes that do not write an output file or logfile anymore.
This check sends performance data.
## Requirements
*
sudo permission on /bin/journalctl to scan for the information
```
txt
icingaclient ALL=(ALL) NOPASSWD: /bin/journalctl
```
## Standalone installation
From this repository ypu need next to this script:
*
`inc_pluginfunctions`
shared function for all IML checks written in bash
## Syntax
```
txt
______________________________________________________________________
CHECK_FILE_AGE
v1.0
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_file_age.html
______________________________________________________________________
Check if files are not out of date.
You can customize the values for
* directory
* limits for warning and critical
* filename filter pattern
This plugin sends performancedata.
SYNTAX:
check_file_age [-h] [--dir PATH] [--filter FILTER] [--critical VALUE] [--warning VALUE]
OPTIONS:
-h, --help
this help
PARAMETERS:
-d, --dir PATH
set installation dir of iml deployment to find its check skript
default dir: /var/iml-backup
-c, --critical VALUE
critical level in days (default: 14)
-w. --warning VALUE
warning level in days (default: 7)
-f --filter FILTER
filter for filenames (default: *.*
EXAMPLE:
check_file_age
Check backup data with initial values
check_file_age -d /data/mybackups
Check iso files a given directory
check_file_age -d /data/mybackups -w 14 -c 28
Check iso files a given directory and customized limits
```
### Parameters
(none)
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