summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
AgeCommit message (Collapse)AuthorFilesLines
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-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
2014-12-02check_mailq: Add sudo supportHolger Weiss2-8/+23
This addition is based on a patch contributed by Christopher Schultz. Closes #1099. Closes #1171.
2014-10-08check_ifstatus: Fix "-n" and "-u" optionsHolger Weiss1-1/+1
Ignore interface if it's specified via "-n" OR "-u", not just when it's specified via "-n" AND "-u".
2014-10-06check_file_age: Provide performance dataJonas Genannt2-3/+10
2014-10-06Merge branch 'maint'Jan Wagner4-11/+10
Conflicts: NEWS THANKS.in
2014-09-29check_mailq: fixed mailer namesSimon Meggle1-2/+2
(Closes #1289)
2014-09-10Add check_ifstatus option to ignore interfaces by nameNick Peelman1-19/+38
Ignoring by index is not always an option, as the index can change on chassis switches as blade configurations change.
2014-08-20Setting PATH at firstJan Wagner3-7/+6
2014-08-20check_log.sh: droping path from basenameJan Wagner1-1/+1
while evaluating PROGNAME (Closes Debian Bug #758662)
2014-07-31tests: check_disk_smb may exit with critical for unresponsive hosts tooSven Nierlein1-1/+1
Unknown (ex. debian 7) %> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv /usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du No Answer from Client Critical (ex. debian 8) %> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv /usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du Connection to 1.1.1.1 failed CRITICAL Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-07-20check_ifstatus: perfdata bugJan Wagner1-1/+1
The perfdata output violates the current Nagios Plugin Development Guidelines (http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN202 : "space separated list of label/value pairs"). Thus the Addon PNP did not read the perdata correctly. The patch replaces the commas with spaces in the perfdata output. Many thanks to Patric Wust. --- Closes #1169 and #721.
2014-07-20check_oracle: --tns bad string matchingJan Wagner1-1/+1
check_oracle in the 1.4.15 release doesn't correctly parse the output gotten from at least Oracle 11 (with german locales). I guess it's probably more. Also it completely needlessly uses sed where basic bash string parsing actually does more than suffice (and does not run into possible problems with locales like sed ;)). -- Just turning attached patch of github issue #1015 into a push request. (Closes #1015 and #1191)
2014-07-06Don't rely on FindBin module to locate utils.pmHolger Weiss13-1/+14
As the FindBin module doesn't work with ePN, set the path to utils.pm explicitly at build time. Keep using FindBin additionally, so that the plugins can also be executed from the build directory. Closes #1271.
2014-06-18Use FindBin consistently across Perl pluginsHolger Weiss2-2/+4
Use Perl's FindBin module to locate the path to utils.pm in check_file_age.pl and check_mssql.pl, just as we do in other Perl plugins.
2014-03-20Update the last remaining instance of the old FSF addressSam Kottler1-1/+1
2014-02-28Disable Perl's "taint" checksHolger Weiss3-3/+3
Perl's "taint" checks don't like `use lib "$FindBin::Bin"'. Cf. http://www.perlmonks.org/?node_id=585299
2014-02-28Replace "plugins-scripts/subst.in" fooHolger Weiss18-101/+48
Remove the buggy and complex awk(1) magic in "plugins-scripts/subst.in" in favor of simple sed(1) substitutions. The plugins in the "plugins-scripts" directory now always use the PATH specified via "./configure --trusted-path", or the default PATH hard-coded in "configure.ac". Fixes #1242.
2014-02-28Merge remote-tracking branch 'awiddersheim/fix_trusted_path'Holger Weiss17-25/+506
* awiddersheim/fix_trusted_path: Fix trusted path Conflicts: plugins-scripts/check_ntp.pl plugins-scripts/subst.in Closes #1212.
2014-02-27subst.in: remove the led() functionEvgeni Golov1-17/+0
It was only used to replace the 'use lib utils.pm' with the proper libexec dir, which is now solved by using Perl's FinBin. Closes #1241
2014-02-27utils.pm: use FindBin instead of awk to find the path toEvgeni Golov10-10/+20
'use lib utils.pm' is not valid Perl syntax: Bareword "utils" not allowed while "strict subs" in use at plugins-scripts/check_ircd.pl line 52. Bareword "pm" not allowed while "strict subs" in use at plugins-scripts/check_ircd.pl line 52. This makes it impossible to use the plugins directly from the git tree, e.g. while hacking on them. Using FindBin::Bin as the library path allows that, while preserving the original behaviour of adding the libexec path when the plugin is properly installed.
2014-02-27check_mailq: add $mailq to check output, so it is easily visible what was ↵Evgeni Golov1-17/+17
autodetected Closes: #1242
2014-02-27check_mailq: document autodetection in the usage outputEvgeni Golov1-1/+3
2014-02-27check_mailq: try to autodetect which mailq implementation we are usingEvgeni Golov1-1/+24
This is done by looking at some common directories and files each MTA installs on the system. If no known file is found, the old default sendmail is used. Of course this still can be overridden by -M.
2014-01-29check_mailq: adding nullmailer supportJan Wagner1-2/+39
Adding nullmailer support to check_mailq submitted by Luca Corti Closes: #740 Closes: #1189
2014-01-29Just fixing small typo in commentJan Wagner1-1/+1
2014-01-24check_file_age: support for --ignore-missingJan Wagner2-5/+19
Patch to provide for a -i | --ignore-missing option. This allows files that don't exist to be monitored for without causing an error. The use case is: * one process periodically pushes files to an "input" queue for a second process * the second process, when running cleanly will "consume" (process and remove) these files So the conditions to meet are: 1. If the file doesn't exist, that's fine (OK) 2. If the file exists, but is less than X seconds, that's fine (OK) 3. If the file exists, but greater than X seconds, no good (CRITICAL) Since now check_file_age doesn't permit this behavior, as a non-existent file is considered CRITICAL. Test case was contributed by our lovely Holger. Closes #1181, Closes #989, Closes #862, Closes #1187, Closes #845 Closes Debian Bug #496307
2014-01-23Remove obsolete check_ntp.plThomas Guyot-Sionnest2-472/+1