icinga2/plugins
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
..
CMakeLists.txt icinga.com: Update CMakeLists.txt 2018-10-18 09:35:18 +02:00
README.md icinga.com: Update everything else 2018-10-18 09:50:53 +02:00
check_disk.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
check_load.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
check_memory.cpp Fix state conditions in check_memory and check_swap 2018-11-29 22:16:57 +01:00
check_network.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
check_nscp_api.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
check_perfmon.cpp Fix check_perfmon to support non-localized names 2018-11-26 17:18:38 +01:00
check_ping.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
check_procs.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
check_service.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
check_swap.cpp Fix check_swap percentage calculation 2019-02-08 17:01:49 +01:00
check_update.cpp Merge pull request #6480 from ajaffie/feature/win-check-update-4720 2018-11-13 16:40:26 +01:00
check_uptime.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
check_users.cpp icinga.com: Update *.{h,c}pp 2018-10-18 09:27:04 +02:00
thresholds.cpp Fix state conditions in check_memory and check_swap 2018-11-29 22:16:57 +01:00
thresholds.hpp Fix state conditions in check_memory and check_swap 2018-11-29 22:16:57 +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-2018 Icinga Development Team (https://icinga.com/)

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.