Ton Voon
6b782ebfd4
Fix memory leak in check_http for large pages (Jimmy Bergman - #2957455 )
2010-02-26 12:47:38 +00:00
Thomas Guyot-Sionnest
88b9e75dee
Fix short help using "warn" for the -f option instead of "warning" (onredirect).
2009-12-02 21:24:09 -05:00
Thomas Guyot-Sionnest
08199792ba
Add proxy-authorization option to check_http (Peter Doherty - #2863772 , Bryan Irvine - #2863925 )
2009-09-21 21:20:33 -04:00
Thomas Guyot-Sionnest
0489df95fc
check_http: Add SSL/TLS hostname extension support (SNI) - ( #1939022 - Joe Presbrey)
2009-05-20 01:05:35 -04:00
Thomas Guyot-Sionnest
8aa84840bb
Update check_http short help with new stycky and stickyport options.
2009-03-21 02:56:35 -04:00
Thomas Guyot-Sionnest
795277d9b1
check_http: die when an invalid --onredirect option is specified
2009-03-21 02:39:49 -04:00
Thomas Guyot-Sionnest
e7cdcfee2a
check_http: add --onredirect=stickyport - also follow the same port
2009-03-21 02:32:50 -04:00
Thomas Guyot-Sionnest thomas@aei.ca
3dd27fb063
Fixed check_http not timing-out on redirects
2009-03-19 13:59:43 -07:00
Thomas Guyot-Sionnest
16030bc497
Fix check_http sending HTTP/1.0 with v1.1 headers ( #2638765 )
2009-03-17 01:53:00 -04:00
Thomas Guyot-Sionnest
6b8502bee6
check_http fixes:
...
- Fix broken printf on 500 errors
- Add bytes to normal output (accidentally removed in 0d78171 )
2009-03-16 03:06:33 -04:00
Ton Voon
5324544855
Typo fixes (Jan Wagner - SF 1878971)
2009-02-20 00:00:13 +00:00
Thomas Guyot-Sionnest
d00a53dd1e
check_http --onredirect=sticky follows using the same IP address (sf.net #2550208 ).
2009-02-05 00:47:07 -05:00
Thomas Guyot-Sionnest
0d781712d7
Fix aberrant behaviours in check_http:
...
check_http used to ignore many parameters with check combinations - sometimes
even time thresholds(!!)
With this commit as long as a response is received *all* checks are performed
on it.
This fixes #1460312 plus a number of other issues I discovered over time.
2009-02-03 04:50:47 -05:00
Thomas Guyot-Sionnest
6fbd14fea5
Removing CVS/SVN tags and replacing with git-based versioning
...
For contrib/, full tags have been imported from subversion
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-23 05:38:47 +00:00
Thomas Guyot-Sionnest
caa8bd6423
Bulk EOL cleanup
...
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19 06:45:18 +00:00
Ton Voon
6c5f781bc5
Fixed bug where extra headers and redirect caused segfault (Dieter Van de Walle - 2089159)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2076 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08 02:32:03 +00:00
Ton Voon
288b742ed6
check_http now has options to specify the HTTP method (Jan - 2155152)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2075 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08 02:08:56 +00:00
Holger Weiss
8430be0b4b
Some HTTP server applications/configurations cause trouble if the port is
...
explicitly specified in our "Host:" header line. Therefore, we now specify the
port only if we're using a non-default port (Erik Wasser - 2082501).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2053 f882894a-f735-0410-b71e-b25c423dba1c
2008-09-02 11:26:31 +00:00
Thomas Guyot-Sionnest
e9f976fbf3
Revert "Re-structure the HTTP 1.1 headers to prevent 301s on servers with virtual hosts"
...
This reverts commit 2030
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2050 f882894a-f735-0410-b71e-b25c423dba1c
2008-09-01 14:04:04 +00:00
Holger Weiss
e8c7d1b3d1
Under some circumstances, the 'url' path of a redirection target missed
...
a leading slash. While this was fixed later on, the incomplete 'url'
was used for redirection loop detection and error messages. This is now
fixed by adding the missing slash immediately.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2049 f882894a-f735-0410-b71e-b25c423dba1c
2008-09-01 12:20:32 +00:00
Holger Weiss
c349438e32
The "-e" option now accepts a comma-delimited list of expected status
...
lines (Sven Nierlein - 1894496).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2046 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25 11:42:57 +00:00
Thomas Guyot-Sionnest
0378f34d85
Re-structure the HTTP 1.1 headers to prevent 301s on servers with virtual hosts
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2030 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-08 02:25:47 +00:00
Thomas Guyot-Sionnest
8883581220
Fix Debian bug #460097 : check_http --max-age broken (Hilko Bengen)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2008 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-30 23:38:00 +00:00
Thomas Guyot-Sionnest
44f8455b2c
Added support for --extra-opts in all C plugins (disabled by default, see configure --help)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1991 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-07 10:02:42 +00:00
Thomas Guyot-Sionnest
ed62784a0b
--help output cleanup (plus removal of spaces on blank lines)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-27 14:35:26 +00:00
Matthias Eble
118e57b789
Add port to Host Header to prevent problems with non default ports (Christophe Dupre #1881898 )
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1944 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-15 00:14:49 +00:00
Ton Voon
dc2ec71d22
Fixed link -m64 problems on pst3 for solaris. Fixed _FILE_OFFSET_BITS
...
redefinition warnings. Fixed helper ar error in ./configure
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1938 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-11 00:10:23 +00:00
Thomas Guyot-Sionnest
abbad00edd
Import Gnulib floorf and base64 and removed our old base64 library.
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1926 f882894a-f735-0410-b71e-b25c423dba1c
2008-02-12 12:03:58 +00:00
Thomas Guyot-Sionnest
fa4efcdf6d
Bump plugins/ to GPLv3 (check_apt to check_nwstat)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1916 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 10:53:47 +00:00
Holger Weiss
59a2d41d63
My assumption that "-H example.com:80" didn't work (see my previous
...
commit) was wrong, it worked if used together with "-I". So, here's
support for "-H [IPv6]:port", "-H [IPv6]", "-H IPv6", "-H IPv4:port",
"-H IPv4", and "-H host:port".
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1892 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-07 01:59:59 +00:00
Holger Weiss
6157a19b1b
Remove support for specifying the port number using "-H example.com:80".
...
Since this didn't work anyway (because ":80" wasn't stripped from the
"host_name" after extracting the "server_port"), nobody can be using
this syntax, and it prevents "-H" from accepting IPv6 addresses
(neufeind - 1865082). IMO, fixing it to recognize both ":80" and IPv6
addresses isn't worth it, as the ":80" syntax doesn't seem very useful
for Nagios plugins (given the way how they are usually called in Nagios
command definitions).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1891 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-06 19:45:00 +00:00
Thomas Guyot-Sionnest
56c9db8516
Adding missing function calls needed for i18n (only for plugins already in POTFILES.in)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1861 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-11 05:57:35 +00:00
Matthias Eble
2c82ed763b
Fix output when response time is critical. Thanks to Nobuhiro Ban (patch #1817228 )
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1852 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10 01:13:55 +00:00
Thomas Guyot-Sionnest
7a05ad0166
Moved base64 function to /lib.
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1817 f882894a-f735-0410-b71e-b25c423dba1c
2007-11-09 21:17:03 +00:00
Holger Weiss
b9548623f8
Fix a possible segfault if using "-f follow" and the server sends a
...
forged "LLLLocation" header prefixed with multiple "L"s (fabiodds -
1813346)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1807 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-14 22:19:29 +00:00
Holger Weiss
604da49392
Fix regression in 1.4.10 where following redirects to relative URLs on
...
virtual hosts failed if both "-H" and "-I" were specified (noted by
Rodrigo A. G. Schichaschwili on nagiosplug-devel@)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1804 f882894a-f735-0410-b71e-b25c423dba1c
2007-10-02 13:51:41 +00:00
Holger Weiss
475ee7b55a
Add "Connection: close" to the HTTP request header, which tells HTTP/1.1
...
servers to close the connection after completion of the response. This
should be compatible with HTTP/1.0, as HTTP/1.0 allows for custom header
fields which should be ignored if not recognized by the server. With
some server configurations, the server would keep the connection alive
without this header line (despite the plugin requesting HTTP/1.0),
resulting in the plugin running into either the server's or it's own
timeout (reported by Roman Schliessmeyer and Jesse Morgan via IRC).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1759 f882894a-f735-0410-b71e-b25c423dba1c
2007-07-21 16:29:01 +00:00
Holger Weiss
79b2218286
Minor fixes.
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1743 f882894a-f735-0410-b71e-b25c423dba1c
2007-06-17 19:34:55 +00:00
Holger Weiss
02033903c0
Fix buffer overflow vulnerabilities when parsing HTTP redirect
...
'Location:' strings using sscanf(3) (Nobuhiro Ban - 1687867)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1742 f882894a-f735-0410-b71e-b25c423dba1c
2007-06-17 19:22:51 +00:00
Holger Weiss
ba3112f4c9
When following redirects, the plugin supported 'Location:' header fields
...
which spanned multiple lines. However, it was not checked whether extra
lines are preceeded with white space, which could lead to the following
header field name being interpreted as the value of the 'Location:'
field if the latter was empty for some reason.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1741 f882894a-f735-0410-b71e-b25c423dba1c
2007-06-15 18:37:13 +00:00
Holger Weiss
0dc4801791
`host_name' is a NULL pointer if the "-I" flag is used instead of "-H",
...
so use `server_address' instead. Fixes a possible segfault when
following redirects to relative URLs (reported by Ingo Lantschner).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1740 f882894a-f735-0410-b71e-b25c423dba1c
2007-06-15 18:31:37 +00:00
Holger Weiss
61e0cbb7f4
Fix an off-by-one error where a realloc(3) call doesn't allocate space
...
for nul-termination (Aravind Gottipati - 1729692)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1727 f882894a-f735-0410-b71e-b25c423dba1c
2007-06-01 23:08:24 +00:00
Thomas Guyot-Sionnest
f8766fe505
Update many strings in check_http to get more consistent output
...
Update translation files; fix all check_http changes in French and most changes in German.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1715 f882894a-f735-0410-b71e-b25c423dba1c
2007-05-23 08:22:33 +00:00
Holger Weiss
88091d3db5
Add missing options to the usage output.
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1713 f882894a-f735-0410-b71e-b25c423dba1c
2007-05-13 20:02:08 +00:00
Ton Voon
bc489aab2d
Fix option handling (Nobuhiro Ban - 1657280)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1632 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-06 22:45:57 +00:00
Benoit Mortier
19b97afb12
correcting some translation problems
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1611 f882894a-f735-0410-b71e-b25c423dba1c
2007-02-06 21:03:21 +00:00
Holger Weiss
fd329a1e91
Don't try to print `optarg' (which will be a NULL pointer) if an unknown
...
command line option was used, as this leads to a segfault on some
systems. The unknown option will be printed by getopt(3) anyway. So,
simply call print_usage() and exit UNKNOWN via the new usage5() instead.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1590 f882894a-f735-0410-b71e-b25c423dba1c
2007-01-28 21:46:41 +00:00
Thomas Guyot-Sionnest
2c25c05828
Fix bug #1632091 : printf format string typos. Add some more cosmetic changes.
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1570 f882894a-f735-0410-b71e-b25c423dba1c
2007-01-20 07:18:12 +00:00
Ton Voon
68fbbb6d63
Removed unused timestamp variable (Matthias Eble)
...
Fixed redirection test. Added extra tests for funny syntax when checking
certificates, updated help for more common syntax
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1555 f882894a-f735-0410-b71e-b25c423dba1c
2006-12-20 22:33:29 +00:00
Ton Voon
c2596e23fa
Remove C style comments (1583467 - Markus Baertschi)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1526 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-26 20:51:24 +00:00