小编Joh*_*eet的帖子

在 MacOS 中编译 openMVG 时,如何告诉 Make 在哪里可以找到“omp.h”?

我正在尝试在运行 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)

makefile openmp eigen macos-catalina

5
推荐指数
0
解决办法
157
查看次数

用于向 Nagios 添加插件的“操作方法”

是否有“如何”向 Nagios 添加和配置插件?(特别适用于 Ubuntu 14.04,但任何 Linux 操作系统都会有所帮助。)

到目前为止,我已经能够拼凑这么多:

  1. 将脚本放在 /usr/local/nagios/libexec/ 中。(就我而言,已经有一个我想使用的脚本:“check_file_age”。)
  2. 编辑 /usr/local/nagios/etc/objects/commands.cfg 以添加插件。
定义命令{  
    command_name check_file_age  
    命令行 $USER1$/check_file_age -w $ARG1$ -c $ARG2$ -W $ARG3$ -C $ARG4$ -f $ARG5$ 
}
  1. 在 /usr/local/nagios/etc/objects/localhost.cfg 中定义插件。
定义服务{
    使用通用服务;要使用的服务模板的名称
    主机名 本地主机
    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 …

linux ubuntu perl nagios

1
推荐指数
1
解决办法
2万
查看次数

标签 统计

eigen ×1

linux ×1

macos-catalina ×1

makefile ×1

nagios ×1

openmp ×1

perl ×1

ubuntu ×1