【发布时间】:2018-08-28 20:17:09
【问题描述】:
我正在使用check_file_age 命令和在 icinga2 导向器中创建的服务。它总是返回找不到文件。
FILE_AGE CRITICAL: File not found - /root/last-backup
该文件存在于服务器上,如果在终端中运行则返回 OK。
~ '/usr/lib/nagios/plugins/check_file_age' '-c' '95000' '-f' '/root/last-backup' '-w' '90000'
FILE_AGE OK: /root/last-backup is 70052 seconds old and 11 bytes | age=70052s;90000;95000 size=11B;0;0;0
如果我检查 debug.log,该命令会返回退出代码 2。
【问题讨论】: