In this case you need the bridging authentication solution. .
A python script can do the job. what kind of password vault is it.
Work around for this, where everyone in risk,db and access management team is happy is to use one time password, connect the database and let "dbmon-tai"l monitor the database.Once connection is established it does not need authentication again for long time. "dbmon-tail" normally queries database every 100 miliseconds.
Furthermore $SPLUNK_HOME/etc/apps/dbx/bin/status.py can provide the information on schedules query and help troubleshoot.
Additionally you need to setup an alert for internal database connectivity error, incase of reconnect and authentication failure.
... View more