darold / sendmailanalyzer

Sendmail log Analyzer is a tool to monitor sendmail usage and generate HTML and graph reports. It reports all you ever wanted to know about email trafic on your network. You can also use it in ISP environment with per domain and per mailbox report.
http://sendmailanalyzer.darold.net/
GNU General Public License v3.0
76 stars 13 forks source link

Troubleshooting improvement #17

Closed neagix closed 10 years ago

neagix commented 10 years ago

If no "host" is specified in querystring, the sa_report.cgi output tells little about what's going wrong and shows an empty page.

I suggest that there is somewhere (footer?) a line saying: "HOST is $HOST" or something along those lines to give a clue.

Maybe even better show an error saying "No host provided"

This would save some time to the next newbie trying to troubleshoot what's wrong :)

darold commented 10 years ago

What version are you using ? If you remove the host value you should go directly to the front page to choose the host in multihost report or directly to the main page in a single host environment.

If you try to specify a wrong hostname you will have this kind of error:

ERROR: Can't open directory /usr/local/sendmailanalyzer/data/bah: No such file or directory

I suppose that you are using an old release.

darold commented 10 years ago

Oups forgot to ask you to post here the query you are using.

neagix commented 10 years ago

I am using version 9.0 and no querystring at all. I have to say that now for some reason the home page is not empty anymore, it behaves precisely as when specifying ?host=mydomain.com

Is something stored somewhere when that querystring is accessed the 1st time? Because as far as I recall it has worked fine only after the 1st time I accessed it with querystring, while instead right after setup (and after creating cache and data directories) it was blank.

I have no proxies and were using Ctrl+Shift+R to reload

darold commented 10 years ago

Maybe a special case, let me know if it occurs again.