How do I Send Email Alert to monitor JDBC datasource reached max limits using Weblogic WLST command
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
0