On 2009-05-11 14:45, Kurt Bechstein wrote: > > > -----Original Message----- > From: opsview-users-boun...@??? [mailto:opsview-users-boun...@???] On Behalf > Of u...@??? > Sent: Monday, May 11, 2009 10:38 AM > To: opsview-us...@??? > Subject: Re: [opsview-users] Error running stock report > > > From the prompt, below generates a nice pdf. > > su - nagios > cd /usr/local/opsview-reports/types/generic_availability > java -jar ODWReportLauncher.jar -FConnections.xml -N3 > > But haven't figured out why the gui doesn't create a pdf in > /usr/local/opsview-reports/types/generic_availability/reports > > /Urban > > > On the system I'm working with I see the same error from the command line > that I see in the gui. This is a RHEL 5.3 box. >
Below solves our problem: From prompt: su - nagios cd /usr/local/opsview-reports/types/generic_availability unset DISPLAY <========== java -jar ODWReportLauncher.jar -FConnections.xml -N3 From gui: changed line 73 in /usr/local/nagios/bin/run_opsview_report from my $cmd = "java -jar ODWReportLauncher.jar -FConnections.xml -N$reportid"; to my $cmd = "unset DISPLAY;java -jar ODWReportLauncher.jar -FConnections.xml -N$reportid"; Still a lote of DEBUG is produced, but it work's. /Urban _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/listinfo/opsview-users
