summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
AgeCommit message (Collapse)AuthorFilesLines
2023-11-05Shellcheck fixes for check_oraclerefs/pull/1959/headRincewindsHat1-10/+13
2023-10-26check_mailq: exit on empty strings and exit earlySven Nierlein1-76/+69
in case of $utils::PATH_TO_MAILQ beeing an empty string, the "defined" is still true and leads to misleading error messages. While on it, rewrite cascaded if/elsifs to more readably exit-early ifs.
2023-10-26check_mailq: unify tabs/spacesSven Nierlein1-508/+507
2023-10-26check_mailq: remove trailing whitespacesSven Nierlein1-23/+23
2023-10-06use pack_sockaddr_in rather than hand-rolledrefs/pull/1932/headStuart Henderson1-3/+1
On some OS, sockaddr structs include a length field. Perl's pack_sockaddr_in takes this into account; the hand-rolled "pack('S n a4 x8'..." doesn't do so, resulting in connection failures.
2023-10-03Merge pull request #1411 from ↵Lorenz Kästle1-1/+2
glensc/pld/nagios-plugins-check_disk_smb-zero-cap.patch check_disk_smb: allow checking 0-sized resource (ex. IPC$)
2023-09-07check_breeze, check_wave, unset CDPATH env varrefs/pull/1917/headRincewindsHat2-1/+3
2023-09-07Use compile time determined path to snmpget in check_waveRincewindsHat1-7/+7
2023-09-07Add dynamic path to snmpget to perl utilsRincewindsHat1-0/+1
2023-05-02also fixed the --help returnsrefs/pull/1861/headMisterMountain3-5/+5
2023-05-02Merge branch 'monitoring-plugins:master' into fix_version_return_codeBjörn Berg7-11/+11
2023-04-14Fix a lot of typos reported by codespellrefs/pull/1864/headJan Wagner7-11/+11
2023-04-11fixed the identation (and also patched -V on check_oracle to behave exactly ↵MisterMountain2-6/+6
like --version again)
2023-04-11fixed the outputs of the --versions options on 3 scriptsMisterMountain3-3/+3
2023-03-27Merge pull request #1852 from RincewindsHat/check_mssqlLorenz1-2/+2
Actually build check_mssql too
2023-03-15Actually build check_mssql toorefs/pull/1852/headRincewindsHat1-2/+2
2023-02-03check_mailq.pl: separate submission queuerefs/pull/1192/headJan Wagner1-6/+30
check_mailq.pl ignores the separate submission queue used in (modern?) sendmail implementations. For the queue output below with one message in the submission queue and no messages in the transport queue, check_mailq.pl reports zero messages in the queue because the request count from the last queue always overwrites previous queues. If the sendmail MTA isn't running or has become wedged, messages will sit in the submission queue forever. The attached patch fixes this in a backwards compatible way (i.e., it shouldn't break any of the currently supported formats). -- Just turning attached patch of github issue #972 into a push request. (Closes #972)
2023-01-20add tests for check_loglorenzg1-0/+82
2023-01-20Fix indentslgmu1-4/+4
2023-01-20Added --exclude, cleanup args, fix -a count buglgmu1-60/+31
Added --exclude to exclude patterns Cleaned up duplicated code in the args Fixed a bug when using --all because the count always returned "1" even when nothing matched entry=$($GREP "$query" "$tempdiff") count=$(echo "$entry" | wc -l) Example: $ touch testfile $ TEST123=$(grep 'test' testfile) $ echo "$TEST123" | wc -l 1
2023-01-18Fixing nullmailer regexandrew bezella1-2/+2
attached is a patch that updates the format expected in the nullmailer mailq output. the regex is a little more flexible and less specific than the previous version.
2022-10-07Replace egrep with grep -E (#1791)Lorenz1-2/+2
Replace egrep with grep -E to avoid the deprecation warnings
2022-06-18Cdmiub (#1770)CDMIUB1-2/+8
* added timout option to check_disk_smb
2022-03-26remove duplicate W=i/C=i args (#1755)Tobias Fiebig1-2/+0
Co-authored-by: Tobias Fiebig <t.fiebig@tudelft.nl>
2022-03-17Add configfile feature to check_disk_smb (#1402)Claudio Kuenzler1-4/+11
2022-02-15check_uptime: Fix lowercase typo in plugin outputAndreas Motl2-9/+9
2022-02-15check_uptime: Add option to report uptime in days instead of secondsAndreas Motl2-3/+22
Currently, the plugin output is: CRITICAL: Uptime is 38829029 seconds. When using the proposed `--days|-d` option, it will be: CRITICAL: Uptime is 449 days.
2022-01-21Rebase to master (#1731)Lorenz1-7/+9
2021-12-21Merge pull request #1679 from RincewindsHat/shell_check_check_sensors.shLorenz1-1/+1
check_sensors.sh: Make shellcheck happier
2021-12-21check_sensors.sh: Make shellcheck happierrefs/pull/1679/headrincewind1-1/+1
2021-12-19Apparently Dash is not Bash, so -v does not workrefs/pull/1732/headRincewindsHat1-1/+1
2021-12-02Missing oldlog now aborts check_logRincewindsHat1-1/+10
2021-12-02Merge branch 'master' into fix/shellcheckrefs/pull/1459/headRincewindsHat11-77/+641
2021-12-02Fix syntax error resulting from mergingrefs/pull/1490/headRincewindsHat1-1/+1
2021-12-02Merge branch 'master' into mailq-add-config-dirRincewindsHat9-115/+586
2021-11-29Make size parameter a little bit more intelligiblerefs/pull/1730/headRincewindsHat1-1/+1
2021-11-29Merge pull request #1493 from darksoul42/masterRincewindsHat1-1/+1
Fix regexp for nullmailer "mailq" output. Looks good. Thank you very much.
2021-11-28Merge pull request #1692 from RincewindsHat/modernize_check_logRincewindsHat1-42/+94
Modernize check log
2021-10-20Add comment to make the purpose of the nickname fix more obviousLorenz Kästle1-0/+2
2021-10-20Restrict the nickname length of the test user for check_ircdLorenz Kästle1-1/+1
check_ircd was using the string `ircd` plus the PID as a nickname for connecting to a IRC network by default. This caused errors, when the PID was too high and the network restricted the length of the nickname to 9 characters. This patch "fixes" this by just cutting it of, if it gets too big.
2021-07-22Re-attach a comment to where it actually belongsrefs/pull/1699/headPeter Newman1-1/+1
2021-07-05Add quoting for the remaining variablesrefs/pull/1692/headrincewind1-3/+3
2021-07-02Add -a option to print all matching lines and -p and -e options for perl and ↵rincewind1-14/+37
extended RE
2021-07-02Add extended and perl regexrincewind1-2/+32
2021-07-02Apply shellcheckrincewind1-29/+29
2021-07-02Remove modified note, since this is a git repositoryrincewind1-2/+1
2020-12-08check_mailq: restore accidentially removed optionsrefs/pull/1650/headSven Nierlein1-3/+5
with https://github.com/monitoring-plugins/monitoring-plugins/issues/381 -W and -C have been removed. It would have been sufficient to only remove the long options. Restoring short options.. - fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954961
2018-12-04tests: skip some tests if Monitoring::Plugin::Range isn't availableSven Nierlein1-67/+36
The check_file_age uses Monitoring::Plugin::Range internally. Skip thoses tests if the module isn't available.
2018-06-17Fixed error message, added commentrefs/pull/1538/headBernd Arnold1-1/+2
2018-06-17Drop uptime binary callBernd Arnold1-1/+1
No need to call /bin/uptime, since the string can be generated with strftime(...).