summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-11-07check_users not correctly detecting thresholdsJohn C. Frickson4-61/+75
Fix for issue https://github.com/nagios-plugins/nagios-plugins/issues/81 check_users now uses the standard warning and critical ranges parser and a standard perdata output routine.
2016-11-04check_disk - show all disks if state is ok and option error only is usedrefs/pull/1436/headOliver Skibbe1-4/+15
This fix changes output of check_disk in case of --error-only/-e option is used and state is ok - Old output: DISK OK - New output: DISK OK - free space: / 159731 MB (83% inode=61%); /dev/shm 2926 MB (100% inode=99%); /boot 58 MB (32% inode=99%); Resolves: #1420
2016-09-17check_by_ssh: print command output in verbose modeSven Nierlein1-0/+7
right now it is not possible to print the command output of ssh. check_by_ssh only prints the command itself. This patchs adds printing the output too. This makes it possible to use ssh with verbose logging which helps debuging any connection, key or other ssh problems. Note: you must use -E,--skip-stderr=<high number>, otherwise check_by_ssh would always exit with unknown state. Example: ./check_by_ssh -H localhost -o LogLevel=DEBUG3 -C "sleep 1" -E 999 -v Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-09-16check_dhcp: Make xid a bit more randomHolger Weiss1-3/+2
Don't just use the current time(2) to seed the PRNG that generates the xid. A DHCP server might be checked multiple times per second.
2016-09-14check_dhcp: Don't peek before reading responseHolger Weiss1-7/+1
Omit a recvfrom(3) call which has the MSG_PEEK flag set and should have no effect at all. According to a comment in the code, this call was meant to be a workaround to an opaque issue. If anyone runs into that issue, we should fix it properly instead.
2016-03-24Update AUTHORSOliver Skibbe1-0/+1
Added Oliver Skibbe to Authors
2016-02-22Merge branch 'pr/1386'Holger Weiss1-1/+1
* pr/1386: check_dig: expected answer is now incasesensitive
2016-02-22Let check_http test use HTTP/1.1Holger Weiss1-1/+1
2016-02-22Merge branch 'pr/1404'Holger Weiss1-1/+1
* pr/1404: DNS is case insensitive!
2016-02-22Add Gnulib module "strcasestr"Holger Weiss5-2/+251
2016-02-22DNS is case insensitive!refs/pull/1404/headSven Geggus1-1/+1
Thus recent Versions of bind will no longer change .IN-ADDR.ARPA to lowercase as the uppercase version is also valid. To have check_dns.c consider this fact change strstr to strcasestr
2015-11-04Update check_http.crefs/pull/1391/headGerhard Lausser1-0/+4
If a web page contains a nul character, check_http reads the complete page but --expect does not search beyond this character.
2015-11-03Merge remote-tracking branch 'upstream/pr/1390'Jan Wagner1-1/+1
2015-11-02Typo in check_ldap.c usagerefs/pull/1390/headGerhard Lausser1-1/+1
2015-10-21travis-ci: Adding spwaspace to trusty envJan Wagner1-0/+2
2015-10-21travis-ci: Stop local running ntpdJan Wagner1-0/+2
2015-10-21travis-ci: Detect LDAP configJan Wagner1-0/+2
2015-10-21travis-ci: Add ppa:waja/precise-backports for fixed faketimeJan Wagner1-0/+1
2015-10-20travis-ci: Clearly documentx why we need install mariadbJan Wagner1-0/+1
2015-10-20travis-ci: Work around broken /etc/hosts on trusty envJan Wagner1-0/+4
2015-10-19travis-ci: Adding multiverse repository as long it's not default. ↵Jan Wagner1-0/+1
snmp-mibs-downloader is located there
2015-10-19travis-ci: Install mariadb-client and mariadb-serverJan Wagner1-2/+6
2015-10-19travis-ci: Migrating to Trusty CI envJan Wagner1-1/+2
2015-10-16Prepare for the 2.1.2 releaseHolger Weiss3-2/+8
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-15check_dig: expected answer is now incasesensitiverefs/pull/1386/headDaniel Stirnimann1-1/+1
check_dig was casesensitive if an expected answer is given. Switching strstr with strcasestr fixes this issue While testing i noticed a bug where expected is not an exact match New issue for that is opened #1385 This fix closes #1233
2015-10-13Updating NEWSJan Wagner1-0/+1
2015-10-13Merge branch 'check_proc_1203'Jan Wagner1-1/+3
(Closes #1371) (Closes #1203)
2015-10-12Revert "Don't let check_disk hang on hanging file systems"Holger Weiss4-51/+1
This reverts commit 6986aa1d0a352d8d02eed4896034631fffd25a27. That commit leads to issues on non-Linux systems, and it seems to not (always) work as expected on Linux, either. Conflicts: plugins/Makefile.am plugins/check_disk.c Closes #1377 and closes #1329.
2015-10-08fix guidelines docbook syntaxSven Nierlein1-3/+2
no newlines allowed after </para>
2015-10-08doc/developer-guidelines.sgml: Add missing tagHolger Weiss1-1/+1
2015-10-08Merge branch 'maint'Holger Weiss5-41/+22
* maint: sslutils: Remove superfluous parenthesis for sslv3 function too sslutils: remove superfluous parenthesis check_snmp: modified tests check_snmp.c: switched DEFAULT_TIMEOUT to DEFAULT_SOCKET_TIMEOUT (provided by utils.h), already used by help description, see issue #1318 install snmpd on travis tests enable libtab on travis builds add perl snmp to travis dependencies NEWS: Mention check_ups performance data fix Fix incorrect performance data thresholds check_dhcp: Fix option parsing Fixes segfaults when running via monitoring worker (off-by-one) travis: fix http test host sslutils: Check if OpenSSL supports SSLv3. Conflicts: NEWS plugins/sslutils.c
2015-10-08check_smtp: extended support for expect optionrefs/pull/1382/headOliver Skibbe1-15/+22
expect option (-e) supported only first response, so checking for any other response like 250-xxx would never match. This fix stores return of relevant buffer closes #1381
2015-10-08Merge branch 'pr/1379'Holger Weiss2-1/+2
* pr/1379: check_smtp.c: modified SSL check for use with -e
2015-10-08check_smtp.c: modified SSL check for use with -erefs/pull/1379/headOliver Skibbe1-1/+1
- currently STARTTLS check does not work with -e if there's text like '220 hostname ESMTP*'. This is caused by SMTP answer from host. Postfix answer: 220 2.0.0 Ready to start TLS, Exchange 2010: 220 2.0.0 SMTP server ready. This fix checks against 220 closes #1093
2015-10-07* check_http: added timeout to perfdata as max valrefs/pull/1374/headOliver Skibbe1-6/+6
2015-10-06check_smtp: Let "-D" option imply "-S"Holger Weiss1-5/+4
2015-10-06check_smtp: QUIT SMTP connection when "-D" is usedHolger Weiss1-0/+2
Don't forget to issue an SMTP QUIT command when the -D/--certificate option is specified. This avoids undesired MTA log messages.
2015-10-06Merge branch 'pr/1373'Holger Weiss4-20/+97
* pr/1373: check_http: Allow for requesting TLSv1.1/TLSv1.2
2015-10-05Fix for unclosed filehandle in pst3 on Solarisrefs/pull/1371/headabrist1-1/+3
On Solaris, check_procs uses pst3 instead of /bin/ps (see http://monitoring-plugins.org/doc/faq/ps-on-solaris.html for background). There's a small bug in pst3 which causes it to NOT report some processes that are at the end of the process table, at least on very busy systems (we noticed this on a CoolThreads T5240 with load averages up to 90). The bug is that a filehandle is not properly closed. Thanks to jwinkle01 for finding and patching the bug. (Closes #1203)
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 Weiss2-472/+2
* pr/1364: check_ntp.pl: Droping this superseded plugin Conflicts: NEWS plugins-scripts/check_ntp.pl
2015-10-04NEWS: Fix typosHolger Weiss1-1/+1
2015-10-04Merge branch 'pr/1363'Holger Weiss57-114/+121
* 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_http: Allow for requesting TLSv1.1/TLSv1.2refs/pull/1373/headHolger Weiss4-20/+97
check_http's -S/--ssl option now allows for requesting the TLSv1.1 and TLSv1.2 protocols. Apart from that, a '+' suffix can be appended in oder to also accept newer protocols than the specified version. Closes #1338, and closes #1354, and closes #1359.
2015-10-04check_ntp.pl: Droping this superseded pluginrefs/pull/1364/headJan Wagner2-472/+2
2015-10-04check_netdns.pl: Prototyping functionsJan Wagner1-1/+4
2015-10-04use unknown exit code for help/version in plugins-root as wellrefs/pull/1363/headSven Nierlein2-4/+4
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-04use unknown exit code for help/version in pluginsSven Nierlein39-78/+78
Signed-off-by: Sven Nierlein <sven@nierlein.de>