Esempio n. 1
0
 static {
   HashMap hashmap = MasterConfig.getMasterConfig();
   StringProperty astringproperty[] = new StringProperty[0];
   addProperties("COM.dragonflow.StandardMonitor.IPlanetWSMonitor", astringproperty);
   addClassElement(
       "COM.dragonflow.StandardMonitor.IPlanetWSMonitor",
       Rule.stringToClassifier("countersInError > 0\terror"));
   addClassElement(
       "COM.dragonflow.StandardMonitor.IPlanetWSMonitor", Rule.stringToClassifier("always\tgood"));
   setClassProperty(
       "COM.dragonflow.StandardMonitor.IPlanetWSMonitor",
       "description",
       "Monitors IPlanet Web servers using snmp.");
   setClassProperty("COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "help", "IPWSMon.htm");
   setClassProperty(
       "COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "title", "IPlanet Web Server");
   setClassProperty(
       "COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "class", "IPlanetWSMonitor");
   setClassProperty("COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "target", "_server");
   setClassProperty(
       "COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "topazName", "IPlanet Web Server");
   setClassProperty("COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "classType", "application");
   setClassProperty("COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "topazType", "Web Server");
   if (TextUtils.getValue(hashmap, "_allowIPlanet").length() > 0) {
     setClassProperty("COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "loadable", "true");
   } else {
     setClassProperty("COM.dragonflow.StandardMonitor.IPlanetWSMonitor", "loadable", "false");
   }
 }
Esempio n. 2
0
 static {
   pItems = new ScalarProperty("_item", "");
   ((ScalarProperty) pItems).multiple = true;
   ((ScalarProperty) pItems).listSize = 3;
   pItems.setDisplayText(
       "Items",
       "Select two SNMP, Script, or Database monitors to be checked and their results calculated.");
   pItems.setParameterOptions(true, 1, false);
   pOperation = new ScalarProperty("_opertaion", "");
   pOperation.setDisplayText(
       "Operation", "Select the operation to be performed on the results of the above monitors. ");
   pOperation.setParameterOptions(true, 2, false);
   pRunMonitors = new BooleanProperty("_checkSequentially", "");
   pRunMonitors.setDisplayText("Run Monitors", "Run each monitor before performing calculation.");
   pRunMonitors.setParameterOptions(true, 3, true);
   pDelay = new NumericProperty("_delay", "0");
   pDelay.setDisplayText(
       "Monitor Delay", "If running each monitor, delay in seconds between monitor runs.");
   pDelay.setParameterOptions(true, 4, true);
   pStatic = new StringProperty("_static", "");
   pStatic.setDisplayText(
       "Constant",
       "Operate a constant on the Operation result. For example entering *8 will multiply the Operation result by 8.");
   pStatic.setParameterOptions(true, 5, true);
   pValueLabels = new StringProperty("_valeLabels", "");
   pValueLabels.setDisplayText(
       "Result Label", "Optional label for the result of the formula calculation.");
   pValueLabels.setParameterOptions(true, 6, true);
   pResult = new NumericProperty("result");
   pResult.setLabel("Result");
   pResult.setStateOptions(1);
   pStatus = new StringProperty("status");
   StringProperty astringproperty[] = {
     pItems, pRunMonitors, pDelay, pOperation, pResult, pStatus, pStatic, pValueLabels
   };
   addProperties("com.dragonflow.StandardMonitor.BandwidthMonitor", astringproperty);
   addClassElement(
       "com.dragonflow.StandardMonitor.BandwidthMonitor",
       Rule.stringToClassifier("status == 'n/a'\terror", true));
   addClassElement(
       "com.dragonflow.StandardMonitor.BandwidthMonitor", Rule.stringToClassifier("always\tgood"));
   setClassProperty(
       "com.dragonflow.StandardMonitor.BandwidthMonitor",
       "description",
       "Monitor two SNMP, Script, or Database monitors and perform an arithmetic operation on the results.");
   setClassProperty("com.dragonflow.StandardMonitor.BandwidthMonitor", "help", "BandwidthMon.htm");
   setClassProperty(
       "com.dragonflow.StandardMonitor.BandwidthMonitor", "title", "Formula Composite");
   setClassProperty(
       "com.dragonflow.StandardMonitor.BandwidthMonitor", "class", "BandwidthMonitor");
   setClassProperty("com.dragonflow.StandardMonitor.BandwidthMonitor", "topazName", "Bandwidth");
   setClassProperty(
       "com.dragonflow.StandardMonitor.BandwidthMonitor", "topazType", "System Resources");
   setClassProperty("com.dragonflow.StandardMonitor.BandwidthMonitor", "target", "_opertaion");
   setClassProperty("com.dragonflow.StandardMonitor.BandwidthMonitor", "loadable", "true");
 }
Esempio n. 3
0
  static {
    Array array = new Array();
    pSAPServer = new StringProperty("_server", "");
    pSAPServer.setDisplayText("Server", "SAP server name.");
    pSAPServer.setParameterOptions(false, true, BrowsableBase.COUNTER_PROPERTY_INDEX + 1, false);
    array.add(pSAPServer);
    pSystem = new StringProperty("_system", "00");
    pSystem.setDisplayText("System", "Enter the System number for SAP");
    pSystem.setParameterOptions(false, true, BrowsableBase.COUNTER_PROPERTY_INDEX + 2, false);
    array.add(pSystem);
    pClient = new StringProperty("_client");
    pClient.setDisplayText("Client", "Enter the Client for SAP, leave blank for default");
    pClient.setParameterOptions(false, true, BrowsableBase.COUNTER_PROPERTY_INDEX + 3, false);
    array.add(pClient);
    pUsername = new StringProperty("_username");
    pUsername.setDisplayText("Username", "Enter the Username for SAP");
    pUsername.setParameterOptions(false, true, BrowsableBase.COUNTER_PROPERTY_INDEX + 4, false);
    array.add(pUsername);
    pPassword = new StringProperty("_password");
    pPassword.setDisplayText("Password", "Enter the Password for SAP");
    pUsername.setParameterOptions(false, true, BrowsableBase.COUNTER_PROPERTY_INDEX + 5, false);
    pPassword.isPassword = true;
    array.add(pPassword);
    StringProperty astringproperty[] = new StringProperty[array.size()];
    for (int i = 0; i < array.size(); i++) {
      astringproperty[i] = (StringProperty) array.at(i);
    }

    String s = (com.dragonflow.StandardMonitor.SAPMonitor.class).getName();
    addProperties(s, astringproperty);
    addClassElement(s, Rule.stringToClassifier("countersInError > 0\terror", true));
    addClassElement(s, Rule.stringToClassifier("always\tgood"));
    setClassProperty(s, "description", "Monitor statistics from a SAP application server");
    setClassProperty(s, "help", "SAPMon.htm");
    setClassProperty(s, "title", "SAP");
    setClassProperty(s, "class", "SAPMonitor");
    setClassProperty(s, "target", "_server");
    setClassProperty(s, "topazName", "SAP");
    setClassProperty(s, "classType", "application");
    setClassProperty(s, "topazType", "ERP");
    if (!Platform.isWindows()) {
      setClassProperty(s, "loadable", "false");
    }
  }
Esempio n. 4
0
 static {
   returnURL = "/SiteView/cgi/go.exe/SiteView/?page=monitor&class=ASPMonitor";
   counterObjects = "Active Server Pages";
   pCounters = new StringProperty("_counters", "", "Selected Counters");
   pCounters.setDisplayText(
       "Counters",
       "the current selection of counters</TD></TR><TR><TD></TD><TD><A HREF=\"/SiteView/cgi/go.exe/SiteView/?page=counter&returnURL="
           + URLEncoder.encode(returnURL)
           + "&maxcounters="
           + nMaxCounters
           + "&counterobjects="
           + counterObjects
           + "&type=NTCounter\">choose counters</A>");
   pCounters.setParameterOptions(false, true, 1, false);
   pCounters.isMultiLine = true;
   StringProperty astringproperty[] = {pCounters};
   addProperties("com.dragonflow.StandardMonitor.ASPMonitor", astringproperty);
   addClassElement(
       "com.dragonflow.StandardMonitor.ASPMonitor",
       Rule.stringToClassifier("value0 == n/a\terror", true));
   addClassElement(
       "com.dragonflow.StandardMonitor.ASPMonitor", Rule.stringToClassifier("always\tgood"));
   setClassProperty(
       "com.dragonflow.StandardMonitor.ASPMonitor",
       "description",
       "Monitors Microsoft Active Server Pages server performance statistics.");
   setClassProperty("com.dragonflow.StandardMonitor.ASPMonitor", "help", "ASPServerMon.htm");
   setClassProperty("com.dragonflow.StandardMonitor.ASPMonitor", "title", "ASP Server");
   setClassProperty("com.dragonflow.StandardMonitor.ASPMonitor", "class", "ASPMonitor");
   setClassProperty("com.dragonflow.StandardMonitor.ASPMonitor", "target", "_serverName");
   setClassProperty(
       "com.dragonflow.StandardMonitor.ASPMonitor", "topazName", "MS Active Server Pages");
   setClassProperty(
       "com.dragonflow.StandardMonitor.ASPMonitor", "topazType", "Web Application Server");
   setClassProperty("com.dragonflow.StandardMonitor.ASPMonitor", "classType", "application");
   setClassProperty("com.dragonflow.StandardMonitor.ASPMonitor", "applicationType", "NTCounter");
   if (!Platform.isWindows()) {
     setClassProperty("com.dragonflow.StandardMonitor.ASPMonitor", "loadable", "false");
   }
 }
Esempio n. 5
0
 static {
   pPercentFull = new PercentProperty("percentFull");
   pPercentFull.setLabel("percent used");
   pPercentFull.setStateOptions(1);
   pFreeSpace = new NumericProperty("freeSpace", "0", "MB");
   pFreeSpace.setLabel("MB free");
   pFreeSpace.setStateOptions(2);
   pPageFaultsPerSecond = new RateProperty("pageFaultsPerSecond", "0", "pages", "seconds");
   pPageFaultsPerSecond.setLabel("pages/sec");
   pPageFaultsPerSecond.setStateOptions(3);
   pLastMeasurement = new NumericProperty("lastMeasurement");
   pLastPageFaults = new NumericProperty("lastPageFaults");
   StringProperty astringproperty[] = {
     pPercentFull, pFreeSpace, pPageFaultsPerSecond, pLastMeasurement, pLastPageFaults
   };
   addProperties("COM.dragonflow.StandardMonitor.MemoryMonitor", astringproperty);
   addClassElement(
       "COM.dragonflow.StandardMonitor.MemoryMonitor",
       Rule.stringToClassifier("percentFull > 90\terror", true));
   addClassElement(
       "COM.dragonflow.StandardMonitor.MemoryMonitor",
       Rule.stringToClassifier("percentFull > 80\twarning", true));
   addClassElement(
       "COM.dragonflow.StandardMonitor.MemoryMonitor",
       Rule.stringToClassifier("percentFull == n/a\terror"));
   addClassElement(
       "COM.dragonflow.StandardMonitor.MemoryMonitor", Rule.stringToClassifier("always\tgood"));
   setClassProperty(
       "COM.dragonflow.StandardMonitor.MemoryMonitor",
       "description",
       "Measure virtual memory usage");
   setClassProperty("COM.dragonflow.StandardMonitor.MemoryMonitor", "help", "MemoryMon.htm");
   setClassProperty("COM.dragonflow.StandardMonitor.MemoryMonitor", "title", "Memory");
   setClassProperty("COM.dragonflow.StandardMonitor.MemoryMonitor", "class", "MemoryMonitor");
   setClassProperty("COM.dragonflow.StandardMonitor.MemoryMonitor", "classType", "server");
   setClassProperty("COM.dragonflow.StandardMonitor.MemoryMonitor", "topazName", "Memory");
   setClassProperty(
       "COM.dragonflow.StandardMonitor.MemoryMonitor", "topazType", "System Resources");
 }
 static {
   String s = (com.dragonflow.StandardMonitor.Exchange2k3MailboxMonitor.class).getName();
   pNotAccessedN = new StringProperty("_notaccessedN");
   pNotAccessedN.setDisplayText("Days since access", "For \"Mailboxes not accessed in N days\"");
   pNotAccessedN.setParameterOptions(true, 5, false);
   pTopSizeN = new StringProperty("_topsizeN");
   pTopSizeN.setDisplayText("N largest mailboxes", "For \"Top N mailboxes in size\"");
   pTopSizeN.setParameterOptions(true, 6, false);
   StringProperty astringproperty[] = {pNotAccessedN, pTopSizeN};
   addProperties(s, astringproperty);
   addClassElement(s, Rule.stringToClassifier("status != OK\terror"));
   addClassElement(s, Rule.stringToClassifier("always\tgood", true));
   setClassProperty(s, "description", "Monitors Exchange 2003 Mailboxes.");
   setClassProperty(s, "title", "Exchange 2003 Mailbox");
   setClassProperty(s, "class", "Exchange2k3MailboxMonitor");
   setClassProperty(s, "help", "Exch2k3MailboxMon.htm");
   setClassProperty(s, "target", "_server");
   setClassProperty(s, "topazName", "Exchange 2003 Mailbox");
   setClassProperty(s, "classType", "application");
   if (!Platform.isWindows() || !LUtils.isValidSSforXLicense(new Exchange2k3MailboxMonitor())) {
     setClassProperty(s, "loadable", "false");
   }
   setClassProperty(s, "addable", "false");
 }