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
0c2289d8
Commit
0c2289d8
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add doc page
parent
17ba3f2d
No related branches found
No related tags found
1 merge request
!148
change authentication
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/20_Checks/_index.md
+1
-0
1 addition, 0 deletions
docs/20_Checks/_index.md
docs/20_Checks/check_couchdb.md
+89
-0
89 additions, 0 deletions
docs/20_Checks/check_couchdb.md
docs/20_Checks/check_eol.md
+1
-1
1 addition, 1 deletion
docs/20_Checks/check_eol.md
with
91 additions
and
1 deletion
docs/20_Checks/_index.md
+
1
−
0
View file @
0c2289d8
...
...
@@ -14,6 +14,7 @@ There is one include script used by all checks:
*
[
check_ceph_osd
](
check_ceph_osd.md
)
*
[
check_ceph_status
](
check_ceph_status.md
)
*
[
check_clientbackup
](
check_clientbackup.md
)
*
[
check_couchdb
](
check_couchdb.md
)
*
check_couchdb-lb
*
[
check_cpu
](
check_cpu.md
)
*
[
check_cronstatus
](
check_cronstatus.md
)
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_couchdb.md
0 → 100644
+
89
−
0
View file @
0c2289d8
# check_couchdb
## Introduction
Check couchdb status.
### Requirements
*
a running couchdb service
*
authentication (see section Installation below)
## Syntax
```
text
> check_couchdb -h
______________________________________________________________________
CHECK_COUCHDB
v0.2
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_couchdb.html
______________________________________________________________________
Show couchdb status.
SYNTAX:
check_couchdb [-h] [-t FILE] -m MODE
OPTIONS:
-h or --help show this help.
-c CFGFILE set a custom config file
default: /etc/icingaclient/.couchdb
-m MODE test a value; for debugging purposes
EXAMPLE:
check_couchdb -m up
Check if couchdb is up and running
```
## Installation
The check script by default sources a file
``/etc/icingaclient/.couchdb``
.
It is a shell script with read permissions for the icinga user.
It contains a line with the url to couchdb
```
shell
# ls -l /etc/icingaclient/.couchdb
-r--------
.
1 icingaclient icingaclient 110 Aug 29 09:53 /etc/icingaclient/.couchdb
# cat /etc/icingaclient/.couchdb
export
COUCH_URL
=
http://USERNAME:PASSWORD@localhost:5984
```
The variable COUCH_URL will be used to request status information.
With parameter
``-c CFGFILE``
can define another location where to find the variable COUCH_URL.
## Checks
With the parameter
``-m METHOD``
you define what kind of check to perform.
### up
Simple check if couchdb is up and running.
`check_couchdb -m up`
returns
```
txt
OK: Couchdb status (value in /_up is 'ok')
Reponse:
{
"status": "ok",
"seeds": {
"couchdb@192.168.25.172": {
"timestamp": "2023-08-28T07:27:54.938619Z",
"last_replication_status": "ok",
"pending_updates": {
"_nodes": 0,
"_dbs": 0,
"_users": 0
}
},
"couchdb@192.168.25.61": {}
}
}
```
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_eol.md
+
1
−
1
View file @
0c2289d8
...
...
@@ -98,7 +98,7 @@ The check is build to be customizable. You can add
The related files are in 2 subdirectories with check_eol prefix:
```
```
txt
> ls -1 check_eol-data/ check_eol-versiondetect/
check_eol-data/:
databases.cfg
...
...
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