The following binaries are required to build:
Program | Source |
---|---|
net-snmp-config | package net-snmp-devel |
g++ | package gcc-g++ |
c99 | package gcc |
re2c | https://re2c.org/ |
- Run:
yum install net-snmp-devel gcc-c++ --disableexcludes=all
- Download and build re2c. A simple
./configure && make && make install
should work - Change to the directory containing the re2c files and run: make all
You should have shared libraries libl7info.so and libl7stat.so
-
Copy libl7info.so and libl7stat.so to /usr/lib64 (or wherever)
-
Add the following two lines to /etc/snmp/snmpd.conf:
dlmod l7info /usr/lib64/libl7info.so dlmod l7stat /usr/lib64/libl7stat.so
-
Run: service snmpd restart
-
Copy the *-MIB.txt files to /usr/share/snmp/mibs
-
Add the following line to /etc/snmp/snmp.conf:
mibs +LBO-MIB:L7INFO-EXPERIMENTAL-MIB:L7STAT-EXPERIMENTAL-MIB
- Run: service snmpd stop
- Run: snmpd -f -Le -Dl7stat,l7info | tee snmpd.log
- Press Ctrl-C when done collecting logs
- Run: service snmpd start
snmpwalk -v 2c -c "${community_string}" "${host}" -OQ l7Info | less -S
snmptable -v 2c -c "${community_string}" "${host}" -Cib l7ProxyServer | less -S
snmptable -v 2c -c "${community_string}" "${host}" -Cib l7Frontend | less -S
snmptable -v 2c -c "${community_string}" "${host}" -Cib l7Backend | less -S
snmptable -v 2c -c "${community_string}" "${host}" -Cib l7Server | less -S