🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89436

Re: Need help giving information on our peering service

#89436
From: Jesse Rehmer
Date: Fri, 24 Jun 2022 02:11
41 lines
3147 bytes
On Jun 22, 2022 at 5:18:51 PM CDT, "The Doctor" <The Doctor> wrote:

> I have tried generating a stats report in the past,
> but it hung.  No reason given.

How are you attempting to generate the report? If "htmlstatus" is set to true
in <pathetc>/inn.conf, the status will be written to
<pathhttp>/inn_status.html at the interval defined by the "status" value in
<pathetc>/inn.conf.

If you wish to generate daily statistics in HTML on incoming/outgoing feeds,
article rates, etc. you should set "html" to true in <pathetc>/innreport.conf.
 This will generate HTML reports when news.daily runs and place them in
<pathhttp>. It will generate or update the index.html page within <pathhttp>,
as seen here:
http://usenet.blueworldhosting.com/feedstats.

To accomplish this on FreeBSD (I believe you're a fellow FreeBSD user):

- Set "htmlstatus" to true in <pathetc>/inn.conf.
- Set <pathhttp> to /usr/local/www/apache24/data/feedstats.
- Set "html" to true in <pathetc>/innreport.conf.
- pkg install apache24
- Add apache24_enable="yes" to /etc/rc.conf to set Apache to start at boot.
- "service apache24 start" to start Apache.
- Create /usr/local/www/apache24/data/feedstats and make sure the "news" user
can write to the directory.
- Create /usr/local/www/apache24/data/index.html with the content you wish to
display.
- Run "<pathbin>/scanlogs norotate" to scan logs and generate a report, or
wait for the next news.daily cron job to execute.
- Success.

What you see when you visit http://usenet.blueworldhostig.com is
/usr/local/www/apache24/data/index.html. On that page I have a link to the
/feedstats URI, which maps back to /usr/local/www/apache24/data/feedstats on
the filesystem (which is my <pathhttp> value from <pathetc>/inn.conf). 
Hopefully that helps, unless I misunderstood what you are trying too generate.

Cheers,
Jesse
Technical Details
Message-ID: <t936gn$2fha$1@spool1.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf2.newsdeef.eu!not-for-mail
References: <t8sn5l$243j$63@gallifrey.nk.ca> <t9027d$h6nf$1@news.trigofacile.com> <t904gb$1dur$35@gallifrey.nk.ca>

Show Full Headers
Complete Article Headers
Message-ID: <t936gn$2fha$1@spool1.usenet.blueworldhosting.com>
Subject: Re: Need help giving information on our peering service
Date: Fri, 24 Jun 2022 02:11:35 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <t8sn5l$243j$63@gallifrey.nk.ca> <t9027d$h6nf$1@news.trigofacile.com> <t904gb$1dur$35@gallifrey.nk.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf2.newsdeef.eu!not-for-mail
Newsgroups: news.admin.peering,news.software.nntp
Organization: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 24 Jun 2022 02:11:35 -0000 (UTC)
Injection-Info: spool1.usenet.blueworldhosting.com; logging-data="81450"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:0vZC2gxzmy9xpfgh18vZIWrPkGM= sha256:m+F4uvZmp34hqjq0WfN8YG+IzpeQ8dimbrDVCwlqltg= sha1:xFXegr0srztRIaycqgdoTAT0Jy0= sha256:0kLV/HVLLgdJkLfsCnwYothr38d8tEB6z6oFQ7FgOsM=
X-Usenapp: v1.21.1/d - Full License
Lines: 40