如果没有安装openssl,就先安装
sudo apt-get install openssl
重新编译nagios-plugin
./configure --with-openssl
(如果已经安装了的最好make clean)
make
make install
cd /usr/local/nagios/libexec/
./check_http mima.help.163.com -S(https://mima.help.163.com/这个网易帐号修复网)
发现没报SSL is not available错误
又出现新的错误,晕~
HTTP CRITICAL - Unable to open TCP socket
把防火墙禁用,问题解决
./check_http mima.help.163.com -S
HTTP OK: HTTP/1.1 200 OK - 11149 bytes in 0.434 second response time |time=0.433900s;;;0.000000 size=11149B;;;0
本文详细介绍了如何解决Nagios配置中遇到的SSL不可用和无法打开TCP套接字的问题,通过禁用防火墙最终成功执行了Nagios插件的检查操作。
1万+

被折叠的 条评论
为什么被折叠?



