Andreas Baumann
f890d271fd
added POST support (-P/-T options)
2018-10-22 16:30:31 +02:00
Andreas Baumann
3299fbe3c1
fixed handling of SSL/TLS protocol versions
2018-10-22 16:30:31 +02:00
Andreas Baumann
6575340888
added -l option, fixed some usage/help
2018-10-22 16:30:31 +02:00
Andreas Baumann
f67f05c450
added -d/--header-string option
2018-10-22 16:30:31 +02:00
Sven Nierlein
c6c90a5bfa
check_curl: implement -e/--expect
2018-10-22 16:30:31 +02:00
Sven Nierlein
a793540bbb
check_curl: support check_http arguments for backwards compatibility
2018-10-22 16:30:31 +02:00
Sven Nierlein
5f9e8fa1e7
check_curl: adopt output format from check_http
2018-10-22 16:30:31 +02:00
Sven Nierlein
e9239b556a
check_curl: make check_curl use the same tests as check_http
2018-10-22 16:30:31 +02:00
Andreas Baumann
dee8f760d3
added -4/-6 option
2018-10-22 16:28:51 +02:00
Andreas Baumann
a478dfe512
added -m/--pagesize option
2018-10-22 16:28:51 +02:00
Andreas Baumann
6e52b870f6
added help for --invert-regex
2018-10-22 16:28:51 +02:00
Andreas Baumann
2678d7fabc
added -R/-ereg/-eregi
2018-10-22 16:28:51 +02:00
Andreas Baumann
50577bf9b1
added -N/--no-body option
2018-10-22 16:28:51 +02:00
Andreas Baumann
ec8de89a44
added usage and help for -E/--extended-perfdata
2018-10-22 16:28:51 +02:00
Andreas Baumann
4dc982097e
reverted double header in longopts
2018-10-22 16:28:51 +02:00
Andreas Baumann
5d2fa85f1e
added help/usage and getopt long struct member for -k/--header option
2018-10-22 16:28:51 +02:00
Andreas Baumann
20fd1ade91
fixed a missing else before curl_easy_setopt CURLOPT_CUSTOMREQUEST
2018-10-22 16:28:51 +02:00
Sven Nierlein
afa52eb834
add check_curl test
...
just a copy of check_http for now...
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2018-10-22 16:28:51 +02:00
Sven Nierlein
e57c8a9d96
check_curl: set correct host header
...
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2018-10-22 16:28:51 +02:00
Sven Nierlein
b5fd0d1a17
check_curl: implement extended performance data
...
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2018-10-22 16:28:51 +02:00
Sven Nierlein
16121a9b55
check_curl: implement certificate checks
...
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2018-10-22 16:28:51 +02:00
Sven Nierlein
c6c4890702
check_curl: implement optional http headers
...
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2018-10-22 16:28:51 +02:00
Andreas Baumann
d74e9569b9
added HTTP method handling
2018-10-22 16:28:51 +02:00
Andreas Baumann
83ae37dc7e
forgot declaration of INVERT_REGEX in getopt otions
2018-10-22 16:28:51 +02:00
Andreas Baumann
c9a94ffd44
added some casts for curl write functions
2018-10-22 16:28:51 +02:00
Andreas Baumann
ad9233ce1c
added -r and --invert-regex
2018-10-22 16:28:51 +02:00
Andreas Baumann
556924316a
added -ca-file option
2018-10-22 16:28:51 +02:00
Andreas Baumann
035fe1eb79
handling last HTTP header correctly in HTTP line parser (added a strrstr replacement)
2018-10-22 16:28:51 +02:00
Andreas Baumann
cefe325e94
some comment cleanup
2018-10-22 16:28:51 +02:00
Andreas Baumann
2b8f17e577
adapted to style, using header file shims instead of HAVE_XXX by hand
2018-10-22 16:28:51 +02:00
Andreas Baumann
c3bf9bd675
fixed curl error message
2018-10-22 16:28:51 +02:00
Andreas Baumann
67967df159
added -s option
2018-10-22 16:28:51 +02:00
Andreas Baumann
2a9812ee43
added most options from nagios-curl-plugin
2018-10-22 16:28:51 +02:00
Andreas Baumann
0b85260bd2
added autoconf stuff for curl plugin, created empty plugin
2018-10-22 16:28:51 +02:00
Bernard Spil
399cc14152
Fix build issue with MariaDB 10.2
...
As of 10.2 MariaDB no longer defines MYSQL_PORT.
2017-11-06 17:31:44 +01:00
Michael Kraus
6e67b638f8
Output plugin's stderr to stderr
...
Output plugin's stderr to stderr and do not exit with WARNING in that case
2017-09-04 16:36:19 +02:00
Sven Nierlein
b3d39e605e
Merge pull request #1474 from odenbach/vport
...
Added tests for virtual port behaviour. Separated from all other test…
2017-05-04 23:19:51 +02:00
Karol Babioch
e0b8ebaa77
plugins: check_dig: Fix spelling
2017-04-21 01:38:39 +02:00
Christopher Odenbach
9326543c2e
Added tests for virtual port behaviour. Separated from all other tests this time.
2017-03-26 22:36:58 +02:00
Sven Nierlein
77aa6d4ebf
udp test: prefer nc over netcat syntax
...
sles 12 systems have netcat symlinked to nc and so expect nc syntax for netcat.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12 22:55:52 +01:00
Sven Nierlein
e90c63712e
check_disk test: increase assumed thresholds
...
The check_disk fails if the build system has more than 100GB of free disk
space. Lets make this 100TB and we are safe for a couple more years.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12 22:55:52 +01:00
Sven Nierlein
0cff5f2d93
remove hardcoded verisign.com tests
...
and make it configurable
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12 22:55:52 +01:00
Sven Nierlein
b3dee5c4bf
make snmp tests more reliable
...
snmp tests fail if the snmp daemon runs systemd, then the process with 1 has arguments. Convert
the test into a regex which works for sysv and systemd.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12 22:55:52 +01:00
Sven Nierlein
9daeceaed3
check_dns: fix error detection on sles nslookup
...
on sles (ex. 11sp1) systems the nslookup output for not found was not parsed correctly
and interpreted as ok when it should be critical:
./check_dns -H nosuchhost.nodomain -t 1 -vvv
/usr/bin/nslookup -sil nosuchhost.nodomain Server: 10.0.2.3
Address: 10.0.2.3#53
Non-authoritative answer:
*** Can't find nosuchhost.nodomain: No answer
DNS OK: 0.011 seconds response time. nosuchhost.nodomain returns |time=0.010892s;;;0.000000
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2017-03-12 21:02:58 +01:00
Valentin Vidic
43ce70bcdb
check_apt: Add -l/--list option to print packages
2017-01-16 17:54:00 +01:00
Jan Wagner
10fa79a97a
Merge branch 'spell_fix'
2017-01-10 20:33:16 +01:00
Jan Wagner
3fc149f499
Merge remote-tracking branch 'upstream/pr/1457'
2017-01-04 14:53:16 +01:00
Christian Schmidt
bf18dc42dd
Add --only-critical switch to check_apt
2016-12-31 12:00:46 +01:00
Nicolai
6a0f4fe275
check_dns: Small test cleanup
2016-12-23 22:59:42 +01:00
Nicolai
b9f00386a1
check_dns: Fix travis tests
...
(or try to fix it...)
2016-12-23 21:04:36 +01:00