Oracle Weblogic Server (MOSC)

MOSC Banner

How do I Send Email Alert to monitor JDBC datasource reached max limits using Weblogic WLST command

edited Sep 23, 2013 8:27PM in Oracle Weblogic Server (MOSC) 6 commentsAnswered ✓
 Hi Community,
I just want to know how do I sent email alerts to monitor Data source / JDBC connection pool which exceeds the max threshold limits, while creating web logic WLST scripts or Python.

I was using below script but it doesn't work for email sending return syntax error on following lines such as highlighted in red color. 
====================================
import os

def sendMail(name, state):
string = name+” is in ” + state + ” state”
cmd = “echo ” + string + ” > tmpfile”
os.system(cmd)
os.system(‘/usr/bin/mailx -s ” SERVER STATE” alian@test.com < tmpfile’)
=================================

Can anyone help me find out proper script to resolve this problem

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center