Discussion:
[Nagios-users] SSL option for check_http?
DM
2003-01-30 20:31:07 UTC
Permalink
Does anyone know what happened to the SSL option (-S in previous versions)
for the latest version of the check_http plugin?

- David

***@host:/usr/local/src/nagios10/nagios-plugins-1.3.0-beta2/plugins> ./check_http -h
check_http (nagios-plugins 1.3.0-beta2) 1.12
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 1999-2001 Ethan Galstad/Karl DeBisschop <***@users.sourceforge.net>

This plugin tests the HTTP service on the specified host. It can test
normal (http) and secure (https) servers, follow redirects, search for
strings and regular expressions, check connection times, and report on
certificate expiration times.

Usage:
check_http (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]
[-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]
[-s string] [-r <regex> | -R <case-insensitive regex>]
[-P string]
check_http (-h | --help) for detailed help
check_http (-V | --version) for version information
NOTE: One or both of -H and -I must be specified

Options:
-H, --hostname=ADDRESS
Host name argument for servers using host headers (virtual host)
-I, --IP-address=ADDRESS
IP address or name (use numeric address if possible to bypass DNS lookup).
-e, --expect=STRING
String to expect in first (status) line of server response (default: HTTP/1.)
If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)
-s, --string=STRING
String to expect in the content
-u, --url=PATH
URL to GET or POST (default: /)
-p, --port=INTEGER
Port number (default: 80)
-P, --post=STRING
URL encoded http POST data
-w, --warning=INTEGER
Response time to result in warning status (seconds)
-c, --critical=INTEGER
Response time to result in critical status (seconds)
-t, --timeout=INTEGER
Seconds before connection times out (default: 10)
-a, --authorization=AUTH_PAIR
Username:password on sites with basic authentication
-L, --link=URL
Wrap output in HTML link (obsoleted by urlize)
-f, --onredirect=<ok|warning|critical|follow>
How to handle redirected pages
-v, --verbose
Show details for command-line debugging (do not use with nagios server)
-h, --help
Print detailed help screen
-V, --version
Print version information
Russell Scibetti
2003-01-30 20:44:04 UTC
Permalink
When you ran ./configure for the plugins, it couldn't find any SSL
libraries, so it didn't include the -S (--ssl) options in check_http.
When you run ./configure, watch the output to see why its not finding
your SSL libraries.

Russell Scibetti
Post by DM
Does anyone know what happened to the SSL option (-S in previous versions)
for the latest version of the check_http plugin?
- David
Post by DM
./check_http -h
check_http (nagios-plugins 1.3.0-beta2) 1.12
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 1999-2001 Ethan Galstad/Karl DeBisschop <
This plugin tests the HTTP service on the specified host. It can test
normal (http) and secure (https) servers, follow redirects, search for
strings and regular expressions, check connection times, and report on
certificate expiration times.
check_http (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]
[-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]
[-s string] [-r <regex> | -R <case-insensitive regex>]
[-P string]
check_http (-h | --help) for detailed help
check_http (-V | --version) for version information
NOTE: One or both of -H and -I must be specified
-H, --hostname=ADDRESS
Host name argument for servers using host headers (virtual host)
-I, --IP-address=ADDRESS
IP address or name (use numeric address if possible to bypass DNS lookup).
-e, --expect=STRING
String to expect in first (status) line of server response
(default: HTTP/1.)
If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)
-s, --string=STRING
String to expect in the content
-u, --url=PATH
URL to GET or POST (default: /)
-p, --port=INTEGER
Port number (default: 80)
-P, --post=STRING
URL encoded http POST data
-w, --warning=INTEGER
Response time to result in warning status (seconds)
-c, --critical=INTEGER
Response time to result in critical status (seconds)
-t, --timeout=INTEGER
Seconds before connection times out (default: 10)
-a, --authorization=AUTH_PAIR
Username:password on sites with basic authentication
-L, --link=URL
Wrap output in HTML link (obsoleted by urlize)
-f, --onredirect=<ok|warning|critical|follow>
How to handle redirected pages
-v, --verbose
Show details for command-line debugging (do not use with nagios server)
-h, --help
Print detailed help screen
-V, --version
Print version information
--
Russell Scibetti
Quadrix Solutions, Inc.
http://www.quadrix.com
(732) 235-2335, ext. 7038
Burnson, Richard
2003-01-30 22:50:03 UTC
Permalink
After reading the performance tuning documentation, I am thinking about
setting up a ramdisk for the status.log file. Before I do this, I wanted to
see if anyone else has tried this and what their experience has been, and
what they recommend. I am running Nagios on a RedHat 7.2 box with one gig
of RAM. Currently the status.log file is just shy of 2 MB, so I think the
default 4MB ramdisk will be sufficient. Also, what would be the best
startup file to put the commands in to create the ramdisk upon reboot?

Thanks,
Richard
DM
2003-01-31 02:31:02 UTC
Permalink
Yep! That's exactly what the problem was. Thanks for the tip!



-----Original Message-----
From: Russell Scibetti [mailto:***@quadrix.com]
Sent: Thursday, January 30, 2003 2:43 PM
To: DM
Cc: nagios-***@lists.sourceforge.net
Subject: Re: [Nagios-users] SSL option for check_http?



When you ran ./configure for the plugins, it couldn't find any SSL libraries, so it didn't include the -S (--ssl) options in check_http. When you run ./configure, watch the output to see why its not finding your SSL libraries.

Russell Scibetti

DM wrote:



Does anyone know what happened to the SSL option (-S in previous versions)

for the latest version of the check_http plugin?



- David

Continue reading on narkive:
Loading...