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
Merge requests
!295
Simple task/7546 icinga check für ablaufende gitlab tokens
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Simple task/7546 icinga check für ablaufende gitlab tokens
simple-task/7546-icinga-check-für-ablaufende-gitlab-tokens
into
master
Overview
0
Commits
6
Pipelines
0
Changes
6
Merged
Hahn Axel (hahn)
requested to merge
simple-task/7546-icinga-check-für-ablaufende-gitlab-tokens
into
master
3 months ago
Overview
0
Commits
6
Pipelines
0
Changes
6
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
bd470143
6 commits,
3 months ago
6 files
+
177
−
29
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
docs/20_Checks/check_file_age.md
0 → 100644
+
85
−
0
Options
## 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)
Loading