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
過程丟失,有時間再補充
最後更新:2017-04-03 20:51:31