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
Commits
4640331f
Commit
4640331f
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update doc
parent
79114c3f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
check_eol.md
+16
-10
16 additions, 10 deletions
check_eol.md
inc_pluginfunctions.md
+4
-4
4 additions, 4 deletions
inc_pluginfunctions.md
readme.md
+34
-1
34 additions, 1 deletion
readme.md
with
54 additions
and
15 deletions
check_eol.md
+
16
−
10
View file @
4640331f
#
check EOL #
#
IML Checks for Icinga / Nagios
## Introduction ##
[
Home
](
readme.md
)
---
## check EOL
### Introduction
**check_eol**
is a plugin for Icinga/ Nagios. It detects the end of life of an OS or a product.
...
...
@@ -10,11 +16,11 @@ The status is "unknown" if a product or the eol date was not detected.
It is customizable / extendable to detect other products that are not included in the delivered basic config.
## Syntax
##
##
#
Syntax
``$ check_eol [-c CRITICAL] [-w WARING] PRODUCT VERSION``
### Parameters
###
###
#
Parameters
PRODUCT set a product; known product keys are listed below
VERSION set a version.
...
...
@@ -24,12 +30,12 @@ VERSION set a version.
You can set "os" as product to detect the (linux) distribution.
See examples below.
### Options
###
###
#
Options
-c set critical limit; default 90
-w set warning limit; default 365
## Examples
##
##
#
Examples
``check_eol php 7.4``
Show end of life for given php version 7.4
...
...
@@ -43,14 +49,14 @@ VERSION set a version.
``check_eol php detect``
Show the end of life for the detected php version
## Extend/ customize
##
##
#
Extend/ customize
The check is build to be customizable. You can add
*
add your own end of life dates
*
version detection for other products
### End of life dates
###
###
#
End of life dates
The dates are defined in the files
*check_eol-*
.cfg
*
.
Those contain lines with parsed information that must start at the begin of line:
...
...
@@ -86,7 +92,7 @@ Example output:
Limit Info: warn below 365 days; critical below 90 days
#### Files
####
#### Files
*
check_eol-data/os.cfg - contains eol dates for debian, centos, ubuntu
*
check_eol-data/check_eol-databases.cfg - Mariadb, PostgreSql
...
...
@@ -96,7 +102,7 @@ You can add your custom products and dates - it just must match *check_eol-*.cfg
Suggestion:
*check_eol-data/custom-[my category].cfg*
### Version detection
###
###
#
Version detection
If you use
``check_eol [product] [version]``
with an already known version in your monitoring check then the search for an eol date is done directly in the
*
cfg files (see above).
...
...
This diff is collapsed.
Click to expand it.
inc_pluginfunctions.md
+
4
−
4
View file @
4640331f
...
...
@@ -6,7 +6,7 @@
All scripts start with sourcing a shared bash file
. `dirname $0`/inc_pluginfunctions
``
. `dirname $0`/inc_pluginfunctions
``
In that script are several functions starting with prefix
**ph.**
(=plugin helper)
...
...
@@ -40,7 +40,7 @@ return default value or its override from command line.
Example:
typeset -i iWarnLimit=`ph.getValueWithParam 75 w "$@"`
``
typeset -i iWarnLimit=`ph.getValueWithParam 75 w "$@"`
``
This will set variable iWarnLimit based on CLI parameter -w [value] ... if it does not exist it gets the default 75.
...
...
@@ -55,7 +55,7 @@ set statuscode by verifying integer(!) value with crtical and warning limit
Example:
ph.setStatusByLimit $ramUsage $iWarnLimit $iCriticalLimit
``
ph.setStatusByLimit $ramUsage $iWarnLimit $iCriticalLimit
``
**ph.status**
[TEXT]
...
...
@@ -88,5 +88,5 @@ check if a binary PROG exists in search path (=are installed) - if not then exec
Example:
ph.reqire bc lsblk
``
ph.reqire bc lsblk
``
This diff is collapsed.
Click to expand it.
readme.md
+
34
−
1
View file @
4640331f
...
...
@@ -21,4 +21,37 @@ We use Icinga graphite module to show performance data. The templates are locate
## Checks
...
\ No newline at end of file
check_apache_requests
check_backup_one
check_ceph_diskfree
check_ceph_osd
check_ceph_status
check_clientbackup
check_couchdb-lb
check_cpu
check_cronstatus
check_disk-io
check_dns_responsetime
[check_eol)[check_eol.md]
check_haproxy_health
check_haproxy_status
check_memory
check_netio
check_netstat
check_opencpu
check_packages2install
check_proc_mem
check_proc_ressources
check_proc_zombie
check_reboot_required
check_sensuplugins
check_smartstatus
check_snmp_syno.sh
check_snmp_synology
check_ssl
check_systemdservices
check_timesync
check_uptime
inc_pluginfunctions
inc_pluginfunctions.md
paramtest
\ No newline at end of file
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