gpt4 book ai didi

ssl - 我如何在 ubuntu 的 nagios 核心中配置 ssl experation 监控

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

我已经在ubuntu 18上安装了Nagios core 4.4.5版本,现在我只想监控我的远程服务器的SSL过期时间,那么如何在Nagios服务器上配置SSL插件

最佳答案

自从我尝试了一段时间以来,但我认为这样的事情应该可行:

命令定义:

define command{
command_name check_cert
command_line /usr/lib/nagios/plugins/check_http -S \
-I $HOSTADDRESS$ -w 5 -c 10 -p $ARG1$ -C $ARG2$
}

服务定义:

define service {
service_description SSL expiration
host_name your-remote-server
use generic-service
check_command check_named_cert!443!21!www.example.net
}

我还认为我玩过一些插件。

关于ssl - 我如何在 ubuntu 的 nagios 核心中配置 ssl experation 监控,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57952707/

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