nagios-plugin 编译

又忘记保存最原始文档了。。

 

随便来个参数备忘

注意需要安装 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

过程丢失,有时间再补充

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Terry_Tsang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值