1 Reply Latest reply: Nov 12, 2012 10:17 PM by Kalyan Pasupuleti-Oracle RSS

    WLDF in weblogic 10,3,5

    837620
      Hi ,


      Please some one help how to configure wldf 10.3.5 . is there is any sample script?


      Thanks,
        • 1. Re: WLDF in weblogic 10,3,5
          Kalyan Pasupuleti-Oracle
          Hi,


          For Email notification for stuck threads on your Server, you need to first create a Diagnostic
          Module. Within this you have to configure the Watches and Notifications.

          In this example, we are setting up a watch on the server log to look for the MaxStuckThread warning being reported. We do this be setting the Rule Expression to be equal to the message ID for this warning, when examining the output of the server log.

          Within the notification, we can set up any type of notification, but in this example we are setting up an SMTP (mail notification), so that when the rule expression matches the mail notification is sent.

          Below is the content of the Diagnostic_module.xml file created after completing the above tasks:
          <?xml version='1.0' encoding='UTF-8'?>
          <wldf-resource xmlns="http://www.bea.com/ns/weblogic/weblogic-diagnostics"
          xmlns:sec="http://www.bea.com/ns/weblogic/90/security"
          xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-diagnostics
          http://www.bea.com/ns/weblogic/weblogic-diagnostics/1.1/weblogic-diagnostics.xsd">
          <name>Module-0</name>
          <watch-notification>
          <watch>
          <name>Serverlog</name>
          <enabled>true</enabled>
          <rule-type>Log</rule-type>
          <rule-expression>(SERVER = 'AdminServer') AND (MSGID =
          'BEA-000337')</rule-expression>
          <alarm-type>None</alarm-type>
          <notification>mailNotification</notification>
          </watch>
          <smtp-notification>
          <name>mailNotification</name>
          <enabled>true</enabled>
          <mail-session-jndi-name>myMailSession</mail-session-jndi-name>
          <subject>stuck thread problem</subject>
          <body>testing</body>
          <recipient>carl.brahms@united.com</recipient>
          </smtp-notification>
          </watch-notification>
          </wldf-resource>

          Further details on creating a diagnostic module can be found here -
          http://download.oracle.com/docs/cd/E13222_01/wls/docs103/ConsoleHelp/taskhelp/diagnostics/UseDiagnosticModulesToMonitorServers.html

          and further details on how to create watches and notifications can be found here
          http://download.oracle.com/docs/cd/E13222_01/wls/docs103/ConsoleHelp/taskhelp/diagnostics/ConfigureWatchesAndNotifications.html


          Regards,
          Kal