icinga2/plugins
Per von Zweigbergk 30f9a1e393 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-23 09:47:19 +01:00
..
CMakeLists.txt Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
README.md Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_disk.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_disk.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_load.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_load.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_memory.cpp Fixed precision for percentage calculations with large units 2016-02-23 09:47:19 +01:00
check_memory.h Fixed precision for percentage calculations with large units 2016-02-23 09:47:19 +01:00
check_network.cpp Change B/s unit to B to comply with Nagios plugin spec 2016-02-23 09:17:53 +01:00
check_network.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_perfmon.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_perfmon.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_ping.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_ping.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_procs.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_procs.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_service.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_service.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_swap.cpp Fixed precision for percentage calculations with large units 2016-02-23 09:47:19 +01:00
check_swap.h Fixed precision for percentage calculations with large units 2016-02-23 09:47:19 +01:00
check_update.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_update.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_uptime.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_uptime.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_users.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
check_users.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
thresholds.cpp Update copyright headers for 2016 2016-01-12 08:31:24 +01:00
thresholds.h Update copyright headers for 2016 2016-01-12 08:31:24 +01:00

README.md

Icinga 2 plugins for Windows

This collection of plugins is intended to provide basic functionality checks on windows machines.
They (mostly) conform to the nagios developer guidelines, returning adequate exit codes and printing a pertinent string with performance data.

Intallation

The plugins are installed as part of Icinga 2.

Requirements

  • Boost 1.41.0
  • Windows Vista, Windows Server 2008 or newer

Usage

Call a plugin with the "--help" option to receive information about its usage.
Most of them don't need any parameters to but all of them have a -w (warning) and -c (critical) option. Those accept, if not otherwise specified, value or percentage based thresholds or threshold ranges.

A few examples:
./check_command.exe -w 12 -c !60%
Adds a warning threshold of 12 and an inversed critical threshold of 60%

./check_command.exe -w ![20%-80%] -c [0%-40%]
The warning threshold is outside of 20% to 80% and the critical threshold is the range from 0% to 40%.
A critical state always overwrites a warning state, meaning the check would be critical with a value of 30%.

License

Icinga 2
Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/)

This program is free software; you can redistribute it and/or
modify it under the tems of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.