• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

action log - possible to email ?

As possible solution you can use following custom script:

Code:
#!/bin/bash
SUBJECT="Plesk action log"
TO="[email protected]"
MESSAGE="/tmp/plesk_action_log.log"

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "select la.date, la.ip_address, la.user, a.name, lc.component, lc.old_value, lc.new_value from actions a, log_actions la, log_components lc where lc.action_id=la.id and la.action_id=a.id" >> $MESSAGE

/bin/mail -s "$SUBJECT" "$TO" < $MESSAGE

rm $MESSAGE

exit 0
 
thx Igor

(The following errors occurred with your submission:

1. The message you have entered is too short. Please lengthen your message to at least 10 characters.)
 
Back
Top