Commit graph

31 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
Michael Insel
1bd91b0998 Add summarized performance data to check_network
This adds two new performance data values to check_network, 'network_in'
and 'network_out'.

On systems with multiple network interfaces the 'network_in' value holds
the summarized input bytes and the 'network_out' value holds the
summarized output bytes.
2019-09-06 20:46:32 +02:00
Michael Friedrich
fd6c9c3fbe
Merge pull request #7002 from Icinga/bugfix/check_network-percent-6155
check_network -h: drop non-existent feature
2019-03-19 09:27:55 +01:00
Alexander A. Klimov
9f26569bcc check_network -h: drop non-existent feature
refs #6155
2019-03-08 16:55:06 +01: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
Michael Friedrich
dab53448bc icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
Michael Friedrich
071617da9f Conform to the Plugin API spec for performance label quoting
Single quotes are allowed, double quotes are not.
2018-06-22 11:12:57 +02:00
Gunnar Beutner
0c006637ea Clean up the Icinga plugins a bit 2018-03-01 15:27:09 +01:00
Michael Insel
158ae2188e Change copyright header for 2018 2018-01-02 12:08:55 +01:00
Jean Flach
2636e6a77a Whitespace fix
What does this change?
* Remove use of spaces for formatting
These could be found by using `grep -r -l -P '^\t+ +[^*]'
* Removal of training whitespaces
* A few lines longer than 120 chars
2017-12-20 14:53:52 +01:00
Gunnar Beutner
42744fde5b Remove extraneous whitespace 2017-12-14 08:50:09 +01:00
Michael Friedrich
b7caf0820d Ensure that *.icinga.com is used everywhere
fixes #13897
fixes #13277
2017-01-10 17:19:12 +01:00
Jean Flach
eabb54eab6 Spell ISATAP correctly and set noisatap in the ITL
refs #12155
2016-09-28 11:26:08 +02:00
Matthias Schales
8c35c821c6 Update perfdata; Add skipping of isatap interfaces with parameter
Also updates interface names to fix perfdata output

refs #12155
2016-09-28 11:20:42 +02:00
Gunnar Beutner
599929b0f6 Update copyright headers for 2016 2016-01-12 08:29:59 +01:00
Per von Zweigbergk
aa7ad721c7 Change B/s unit to B to comply with Nagios plugin spec
Unfortunately B/s is not a valid unit in the Nagios plugin specification. As a bit of a sad workaround, we set the unit to B, which is technically incorrect, but we can't really do much about that without amending the spec...

fixes #10544

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
2016-01-05 15:18:34 +01:00
Per von Zweigbergk
370a1127e9 Fixed invalid quoting for network device names
Quoting needs to be with single quotes, not double quotes. Also single quotes need to be escaped.

refs #10544

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
2016-01-05 15:18:22 +01:00
Jean Flach
56f92f7846 Refactor plugin code 2015-03-23 13:07:02 +01:00
Jean Flach
62b2bae6b6 Update Window plugins' usage strings 2015-03-06 12:14:09 +01:00
Jean Flach
377f66c403 Add some failsafes to the windows plugins 2015-02-17 15:54:23 +01:00
Jean Flach
9791a8b279 Fix check_network.exe always returning warning
fixes #8306
2015-02-02 09:21:46 +01:00
Michael Friedrich
78bfd0204c Update copyright year 2015-01-22 12:00:23 +01:00
Jean Flach
c11f2d5ca2 Add -d/--debug option for windows plugins
#fixes 8119
2015-01-12 15:53:25 +01:00
Jean Flach
2e9944f4bd Change some things up in the windows-plugins
refs #7886 #7778 #8060 #8115
2014-12-19 10:21:38 +01:00
Jean Flach
0054e78a58 Use <reinterpret_cast>() 2014-11-14 16:26:30 +01:00
Jean Flach
e1b5954e62 Clean up check plugins more 2014-11-14 14:36:10 +01:00
Jean Flach
616716dc55 Clean up check plugins.
fixes #7670 #7669
2014-11-14 13:57:54 +01:00
Jean Flach
e187f405d9 Improve readability and output of check_network
fixes #7668
2014-11-14 13:09:04 +01:00
Jean Flach
22e3e48669 Fix check_plugins dying with certain parameters 2014-11-10 14:39:12 +01:00
Jean Flach
83e6fb3083 Make check plugins decent
fixes #7242
2014-11-06 16:36:42 +01:00
Jean Flach
ea8fd12a07 Add Windows plugins
refs #7242
2014-11-06 15:17:08 +01:00