通过 ps -ef | grep python3 查看需要监控的脚本进程:
在Zabbix监控 test01.py脚本进程数量:
proc.num[,,,test01.py]
如果进程数量为0,表示该脚本已退出运行