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
Lorenz Kästle
a218ba8d92
Remove clear variable from disk CheckCommand
...
This commit removes the -C parameter from the disk CheckCommand
since there is no possible way to use it in any functional capacity.
-C (or --clear) would reset the thresholds given previously
to allow for setting different thresholds for following filesystmes.
As an example:
check_disk -w 50% -c 5% -p / -C -w 1% -p /home
would only set the warning threshold for /home.
Since there is no way to use it reasonably with the Icinga 2
implementation of check_disk (since thresholds can only be
given once and the order is undefined), the clear flag
has no worth here.
My suggestion is to remove it avoid suggesting that it might
be used, but I left it as a comment in the ITL to prevent
the next person from "adding a missing parameter".
2025-08-19 10:58:48 +00:00
Lorenz Kästle
60fafcb18d
Add plain fping CheckCommand to ITL
2025-07-09 13:24:11 +00:00
Silas
41c0148e72
Include "procs-to-show" to ITL check_load command
2025-04-30 15:28:07 +02:00
Silas
9ecf7714e3
Update command-plugins.conf to ensure compatibility with nagios-plugins' check_disk ( #10395 )
...
* Update command-plugins.conf to ensure compatibility with nagios-plugins' check_disk
* Update 10-icinga-template-library.md
* Update 10-icinga-template-library.md
2025-04-08 09:02:02 +02:00
Bruno Lingner
daf36ae362
add _extra_opts argument to plugins that support it
2025-01-20 14:13:28 +01:00
MarcusCaepio
a662cb1a6b
Update ITL for check_ssh
...
Adds parameters for check_ssh (-r and -P) based on
nagios-plugins 2.3.3 / monitoring-plugins 2.3
Fixes #9922
2025-01-08 10:31:25 +01:00
Alvar Penning
e620f9515b
ITL: Add --exclude-process to check_procs
...
For check_procs, both the Monitoring Plugins' implementation[0] and the
Nagios Plugin[1] are supporting the "-X" or "--exclude-process" flag to
exclude one or many processes by name. However, this flag is missing
here in the Icinga Template Library.
The Nagios Plugin implementation also comes with "-j" and "-g" for
FreeBSD jails and Linux cgroups, respectively. But, to keep it
compatible, I would ignore these for the moment.
Closes #10226 .
[0]: https://www.monitoring-plugins.org/doc/man/check_procs.html
[1]: https://nagios-plugins.org/doc/man/check_procs.html
2024-11-13 09:36:06 +01:00
Lorenz Kästle
ba200f74e1
Add check_curl to ITL ( #9205 )
...
* Add check_curl to ITL
* small fixes and boolean defaults
* Add documentation for check_curl
* Replace dash with underscore in variables
* Add link to documentation
* Change order of argument attributes to adhere to style guide
* Shorten description of tls option in itl
* Just remove information for check_curl options
* itl - check_curl: document -4 and -6
* itl - check_curl: Add haproxy option for check_curl
* itl - check_curl: add cookie-jar option
* itl - check_curl: add continue_after_certificate option
* itl - check_curl: replace dashes with underscores in macros
* Update itl/command-plugins.conf
Co-authored-by: alvar <8402811+oxzi@users.noreply.github.com>
* Update itl/command-plugins.conf
Co-authored-by: alvar <8402811+oxzi@users.noreply.github.com>
* itl - check_curl: add missing option documentation and reorder options
* itl - check_curl: Split certificate lifetime in two parameters
* itl - check_curl: replace remaining instances of single parameter for remaining valid time
* check_curl: allow assignements for host without address set
* check_curl: fix typo expext -> expect
* itl - check_curl: add state-regex option and documentation
* Add Tls options with version and without
* itl - check_curl: fix indentation
* itl - check_curl: Set v4/v6 variables
* itl - check_curl: Edit description for --sni
* doc - check_curl: fix singular-plural typo for curl_max_redir(s)
* doc/check_curl: sni description
* itl - check_curl: remove superfluous brace
* itl - check_curl: add extra-opts parameter
---------
Co-authored-by: alvar <8402811+oxzi@users.noreply.github.com>
2024-08-30 10:25:27 +00:00
Tobias Bauriedel
600281bfa0
Fix ITL for http CheckCommand definition
...
There were some missing arguments.
ref/NC/806131
2024-08-27 14:07:43 +02:00
Nicolas Berens
91b1638a01
add multiplier option to check_snmp which is available since monitoring-plugins v2.3.3, refs #9907
2024-08-26 15:36:21 +02:00
Alexander A. Klimov
d86e2556b4
ITL: check_disk: ignore more fuse* filesystems
...
not to run into permission denials.
Also, ignore fuse.* for the case check_disk already supports it:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1904
2024-04-03 13:02:25 +02:00
Julian Brost
2ea866248b
Merge pull request #9642 from Icinga/9486a
...
ITL: let check_disk choose sane default units by itself
2023-01-27 22:22:24 +01:00
Alexander A. Klimov
3a1b080338
ITL: let check_disk choose sane default units by itself
...
so it is responsible for output readability, prefdata precision
and SI vs. IEC on its own.
2023-01-27 16:21:40 +01:00
Julian Brost
b10c288146
Merge pull request #8005 from Icinga/feature/http-verify-host-7969
...
check_http: support --verify-host
2023-01-24 13:02:08 +01:00
Alexander Aleksandrovič Klimov
e628c73fb1
check_icmp: double packet loss thresholds
...
... to get not instantly critical after 1 packet lost (20%), but after 2.
2023-01-16 12:58:35 +01:00
Lorenz
67b025f69b
Add check_disk option to add inode numbers into perfdata ( #9494 )
2022-08-25 17:33:11 +02:00
Marc Rupprecht
70f88249fd
ITL: Add fuse.portal to disk_exclude_type for new Ubuntu LTS
2022-07-28 09:42:14 +02:00
Alexander A. Klimov
e4c22e3973
ITL: apt: render vars.apt_[dist_]upgrade=true as --[dist-]upgrade, not --[dist-]upgrade=true
...
but preserve vars.apt_[dist_]upgrade=-s as --[dist-]upgrade=-s.
2022-07-20 17:25:22 +02:00
Adam James
47b1981fac
ITL: Add support for "--sni" option to check_tcp
...
fixes #9307
2022-06-30 13:02:56 +01:00
Alexander Aleksandrovič Klimov
ff6cdc2c71
Merge pull request #9296 from Napsty/nrpe-v3
...
Add nrpe v3 parameter in ITL
2022-06-22 12:40:24 +02:00
Alexander A. Klimov
069c3968d9
Introduce Command#arguments[].sep
...
... for letting check commands produce argv like --key=value,
not just --key value.
refs #6277
2022-05-11 17:50:12 +02:00
Claudio Kuenzler
193aff93cf
Adjust description
2022-04-04 13:02:30 +02:00
Napsty
896590e740
Adjust descriptions
2022-03-30 16:04:48 +02:00
Napsty
cc57698c3b
Add nrpe v3 parameter in ITL
2022-03-25 14:39:19 +01:00
Alexander Aleksandrovič Klimov
cf8923d628
Merge pull request #9016 from Napsty/nrpe-disable-logging
...
Add new check_nrpe parameter -D to disable logging to syslog
2022-02-21 12:19:56 +01:00
C C Magnus Gustavsson
a9b6b1dba0
ITL: Add --extra-opts parameter to the mysql and pgsql CheckCommand definitions
2022-01-31 11:40:04 +01:00
Napsty
195fae6113
Add ITL config option for different NRPE payload size/length
2021-10-12 08:29:07 +02:00
Peter Eckel
fd9f69b3a2
Make http_header repeatable ( fixes #8573 ) ( #8574 )
...
* Made http_header repeatable (fixes #8573 )
* Removed explicit repeat_key option for a default setting
* Fixed closing backtick
2021-10-01 17:40:38 +02:00
Napsty
57bea5e3c4
Add new check_nrpe parameter -D to disable logging to syslog
2021-09-29 09:46:55 +02:00
Alexander Aleksandrovič Klimov
b4e85235aa
Merge pull request #8020 from Icinga/bugfix/itl-mysql-s-h-8017
...
check_mysql: don't set -H if -s is given
2021-01-28 11:27:34 +01:00
Iustin Pop
8509e55b78
Improve check_dns command when used with monitoring-plugins 2.3
...
Version 2.3 of monitoring plugins did two things:
- change how multiple addresses are expected; no longer a single
argument, with comma separated values, but repeated "-a" argument;
sadly this is incompatible change, and configs need to be changed
manually; this is commit
monitoring-plugins/monitoring-plugins@a03068743f ;
- add a "-L" argument that requires all passed addresses to be
matched, which allows for stronger validation (all vs. at least
one); this is commit
monitoring-plugins/monitoring-plugins@fd9a7d2e00 ;
Both of these were committed a long while ago (2018), but were only
released very recently, in the 2.3 release (December 2020).
I've tried to make the descriptions as good as I could, but not sure
they're very readable, feedback welcome.
Signed-off-by: Iustin Pop <iustin@k1024.org>
2021-01-18 18:10:33 +01:00
Alexander Aleksandrovič Klimov
d059947107
Merge pull request #8109 from Icinga/bugfix/assignment-of-check-address-blocks-check-by-hostname-4965
...
ITL: Assignment of check_adress in check_http blocks check by hostname
2020-11-02 14:47:59 +01:00
Yonas Habteab
ed6546ca5a
Check whether $http_address$ is empty
2020-07-10 12:31:09 +02:00
Alexander A. Klimov
a8cf3b39a3
check_mysql: don't set -H if -s is given
...
... as -H overrides -s.
refs #8017
2020-05-19 17:24:21 +02:00
Alexander A. Klimov
3c60d851fb
check_http: support --verify-host
...
refs #7969
2020-05-13 10:41:24 +02:00
Jochen Friedrich
83977c5754
Add parameters needed for PKI usage.
...
To use PKI with nrpe, a CA must be specified and anonymous DH must be disabled.
If client certificates are enforced by nrped, additionally a private cert and key
must be specified. This patch adds all these parameters as well TLS configuration
options to limit the TLS version and crypto parameters:
nrpe_ca - The CA file to use for PKI. Defaults to none.
nrpe_cert - The client cert file to use for PKI. Defaults to none.
nrpe_key - The client key file to use for PKI. Defaults to none.
nrpe_ssl_version - The SSL/TLS version to use. Defaults to TLSv1+.
nrpe_cipher_list - The list of SSL ciphers to use. Default depends on check_nrpe version.
nrpe_dh_opt - Anonymous Diffie Hellman use: 0 = deny, 1 = allow, 2 = force.
Default depends on check_nrpe version.
2020-03-16 13:49:57 +01:00
Alexander A. Klimov
73b9e794d3
CheckCommand ssl: s/-N/--sni/
2020-01-08 10:15:29 +01:00
Max Deparade
0e00ffee39
Adding check_uptime to itl
2019-08-26 11:13:58 +02:00
Peter Eckel
31deb75d3e
Provide the snmpv3_context option and the corresponding item in the documentation
2019-06-03 10:56:00 +02:00
Michael Friedrich
d14a88235d
Replace Copyright header with a short version, part I
...
CLion -> replace in path
2019-02-25 14:48:22 +01:00
BarbUk
c97c42bff4
Fix ITL CheckCommand disk
...
Add -N/--include-type option, available since release 1.5.
2018-12-20 13:22:59 +04:00
Adam James
3a4f075f72
ITL: Support --list argument to check_apt
2018-12-05 09:32:54 +00:00
Michael Friedrich
eabea68c56
icinga.com: Update config files (ITL, etc.)
2018-10-18 09:37:59 +02:00
Robert Lindgren
acfef7c10d
squashfs ignored
...
Add squashfs to check_disk ignore list, used on Ubuntu for snaps.
2018-07-30 18:22:22 +02:00
Markus Frosch
fa68c9255b
itl: Ignore overlay and netfs filesystems
...
Usually used by Docker and other containers and namespaces
2018-03-02 12:44:08 +01:00
Gunnar Beutner
414a8ec534
Move the "passive" check command to command-icinga.conf
2018-01-30 14:58:57 +01:00
Michael Insel
548027808b
ITL by_ssh add -E parameter
...
This adds the -E parameter to the by_ssh ITL CheckCommand definition.
refs #4094
2018-01-24 20:51:43 +01:00
Michael Insel
158ae2188e
Change copyright header for 2018
2018-01-02 12:08:55 +01:00
Michael Friedrich
49931ea732
Merge pull request #5717 from hrld/patch-1
...
add order tags to disk check
2017-12-19 09:22:22 +01:00