[GH-ISSUE #71] It does not show the graphs #58

Closed
opened 2026-05-05 15:02:51 -06:00 by gitea-mirror · 16 comments
Owner

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.

Sendmailanalizer

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. ![Sendmailanalizer](https://user-images.githubusercontent.com/59257000/71479121-eb723500-27d1-11ea-87bc-f587d4cec5a5.png)
Author
Owner

@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:

<script type="text/javascript" src="flotr2.js"></script>
<script type="text/javascript" src="sorttable.js"></script>
<img src="salogo.png" border="0" ...>

Listing of the default installation path must show the following files:

$ ls /usr/local/sendmailanalyzer/www/
flotr2.js  lang/  salogo.png  sa_report.cgi  sorttable.js

If you have installed resources files elsewhere you must set the URL in the sendmailanalyzer.conf file:

# Path to the Sendmail.org logo. Default current directory
URL_LOGO        salogo.png

# Path to the flotr2 javascript library. Default current directory
URL_JSCRIPT     flotr2.js

# Path to the sortable javascript library. Default current directory
URL_SORTABLE    sorttable.js

Regards,

<!-- gh-comment-id:569070934 --> @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: ``` <script type="text/javascript" src="flotr2.js"></script> <script type="text/javascript" src="sorttable.js"></script> <img src="salogo.png" border="0" ...> ``` Listing of the default installation path must show the following files: ``` $ ls /usr/local/sendmailanalyzer/www/ flotr2.js lang/ salogo.png sa_report.cgi sorttable.js ``` If you have installed resources files elsewhere you must set the URL in the sendmailanalyzer.conf file: ``` # Path to the Sendmail.org logo. Default current directory URL_LOGO salogo.png # Path to the flotr2 javascript library. Default current directory URL_JSCRIPT flotr2.js # Path to the sortable javascript library. Default current directory URL_SORTABLE sorttable.js ``` Regards,
Author
Owner

@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.

<!-- gh-comment-id:569116953 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:569127187 --> @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.
Author
Owner

@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".

<!-- gh-comment-id:589618656 --> @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".
Author
Owner

@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.

<!-- gh-comment-id:589625433 --> @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.
Author
Owner

@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.

sendmail

<!-- gh-comment-id:589646456 --> @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. ![sendmail](https://user-images.githubusercontent.com/59257000/75037150-43f04680-5492-11ea-9d71-000c35fdb65e.png)
Author
Owner

@darold commented on GitHub (Feb 21, 2020):

If you have the following in your sendmailanalyzer.conf

# Path to the Sendmail.org logo. Default current directory
URL_LOGO        salogo.png

# Path to the flotr2 javascript library. Default current directory
URL_JSCRIPT     flotr2.js

you will see in the sources of the HTLM page generated by the CGI :

<script type="text/javascript" src="flotr2.js"></script>
<script type="text/javascript" src="sorttable.js"></script>

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.

<!-- gh-comment-id:589653879 --> @darold commented on GitHub (Feb 21, 2020): If you have the following in your sendmailanalyzer.conf ``` # Path to the Sendmail.org logo. Default current directory URL_LOGO salogo.png # Path to the flotr2 javascript library. Default current directory URL_JSCRIPT flotr2.js ``` you will see in the sources of the HTLM page generated by the CGI : ``` <script type="text/javascript" src="flotr2.js"></script> <script type="text/javascript" src="sorttable.js"></script> ``` 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.
Author
Owner

@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.

<!-- gh-comment-id:589658598 --> @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.
Author
Owner

@darold commented on GitHub (Feb 21, 2020):

What is the full path to the CGI script sa_report.cgi on your system?

<!-- gh-comment-id:589689869 --> @darold commented on GitHub (Feb 21, 2020): What is the full path to the CGI script sa_report.cgi on your system?
Author
Owner

@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".

<!-- gh-comment-id:589694688 --> @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".
Author
Owner

@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/

<!-- gh-comment-id:589722795 --> @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/
Author
Owner

@tleguizamon commented on GitHub (Feb 21, 2020):

Darold

I already did what you mentioned.
It was one of the first things I did.

sendmail

<!-- gh-comment-id:589731453 --> @tleguizamon commented on GitHub (Feb 21, 2020): Darold I already did what you mentioned. It was one of the first things I did. ![sendmail](https://user-images.githubusercontent.com/59257000/75052802-f0402600-54ae-11ea-9ba4-472d6d473e0d.png)
Author
Owner

@darold commented on GitHub (Feb 21, 2020):

Can you post your apache configuration related to SA?

<!-- gh-comment-id:589755902 --> @darold commented on GitHub (Feb 21, 2020): Can you post your apache configuration related to SA?
Author
Owner

@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/"

<!-- gh-comment-id:589761925 --> @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/" </Virtualhost>
Author
Owner

@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:

# Path to the Sendmail.org logo. Default current directory
URL_LOGO        /salogo.png

# Path to the flotr2 javascript library. Default current directory
URL_JSCRIPT     /flotr2.js

# Path to the sortable javascript library. Default current directory
URL_SORTABLE    /sorttable.js
<!-- gh-comment-id:589764185 --> @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: ``` # Path to the Sendmail.org logo. Default current directory URL_LOGO /salogo.png # Path to the flotr2 javascript library. Default current directory URL_JSCRIPT /flotr2.js # Path to the sortable javascript library. Default current directory URL_SORTABLE /sorttable.js ```
Author
Owner

@tleguizamon commented on GitHub (Feb 21, 2020):

Darold

Now it works.

Thank you very much for the help.

Best regards.

<!-- gh-comment-id:589780181 --> @tleguizamon commented on GitHub (Feb 21, 2020): Darold Now it works. Thank you very much for the help. Best regards.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/sendmailanalyzer#58
No description provided.