The health will be expressed in a score from 0 - 6 (or 10): higher is better.
This way it will be clear in one glimpse what is going on, and what needs to be solved (network, firewall, newsserver settings (name or login), etc).
The score will be presented:
- in a summary format in the main screen in the upper right corner (just like the sysload), and
- in a separate screen http://localhost:8080/dashboard/ with more details, including explanation
I see a few ways to fill the info in the dashbaord, that should work parallel to each other:
- based on actual downloads
- at startup of SAB & at intervals (each 30 minutes)
- a seperate button (in the dashboard screen) to run tests on all servers
Rationale: a working SAB is great. However, if things don't work, it is often a mystery what is going on (even for experienced users). And it takes manual analysis (and possibly forum questions) to see what's going on. With the dashboard it should be clear in one glimpse what's going on, and what needs to be solved.
The "Test Server" button in Config -> Server is already helpful and a good start (and possibly code can be reused), but the Dashboard would do more pro-active testing and more pro-actively presented.
A server can have different levels of health:
0: test for outside network connectivity: can we ping http://www.google.com? If so: good, we have network & DNS. If not ... very bad.
1: we can reach a generic, predefined newsserver (random picked from list of 25 well known newsservers, like news.giganews.com). If it works: good! That means we have network and there is no firewall blocking NNTP connections
2: newsserver's hostname does not even resolve. That's bad. Possible reasons: hostname does not exist.
3: hostname does resolve, but no connection on defined port. Possible reasons: the defined hostname is no NNTP server at all, wrong port, or server down, or firewall.
4: newsserver does respond as NNTP server. Good.
5: newsserver does respond, and we can login (if needed). So: correct credentials. Good!
6: newsserver has alt.binaries.test (and/or other well known binary newsgroups), and it actually has articles available in those groups. This is good sign it is a binary newsserver (and not a text newsserver)
7: scoring on real NZB downloads, for example completeness. This is the walhalla level!
Below is a manual NNTP session, that shows a healthy setup. Score is 6.
Code: Select all
sander@R540:~$ telnet newszilla6.xs4all.nl nntp
Trying 2001:888:0:18::119...
Connected to newszilla.ipv6.xs4all.nl.
Escape character is '^]'.
201 dreader35.news.xs4all.nl NNRP Service Ready - newsmaster@xs4all.nl (no posting).
group alt.binaries.test
211 1999999 563562416 565562414 alt.binaries.test
stat 565562414
223 565562414 <Part62of252.5FAD9EF781AD4FB3860C16D3A5225D7D@1347481954.local> status
stat 939393939
423 No such article number in this group
quit
205 Transferred 265 bytes in 0 articles, 1 group. Disconnecting.
Connection closed by foreign host.
sander@R540:~$
So ... looking forward to replies ...

