summaryrefslogtreecommitdiffstats
path: root/plugins-root
AgeCommit message (Collapse)AuthorFilesLines
2023-10-08fix sign compare compiler warningsRincewindsHat1-2/+2
2023-10-08Initialise threshold variables properlyRincewindsHat1-1/+16
2023-10-07Fix typoRincewindsHat1-1/+1
2023-10-07Refactor new threshold parserRincewindsHat1-37/+45
2023-10-07Do some actual error checking on the threshold parserRincewindsHat1-6/+32
2023-10-06Remove useless return after crashRincewindsHat1-1/+0
2023-10-06Change function type of get_thresholds to better reflect the options and ↵RincewindsHat1-7/+14
describe it in general
2023-10-06Update commentRincewindsHat1-2/+2
2023-10-06Refactor get_threshold2 to be barely understandableRincewindsHat1-35/+65
2023-10-06check mallocDanijel Tasov1-0/+4
2023-10-06do not introduce new ints as boolsDanijel Tasov1-14/+16
2023-10-04Merge branch 'master' into merge-jitterdatamuc1-340/+331
2023-10-04unnecessary spaceDanijel Tasov1-1/+1
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-10-04readability improvementsDanijel Tasov1-3/+21
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-10-04remove sun ifdefDanijel Tasov1-5/+0
my be readded later with proper comments Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-10-04add some basic tests for the new modesDanijel Tasov1-1/+47
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-10-04update failure regexDanijel Tasov1-1/+1
2023-10-04fix host count on when checking multiple hostsDanijel Tasov1-21/+24
2023-10-04adjust check_icmp testsDanijel Tasov2-6/+6
2023-10-01Update copyrightRincewindsHat1-1/+1
2023-10-01Remove trailing linesRincewindsHat1-3/+0
2023-10-01Comment some endifs to make comprehension easierRincewindsHat1-2/+3
2023-10-01Use real booleansRincewindsHat1-17/+14
2023-10-01Homogenize whitespace usageRincewindsHat1-305/+305
2023-10-01Remove unnecessary type definesRincewindsHat1-20/+16
2023-09-28update-poDanijel Tasov1-1/+1
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-09-27cleanup more merge debrisDanijel Tasov1-8/+3
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-09-26Add some spaces to the outputDanijel Tasov1-19/+19
needed if multiple modes are used at once Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-09-26fixed commentDanijel Tasov1-1/+1
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-09-25Fix spelingDanijel Tasov1-1/+1
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-09-25Fix compile errorsDanijel Tasov1-8/+6
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-09-25exit UNKNOWN on -VDanijel Tasov1-1/+1
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-09-23fix merge errorDanijel Tasov1-1/+0
Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-09-23Merge branch 'jitter-orig' into merge-jitterDanijel Tasov1-31/+377
2023-09-23remove root checkDanijel Tasov1-3/+0
We can perfectly do icmp without root by using capabalities. So, instead of doing unsufficient checks beforehand, we just try and fail if it doesn't work. Signed-off-by: Danijel Tasov <m@rbfh.de>
2023-06-28Merge branch 'master' into compiler_warning_part_2waja1-4/+0
2023-04-18Refix spelling issuesRincewindsHat1-1/+1
2023-04-18Fixes for -WuninitializedRincewindsHat1-0/+1
2023-04-18Fixes for -Wunused-parametersRincewindsHat2-6/+10
2023-04-18Fixes for -WunusedRincewindsHat1-4/+0
* lib/utils_base.c * plugins/check_curl.c * plugins-root/check_dhcp.c Removed a line which theoretically can not do anything, but there was comment which indicated something else. Still trying this though.
2023-04-14Fix a lot of typos reported by codespellJan Wagner3-3/+3
2023-02-19Merge branch 'master' into check_icmp_cleanupRincewindsHat2-9/+9
2023-02-19check_icmp: Fix compiler warningRincewindsHat1-1/+1
This fixes a compiler warning which complains about an uninitialized value for a variable which is then returned. This had no real world impact, since the program would crash in the branch where result is not set. The variable is initialized to "-1" which would be the error for inet_pton.
2023-02-19check_icmp: Fix compiler warningRincewindsHat1-2/+3
This fixes a compiler warning with no real world impact. The compiler complains about a missing return, which is correct, but in that scenario the program would crash anyways, so this has no impact.
2023-02-01Link plugins against libcrypto to make hashes availableLorenz Kästle1-1/+1
2022-11-29check_icmp: fix parsing help/version long optionsAksel Sjögren1-8/+8
Fix parsing of the long options --help and --version. The special handling must be done before calling getopt(). This fixes erroneous output like: ./check_icmp --version ./check_icmp: invalid option -- '-' ./check_icmp: invalid option -- 'e' ./check_icmp: invalid option -- 'r' ./check_icmp: invalid option -- '-' ./check_icmp: invalid option -- 'e' ./check_icmp: invalid option -- 'r' Signed-off-by: Aksel Sjögren <asjogren@itrsgroup.com>
2022-11-04Replace DBL_MAX with INFITY to check if value was setRincewindsHat1-2/+3
2022-11-04Remove hardcoded DBL_MAX definitionRincewindsHat1-4/+0
2022-11-04Remove trailing whitespacesRincewindsHat1-12/+12
2022-07-14Set msg_namelen to the size of the sockaddr struct for the appropriate ↵eriksejr1-4/+8
address family and not sockaddr_storage (#1771) Co-authored-by: Erik Sejr <eriks@ssimicro.com> Co-authored-by: Lorenz <12514511+RincewindsHat@users.noreply.github.com>