summaryrefslogtreecommitdiffstats
path: root/plugins/t
AgeCommit message (Collapse)AuthorFilesLines
2025-09-16Fix check_apt testsLorenz Kästle1-6/+8
2025-09-15fix number of testsLorenz Kästle1-1/+1
2025-09-15Adapt test to new error messageLorenz Kästle1-1/+1
2025-09-15Fix typosLorenz Kästle1-4/+4
2025-09-15Fix/adapt testsLorenz Kästle1-16/+27
2025-09-13check_curl: test adaption and output adaptionLorenz Kästle1-2/+2
2025-09-09Adjust number of testsLorenz Kästle1-1/+1
2025-08-27check_snmp: fix/adapt testsLorenz Kästle1-62/+41
2025-08-11Merge branch 'master' into refactor/check_usersLorenz Kästle6-108/+152
2025-07-06check_load: fix testsLorenz Kästle1-3/+3
2025-07-06Merge branch 'master' into refactor/check_loadLorenz Kästle1-88/+132
2025-03-31Try fixing some testsLorenz Kästle1-8/+9
2025-03-31check_disk: decrease precision to avoid false negatives with small ↵Lorenz Kästle1-1/+8
measurement changes
2025-03-30Add debugging to tests for CILorenz Kästle1-0/+3
2025-03-30Codespell fixesLorenz Kästle1-2/+2
2025-03-30Address check_disk changes in testsLorenz Kästle1-86/+119
2025-03-13check_load: Remove output formatting test and adapt othersLorenz Kästle1-9/+9
2025-03-13Update more tests to current outputLorenz Kästle1-1/+1
2025-03-13Adapt tests moreLorenz Kästle3-5/+5
2025-03-13Merge branch 'master' into refactor/check_tcpLorenz Kästle8-74/+118
2025-03-13Adapt testsLorenz Kästle1-6/+6
2025-03-12Adapt testsLorenz Kästle1-2/+2
2025-03-09Adapt number of testsLorenz Kästle1-1/+1
2025-03-09Adapt test regex to new outputLorenz Kästle1-1/+1
2025-03-09Remove failing testLorenz Kästle1-1/+0
2025-03-09fix accidently remove parentheses in testLorenz Kästle1-1/+1
2025-03-09Adapt further test to changed outputLorenz Kästle4-4/+4
2025-03-07check_ssh: adapt testsLorenz Kästle1-31/+83
2025-03-07Merge pull request #2076 from RincewindsHat/feature/json_parsing_in_testsLorenz Kästle1-21/+14
Implement JSON output parsing for tests
2025-03-07Implement JSON output parsing for testsLorenz Kästle1-21/+14
2025-03-07Merge pull request #2068 from RincewindsHat/check_mysql_replica_checkLorenz Kästle1-16/+16
Check mysql replica check
2025-02-24check_mysql tests: Also exchange slave for replicaLorenz Kästle1-16/+16
2025-02-21Remove check_swap tests with one-line formatLorenz Kästle1-37/+2
2025-02-19Add tests for check_swap with JSON outputLorenz Kästle1-1/+49
2025-02-19Fix previous check_swap testsLorenz Kästle1-10/+12
2024-11-10check_swap: Fix text in old school testsLorenz Kästle1-3/+3
2024-07-23check_http: replace www.mozilla.com with monitoring-plugins.orgSven Nierlein2-4/+4
this makes tests more reliable if we test our own sites instead some 3rd party site. Signed-off-by: Sven Nierlein <sven@consol.de>
2024-04-12Adjust check_swap testsNapsty1-1/+1
2024-04-12Adjust check_swap testsNapsty1-1/+1
2024-04-12Adjust check_swap testsNapsty1-0/+12
2024-03-27check_disk: Fail on missing arguments for --warning and --critical and fix a ↵Lorenz Kästle1-2/+6
test case (#1935) * check_disk: Fail on missing arguments for --warning and --critical * Add new test function for percentage expressions and use it in check_disk * Add error abort in tests if they fail to parse output * Fix typo in test which probably broke the test since forever :-(
2024-03-27check_ssh: patches from op5 (#1738)Lorenz Kästle1-20/+102
* check_ssh: properly parse a delayed version control string This resolves an issue with SSH servers which do not respond with their version control string as the first thing in the SSH protocol version exchange phase after connection establishment. This patch also makes sure that we disregard a potential comment in the version exchange string to avoid nonsense mismatches. In the future, we might want to add the capability to match against a user specified comment. In addition, the patch largely improves the communication towards the server, which adds better protocol adherence. Of course, new test cases are added to support the trigger and guard against regressions of the bugs solved by this patch. This fixes op5#7945 (https://bugs.op5.com/view.php?id=7945) Signed-off-by: Anton Lofgren <alofgren@op5.com> * check_ssh.t: Fix a few typos Signed-off-by: Anton Lofgren <alofgren@op5.com> * check_ssh: Handle non-alpha software versions This patch fixes a bug where we would reject version control strings that do not contain letters, because the assumption is made that they always do. This is not required by the RFC however, and there exist implementations that do not contain letters. I've also added a few references to the RFC to make the process of parsing the control string more apparent. This fixes op5#8716 (https://bugs.op5.com/view.php?id=8716) Signed-off-by: Anton Lofgren <alofgren@op5.com> * check_ssh: Fix a typo in "remote-protocol parameter remote-protcol -> remote-protocol Signed-off-by: Anton Lofgren <alofgren@op5.com> * Remove unused variable * Formating fixes * Update translations * Remove merge conflict artefact from previous merge * Set fixed include paths * Improve code style to be slightly more readable * Update test cases for different netcat behaviour and reduce sleep time --------- Signed-off-by: Anton Lofgren <alofgren@op5.com> Co-authored-by: Anton Lofgren <alofgren@op5.com>
2024-02-23check_disk increase alert precision (#1989)Sven Nierlein1-1/+1
* check_disk increase alert precision Free disk percentage value was rounded to a full integer meaning it alerted about ~1% percent too early. This is about 10GB on a 1TB disk. The warning and critical thresholds already support float values, so just the percentage calculation needs to be improved. old: ./check_disk -w 35% -c 20% -p / -f -vvv Thresholds(pct) for / warn: 35.000000 crit 20.000000 calling stat on / For /, used_pct=65 free_pct=35 used_units=286451 free_units=156651 total_units=443102 used_inodes_pct=11 free_inodes_pct=89 fsp.fsu_blocksize=4096 mult=1048576 Freespace_units result=0 Freespace% result=1 Usedspace_units result=0 Usedspace_percent result=0 Usedinodes_percent result=0 Freeinodes_percent result=0 DISK WARNING - free space: WARNING [ / 156651MiB (35% inode=89%)];| /=300365643776B;302006979788;371700898201;0;464626122752 new: ./check_disk -w 35% -c 20% -p / -f -vvv Thresholds(pct) for / warn: 35.000000 crit 20.000000 calling stat on / For /, used_pct=64.649722 free_pct=35.350278 used_units=286464 free_units=156637 total_units=443102 used_inodes_pct=10.016183 free_inodes_pct=89.983817 fsp.fsu_blocksize=4096 mult=1048576 Freespace_units result=0 Freespace% result=0 Usedspace_units result=0 Usedspace_percent result=0 Usedinodes_percent result=0 Freeinodes_percent result=0 DISK OK - free space: / 156637MiB (35.4% inode=90%);| /=300379275264B;302006979788;371700898201;0;464626122752 * check_disk: adjust test case to support float precision
2023-11-27check_disk: fix ignore-missing in combination with includes (fixes #1963)Sven Nierlein1-16/+31
Using --ignore-missing together with regex matching and ignore option lead to a wrong error message. ./check_disk -n -w 10% -c 5% -W 10% -r /dummy -i /dummy2 DISK UNKNOWN: Paths need to be selected before using -i/-I. Use -A to select all paths explicitly The use case here is a cluster with fail-over mounts. So it is a valid situation that the regex match does not find anything in addtition with a ignore which also does not exist. After this patch: ./check_disk -n -w 10% -c 5% -W 10% -r /dummy -i /dummy2 DISK OK - No disks were found for provided parameters|
2023-10-31Enhance tests to check wheter the option validation worksRincewindsHat1-1/+4
2023-10-03Fix some more typosRincewindsHat2-2/+2
2023-08-30check_smtp: add tests for --sslFranz Schwartau1-1/+19
2023-08-30Rename test variables for upcoming new variables with the same nameFranz Schwartau1-11/+11
2023-08-28Enhance regex in test to be more tolerant to follow up textLorenz Kästle1-1/+1
2023-08-27Update test to ignore broken MIBsRincewindsHat1-33/+33