Author: nextgens
Date: 2006-09-02 19:22:56 +0000 (Sat, 02 Sep 2006)
New Revision: 10371

Modified:
   trunk/plugins/SNMP/SNMP.java
Log:
fix the snmp plugin disabling configuration options... It needs to be sorted 
out with the new plugin api

Modified: trunk/plugins/SNMP/SNMP.java
===================================================================
--- trunk/plugins/SNMP/SNMP.java        2006-09-02 18:31:44 UTC (rev 10370)
+++ trunk/plugins/SNMP/SNMP.java        2006-09-02 19:22:56 UTC (rev 10371)
@@ -33,6 +33,8 @@
                SNMPAgent.stopSNMPAgent();

                try{
+                       //FIXME: sort out
+                       /*
                        Config c=pr.getNode().config;
                        SubConfig sc=new SubConfig("plugins.snmp",c);
                        sc.register("port", 4000,2, true, false, "SNMP port 
number", "SNMP port number", new SNMPPortNumberCallback());
@@ -41,12 +43,16 @@
                        bindto=sc.getString("bindto");
                        port=sc.getInt("port");

+                       sc.finishedInitialization();
+                       */
+                       
+                       port=4000;
+                       bindto="127.0.0.1";
+                       
                        SNMPAgent.setSNMPPort(port);
                        System.out.println("Starting SNMP server on 
"+bindto+":"+port);
                        SNMPStarter.initialize();
                        Logger.normal(this,"Starting SNMP server on 
"+bindto+":"+port);
-                       
-                       sc.finishedInitialization();
                        while(goon){
                                try {
                                        Thread.sleep(10000);


Reply via email to