aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts
AgeCommit message (Collapse)Author
2022-10-07Replace egrep with grep -E (#1791)Gravatar Lorenz
Replace egrep with grep -E to avoid the deprecation warnings
2022-06-18Cdmiub (#1770)Gravatar CDMIUB
* added timout option to check_disk_smb
2022-03-26remove duplicate W=i/C=i args (#1755)Gravatar Tobias Fiebig
Co-authored-by: Tobias Fiebig <t.fiebig@tudelft.nl>
2022-03-17Add configfile feature to check_disk_smb (#1402)Gravatar Claudio Kuenzler
2022-02-15check_uptime: Fix lowercase typo in plugin outputGravatar Andreas Motl
2022-02-15check_uptime: Add option to report uptime in days instead of secondsGravatar Andreas Motl
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)Gravatar Lorenz
2021-12-21Merge pull request #1679 from RincewindsHat/shell_check_check_sensors.shGravatar Lorenz
check_sensors.sh: Make shellcheck happier
2021-12-21check_sensors.sh: Make shellcheck happierGravatar rincewind
2021-12-20Apparently Dash is not Bash, so -v does not workGravatar RincewindsHat
2021-12-02Missing oldlog now aborts check_logGravatar RincewindsHat
2021-12-02Merge branch 'master' into fix/shellcheckGravatar RincewindsHat
2021-12-02Fix syntax error resulting from mergingGravatar RincewindsHat
2021-12-02Merge branch 'master' into mailq-add-config-dirGravatar RincewindsHat
2021-11-29Make size parameter a little bit more intelligibleGravatar RincewindsHat
2021-11-29Merge pull request #1493 from darksoul42/masterGravatar RincewindsHat
Fix regexp for nullmailer "mailq" output. Looks good. Thank you very much.
2021-11-28Merge pull request #1692 from RincewindsHat/modernize_check_logGravatar RincewindsHat
Modernize check log
2021-10-20Add comment to make the purpose of the nickname fix more obviousGravatar Lorenz Kästle
2021-10-20Restrict the nickname length of the test user for check_ircdGravatar Lorenz Kästle
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 belongsGravatar Peter Newman
2021-07-05Add quoting for the remaining variablesGravatar rincewind
2021-07-02Add -a option to print all matching lines and -p and -e options for perl and ↵Gravatar rincewind
extended RE
2021-07-02Add extended and perl regexGravatar rincewind
2021-07-02Apply shellcheckGravatar rincewind
2021-07-02Remove modified note, since this is a git repositoryGravatar rincewind
2020-12-08check_mailq: restore accidentially removed optionsGravatar Sven Nierlein
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 availableGravatar Sven Nierlein
The check_file_age uses Monitoring::Plugin::Range internally. Skip thoses tests if the module isn't available.
2018-06-17Fixed error message, added commentGravatar Bernd Arnold
2018-06-17Drop uptime binary callGravatar Bernd Arnold
No need to call /bin/uptime, since the string can be generated with strftime(...).
2018-06-17Added help text for range supportGravatar Bernd Arnold
2018-06-17Remove useless (empty) printGravatar Bernd Arnold
2018-06-13fix typo in check_uptimeGravatar Sven Nierlein
2018-06-13add check_uptime to makefileGravatar Sven Nierlein
2018-06-13RefactoringGravatar Bernd Arnold
Better alignment. Avoid duplications ("Exceeds ... threshold").
2018-06-13Added tests for range valuesGravatar Bernd Arnold
2018-06-13Introducing ranges for warning and criticalGravatar Bernd Arnold
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 alignmentGravatar Bernd Arnold
2018-06-13Fix: Use macro for perl binaryGravatar Bernd Arnold
I've messed that up in the previous commit 554b702f9d65fdfe640f20633543e00cd79d64ac.
2018-06-09Fix: Initialize valuesGravatar Bernd Arnold
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 lateGravatar Bernd Arnold
When called with --help, the following error was shown: Use of uninitialized value $uptime_file in concatenation (.) or string at
2018-06-03Added test fileGravatar Bernd Arnold
2018-06-03Added suffix "s" for seconds in perfdata outputGravatar Bernd Arnold
2018-06-03Rename to .plGravatar Bernd Arnold
All other check script also have the .pl ending
2018-05-30Replaced my values with macrosGravatar Bernd Arnold
2018-05-30My version of check_uptimeGravatar Bernd Arnold
Derived from check_mailq
2017-06-07Fix regexp for nullmailer "mailq" outputGravatar Stephane Lapie
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-05-16Add mailq -C option for config dir or config fileGravatar Lee Clemens
New variable, mailq_args, is appended for postfix mta mailq commands Fixes #1489
2017-04-20Merge pull request #1461 from philipowen/file-size-lessthanGravatar Sven Nierlein
Enable check_file_age to test for maximum file size
2017-04-05resolve issues from code reviewGravatar phowen
2017-03-13script tests: fix relative lib path in utils testGravatar Sven Nierlein
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>