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
f67286d3
Commit
f67286d3
authored
3 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add help
parent
a766dadf
No related branches found
No related tags found
1 merge request
!291
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_conn.md
+77
-0
77 additions, 0 deletions
docs/20_Checks/check_conn.md
with
77 additions
and
0 deletions
docs/20_Checks/check_conn.md
0 → 100644
+
77
−
0
View file @
f67286d3
## Check TCP or UDP connection
Script:
`check_conn`
It is a plugin to check oe or mmultiple tcp and udp connections to localhost or a remote system.
## 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_CONN
v1.2
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_conn.html
______________________________________________________________________
SYNTAX:
check_conn OPTIONS
You can create a file named ./check_conn.cfg
and add your connections there.
To start you can copy the file ./check_conn.cfg.dist
OPTIONS:
-h or --help show this help.
-t CONNECTION test given connection; This param ignores entries
in the config file. For multiple connection tests
quote the parameter value and set spaces between
the connections.
PARAMETERS:
CONNECTION Connection in the same syntax like in the config:
tcp/host/port
udp/host/port
EXAMPLES:
check_conn If no param is given it checks entries in ./check_conn.cfg
check_conn -t "tcp/api.example.com/443"
Check a single connection
check_conn -t "tcp/api.example.com/443 tcp/localhost/3306"
Check multiple connections.
```
## Examples
Check a single tcp port which is currently open:
```
txt
./check_conn -t "tcp/localhost/80"
OK: tcp check - 1 checks - 1 OK; 0 warnings; 0 errors
tcp/localhost/80 OK
```
Check multiple connections - one port is open the other closed:
```
txt
./check_conn -t "tcp/localhost/22 tcp/localhost/443"
CRITICAL: tcp check - 2 checks - 1 OK; 0 warnings; 1 errors
tcp/localhost/22 FAILED
tcp/localhost/443 OK
```
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