Commit graph

206 commits

Author SHA1 Message Date
Yonas Habteab
91c7e60df8 Replace all existing copyright headers with SPDX headers
I've used the following command to replace the original copyright header
lines in a C-style comment block:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f -exec perl -pi -e 's{/\*[^*]*\(\s*c\s*\)\s*(\d{4})\s*Icinga\s+GmbH[^*]*\*/}{// SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n// SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```

For files that use shell-style comments (#) like CMakeLists.txt, I've
used this command:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f -exec perl -pi -e 's{#.*\(\s*c\s*\)\s(\d{4})\sIcinga\s+GmbH.*}{# SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n# SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```

And for SQL files:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f \( -name '*.sql' \) -exec perl -pi -e 's{--.*\(c\)\s(\d{4})\sIcinga\sGmbH.*}{-- SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n-- SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f \( -name '*.sql' \) -exec perl -pi -e 's{-- Copyright \(c\)\s(\d{4})\sIcinga\s+Development\sTeam.*}{-- SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n-- SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```
2026-02-04 14:00:05 +01:00
Napsty
66fa815c1b Add check_smart.pl plugin as smart-advanced command 2026-01-29 16:01:31 +01:00
Nils Czernia
0dbc1a7e6b ITL: Enhanced SMART attributes monitoring plugin check configuration to more parameters 2025-10-06 15:27:17 +02:00
Silas
124d191afa
add "--long-output" to ssl_cert command
Co-Authored-By: Julian Brost <julian.brost@icinga.com>
2025-08-18 12:06:40 +02:00
Dirk Wening
908519aa74
ITL: Add argument maintenance_mode_state to vmware_esx 2025-05-16 11:07:06 +02:00
Silas
8ab859d828
itl/ssl_cert: Add --ignore-maximum-validity option (#10396)
* Update web.conf - Include "--ignore-maximum-validity"

* Update 10-icinga-template-library.md

* Update 10-icinga-template-library.md

* Update 10-icinga-template-library.md
2025-04-08 09:18:38 +02:00
Peter Eckel
920ba0b2db
Added the --dane option to the command definition ssl_cert (#10196) 2025-01-08 10:47:37 +00:00
Nicolas Rodriguez
e881898ce0 Add missing option "--unplugged_nics_state" to vmware-esx-soap-host-net and vmware-esx-soap-host-net-nic 2024-12-03 15:23:46 +01:00
Yonas Habteab
c0b047b1aa
Merge pull request #10035 from Icinga/check_systemd_name_fix
check_systemd: Fix executable name and include latest arguments
2024-09-06 11:57:33 +02:00
Alvar Penning
e7670e9ba9
check_systemd: harmonize ITL w/ upstream
Harmonize the arguments with the upstream CheckCommand[0], including a
patch to use the ITL variables[1].

[0]: https://github.com/Josef-Friedrich/check_systemd/blob/main/contrib/icinga2/command.conf
[1]: https://github.com/Josef-Friedrich/check_systemd/pull/38

Co-Authored-By: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com>
2024-09-06 10:21:30 +02:00
Christian Gut
7cc8d81d5d
check_ssl_cert: integrate new option to set maximum validity (#9881)
* check_ssl_cert: integrate new option to set maximum validity

check_ssl_cert has a new option with a new default: --maximum-validity. This change allows for services to use that option to override the default of 397 days. It is needed, if you have internal certificates that have a longer duration.

---------

Co-authored-by: Alexander A. Klimov <alexander.klimov@icinga.com>
2024-05-27 09:59:36 +02:00
Alexander Aleksandrovič Klimov
b56839fe18
Merge pull request #9758 from liip-forks/OdyX-fix-ssl-cert-warnings
Fix ssl_cert deprecation warnings
2024-05-24 11:57:34 +02:00
Alvar Penning
a219436708
check_systemd: Fix executable name by dropping .py
The executable name for check_systemd's dropped the `.py` suffix for
version 2.0.3[0], released in April 2019[1]. However, the old name is
still being referenced, both in documentation as well as in the ITL's
CheckCommand's command, making it unusable.

Closes #9547.

[0]: https://github.com/Josef-Friedrich/check_systemd/compare/v2.0.2...v2.0.3#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
[1]: https://github.com/Josef-Friedrich/check_systemd/releases/tag/v2.0.3
2024-05-08 10:53:11 +02:00
Alexander Aleksandrovič Klimov
d3d74c237c
ITL: ssl_cert: vars.ssl_cert_cn: default to "$ssl_cert_altnames$"
This way vars.ssl_cert_altnames keeps working.
2023-07-17 19:12:52 +02:00
Didier 'OdyX' Raboud
0b8f65d562
ssl_cert allow HTTP request URL setting
This is available in check_ssl_cert since 2021-02-18 Version 1.137.0
2023-05-08 17:00:45 +02:00
Didier 'OdyX' Raboud
610ba8d27a
ssl_cert: drop now-unsupported --altnames
Fixes https://github.com/Icinga/icinga2/issues/9661
2023-05-08 16:38:01 +02:00
Didier 'OdyX' Raboud
47d65a191c
ssl_cert: replace deprecated -n with --match
Fixes https://github.com/Icinga/icinga2/issues/9661
2023-05-08 16:37:37 +02:00
Markus Weber
0bdcd08e02
Add the Option to disable RetryWrites to CheckCommand of mongodb (#9539)
* Add the Option to disable RetryWrites to CheckCommand for newer check_mongodb.py

* Add documentation foor the Option to disable RetryWrites in the MongoDB-Check
2023-01-27 15:59:40 +00:00
Julian Brost
1a158c400f
Merge pull request #9056 from Icinga/Al2Klimov-patch-5
check_logfiles: --winwarncrit is a flag, not a param
2023-01-24 14:01:55 +01:00
Julian Brost
3c2a8c98b6
Merge pull request #9045 from Icinga/feature/check_linux_netdev
ITL: add check_linux_netdev
2023-01-18 14:19:25 +01:00
Julian Brost
06d0e7fbb9
Merge pull request #9611 from Icinga/8992
ITL: vmware: support --open_vm_tools_ok, --no_vm_tools_ok
2023-01-17 14:44:59 +01:00
Alexander A. Klimov
c6dd6a092c ITL: add check_linux_netdev 2023-01-16 11:33:23 +01:00
Alexander A. Klimov
726db57c6c ITL: vmware: support --no_vm_tools_ok 2022-12-13 18:08:01 +01:00
Alexander A. Klimov
9902f9b88f ITL: vmware: sync updated (i.e. broken) CLI arg 2022-12-13 18:01:52 +01:00
Alexander A. Klimov
324b002c33 ITL: mongodb: support --ssl-ca-cert-file 2022-12-13 17:47:30 +01:00
Fabian Werner
e615b297f9
[ITL] Added some ignore options for check_ssl_cert (#9512) 2022-10-07 11:31:28 +00:00
Napsty
78ad74fea2 New additional parameters on esxi_hardware check 2022-07-08 08:45:59 +02:00
Christopher Peterson
286e84bb56
Add new option -a to the mem CheckCommand (#9385)
* To the `mem` CheckCommand, add support for `check_mem.pl`'s new argument `-a`

`-a           Check AVAILABLE memory (only Linux)`

* Update documentation for the CheckCommand `mem` to include the new `mem_available` option
2022-06-22 12:52:11 +02:00
log1-c
44a34cf070
Merge pull request #9103 from log1-c/patch-2
ITL: add all businessprocess module check parameters
2022-04-04 12:56:42 +02:00
Rostislav Opocensky
e05128fa3c
pass nwc_health check SNMPv3 args only if needed (#9095)
* pass nwc_health check SNMPv3 args only if needed

check_nwc_health fails if any of the SNMPv3 arguments were passed but
the SNMP version 3 protocol was not requested.

For instance the following works:

	check_nwc_health --hostname 192.0.2.3 --mode cpu-load \
		--protocol 1 --community public

While the following plugin invocation results in an error:

	check_nwc_health --hostname 192.0.2.3 --mode cpu-load \
		--protocol 1 --community public \
		--username joe --authpassword xxx

The superfluous SNMPv3 arguments may easily get inherited e.g. from host
templates.

* string()ify the result of macro() calls

Always convert results of macro("$nwc_health_protocol$") to strings
so both numbers and strings are correctly recognized.

* Revert "string()ify the result of macro() calls"

This reverts commit 3636b5b4ba.

Wrong method applied to the result of macro().

* string()ify the result of macro() calls

Always convert results of macro("$nwc_health_protocol$") in the
set_if clauses of the nwc_health command arguments to strings.
Both numbers and strings are then correctly recognized as the
nwc_health_protocol argument.

* string()ify the result of macro() calls

Always convert results of macro("$nwc_health_protocol$") in the
set_if clauses of the nwc_health command arguments to strings.
Both numbers and strings are then correctly recognized as the
nwc_health_protocol argument.
2021-12-07 15:29:34 +01:00
Christian Gut
b5132a59ef
check_ssl_cert: support --ignore-tls-renegotiation (#9042)
* check_tls_cert: support  --ignore-tls-renegotiation

Extend template, so we can support --ignore-tls-renegotiation

* Update docs
2021-11-02 12:05:30 +01:00
Alexander Aleksandrovič Klimov
13ca0e1dbc
check_logfiles: --winwarncrit is a flag, not a param 2021-10-29 20:25:23 +02:00
Peter Eckel
688de9dce7 [ITL] Added --datadir, --language and --perflimit for check_postgres 2021-10-01 19:53:53 +02:00
Alexander Aleksandrovič Klimov
0c22a84a01
Merge pull request #8927 from peteeckel/fix/check-ssl-cert-itl-8925
[ITL] Added --proxy for check_ssl_cert
2021-10-01 17:38:14 +02:00
Peter Eckel
4ca496e677 [ITL] Added the option to set PGCONTROLDATA for check_postgres 2021-07-22 17:24:37 +02:00
Peter Eckel
0a063cfdcc [ITL] Added --proxy for check_ssl_cert 2021-07-22 16:57:00 +02:00
Alexander Aleksandrovič Klimov
26588f5dfb
Merge pull request #8683 from BausPhi/feature/command-template-thola
Add ITL CheckCommands for Thola
2021-06-24 18:11:38 +02:00
BausPhi
0b27c2af70 Add ITL CheckCommand "thola check" 2021-06-24 12:58:21 +02:00
Julian Brost
46743f9b13
Merge pull request #8625 from XnS/feature/itl-ssl_cert-ignore-stc
Added new option ignore-sct for ssl_cert to ITL
2021-06-15 12:31:03 +02:00
Napsty
d5672dbb3c Add new -S parameter for esxi_hardware ITL 2021-05-28 11:06:59 +02:00
XnS
e4ca82f7cd upstream fixed their typo from stc to sct 2021-03-24 10:21:29 +01:00
XnS
c0e4e5d2d5 Added new option ignore-stc for ssl_cert to ITL 2021-02-08 15:29:53 +00:00
Lara
bcaa7d6292 ITL: Add check_systemd
The [check_systemd.py](https://github.com/Josef-Friedrich/check_systemd)
plugin will report a degraded system to your monitoring solution. It
requires only the
[nagiosplugin](https://nagiosplugin.readthedocs.io/en/stable) library.
2021-01-15 13:27:25 +01:00
MarcusCaepio
e5c04c35b4 Added new options for ipmi-sensor to ITL
Regarding my PR at https://github.com/thomas-krenn/check_ipmi_sensor_v3/pull/42
I want to add the new options to the Icinga ITL.
2020-11-25 16:10:30 +01:00
Rinck H. Sonnenberg
e1300afeee Added parameter to monitor a specific jail only, as this has been available in the original check_command for years but hasn't made it into the checkcommand yet 2020-04-03 13:18:53 +02:00
Philipp Dorschner
9455c906e1 ITL: Add notemp parameter to oracle health 2020-01-13 15:35:07 +01:00
Kálmán „KAMI” Szalai
070ac4442b Change file location, doc, and varaible names as requested in the review
https://github.com/Icinga/icinga2/pull/7540#pullrequestreview-302072030
2019-10-18 07:45:21 +02:00
Michael Friedrich
aab6c91e79 ITL: Add sar-perf 2019-08-16 13:46:22 +02:00
K0nne
f1d5a6bfd0
Add missing options to 'nwc_health' ITL CheckCommand 2019-08-01 11:12:24 +02:00
Michael Friedrich
c07cf95e4c ITL: Align plugins-contrib.d to PluginContribDir
That was missing in the past reviews.
2019-07-22 09:37:48 +02:00