Watch4net Alerting on Scheduled Report fails with the following message:
java.lang.Exception: Could not find the alert manager '<manager-name>'!
Unable to transfer report to remote locations and/or Alerting managers. Please check that the remote locations and/or Alerting managers are valid and accessible.
Details:
130416 14:57:18 : SEVERE: Error while sending file: Databases_2013-04-16_14h57
130416 14:57:18 : java.lang.Exception: Could not find the alert manager 'Local Manager'!
130416 14:57:18 : SEVERE: Scheduled Report `Databases` for user `admin` could not be sent: Tuesday, April 16, 2013 2:57:18 PM IST SEVERE: Scheduled Report `remote location` for user `admin` for type `Databases` failed!
130416 14:57:18 : Caused by: java.lang.Exception: Could not find the alert manager 'Local Manager'!
130416 14:57:18 : SEVERE: Report generation contained errors.
130416 14:57:18 : com.watch4net.apg.report.scheduling.generator.ScheduledReportGenerationException: Report generation failed with code 13For more information please contact your APG administrator.
Example #1: Alerting Manager name in alerting-frontend.xml file
The following shows in alerting-frontend.xml file configured with Alerting Manager name "Local Manager".
File location:
/opt/APG/Web-Servers/Tomcat/Default/conf/Catalina/localhost/alerting-frontend.xmlFile content:
<!-- Alerting Properties -->
<Resource name="manager/Local Manager" auth="Container" type="com.watch4net.alerting.jmx.AlertManagerFactory"
factory="org.apache.naming.factory.BeanFactory" user="admin" pass="changeme"
url="service:jmx:rmi:///jndi/rmi://localhost:52569/jmxrmi" />
Example #2: Alerting Manager name in report-generation-config.xml file
The following shows in report-generation-config.xml file configured with Alerting Manager name "Local Manager123".
File name:
/opt/APG/Tools/Frontend-Report-Generator/Default/conf/report-generation-config.xmlFile content:
<!-- Alerting Properties -->
<manager
name="Local Manager123"
user="admin"
pass="changeme"
url="service:jmx:rmi:///jndi/rmi://localhost:52569/jmxrmi" />
If you encounter this issue, do the following: