| Software Secret Weapons™ |
How To Use Linguine Watch In Java Applications posted by Pavel Simakov on 2006-03-23 23:58:13 under Linguine Watch
|
|||
|
In order to add SNMP performance monitoring to your application with Linguine Watch you need to:
The real-life practical tutorials are available. Start with Tutorial 1.
There are many options that can be used to control Linguine Watch. Some properties apply to SNMP monitoring only, other are used at all times. Each of these variables has a corresponding setter and getter method in the appropriate class. The various options can be set right after an instance of IPerfAgent or ISNMPAgent is created, but before the agent is started. For example:
LinguineSNMPWatch watch = new LinguineSNMPWatch();
watch.getPerfAgentContext().setSnapshotFileName("c:/perf.html");
watch.getSNMPAgentContext().setPort(12345);
watch.start();
...
// frequency for collecting data from the counters; // once per this number of milliseconds private int collectDelayMillis;
// TCP/IP port number for the SNMP agent server; // defaults to standard SNMP port 161 private int port; // each Enterprise must place its counters under // a specific enterprise identified; if you do not have one // leave this alone; used for MIB file generation private int enterprisesOID; // name of the enterprise; used for MIB file generation private String organizationName; // contact info for the enterprise; used for MIB file generation private String contactInfo; // community string for SNMP agent to respond to; // default to "public" private String communityString; // standard prefix for the names of counter/gages; used for MIB file generation private String namespace;
|
|
|||
| Copyright © 2004-2007 by Pavel Simakov |
|
No comments yet
Leave a comment