summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
AgeCommit message (Collapse)AuthorFilesLines
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(...).
2018-06-17Added help text for range supportBernd Arnold1-0/+6
2018-06-17Remove useless (empty) printBernd Arnold1-1/+0
2018-06-13fix typo in check_uptimeSven Nierlein1-1/+1
2018-06-13add check_uptime to makefileSven Nierlein1-0/+2
2018-06-13RefactoringBernd Arnold1-7/+7
Better alignment. Avoid duplications ("Exceeds ... threshold").
2018-06-13Added tests for range valuesBernd Arnold1-1/+57
2018-06-13Introducing ranges for warning and criticalBernd Arnold2-42/+95
Works as before: -w 1w -c 2w New (as before, but also warn if uptime < 5m, and crit if uptime < 2m): -w 5m:1w -c 2m:2w (idea by @sni) Also refactored the time calculation, if a suffix is present: New sub calc_as_seconds($)
2018-06-13Modified alignmentBernd Arnold1-2/+2
2018-06-13Fix: Use macro for perl binaryBernd Arnold1-1/+1
I've messed that up in the previous commit 554b702f9d65fdfe640f20633543e00cd79d64ac.
2018-06-09Fix: Initialize valuesBernd Arnold1-0/+1
Otherwise, there's a warning about unitialized values: Use of uninitialized value $hours in numeric gt (>) at ... Use of uninitialized value $days in numeric gt (>) at ...
2018-06-03Fix: uptime_file variable was declared too lateBernd Arnold1-3/+3
When called with --help, the following error was shown: Use of uninitialized value $uptime_file in concatenation (.) or string at
2018-06-03Added test fileBernd Arnold1-0/+73
2018-06-03Added suffix "s" for seconds in perfdata outputBernd Arnold1-1/+1
2018-06-03Rename to .plBernd Arnold1-0/+0
All other check script also have the .pl ending
2018-05-30Replaced my values with macrosBernd Arnold1-5/+4
2018-05-30My version of check_uptimeBernd Arnold1-0/+256
Derived from check_mailq
2017-06-07Fix regexp for nullmailer "mailq" outputrefs/pull/1493/headStephane Lapie1-1/+1
As it currently is, the regular expression does not match mailq command output on a Debian Jessie setup. Three erroneous behaviors fixed : - Meaningful lines do not end with the "bytes" word - There might be one or more space before the byte count, not 2 - Time match was completely broken, it only accounted for 0-29 minutes and 0-29 seconds.
2017-04-20Merge pull request #1461 from philipowen/file-size-lessthanSven Nierlein2-15/+92
Enable check_file_age to test for maximum file size
2017-04-05resolve issues from code reviewrefs/pull/1461/headphowen1-3/+3
2017-03-13script tests: fix relative lib path in utils testrefs/pull/1471/headSven Nierlein1-0/+1
utils.pm uses relative include ".." but the path is relativ to the current folder, so it does not work when running "perl t/utils.t". Just add another lib of "." fixes that. We could use FindBin but we don't want to make it unnecessarily complicated. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12fix timeout issue with check_disk_smbSven Nierlein1-1/+6
check_disk_smb hangs if the smbclient is still running. So send a sigint to all childs and exit cleanly. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-02-14add range checking to check_file_agephowen2-16/+93
2016-11-19Merge pull request #1376 from riskersen/check_mssqlOliver Skibbe1-1/+1
check_mssql.pl: switched alarm timeout
2016-11-18It's useful to use 'useful' instead of 'usefull'Jan Wagner2-2/+2
2015-10-15check_mssql.pl: switched alarm timeoutrefs/pull/1376/headBernd Apfel1-1/+1
- alarm() now uses -t option contributed by Bernd Arnold (wopfel@gmail.com) closes #991
2015-10-05plugins-scripts/Makefile.am: Testing shell scripts with 'sh -n'Jan Wagner1-0/+1
2015-10-05plugins-scripts/Makefile.am: Cosmetical changesJan Wagner1-1/+1
2015-10-04Merge branch 'pr/1364'Holger Weiss1-472/+0
* pr/1364: check_ntp.pl: Droping this superseded plugin Conflicts: NEWS plugins-scripts/check_ntp.pl
2015-10-04Merge branch 'pr/1363'Holger Weiss14-30/+30
* pr/1363: use unknown exit code for help/version in plugins-root as well use unknown exit code for help/version in plugins change exit code to unknown on help and version info use exit code 3 for version and help
2015-10-04check_ntp.pl: Droping this superseded pluginrefs/pull/1364/headJan Wagner1-472/+0
2015-10-04check_netdns.pl: Prototyping functionsJan Wagner1-1/+4
2015-10-04change exit code to unknown on help and version infoSven Nierlein14-30/+30
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-04check_ntp.pl: Using FindBinJan Wagner1-1/+2
2015-10-04plugins-scripts/Makefile.am: Testing scripts with 'perl -wc'Jan Wagner1-0/+1
2015-10-02also update check_rpc.pl and check_wave.plElan Ruusamäe2-2/+0
2015-10-02drop superfluous libexecdirElan Ruusamäe10-11/+1
utils.pm locate is already convered by FindBin