您的位置:首页 > 移动开发 > IOS开发

nagios-plugin 编译

2013-04-09 21:38 169 查看
又忘记保存最原始文档了。。

随便来个参数备忘

注意需要安装 fping, openssh, netsnmp, mysql 库 等软件

nagios-plugin-1.4.16.tar.gz

./configure --enable-libtap --enable-extra-opts --enable-redhat-pthread-workaround --enable-perl-modules --with-nagios-user=nagios --with-nagios-group=nagios --without-world-permissions --with-gnu-ld --with-cgiurl=/nagios/cgi-bin --with-perl=/usr/bin/perl
--with-mysql=/usr/local/mysql --with-nslookup-command=/usr/bin/nslookup --with-uptime-command=/usr/bin/uptime --with-rpcinfo-command=/usr/sbin/rpcinfo --with-smbclient-command=/usr/bin/smbclient --with-snmpget-command=/usr/bin/snmpget --with-snmpgetnext-command=/usr/bin/snmpgetnext
--with-fping-command=/usr/sbin/fping --with-ssh-command=/usr/bin/ssh --with-mailq-command=/usr/bin/mailq --with-proc-meminfo=/proc/meminfo --with-dig-command=/usr/bin/dig --with-libiconv-prefix=/usr/local --without-libintl-prefix --with-ping-command="/bin/ping
-n -U -w %d -c %d %s" --with-openssl=/usr --with-ps-format="%s %d %d %d %d %d %f %s %s %n" --with-ps-command="/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args'" --with-ps-format="%s %d %d %d %d %d %f %s %s %n" --with-ps-cols=10 --with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos"

注意: 假如需要使用 check_http 及 check_tcp 执行 --ssl 的加密验证, 则必须使用 --with-gnutls 及 --with-openssl 参数支持

当前 rhel6 与 --with-gnutls 参数出现库文件不全,不兼容现象

需要编译安装

lzip-1.14.tar.gz

gmp-5.1.1.tar.lz

gnutls-2.12.18.tar.gz

nettle-2.5.tar.gz

p11-kit-0.13.tar.gz

过程丢失,有时间再补充
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: