我正在尝试在运行 Catalina 的 MacBook 上构建 openMVG。当我运行“make”时,我收到一个错误,说它找不到“omp.h”。
jaireaux@Johns-MBP ~/Downloads/software/openMVG/build % make
[ 9%] Built target lib_CoinUtils
[ 12%] Built target lib_Osi
[ 21%] Built target lib_clp
[ 21%] Built target lib_OsiClpSolver
[ 22%] Built target openMVG_stlplus
[ 24%] Built target openMVG_lemon
[ 24%] Built target main_svgSample
[ 33%] Built target openMVG_cxsparse
[ 55%] Built target openMVG_ceres
[ 56%] Built target openMVG_easyexif
[ 57%] Built target openMVG_fast
[ 57%] Built target openMVG_exif
[ 57%] Building CXX object openMVG/features/CMakeFiles/openMVG_features.dir/akaze/AKAZE.cpp.o
In file included from …Run Code Online (Sandbox Code Playgroud) 是否有“如何”向 Nagios 添加和配置插件?(特别适用于 Ubuntu 14.04,但任何 Linux 操作系统都会有所帮助。)
到目前为止,我已经能够拼凑这么多:
定义命令{
command_name check_file_age
命令行 $USER1$/check_file_age -w $ARG1$ -c $ARG2$ -W $ARG3$ -C $ARG4$ -f $ARG5$
}
定义服务{
使用通用服务;要使用的服务模板的名称
主机名 本地主机
service_description 文件年龄
check_command check_file_age
通知_启用 1
}
现在我可以在“配置 -> 对象类型:命令”下看到插件,我可以在“配置 -> 对象类型:服务”中看到它。
该插件从命令行成功运行:
用户@主机:/usr/local/nagios/libexec$ perl ./check_file_age -w 3600 -c 5400 -W -1 -C -1 -f somefile.txt FILE_AGE OK: somefile.txt 是 2932 秒,59 字节 | 年龄=2932s;3600;5400 尺寸=59B;-1;-1;0
然后在这一点上我很难过。我可以在服务中看到此错误:
档案时代 危急 09-09-2015 14:24:21 0d 0h …