Alert Template Sent to CPanel User

Post Reply
davetanguay
Junior Member
Posts: 7
Joined: 28 Apr 2012, 01:23

Alert Template Sent to CPanel User

Post by davetanguay »

I'd like to edit the the following alert template in CSF to CC the contact email address listed in CPanel

/usr/local/csf/tpl/resalert.txt

I tried to add CC field as shown below but suspect this will just send to the default CPanel user on the domain cpaneluser @ serverhostname . com instead of their email address in CPanel > Contact Info.

==============================
From: root
To: root
CC: [user]
Subject: lfd on [hostname]: Excessive resource usage: [user] ([pid])

Time: [time]
Account: [user]
Resource: [resource]
Exceeded: [level]
Executable: [exe]
Command Line: [cmd]
PID: [pid]
Killed: [kill]
==============================

Any suggestions on how I can get this working? I know with CXS I can use a custom template and I can use "CC: [user]" which sends to the contact email address listed in CPanel. Seems like [user] for CSF is a bit different though.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Alert Template Sent to CPanel User

Post by ForumAdmin »

There's no such option to do that in csf. You would have to use PT_USER_ACTION and script it yourself.
Post Reply