All pastes #223075 Raw Edit

Anonymous

public text v1 · immutable
#223075 ·published 2006-10-26 18:57 UTC
rendered paste body
Troubleshooting

Availabilty Reports

Problem description: 
I click on the Availabilty report and I dont get my any E-Mail.

Solution:
-make sure you have follwing packes installed:
	ghostscript fonts
	xorg-x11-deprecated-libs

 - important places 
	$opennms/share/reports/
	$opennms/log/reports.log
1. Check the dir  $opennms/lshare/reports/
It should look simular to this:

reports]# ls
avail-1161619465960.fot
avail-1161632860286.fot
AVAIL-HTML-Overall-Service-Availability20061024.html
AvailReport.xml
AVAIL-SVG-Overall-Service-Availability20061023.pdf

Take note of the .fot and the AvailReport.xml and the PDF or HTML file.
all of those should be there if the reports are generated properly. 

take a look at the PDF. if it is readable and valid ( it contains a pretty graph ) the problem will be mail related.
Opennms comes with a mailer class which can be disabled.
/etc/javamail-configuration.properties
	org.opennms.core.utils.useJMTA=false
	org.opennms.core.utils.mailHost=127.0.0.1
this two option will turn off the JMTA and opennms will send mails via telnet to your mailHost.

If the PDF isnt created properly, eg. it is broken. 
The problem will be related with the pdfwriter.
you should check the logfile and both the .xml and .fot file and see if they are valid.
you can build the fot file with a tool called fop
http://xmlgraphics.apache.org/fop/
fop.sh file.fot out.pdf should generate the pdf or give you an error message.