Hi,
i have recently migrated my nagios 4.0.8 from a rhel 5 server to a rhel 7 server, i have already migrated the conifgs and started nagios, service and host checks are being made.
however im having issues with the check_http command.
here is the command file:
define command{
command_name check_https
command_line /usr/local/nagios/libexec/check_http -S -H $ARG1$ -p 443 -u $ARG3$ --regex=$ARG2$ -w 8 -c 10 -t 15
}
what could i be missing here?
thanks,
check_http: Invalid option - SSL is not available
Re: check_http: Invalid option - SSL is not available
here is the error:
check_http: Invalid option - SSL is not available
Usage:
check_http -H <vhost> -I <IP-address> [-u <uri>] [-p <port>] [-J <client certificate file>] [-K <private key>] [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-E] [-a auth] [-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>] [-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>] [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>] [-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]] [-T <content-type>] [-j method]
check_http: Invalid option - SSL is not available
Usage:
check_http -H <vhost> -I <IP-address> [-u <uri>] [-p <port>] [-J <client certificate file>] [-K <private key>] [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-E] [-a auth] [-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>] [-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>] [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>] [-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]] [-T <content-type>] [-j method]
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_http: Invalid option - SSL is not available
How did you install Nagios on RHEL? I suspect the openssl-devel libraries were not installed when you compiled nagios plugins.
This guide explains how to install Nagios Core and Plugins along with all the required libraries like openssl-devel.
https://support.nagios.com/kb/article.php?id=96
This guide explains how to install Nagios Core and Plugins along with all the required libraries like openssl-devel.
https://support.nagios.com/kb/article.php?id=96
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: check_http: Invalid option - SSL is not available
thanks for the reply box293,
from your guide you posted, i used the command to install the pre-requisite packages. however looks like i already have them:
[root@myserver01 ~]# yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Package gcc-4.8.5-4.el7.x86_64 already installed and latest version
Package glibc-2.17-106.el7_2.8.x86_64 already installed and latest version
Package glibc-common-2.17-106.el7_2.8.x86_64 already installed and latest version
Package wget-1.14-10.el7_0.1.x86_64 already installed and latest version
Package unzip-6.0-15.el7.x86_64 already installed and latest version
Package httpd-2.4.6-40.el7_2.4.x86_64 already installed and latest version
Package php-5.4.16-36.3.el7_2.x86_64 already installed and latest version
Package gd-2.0.35-26.el7.x86_64 already installed and latest version
No package gd-devel available.
Nothing to do
from your guide you posted, i used the command to install the pre-requisite packages. however looks like i already have them:
[root@myserver01 ~]# yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Package gcc-4.8.5-4.el7.x86_64 already installed and latest version
Package glibc-2.17-106.el7_2.8.x86_64 already installed and latest version
Package glibc-common-2.17-106.el7_2.8.x86_64 already installed and latest version
Package wget-1.14-10.el7_0.1.x86_64 already installed and latest version
Package unzip-6.0-15.el7.x86_64 already installed and latest version
Package httpd-2.4.6-40.el7_2.4.x86_64 already installed and latest version
Package php-5.4.16-36.3.el7_2.x86_64 already installed and latest version
Package gd-2.0.35-26.el7.x86_64 already installed and latest version
No package gd-devel available.
Nothing to do
Re: check_http: Invalid option - SSL is not available
You'll need to do the same for these packages:
Code: Select all
openssl openssl-devel/Luke
Re: check_http: Invalid option - SSL is not available
hey guys, i ended up installing the relevent packages and recompiled them on nagios:
yum install openssl-devel
wget http://www.nagios-plugins.org/download/ ... 1.1.tar.gz
tar zxvf nagios-plugins-2.1.1.tar.gz
cd nagios-plugins-2*
./configure --with-openssl --with-nagios-user=nagios --with-nagios-group=nagios
make all
make install
all good now! you may close this topic.
Thanks,
yum install openssl-devel
wget http://www.nagios-plugins.org/download/ ... 1.1.tar.gz
tar zxvf nagios-plugins-2.1.1.tar.gz
cd nagios-plugins-2*
./configure --with-openssl --with-nagios-user=nagios --with-nagios-group=nagios
make all
make install
all good now! you may close this topic.
Thanks,
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: check_http: Invalid option - SSL is not available
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!