diff --git a/docs/20_Checks/_index.md b/docs/20_Checks/_index.md new file mode 100644 index 0000000000000000000000000000000000000000..71c13cdf3694023b2bee1eba3024f9c1a6d0a4d4 --- /dev/null +++ b/docs/20_Checks/_index.md @@ -0,0 +1,41 @@ +# Checks + +## Shared functions + +There is one include script used by all checks: +[inc_pluginfunctions](inc_pluginfunctions.md) + +## Check scripts + +* check_apache_requests +* check_backup_one +* check_ceph_diskfree +* check_ceph_osd +* check_ceph_status +* check_clientbackup +* check_couchdb-lb +* [check_cpu](check_cpu.md) +* 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_data](check_snmp_data.md) +* check_snmp_synology +* check_ssl +* check_systemdservices +* check_timesync +* check_uptime +* hello diff --git a/check_cpu.md b/docs/20_Checks/check_cpu.md similarity index 100% rename from check_cpu.md rename to docs/20_Checks/check_cpu.md diff --git a/check_snmp_data.md b/docs/20_Checks/check_snmp_data.md similarity index 100% rename from check_snmp_data.md rename to docs/20_Checks/check_snmp_data.md diff --git a/inc_pluginfunctions.md b/docs/20_Checks/inc_pluginfunctions.md similarity index 100% rename from inc_pluginfunctions.md rename to docs/20_Checks/inc_pluginfunctions.md diff --git a/zz_template_check_.md b/docs/20_Checks/zz_template_check_.md similarity index 100% rename from zz_template_check_.md rename to docs/20_Checks/zz_template_check_.md diff --git a/docs/config.json b/docs/config.json new file mode 100644 index 0000000000000000000000000000000000000000..6b291ff32f0459c84d495a5b57703ae3774a70c5 --- /dev/null +++ b/docs/config.json @@ -0,0 +1,25 @@ +{ + "title": "IML Icinga Checks", + "author": "Axel Hahn", + "tagline": "Icinga checks written in Bash", + "ignore": { + "files": ["20_Checks/zz_template_check_.md"], + "folders": ["99_Not_Ready"] + }, + "html": { + "auto_toc": true, + "auto_landing": false, + "date_modified": false, + "jump_buttons": true, + "edit_on_github_": "iml-it/__PROJECT__/tree/master/docs", + "edit_on_": { + "name": "Gitlab", + "basepath": "https://git-repo.iml.unibe.ch/iml-open-source/icinga-checks/tree/master/docs" + }, + "links": { + "Git Repo": "https://git-repo.iml.unibe.ch/iml-open-source/icinga-checks" + }, + "theme": "daux-blue", + "search": true + } +} \ No newline at end of file diff --git a/docs/readme.md b/docs/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..9ed5d8e4409b6f32e77e43a1208e76fdbb9f1586 --- /dev/null +++ b/docs/readme.md @@ -0,0 +1,17 @@ +# IML Checks for Icinga / Nagios + +## Introduction + +IML - Institute for Medical Education at university in Bern, Switzerland. + +This is a collection of our checks. They are used on Linux systems (Debian, CentOS, Ubuntu) and written in Bash using some shared functions. + +We use Icinga graphite module to show performance data. The templates are located in a sister repository + + +📃 Sources: + +* Checks: <https://git-repo.iml.unibe.ch/iml-open-source/icinga-checks> +* Graphs (Graphite): <https://git-repo.iml.unibe.ch/iml-open-source/icinga-graphite-templates> + +📜 Licence: GNU GPL 3.0 diff --git a/docs/style.css b/docs/style.css new file mode 100644 index 0000000000000000000000000000000000000000..909562cb91d2a8335f4470332ef1e07bdb2ee44c --- /dev/null +++ b/docs/style.css @@ -0,0 +1,176 @@ +/* + + patch css elements of daux.io blue theme + version 2022-05-13 + +*/ + + +/* ---------- vars ---------- */ + +:root{ + + /* background colors */ + --bg:none; + --bg-body: #fff; + --bg-navlinkactive:#f4f4f4; + --bg-navlinkactive: linear-gradient(-90deg,rgba(0,0,0,0), rgba(40,60,80,0.05) 30%); + --bg-pre:#f8f8f8; + --bg-toc: #fff; + + /* foreground colors */ + --color: #234; + --navlinkactive:#f33; + --title: #aaa; + + --link:#12a; + --toclink:rgba(40,60,80,0.8); + + --h1: rgba(40,60,80,0.8); + --h1-bottom: 1px solid rgba(40,60,80,0.1); + --h2: #468; + --h3: #579; + +} + +/* ---------- tags ---------- */ + +a.Brand::before { + background: rgb(255,0,51); + color: #fff; + font-family: arial; + font-weight: bold; + padding: 0.5em 0.3em; + content: 'IML'; + margin-right: 0.4em; +} + +body, *{color: var(--color);} +body{background: var(--bg-body);} + + +a{color: var(--link);} +a:hover{opacity: 0.7;} + +h1>a{ color:var(--title);} +_h1:nth-child(1){position: fixed; background: var(--bg); box-shadow: 0 0 1em #ccc; padding: 0 1em} +h1:nth-child(1)>a{ color:var(--navlinkactive); } + +.s-content h1{color: var(--h1); font-size: 200%; font-weight:bold; margin-top: 2em; border-bottom: var(--h1-bottom);} +.s-content h2{color: var(--h2); font-size: 160%; } +.s-content h3{color: var(--h3); font-size: 140%; } +.s-content h4{margin: 0; font-size: 100%; text-align: center; background-color: rgba(0,0,0,0.05);padding: 0.3em;} + +.s-content pre{ + background: var(--bg-pre); +} + +/* ---------- classes ---------- */ + +.required{color:#a42;} +.optional{color:#888;} + + +/* ----- top left */ +.Brand, +.Columns__left { + background: var(--bg); + border-right: 0px solid #e7e7e9; + color: var(--color); +} +.Brand{font-size: 200%; + background_: linear-gradient(-10deg,#fff 50%, #ddd); + background: var(--bg); +} +.Columns__right__content { + background: var(--bg); +} + +/* ----- Navi left */ + +.Nav a:hover{ + background: none; + color: var(--navlinkactive) !important; +} + +.Nav__item--active { + border-right_: 0.3em solid var(--navlinkactive); +} +.Nav__item--active > a{ + background: var(--bg-navlinkactive); + color: var(--navlinkactive); +} +.Nav .Nav .Nav__item--active a { + color: var(--navlinkactive); +} +.Nav .Nav .Nav__item a { + opacity: 1; +} +.Nav__item--open > a { + background-color: var(--bg); +} + +.Nav a[href*="__Welcome"]{ + background: url("/icons/house.png") no-repeat 10px 4px ; + padding-left: 40px; +} +.Nav a[href*="__How_does_it_work"]{ + background: url("/icons/light-bulb.png") no-repeat 10px 4px ; + padding-left: 40px; +} + + + + +/* ---------- classes ---------- */ + +/* FIX smaller fnt size in tables */ +.s-content table { + font-size: 1em; +} + + +/* TOC */ +@media(min-width:1700px){ + .TableOfContentsContainer{ + position: fixed; + right: 2em; + top: 1em; + } +} + +.TableOfContentsContainer{ + border-top-left-radius: 1em; + background-color: var(--bg-toc); + border-left: 2px solid rgba(0,0,0,0.05); + padding: 0em; +} +.TableOfContentsContainer__content { + + border: none; + font-size: 0.5em; + +} +ul.TableOfContents ul{ + list-style-type: none; + padding-left: 1em; +} +.TableOfContentsContainer a{ color:var(--toclink);} + +.TableOfContentsContainer__content > .TableOfContents > li + li { + border-top: none; +} +.TableOfContentsContainer__content > .TableOfContents > li { + border-bottom: 1px dashed #ddd; +} + +/* pager - prev .. next */ +.s-content{ + margin-bottom: 6em; +} +.Pager{ + border-top: 1px dashed #aaa; margin: 0; padding: 1em; +} +.Pager a{ + color:var(--navlinkactive); +} diff --git a/readme.md b/readme.md index 597a0c7d0e890718e8e74812eacf538f5d9af5e5..6346c9e35959f0f146e4e388509d9d742fafbcae 100644 --- a/readme.md +++ b/readme.md @@ -2,18 +2,20 @@ ## Introduction -IML - we are the Institute for Medical Education at university in Bern, Switzerland. +IML - Institute for Medical Education at university in Bern, Switzerland. This is a collection of our checks. They are used on Linux systems (Debian, CentOS, Ubuntu) and written in Bash using some shared functions. -We use Icinga graphite module to show performance data. The templates are located in a sister repository. +We use Icinga graphite module to show performance data. The templates are located in a sister repository -## License -* Licence: GNU GPL 3.0 -* Source: - * Checks: https://git-repo.iml.unibe.ch/iml-open-source/icinga-checks - * Graphs (Graphite): https://git-repo.iml.unibe.ch/iml-open-source/icinga-graphite-templates +📃 Sources: + +* Checks: <https://git-repo.iml.unibe.ch/iml-open-source/icinga-checks> +* Graphs (Graphite): <https://git-repo.iml.unibe.ch/iml-open-source/icinga-graphite-templates> + +📗 Docs: see [./docs/](./docs) folder \ +📜 Licence: GNU GPL 3.0 ## Scripts