Monitoring Brekeke SIP Server with Net-SNMP
Monitor the number of Java processes
Add the following lines in the file “snmpd.conf“:
view systemview included .22.214.171.124.4.1.2021.2 proc java 0 3
If Brekeke SIP Server and its embedded database are working, there will be at least 3 Java processes. By using the above setting, you can monitor the number of Java processes (whether if there are 3 or less Java processes).
If the number of Java processes is 3, the UCD-SNMP-MIB::prErrorFlag (.126.96.36.199.4.1.2021.2.1.100) indicates 0 as OK.
If the number of Java processes is less than 3, the UCD-SNMP-MIB::prErrorFlag (.188.8.131.52.4.1.2021.2.1.100) indicates 1 as NG.
Note: set “proc java 0 2“, if you are using 3rd party database instead of the embedded database.
Acquire the SIP server information
Add the following lines in the file “snmpd.conf”.
view systemview included .184.108.40.206.4.1.8072.1.3.1 extend .220.127.116.11.4.1.8072.1.3.1 info /usr/java/jdk/bin/java -cp /tomcat/webapps/sip/WEB-INF/lib/ondosip.jar svctl localhost info 5
(Note: In this example, java program path is /usr/java/jdk/bin/java and Brekeke SIP Server’s installation directory is /tomcat/webapps/sip)
The above method will return the following internal information:
startup-time life-length sip-packet-total stacked-packet session-active-invite session-peak registered-record thread-active-cnt java-use-memory java-free-memory java-total-memory java-max-memory