gpt4 book ai didi

ssl - 监控插件check_http证书过期检查

转载 作者:太空宇宙 更新时间:2023-11-03 13:33:19 25 4
gpt4 key购买 nike

[root@chi plugins]# '/usr/lib64/nagios/plugins/check_http' '-C' '15,30' '-I' '99.830.700.184' '-S' '-p' '443 '

SSL OK - 证书“localhost”将于 2018 年 12 月 14 日 02:20 +0000/UTC 到期。 HTTP 警告:HTTP/1.1 404 未找到 - 在 0.156 秒响应时间内 226 字节 |time=0.155850s​​;;;0.000000 size=226B;;;0

我需要抑制 HTTP 404 警告。如果有另一个插件可以做到这一点,我想知道它。 (我无法更改网络服务器上的任何内容。)

最佳答案

您可以使用相同的插件,但添加 -e 404,因此它看起来像:

[root@chi plugins]# '/usr/lib64/nagios/plugins/check_http' '-C' '15,30' '-I' '99.830.700.184' '-S' '-p' '443' '-e' '404'

-e 404 标志抑制 404 错误代码。

关于ssl - 监控插件check_http证书过期检查,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47946580/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com