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
12f932a6
Commit
12f932a6
authored
1 month ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add help for check_ssl
parent
9a57aed7
No related branches found
No related tags found
1 merge request
!297
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_ssl.md
+76
-0
76 additions, 0 deletions
docs/20_Checks/check_ssl.md
with
76 additions
and
0 deletions
docs/20_Checks/check_ssl.md
0 → 100644
+
76
−
0
View file @
12f932a6
## Check ssl
Script:
`check_ssl`
**check_ssl_certs**
is a plugin to check an ssl connection to a host on given port.
## Requirements
*
openssl client
## Standalone installation
From this repository ypu need next to this script:
*
`inc_pluginfunctions`
shared function for all IML checks written in bash
## Syntax
Start the script without params to get the help.
```
txt
______________________________________________________________________
CHECK_SSL
v1.4
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_ssl.html
______________________________________________________________________
Check if ssl certificate of a given domain is still valid.
You can check https or any other port of a ssl enabled service like LDAPS,
IMPAS and others.
You can customize the values for warning and critical level.
SYNTAX: check_ssl [options] DOMAIN [PORT]
OPTIONS
-w VALUE warning level for expiration in days (default: 28)
-c VALUE critical level for expiration in days (default: 7)
PARAMETERS
DOMAIN domain to verify the ssl vertificate from (required)
PORT optional: port number to connect (default: 443)
EXAMPLES
check_ssl www.iml.unibe.ch 443
check https port 443
check_ssl -w 30 -c 14 ldap.example.com 636
check ldaps port 636 and set custom warning and critical level
```
## Examples
### Check Website with https
To check a domain name on port 443 add the domain to connect as parameter. The port number 443 is default and not needed.
```
txt
./check_ssl www.iml.unibe.ch
OK: www.iml.unibe.ch:443 - valid to Apr 23 00:38:13 2025 GMT (69 days left)
```
### Check Ldaps
```
txt
./check_ssl ldap.example.com 636
OK: ldap.example.com:636 - valid to Apr 6 00:44:42 2025 GMT (52 days left)
```
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