Use openwrt to compile and add zabbix_proxy3.4.10

1. Unzip the code package and modify the name of the folder 3.4.6 to 3.2.6, then compress and package it to dl
2.mkpackage zabbix, and then .config reports an error, cancel the
zabbix -server compilation option 3 .. config still reports an error, compile libpcre according to the error report. Library
4. Makefile add pcre related dependencies
5. Add net-snmp support, .config configuration --with-net-snmp="$(STAGING_DIR)/usr" \
6. Compile snmp, it is obvious that the library is needed here Support, so open libsnmp, no need to compile snmpd and snmp
7. Add sqlite3 support, .config configuration --with-sqlite3="$(STAGING_DIR)/usr"
8. Compile libsql
9. Makefile add dependency, otherwise ipk cannot Generate DEPENDS += $(ICONV_DEPENDS) +libpcre +libpcreposix +net-snmp
10. After the compilation is successful, there will be a corresponding ipk in the bin directory. Because of the additional installation of pcre sql snmp, these 3 ipks will also be installed in one phase
11 .ps: The 3.4.6 zabbix software package needs to modify the internal Makefile, because the compilation needs to add net-snmp, so the Makefile should be supported by -lnetsnmp. The names of the libraries are all in /data/luhongsheng/mtk-2015- screend/lede-17.01.5/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/lib in this directory

Need to add fping
1. Download the fping software package
2. Build a package in the development directory of openwrt, find a standard Makefile copy
3. Run the compilation directly, the content will be extracted to the build, the compilation may report an error
4. Enter the build Corresponding fping directory,
5. Import the compilation tool chain into the environment variable export PATH=/home/luhongsheng/openwrt-lede/op-lede/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/bin:$PATH
6 ../configure --host=mipsel-openwrt-linux-musl Configure the cross compilation environment
7.make, and then the generated fping can be used directly

Guess you like

Origin blog.51cto.com/13300270/2621049