summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_icmp.c
AgeCommit message (Collapse)AuthorFilesLines
2025-06-23check_icmp: Add missing line ending in helpLorenz Kästle1-1/+1
2025-06-23check_icmp: trigger help before anything importantLorenz Kästle1-4/+6
2025-06-23check_icmp: add long options to helpLorenz Kästle1-27/+31
2025-06-23check_icmp: remove dead commentLorenz Kästle1-8/+0
2025-06-23check_icmp: remove unnecessary variableLorenz Kästle1-2/+1
2025-06-23check_icmp: correct output stringsLorenz Kästle1-12/+12
2025-06-23check_icmp: remove paket_interval, was never used anywayLorenz Kästle1-51/+37
2025-06-23Fix typoLorenz Kästle1-1/+1
2025-06-23check_icmp: cleanup some leftover commentsLorenz Kästle1-22/+1
2025-06-23check_icmp: add long options, add output format optionLorenz Kästle1-2/+50
This commit switches check_icmp from getopt to getopt_long to provide long options too and (most importantly) homogenize option parsing between the different plugins.
2025-06-23Improve check_icmp help outputLorenz Kästle1-29/+19
2025-06-20check_icmp: Remove signal handling and timeoutsLorenz Kästle1-17/+1
The timeout option was redundant in that the runtime of check_icmp was always limited by the input parameters and therefore timeout gets removed with this commit to avoid that confusion. The rest of the signal handlings was removed too, since the added complexity does not provide sufficient returns. If check_icmp gets a signal, it now dies like most other programs instead of trying to save some things and return a (arguably wrong) result.
2025-06-19Override state with min_hosts_aliveLorenz Kästle1-25/+14
2025-06-19Reintroduce min_hosts_aliveLorenz Kästle1-2/+22
2025-06-17Fix possible multiplication overflow?Lorenz Kästle1-1/+1
2025-06-17Improve error detection for threshold parsersLorenz Kästle1-34/+64
2025-05-18Format specifier fixesLorenz Kästle1-6/+6
2025-05-18some more fixesLorenz Kästle1-7/+8
2025-05-18Fix typosLorenz Kästle1-3/+2
2025-05-18Some more fixesLorenz Kästle1-27/+26
2025-05-18 WIP - check_icmp refactor 8Lorenz Kästle1-201/+304
2025-05-18 WIP - check_icmp refactor 7Lorenz Kästle1-85/+108
2025-05-18Clang-formatLorenz Kästle1-13/+12
2025-05-17 WIP - check_icmp refactor 6Lorenz Kästle1-359/+345
2025-05-16 WIP - check_icmp refactor 5Lorenz Kästle1-11/+16
2025-05-06 WIP - check_icmp refactor 4Lorenz Kästle1-73/+147
2025-05-05 WIP - check_icmp refactor 3Lorenz Kästle1-75/+75
2025-05-04WIP - check_icmp refactor 2Lorenz Kästle1-338/+386
2025-04-28WIP: check_icmp refactorLorenz Kästle1-628/+659
2025-04-02check_icmp: localise variablesLorenz Kästle1-119/+89
2025-04-02check_icmp: linter fixesLorenz Kästle1-57/+74
2024-11-28check_icmp: set rtmin initiallyLorenz Kästle1-1/+3
2024-11-28check_icmp: Add some lines to introduce some readabilityLorenz Kästle1-1/+10
2024-11-28check_icmp: clang-formatLorenz Kästle1-106/+188
2024-10-30check_icmp: Apply clang-format againLorenz Kästle1-25/+34
2024-10-16check_icmp: clang-formatRincewindsHat1-1/+7
2024-10-15check_icmp: Update copyrightRincewindsHat1-2/+2
2024-10-15check_icmp: Properly mark function with void inputRincewindsHat1-1/+1
2024-10-15check_icmp: Declare internal variables staticRincewindsHat1-8/+8
2024-10-15check_icmp: clang-formatRincewindsHat1-783/+742
2024-03-01check_icmp: keep performance data order in case of none-reachable hostsSven Nierlein1-30/+50
For responding hosts nothing changes: ./check_icmp -H 10.0.0.1 OK - 10.0.0.1 rta 0.336ms lost 0%|rta=0.336ms;200.000;500.000;0; rtmax=0.471ms;;;; rtmin=0.000ms;;;; pl=0%;40;80;0;100 In case the host is down, the performance data now contain 'U' according to: https://www.monitoring-plugins.org/doc/guidelines.html#AEN201 Old: ./check_icmp -H 10.0.0.99 CRITICAL - 10.0.0.99: Host unreachable @ 10.0.1.138. rta nan, lost 100%|pl=100%;40;80;0;100 Old: ./check_icmp -H 10.0.0.99 CRITICAL - 10.0.0.99: Host unreachable @ 10.0.1.138. rta nan, lost 100%|rta=U;;;; rtmax=U;;;; rtmin=U;;;; pl=100%;40;80;0;100 This confuses some performance graphing tools, ex.: pnp. Signed-off-by: Sven Nierlein <sven@consol.de>
2023-10-13Fix spelling stuffRincewindsHat1-1/+1
2023-10-13Add some more comments about the MOS scoreRincewindsHat1-0/+22
2023-10-09Even more code formatting and cleanupRincewindsHat1-21/+26
2023-10-09Do some more formattingRincewindsHat1-107/+107
2023-10-09Remove preprocessor macroRincewindsHat1-6/+5
2023-10-09Do some code formattingRincewindsHat1-16/+17
2023-10-09More consequent booleansRincewindsHat1-2/+2
2023-10-08fix unused variables compiler warningRincewindsHat1-0/+2
2023-10-08fix sign compare compiler warningsRincewindsHat1-2/+2