请问categraf如何监控systemctl服务

Viewed 56

请问categraf如何监控systemctl服务的状态,只要服务处于running状态则认为正常,否则判定为异常。因为systemctl有些有多个端口或者找不到端口,使用input.net_response 监听端口有点麻烦。谢谢

1 Answers