Commit graph

40 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
Yonas Habteab
43ba2da39c Replace std/boost::bind() function with lambda expression 2021-03-10 16:29:40 +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
3c5af89d5f Fix compiler warnings 2017-12-14 09:15:37 +01:00
Gunnar Beutner
42744fde5b Remove extraneous whitespace 2017-12-14 08:50:09 +01:00
Jean Flach
5af5d38c26 Replace boost foreach and bind
fixes #5821
2017-12-12 13:29:50 +01:00
Gunnar Beutner
858873b940 Replace boost::bind/boost::function with std::bind/std::function 2017-11-27 15:15:11 +01:00
Jean Flach
ba35e6cace Add ITL and documentation for new parameter 2017-07-24 10:14:15 +02:00
Jean Flach
1dc93d8910 Refactor code
refs #5421
2017-07-24 09:53:25 +02:00
mcktr
17866475ff Refactored code to add feature to check used space for check_disk 2017-07-20 19:16:42 +02:00
Michael Friedrich
b7caf0820d Ensure that *.icinga.com is used everywhere
fixes #13897
fixes #13277
2017-01-10 17:19:12 +01:00
Gunnar Beutner
599929b0f6 Update copyright headers for 2016 2016-01-12 08:29:59 +01:00
Gunnar Beutner
4fcb668b79 Ignore -W and -K arguments for check_disk on Windows
fixes #9913
2015-08-15 10:26:43 +02:00
Jean Flach
21e072332c Add path exclusion to check_disk.exe
Also do some refactoring and make -m do something

fixes #9201
2015-06-23 13:15:55 +02:00
Jean Flach
88f004a356 Decide state based on single drives
fixes #9197
2015-06-23 13:14:27 +02: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
Gunnar Beutner
daaa446f58 Remove redundant check 2015-03-02 13:21:06 +01:00
Jean Flach
377f66c403 Add some failsafes to the windows plugins 2015-02-17 15:54:23 +01:00
Gunnar Beutner
0913a96460 Ignore the -X option for check_disk (on Windows)
fixes #8405
2015-02-10 09:46:24 +01:00
Jean Flach
4771f79f35 Change how check_swap works and a debug line in check_disk
check_swap should now be faster and more accurate, it also checks against free space instead of taken swap.
The output and CMakeLists have been updated accordingly.

fixes #8287 refs #8060
2015-02-02 11:21:44 +01:00
Jean Flach
a4bfa99552 Change plugins output and update README
In their perfdata the plugins will now use absolute values for percentage thresholds.
Also the check_disks output is now more similar to the one of nagios/check_disk.
The README has also been improved.

refs #7886 #8060
2015-01-23 16:34:16 +01:00
Michael Friedrich
78bfd0204c Update copyright year 2015-01-22 12:00:23 +01:00
Jean Flach
40cba8eb5d Fix another case where debug lines were displayed 2015-01-13 09:51:49 +01:00
Jean Flach
fd6cdbbc01 Fix a debug line being displayed in non-debug mode 2015-01-13 09:41:53 +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
Gunnar Beutner
023cfc15bb Some minor plugin fixes 2014-11-19 06:40:58 +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
f85be08480 Improve check argument parsing 2014-11-13 15:57:10 +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