Change subject of email alert

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
matzesworld
Posts: 1
Joined: Thu Oct 01, 2009 6:18 am

Change subject of email alert

Post by matzesworld »

hi @ all

how can I change the subject from an email?
In the "Settings - Alerting/Thold" I only can change the Alert Text Message but not the subject.
It it nessesary for our email2sms gateway, which needs an special email subject.

Has anyone a idea?

many thanks
Struz
Posts: 3
Joined: Tue Feb 13, 2007 10:52 pm

Post by Struz »

I am also interested in how to change the subject for the alerting emails. I'll keep researching and post any solutions.
fnaik
Posts: 2
Joined: Tue Jun 01, 2010 5:02 am
Location: Pakistan

Post by fnaik »

You can change the text in the setup.php files for the respective plugin where text of body, headers (email) are being defined / called.

I using both Thold and NMID UpDownMonitor plugin. I wanted to add an additional AuthCode in my subject for the SMS gateway to verify when the host down alert goes out.

I added the respective text in setup.php file for NMID plugin in the plugins directory of cacti.
User avatar
Hyperlord
Cacti User
Posts: 211
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany

Post by Hyperlord »

@Plug-In DEV: Why not integrating this into "settings" or s.th. like that? I had the same issue but figured it out myself. Would be handy anyway ...

brgds
Om Tat Sat
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Fine, I'll add an option to the cacti settings then where the subject can be configured via the web-interface. Something with variables, like the line below:

Code: Select all

Subject  = "This is an alert for |host_hostname| ( |host_description| )"
Where |host_hostname| and |host_description| will be replaced with the actual data.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest