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 da3deb5 commit fe08abe
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target/
/mrtg/
/log/app.log
/log/app.log.*
Binary file removed mrtg/rrd/[email protected]
Binary file not shown.
6 changes: 4 additions & 2 deletions src/main/java/org/jrobin/mrtg/client/EditLinkDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class EditLinkDialog extends JDialog {

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

private JLabel samplingLabel = Util.standardLabel("Sampling interval: ");
private JLabel samplingLabel = Util.standardLabel("Poll-period (sec):");

private JLabel activeLabel = Util.standardLabel("Active: ");

Expand Down Expand Up @@ -136,8 +136,10 @@ private void constructUserInterface() {
box.add(Util.getPanelFor(routerLabel, routerValueLabel));
box.add(Util.getPanelFor(linksListLabel, Util
.standardScrollPane(linksList)));
box.add(Util.getPanelFor(descrLabel, descrField));
//box.add(Util.getPanelFor(descrLabel, descrField));
box.add(Util.getPanelFor(samplingLabel, samplingField));
samplingField.setEditable(false);
samplingField.setForeground(Color.GRAY);
box.add(Util.getPanelFor(activeLabel, activeBox));
box.add(Util
.getPanelFor(Util.standardLabel(""), okButton, cancelButton));
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/jrobin/mrtg/client/EditRouterDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
//import nnm.NetworkManagerGUI;

public class EditRouterDialog extends JDialog {

static final String ADD_TITLE = "New SNMP Node";

static final String EDIT_TITLE = "Edit Node data";
Expand Down Expand Up @@ -87,7 +88,7 @@ private void constructUserInterface() {
Box box = Box.createVerticalBox();
box.add(Util.getPanelFor(hostLabel, hostField));
box.add(Util.getPanelFor(communityLabel, communityField));
box.add(Util.getPanelFor(descrLabel, descrField));
//box.add(Util.getPanelFor(descrLabel, descrField));
box.add(Util.getPanelFor(activeLabel, activeBox));
box.add(Util.getPanelFor(Util.standardLabel(), okButton, cancelButton));
okButton.addActionListener(new ActionListener() {
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 @@ -47,7 +47,7 @@ public class GraphFrame extends JFrame {

static int START_YEAR = 2022, END_YEAR = 2032;

static Dimension GRAPH_SIZE = new Dimension(640, 480);
static Dimension GRAPH_SIZE = new Dimension(680, 480);

static final int REFRESH_INTERVAL = 300; // 5 minutes

Expand Down

0 comments on commit fe08abe

Please sign in to comment.