Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to send an email with some meaningful data when my program crashes on the server.I have a stat called Dump which is a short log file containing crash info. I want to send this in the email that gets triggered. I have no idea what script is I need. So far I have tried these and a few more variations

{{HOSTNAME}:templatename.Dump.last(0)}
{{HOSTNAME}:Dump.last(0)}
{{HOSTNAME}:log["/tmp/dump.log"].last(0)}

Being pointed towards some documentation about this stuff would also be appreciated.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.