The Samba-Bugzilla – Bug 7695
Add Servername to /usr/share/samba/panic-action Script
Last modified: 2017-12-07 11:28:00 UTC
Since I have a few samba servers running I never know which of them had a problem when I receive an email from the panic action script.
It would be great if the script just also tells me which server it is sending from, for example using hostname -v or sending the samba netbios name, workgroup and server string.
I think it makes sense to add an adequate command to the script you define with the "panic action" parameter.
Closing bug as worksforme.