Skip to content

Commit

Permalink
SNMP-MRTG correct
Browse files Browse the repository at this point in the history
  • Loading branch information
harp077 committed Nov 5, 2022
1 parent bcaea3b commit 5fe79b3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/java/my/harp07/PjFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class PjFrame extends javax.swing.JFrame {
public static String currentLAF = "com.jtattoo.plaf.acryl.AcrylLookAndFeel";
public static String currentTheme = "lib/themes/Default.theme";
public static List<String> tinyTemes = new ArrayList<>();
public static String zagolovok = "Pure Java Network Tools, v1.0.77, build 05-11-2022";
public static String zagolovok = "Pure Java Network Tools, v1.0.78, build 05-11-2022";

public PjFrame() {
initComponents();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jrobin/mrtg/client/ClientMRTG.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ClientMRTG extends JFrame {

static final String helpStr = "Started SNMP-polling after running pj-net-tools and ending SNMP-polling after killing pj-net-tools. \nKeeps SNMP-polling even after closing MRTG-window. \nUse 32-bit counters for speed <= 100 Mbit/s.\nPolling every 300 sec.";

static final String TITLE = "MRTG, keeps polling even after closing this window, 32-bit counters for speed <= 100 Mbit/s";
static final String TITLE = "MRTG ( keeps polling even after closing this window )";

static final String SUBTITLE = "http://netwhistler.spb.ru";

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jrobin/mrtg/client/EditRouterDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public class EditRouterDialog extends JDialog {

private RouterInfo routerInfo;

private JLabel hostLabel = Util.standardLabel("Address: ");
private JLabel hostLabel = Util.standardLabel("IP-address: ");

private JLabel communityLabel = Util.standardLabel("Community: ");
private JLabel communityLabel = Util.standardLabel("Read-Community: ");

private JLabel descrLabel = Util.standardLabel("Description: ");

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jrobin/mrtg/client/GraphFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class GraphFrame extends JFrame {
private JLabel infoLabel = new JLabel();

GraphFrame(JFrame parent, RouterInfo routerInfo, LinkInfo linkInfo, int type) {
super(linkInfo.getIfDescr() + "@" + routerInfo.getHost() + " , 32-bit counters for speed <= 100 Mbit/s");
super(linkInfo.getIfDescr() + "@" + routerInfo.getHost());
setResizable(false);
this.routerInfo = routerInfo;
this.linkInfo = linkInfo;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jrobin/mrtg/client/LinkInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public String toString() {
public String getInfo() {
StringBuffer b = new StringBuffer();
b.append("Interface description: " + getIfDescr() + "\n");
b.append("MRTG description: " + getDescr() + "\n");
b.append("Node alias: " + getIfAlias() + "\n");
//b.append("MRTG description: " + getDescr() + "\n");
b.append("Interface alias: " + getIfAlias() + "\n");
b.append("Interface index: " + getIfIndex() + "\n");
b.append("Sampling interval: " + getSamplingInterval() + " sec\n");
b.append("Active: " + isActive() + "\n\n");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jrobin/mrtg/client/RouterInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public String toString() {
public String getInfo() {
StringBuffer buffer = new StringBuffer();
buffer.append("Node address: " + getHost() + "\n");
buffer.append("Community: " + getCommunity() + "\n");
buffer.append("Description: " + getDescr() + "\n");
buffer.append("SNMP-read Community: " + getCommunity() + "\n");
//buffer.append("Description: " + getDescr() + "\n");
buffer.append("Active: " + isActive() + "\n");
buffer.append("Sampled links: " + getLinkInfo().length + "\n");
return buffer.toString();
Expand Down

0 comments on commit 5fe79b3

Please sign in to comment.