Commit Graph

32 Commits

Author SHA1 Message Date
Markus Frosch 930dd83b94 windows: Avoid 32-bit linker problems for check_swap 2019-04-05 10:34:07 +02:00
Michael Insel 20fc8960e1 Use Unicode functions inside check_swap
This ensures that always Unicode functions are used in check_swap.
2019-04-05 09:24:32 +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
Michael Insel 4961e9ba62 Fix check_swap percentage calculation
This fixes the check_swap percentage calculation. When the pagefile is
turned off the available swap and total swap are 0 which leads to a
wrong calculation and misformated output.

refs #6913
2019-02-08 17:01:49 +01:00
Michael Insel 7ba4d49505 Fix check_swap formatting
This fixes a small formatting mistake introduced by #6811. To keep the
check_swap output in sync with all other plugins I fixed the formatting.
2019-01-30 19:41:24 +01:00
Michael Insel 160a7716c5 Fix state conditions in check_memory and check_swap
This fixes the state conditions in check_memory and check_swap. This
turns the if/else if/else statements in simple if statements, since they
won't work properly when both thresholds are broken.

This also implements a new function to get a given state as wstring.
2018-11-29 22:16:57 +01:00
Michael Friedrich dab53448bc icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
Michael Insel 9390d7e453 Add 'used' feature to check_swap
This implements the _used_ feature to check_swap to print the used swap
instead of the default available swap.
2018-10-06 20:26:43 +02:00
Michael Friedrich fbf4546357
Merge pull request #6313 from Icinga/fix/win-check-swap
Fix wrong calculation of check_swap windows plugin
2018-09-27 10:08:47 +02:00
Michael Insel ab1c8d93e6 Fix wrong calculation of check_swap windows plugin
This fixes the wrong calculation of the check_swap windows plugin.
2018-06-24 00:24:14 +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
Michael Insel 3171b9548b Fix check_swap build error 2017-12-21 19:13:48 +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
Michael Friedrich b7caf0820d Ensure that *.icinga.com is used everywhere
fixes #13897
fixes #13277
2017-01-10 17:19:12 +01:00
Per von Zweigbergk 5c18c1ed2d Fixed precision for percentage calculations with large units
The check_memory and check_swap plugins on Windows were incorrectly
rounding the memory/swap measurements to the nearest unit prior to
calculating a percentage. This was causing imprecise percentage
values when the unit selected meant that the values in question had
few significant figures.

fixes #10497

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>
2016-02-19 11:30:12 +01:00
Gunnar Beutner 599929b0f6 Update copyright headers for 2016 2016-01-12 08:29:59 +01:00
Michael Friedrich f7b5aa33ce Fix a couple of wrong white spaces 2015-09-18 13:04:09 +02:00
Jean Flach 56f92f7846 Refactor plugin code 2015-03-23 13:07:02 +01:00
Jean Flach 377f66c403 Add some failsafes to the windows plugins 2015-02-17 15:54:23 +01:00
Jean Flach acff66875d Add check_memory, update check_swap, thresholds
Adds check_memory which works like check_swap which has been updated to work like check_memory
Both sport a -u(nit) option with MB as default, like their linux versions.
A possible bug with all plugins having the -u(nit) option when using -u kB has been fixed. Don't use icinga to monitor you commodore though.

refs #8287 #8060
2015-02-03 10:22:09 +01:00
Jean Flach 25f2636a77 Fix check_swap returning wrong status without thresholds. 2015-02-02 15:11:11 +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
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 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 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