aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts
AgeCommit message (Collapse)Author
2017-03-12fix timeout issue with check_disk_smbGravatar Sven Nierlein
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_ageGravatar phowen
2017-01-06Fixing shellcheck SC2166Gravatar Jan Wagner
2017-01-06Fixing shellcheck SC2162Gravatar Jan Wagner
2017-01-06Fixing shellcheck SC2143Gravatar Jan Wagner
2017-01-06Fixing shellcheck SC2009Gravatar Jan Wagner
This requires pgrep from the procps package.
2017-01-06Fixing shellcheck SC2086Gravatar Jan Wagner
2017-01-06Fixing shellcheck SC2006Gravatar Jan Wagner
2016-11-19Merge pull request #1376 from riskersen/check_mssqlGravatar Oliver Skibbe
check_mssql.pl: switched alarm timeout
2016-11-18It's useful to use 'useful' instead of 'usefull'Gravatar Jan Wagner
2015-10-15check_mssql.pl: switched alarm timeoutGravatar Bernd Apfel
- 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'Gravatar Jan Wagner
2015-10-05plugins-scripts/Makefile.am: Cosmetical changesGravatar Jan Wagner
2015-10-04Merge branch 'pr/1364'Gravatar Holger Weiss
* pr/1364: check_ntp.pl: Droping this superseded plugin Conflicts: NEWS plugins-scripts/check_ntp.pl
2015-10-04Merge branch 'pr/1363'Gravatar Holger Weiss
* 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 pluginGravatar Jan Wagner
2015-10-04check_netdns.pl: Prototyping functionsGravatar Jan Wagner
2015-10-04change exit code to unknown on help and version infoGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-04check_ntp.pl: Using FindBinGravatar Jan Wagner
2015-10-04plugins-scripts/Makefile.am: Testing scripts with 'perl -wc'Gravatar Jan Wagner
2015-10-02also update check_rpc.pl and check_wave.plGravatar Elan Ruusamäe
2015-10-02drop superfluous libexecdirGravatar Elan Ruusamäe
utils.pm locate is already convered by FindBin
2014-12-02check_mailq: Add sudo supportGravatar Holger Weiss
This addition is based on a patch contributed by Christopher Schultz. Closes #1099. Closes #1171.
2014-10-08check_ifstatus: Fix "-n" and "-u" optionsGravatar Holger Weiss
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 dataGravatar Jonas Genannt
2014-10-06Merge branch 'maint'Gravatar Jan Wagner
Conflicts: NEWS THANKS.in
2014-09-29check_mailq: fixed mailer namesGravatar Simon Meggle
(Closes #1289)
2014-09-10Add check_ifstatus option to ignore interfaces by nameGravatar Nick Peelman
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 firstGravatar Jan Wagner
2014-08-20check_log.sh: droping path from basenameGravatar Jan Wagner
while evaluating PROGNAME (Closes Debian Bug #758662)
2014-07-31tests: check_disk_smb may exit with critical for unresponsive hosts tooGravatar Sven Nierlein
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 bugGravatar Jan Wagner
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 matchingGravatar Jan Wagner
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.pmGravatar Holger Weiss
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 pluginsGravatar Holger Weiss
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 addressGravatar Sam Kottler
2014-02-28Disable Perl's "taint" checksGravatar Holger Weiss
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" fooGravatar Holger Weiss
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'Gravatar Holger Weiss
* 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() functionGravatar Evgeni Golov
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 toGravatar Evgeni Golov
'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 ↵Gravatar Evgeni Golov
autodetected Closes: #1242
2014-02-27check_mailq: document autodetection in the usage outputGravatar Evgeni Golov
2014-02-27check_mailq: try to autodetect which mailq implementation we are usingGravatar Evgeni Golov
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 supportGravatar Jan Wagner
Adding nullmailer support to check_mailq submitted by Luca Corti Closes: #740 Closes: #1189
2014-01-29Just fixing small typo in commentGravatar Jan Wagner
2014-01-24check_file_age: support for --ignore-missingGravatar Jan Wagner
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.plGravatar Thomas Guyot-Sionnest
2014-01-22fix outdated Free Software Foundation addressGravatar Lars Vogdt
2014-01-21Capitalize "Monitoring Plugins"Gravatar Holger Weiss
"Monitoring Plugins" is a name.