yCrash server can be configured to send notification emails whenever new incidents are reported. Based on the hostname, app name from where the incident is reported, you can configure to send alert emails. Here are some sample rules:
- If incident is reported on ‘host1.mycompany.com’ device then send email notification to user1@mycompany.com
- If incident is reported on ‘host1.mycompany.com’ device and ‘digitalBanking’ application then send email notification to user1@mycompany.com, user2@mycompany.com, user3@mycompany.com
- If incident is reported on ‘webBroker’ application then send email notification to user3@mycompany.com
You can configure these rules by clicking on the ‘Notifications’ tab in the dashboard’s left panel. Once rules are configured, notifications will be triggered automatically. Whenever any new incident is reported to yCrash server, rules are evaluated. Based on matching rules appropriate notifications will be triggered.
SMTP host configuration
Inorder to send email notifications, you need to configure mail.xml in the folder where tool is installed. mail.xml structure should be:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<!--
Your company’s SMTP Host configurations
-->
<entry key="mail.smtp.host">smtp.gmail.com</entry>
<entry key="mail.smtp.port">465</entry>
<entry key="mail.smtp.ssl.enable">true</entry>
<entry key="mail.smtp.auth">true</entry>
<!—
This is optional, required only if your SMTP server
Requires User name and password for authentication
-->
<entry key="username">team@tier1app.com</entry>
<entry key="password">testpassword</entry>
</properties>
Here is the description of these properties:
Property | Description |
mail.smtp.host | Your SMTP server’s host name or IP address |
mail.smtp.port | Your SMTP server’s port number |
mail.smtp.ssl.enable | Does the connection to SMTP server needs to be in SSL? |
mail.smtp.auth | Should connection to SMTP server established after proper authentication. |
username | User name should be used for SMTP server authentication. This property is optional, if you are SMTP server doesn’t require authentication. |
password | Password that should be used for SMTP server authentication. This property is optional if your SMTP server doesn’t require authentication. |
Leave a Reply