aboutsummaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)Author
2016-11-07Merge pull request #1309 from waja/negate_remove_unused_variablesGravatar Sven Nierlein
negate: remove unused variables
2016-11-07Merge pull request #1312 from waja/check_disk_remove_unused_variablesGravatar Sven Nierlein
check_disk: remove unused variables
2016-11-07Merge pull request #1313 from waja/check_ntp_time_remove_unused_variablesGravatar Sven Nierlein
check_ntp_time: remove unused variables
2016-11-07Merge pull request #1307 from waja/check_dns_dead_codeGravatar Sven Nierlein
check_dns: remove dead code
2016-11-07tests: adjust check_http to new output formatGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-07GMT expiry displayGravatar Peter (pir) Radcliffe
Change solution to display GMT time in the local display format with the offset number of hours from GMT to be clear about what timezone this is if the local display format does not include offset.
2016-11-07Revert "Fix check_http test time output"Gravatar Peter (pir) Radcliffe
This reverts commit 2d9e61a4382b8366331cde7617dbc4e381a0219a.
2016-11-07Fix check_http test time outputGravatar Peter (pir) Radcliffe
Tests need to match new output time and timezone.
2016-11-07Use GMT timezone in SSL certsGravatar Peter (pir) Radcliffe
SSL certs are required to use times in GMT per https://www.ietf.org/rfc/rfc5280.txt but the mktime() here assumes the current timezone. Fix the time_t conversion to be done assuming GMT with timegm() and only do it once rather than twice. Display the expiry date and time with ISO format years and give an offset from GMT and a timezone to be very clear about exactly what time is being displayed. Time given is correct and now in the machine’s timezone.
2016-11-07check_snmp.c - Added IPv6 supportGravatar abrist
The "-6" optarg now prepends the server_address with "udp6:" for the snmpget external command as per the net-snmp syntax at: http://www.net-snmp.org/wiki/index.php/FAQ:Applications_28 Thanks to DrydenK (Roberto Greiner) for the heads up.
2016-11-07check_users: add new test casesGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-07check_users: still allow zero thresholdsGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-07check_users not correctly detecting thresholdsGravatar John C. Frickson
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-09-17check_by_ssh: print command output in verbose modeGravatar Sven Nierlein
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-02-22Merge branch 'pr/1386'Gravatar Holger Weiss
* pr/1386: check_dig: expected answer is now incasesensitive
2016-02-22Let check_http test use HTTP/1.1Gravatar Holger Weiss
2016-02-22DNS is case insensitive!Gravatar Sven Geggus
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-02Typo in check_ldap.c usageGravatar Gerhard Lausser
2015-10-15check_dig: expected answer is now incasesensitiveGravatar Daniel Stirnimann
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-12Revert "Don't let check_disk hang on hanging file systems"Gravatar Holger Weiss
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-08Merge branch 'maint'Gravatar Holger Weiss
* 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.c: modified SSL check for use with -eGravatar Oliver Skibbe
- 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-06check_smtp: Let "-D" option imply "-S"Gravatar Holger Weiss
2015-10-06check_smtp: QUIT SMTP connection when "-D" is usedGravatar Holger Weiss
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'Gravatar Holger Weiss
* pr/1373: check_http: Allow for requesting TLSv1.1/TLSv1.2
2015-10-04check_http: Allow for requesting TLSv1.1/TLSv1.2Gravatar Holger Weiss
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-04use unknown exit code for help/version in pluginsGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-04sslutils: Remove superfluous parenthesis for sslv3 function tooGravatar Jan Wagner
2015-10-04sslutils: remove superfluous parenthesisGravatar Sebastian Herbszt
Remove superfluous parenthesis. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
2015-10-04check_snmp: modified testsGravatar Oliver Skibbe
(Closes #1325)
2015-10-04check_snmp.c: switched DEFAULT_TIMEOUT to DEFAULT_SOCKET_TIMEOUT (provided ↵Gravatar Oliver Skibbe
by utils.h), already used by help description, see issue #1318
2015-10-02plugins/check_http.c - fix regression introduced in commit 388ea928 (Host ↵Gravatar Laurent Licour
header)
2015-10-02plugins/check_http.c - fix Host header if explicitly set with -kGravatar LAURENT LICOUR
2015-10-02Merge pull request #1257 from gcoxmoz/masterGravatar Sven Nierlein
check_tcp: Fixing to return desired exit code
2015-10-02fix tests for certificates expire date with secondsGravatar Sven Nierlein
2015-10-02Merge pull request #1315 from waja/utils_remove_unused_variableGravatar Sven Nierlein
utils: remove unused variable
2015-10-02Merge pull request #1349 from waja/check_http_ssl_via_proxyGravatar Sven Nierlein
check_http: Adding support for checking SSL-Websites through Proxies
2015-10-02add faketime based tests for check_httpGravatar Sven Nierlein
2015-10-02fix typo from #1336Gravatar Sven Nierlein
if exactly one hour before the expire date, we would mixup minutes and hours. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-02Update sslutils.cGravatar Matthias Hähnel
Fixed Output if the expiration time is below one hour and code cleanup
2015-10-02Update sslutils.cGravatar Matthias Hähnel
optimize output if certificate expires in less then 24h thx to axel.schmalowsky@sixt.com for this patch
2015-10-02Fix incorrect performance data thresholdsGravatar Louis Sautier
Closes #1330
2015-10-02check_snmp: small improvement by anonymous submissionGravatar Jan Wagner
- response should not start with the delimiter - OID response value taken into account Closes issue #1029 Closes push request #1173
2015-10-02Merge pull request #1343 from awiddersheim/ipv6/check_fpingGravatar Sven Nierlein
check_fping: autodetect ipv6 addresses
2015-10-02travis: fix http test hostGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-10-01check_http: Adding support for checking SSL-Websites through ProxiesGravatar Michael Melcher
Ported the fix from Frank4dd to the latest git version. See also http://nagios.frank4dd.com/howto/monitor-ssl-web sites-through-proxy.htm
2015-10-01travis: fix http test hostGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2015-08-26sslutils: Check if OpenSSL supports SSLv3.Gravatar Jérémie Courrèges-Anglas
2015-08-13Allow check_fping to autodetect ipv6 addressesGravatar Andrew Widdersheim
Stole the logic in check_ping that allows it to autodetect whether an address is ipv6 or not. Now the user does not have to specify -6 when using check_fping with ipv6 addresses.
2015-04-23check_ldap: fix number of skipable testsGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>