[GH-ISSUE #81] Blank Reporting? #64

Closed
opened 2026-05-05 15:03:28 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @jeff3d29 on GitHub (Mar 11, 2022).
Original GitHub issue: https://github.com/darold/sendmailanalyzer/issues/81

New to sendmail and sendmailreporting.

I have deploy my first Sendmail MTA now, I want to see the reporting so deploy sendmailanalyzer on separate server as didn't felt right having on the same server as the MTA. I believe I configure everything correctly but being receving no report or chart. What did I miss?

image

Originally created by @jeff3d29 on GitHub (Mar 11, 2022). Original GitHub issue: https://github.com/darold/sendmailanalyzer/issues/81 New to sendmail and sendmailreporting. I have deploy my first Sendmail MTA now, I want to see the reporting so deploy sendmailanalyzer on separate server as didn't felt right having on the same server as the MTA. I believe I configure everything correctly but being receving no report or chart. What did I miss? ![image](https://user-images.githubusercontent.com/101384775/157817535-a1c15824-294d-48e6-a95f-6a8860047d05.png)
Author
Owner

@darold commented on GitHub (Mar 11, 2022):

Hi,

I'm surprised by the blank artound the mail0 server name. Can you please post few line of your log or send then to my private email also give me the command line you are using to execute sendmailanalyzer.

Also are you using rsyslog to send your log to the other server or are you copying the log?

<!-- gh-comment-id:1064844865 --> @darold commented on GitHub (Mar 11, 2022): Hi, I'm surprised by the blank artound the mail0 server name. Can you please post few line of your log or send then to my private email also give me the command line you are using to execute sendmailanalyzer. Also are you using rsyslog to send your log to the other server or are you copying the log?
Author
Owner

@jeff3d29 commented on GitHub (Mar 11, 2022):

@darold I'm using rsyslog to send the logs from the MTA to sendmailanalyzer. I send a private message, using /usr/local/sendmailanalyzer -f

<!-- gh-comment-id:1065078005 --> @jeff3d29 commented on GitHub (Mar 11, 2022): @darold I'm using rsyslog to send the logs from the MTA to sendmailanalyzer. I send a private message, using /usr/local/sendmailanalyzer -f
Author
Owner

@pmvo51 commented on GitHub (May 20, 2022):

Friends, I also did my first install of Sendmailanalyzer and the graphs were not generated.

Another error found was when manually executing sa_report.cgi because I had an error "Language file is not readable lang/en_US". I needed to comment out this function to get it to run successfully.

Can you help me?

image

<!-- gh-comment-id:1132990443 --> @pmvo51 commented on GitHub (May 20, 2022): Friends, I also did my first install of Sendmailanalyzer and the graphs were not generated. Another error found was when manually executing sa_report.cgi because I had an error "Language file is not readable lang/en_US". I needed to comment out this function to get it to run successfully. Can you help me? ![image](https://user-images.githubusercontent.com/94560880/169552942-65a2dc49-fedf-4451-8490-2c6ad881bda3.png)
Author
Owner

@darold commented on GitHub (May 20, 2022):

you need to copy the lang/ directory from the sources where the sa_report.cgi is installed. You CGI directory where sa_report.cgi is install should looks to the default:

$ tree /usr/local/sendmailanalyzer/www/
/usr/local/sendmailanalyzer/www/
├── flotr2.js
├── lang
│   ├── bg_BG
│   ├── de_DE
│   ├── en_US
│   ├── ERROR_CODE
│   ├── es_ES
│   ├── fr_FR
│   ├── it_IT
│   ├── pt_BR
│   └── ru_RU
├── salogo.png
├── sa_report.cgi
└── sorttable.js

If this is the case, you should verify the permission, files here probably need to be readable by the www-data user or the one your httpd server is running.

<!-- gh-comment-id:1133084456 --> @darold commented on GitHub (May 20, 2022): you need to copy the lang/ directory from the sources where the sa_report.cgi is installed. You CGI directory where sa_report.cgi is install should looks to the default: ``` $ tree /usr/local/sendmailanalyzer/www/ /usr/local/sendmailanalyzer/www/ ├── flotr2.js ├── lang │   ├── bg_BG │   ├── de_DE │   ├── en_US │   ├── ERROR_CODE │   ├── es_ES │   ├── fr_FR │   ├── it_IT │   ├── pt_BR │   └── ru_RU ├── salogo.png ├── sa_report.cgi └── sorttable.js ``` If this is the case, you should verify the permission, files here probably need to be readable by the www-data user or the one your httpd server is running.
Author
Owner

@darold commented on GitHub (May 20, 2022):

@jeff3d29 I don't remember if this issue has been solved and can be closed, can you confirm please?

<!-- gh-comment-id:1133087095 --> @darold commented on GitHub (May 20, 2022): @jeff3d29 I don't remember if this issue has been solved and can be closed, can you confirm please?
Author
Owner

@pmvo51 commented on GitHub (May 20, 2022):

@darold

Thank you!
Now I can evolve because I really had to give permission on the "lang" folder.

==> The next step is to have the graphics generation. I'm sending the logs via rsyslog (see tree below).

/var/log/remote/
├── auth
│   └── ServerName
│   ├── xxxxx.log
│   ├── xxxxx.log
│   ├── xxxxx.log
│  
└── msg
├── ServerName
│   ├── xxxxx.log
│   ├── xxxxx.log
│   ├── xxxxx.log

image

<!-- gh-comment-id:1133143461 --> @pmvo51 commented on GitHub (May 20, 2022): @darold Thank you! Now I can evolve because I really had to give permission on the "lang" folder. ==> The next step is to have the graphics generation. I'm sending the logs via rsyslog (see tree below). /var/log/remote/ ├── auth │   └── ServerName │   ├── xxxxx.log │   ├── xxxxx.log │   ├── xxxxx.log │   └── msg ├── ServerName │   ├── xxxxx.log │   ├── xxxxx.log │   ├── xxxxx.log ![image](https://user-images.githubusercontent.com/94560880/169580008-ec297792-27d5-4810-a1ff-637fdf89f90e.png)
Author
Owner

@pmvo51 commented on GitHub (May 23, 2022):

Hello, anybody help me, please?

image

<!-- gh-comment-id:1134805936 --> @pmvo51 commented on GitHub (May 23, 2022): **Hello, anybody help me, please?** ![image](https://user-images.githubusercontent.com/94560880/169851545-b7c9a83e-8aea-4521-9ed2-902b5e55b2b4.png)
Author
Owner

@darold commented on GitHub (May 23, 2022):

Hi, I can not help much more on this outside saying that it should works. If you can send to my private email < gilles AT darold DOT net > a tarball of your logs I will try to reproduce your issue.

<!-- gh-comment-id:1134850841 --> @darold commented on GitHub (May 23, 2022): Hi, I can not help much more on this outside saying that it should works. If you can send to my private email < gilles AT darold DOT net > a tarball of your logs I will try to reproduce your issue.
Author
Owner

@pmvo51 commented on GitHub (May 24, 2022):

@darold
Solved!

My friend, just to register that the graphics were not being generated because I needed to change the selinux context of the directory where the caches are stored (here: /var/lib/sendmailanalyzer/) and I used the context: httpd_sys_content_t.
After this change the graphics opened normally.

Thanks!

<!-- gh-comment-id:1136343679 --> @pmvo51 commented on GitHub (May 24, 2022): @darold Solved! My friend, just to register that the graphics were not being generated because I needed to change the selinux context of the directory where the caches are stored (here: /var/lib/sendmailanalyzer/) and I used the context: httpd_sys_content_t. After this change the graphics opened normally. Thanks!
Author
Owner

@jeff3d29 commented on GitHub (Sep 2, 2022):

All,

Apologies for not getting back sooner on this matter. The matter was fixed by updating policies in the reporting server to allow incoming data via rsyslog. Once that was set, it was a matter of updating apache to be able to read it.

<!-- gh-comment-id:1235837509 --> @jeff3d29 commented on GitHub (Sep 2, 2022): All, Apologies for not getting back sooner on this matter. The matter was fixed by updating policies in the reporting server to allow incoming data via rsyslog. Once that was set, it was a matter of updating apache to be able to read it.
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#64
No description provided.