Monitoring of combit Report Server via email notification

Klicke hier für den deutschen Artikel.

Description

To monitor combit Report Server, it can be helpful to be informed proactively by email.

Solution

To receive log information from the combit Report Server by email, the file Log.WebUI.config (default path: C:\Program Files\combit\combit Report Server\WebUI\Log.WebUI.config) can be edited with any text editor and extended as follows.

The section targets must be extended by the following line:

Note: Other, possibly already existing, entries in the targets section should remain unchanged!


	<targets>
		<!-- Send logs to mail recipient -->
		<target xsi:type="Mail" name="MailLoggerTarget" subject="Domain\Server ReportServer " to="administrator@mydomain.com" from="administrator@mydomain.com" smtpServer="0.0.0.0" smtpPort="25" layout="${message} (U: ${identity})" />
	</targets>

The parameters subject, to, from, smtpServer and smtpPort must be adjusted accordingly.

Furthermore, the following line must be added to the rules section:

Note: Other, possibly already existing, entries in the rules section should remain unchanged!

	<rules>

		<logger name="*" minlevel="Warn" writeTo="MailLoggerTarget" />

	</rules>

The desired log level can be adjusted via minlevel. Among others, the log levels Info, Warning and Error (recommended) are available. The logger used is based on NLog. Further log levels can be found on the following page: NLog Log-Levels.

If a message with the corresponding log level is triggered on the combit Report Server, an email is sent to the address that has just been configured.

The Internet Information Services (IIS) may need to be restarted for activation. Either open a command line window as administrator and initiate the reset with iisreset or open the Internet Information Services (IIS) Manager and click on Restart under Actions on the right-hand side.