mirror of
https://github.com/darold/sendmailanalyzer.git
synced 2026-05-15 22:02:32 -06:00
[GH-ISSUE #71] It does not show the graphs #58
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/sendmailanalyzer#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tleguizamon on GitHub (Dec 26, 2019).
Original GitHub issue: https://github.com/darold/sendmailanalyzer/issues/71
Good morning!
The application is not showing the graphs, even if it is active in the configuration.
Attached capture, to see if you can help me.
From already thank you very much.
Greetings.
@darold commented on GitHub (Dec 26, 2019):
Hi,
I guess that you have not installed SendmailAnalyzer correctly or something has changed since the first install. As you can see the logo is not displayed too that mean that the CGI can't find the logo and resources files where they are expected:
Listing of the default installation path must show the following files:
If you have installed resources files elsewhere you must set the URL in the sendmailanalyzer.conf file:
Regards,
@tleguizamon commented on GitHub (Dec 26, 2019):
Thank you very much for the reply.
The application was installed in another directory, since the hosting where I have it requires it.
I was in charge of modifying the paths where the indicated files are located (flotr2.js, sorttable.js and salogo.png) in "sendmailanalyzer.conf" but still does not graph or show the logo.
On the other hand, if I modify for example: VIRUS_VIEW <----> 0 removes it from the application.
Therefore, the modifications I make have an effect, less that of the graphics.
@darold commented on GitHub (Dec 26, 2019):
Look at the Apache error log to see what's going wrong with the url path for the resource file.
Disabling VIRUS_VIEW remove the link to see virus statistics, so related reports might not appear.
@tleguizamon commented on GitHub (Feb 21, 2020):
Good morning Darold, nice to greet you.
I have installed Sendmailanalizer again, but I can't make it graph or even show the logo.
I would like to know if it is necessary to add any directive in the CGI-BIN for this to work.
Currently in the apache log I see no errors and the routes are well declared in the configuration file "/usr/local/sendmailanalyzer/sendmailanalyzer.conf".
@darold commented on GitHub (Feb 21, 2020):
Hi,
Have a look to URL_LOGO and URL_JSCRIPT in sendmailanalyzer.conf, may be you have to prefix a path to the current value so that they can be loaded by the Web page.
@tleguizamon commented on GitHub (Feb 21, 2020):
Dear.
Check the paths of the sendmailanalyzer.conf file and they are correct.
The error only appears in the graphics and in the logo.
@darold commented on GitHub (Feb 21, 2020):
If you have the following in your sendmailanalyzer.conf
you will see in the sources of the HTLM page generated by the CGI :
Click on the filename (sorttable.js for example) and you should see the content of this javascript file. If not the path do not correspond to the right place where these files can be found or they are not present. If they are not present you can copy them from source tree.
@tleguizamon commented on GitHub (Feb 21, 2020):
Darold
When doing the indicated with both files (flotr2.js and sorttable.js) I receive the following error:
Not Found
The requested URL /var/www/analizer/public_html/cgi-bin/sorttable.js was not found on this server.
Not Found
The requested URL /var/www/analizer/public_html/cgi-bin/flotr2.js was not found on this server.
In the apache log, you don't log anything, if the routes are not correct, you should see it there.
On the other hand, I am struck that the report is done correctly, only what does not work are the graphics.
@darold commented on GitHub (Feb 21, 2020):
What is the full path to the CGI script sa_report.cgi on your system?
@tleguizamon commented on GitHub (Feb 21, 2020):
Darold.
I currently have the "sa_report.cgi" in the following route "/var/www/analizer/public_html/cgi-bin/sa_report.cgi".
@darold commented on GitHub (Feb 21, 2020):
then copy flotr2.js, sorttable.js and salogo.png from the SendmailAnalyzer sources to directory /var/www/analizer/public_html/cgi-bin/
@tleguizamon commented on GitHub (Feb 21, 2020):
Darold
I already did what you mentioned.
It was one of the first things I did.
@darold commented on GitHub (Feb 21, 2020):
Can you post your apache configuration related to SA?
@tleguizamon commented on GitHub (Feb 21, 2020):
Yes of course.
I have configured a Vhost, as follows:
[root@vps-1419828-x ~] # cat /etc/httpd/sites-available/analizer.tk.conf
<VirtualHost *:80>
ServerAdmin -
ServerName -
ServerAlias -
AddHandler cgi-script .pl .cgi
DocumentRoot /var/www/analizer/public_html
ErrorLog /var/www/analizer/error.log
CustomLog /var/www/analizer/access.log combined
ScriptAlias "/cgi-bin/" "/var/www/analizer/public_html/cgi-bin/"
@darold commented on GitHub (Feb 21, 2020):
Perhaps you should move flotr2.js, sorttable.js and salogo.png to /var/www/analizer/public_html and set:
@tleguizamon commented on GitHub (Feb 21, 2020):
Darold
Now it works.
Thank you very much for the help.
Best regards.