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
Change subject of email alert
Moderators: Developers, Moderators
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.
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.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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:
Where |host_hostname| and |host_description| will be replaced with the actual data.
Code: Select all
Subject = "This is an alert for |host_hostname| ( |host_description| )"
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
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
Who is online
Users browsing this forum: No registered users and 1 guest