shell监控finebi定时调度

📅 发布时间:2026/7/10 9:18:48 👁️ 浏览次数:
shell监控finebi定时调度
通过shell监控finebi定时调度是否全部按时发送我的是十点发送25个报表 所以写了个check_finebi.sh在dolphinscheduler所在节点10:05执行 ds失败可以发送邮件通知catcheck_finebi.sh#!/bin/bashcount$(sshhadoop101find /opt/module/finebi/FineBI5.1/webapps/webroot/WEB-INF/schedule -type d -name\\$(date%Y-%m-%d)\| wc -l2/dev/null)if[$?-ne0];thenechoSSH连接失败exit2fiif[$count-eq25];thenecho成功找到25个今天日期的目录exit0elseecho失败找到${count}个目录期望25个exit1fi