Article View: news.software.nntp
Article #82641Re: ANNOUNCE: Nagios NNTP check (AUTHINFO, new articles)
From: Matija Nalis
Date: Fri, 22 Jan 2010 21:04
Date: Fri, 22 Jan 2010 21:04
48 lines
3441 bytes
3441 bytes
On Thu, 21 Jan 2010 21:39:53 +0100, Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> wrote: > Hi Matija, > >> At address http://tinyurl.com/yhjkyfl - that is: >> https://www.monitoringexchange.org/inventory/Check-Plugins/Software/Misc/check_nntp_articles >> >> there is Nagios plugin available for checking your NNTP server. >> >> Besides checking regular NNTP connection, it allows you to specify both >> username / password to try to login with, and a list of groups which will be >> checked for regular traffic. > > Thanks for your script. > A suggestion: maybe you should mention somewhere that NEWNEWS is required Mentioned. It would be better to actually fix it, by walking the list of groups and manually checking last arrived article, but it would require some additional date parsing module and an hour or two of free time to code (which is more problematic than it looks... hey, looking at the dates in script, it took me 9 months just to upload the already finished script :) > for the traffic check (that cannot currently be deactivated). I've updated that easy one in v1.01, at least now you can specify empty group list to skip this part of the check. > Not all news servers have NEWNEWS available to readers, or even the command > itself. Yeah, I'm aware. :( I needed a quick check, and had no problem allowing NEWNEWS access to my Nagios server, and it was the easiest way. If anybody wants to improve, they're welcome (and would probably get to it faster then me). > Some news servers also require an encrypted connection before trying to > authenticate (or even only use NNTP/TLS on port 563 -- like news.ecp.fr). Yes. Unfortunately, News::NNTPClient does not support SSL. One could work around it by using programs like stunnel(8), if you need that. It also probably could be implemented directly in the check script by using more heavyweight Net::NNTP in combination with IO::Socket::SSL, but I have no immediate need for that and so many other things to do, so don't hold your breath :) -- Opinions above are GNU-copylefted.
Technical Details
Message-ID:
<slrnhlk4nn.48o.mnalis-news@eagle102.home.lan>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!not-for-mailReferences:
<slrnhlgu00.b2i.mnalis-news@bukavac.carpriv.carnet.hr> <hjae2j$7vm$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnhlk4nn.48o.mnalis-news@eagle102.home.lan> Subject: Re: ANNOUNCE: Nagios NNTP check (AUTHINFO, new articles) Date: Fri, 22 Jan 2010 22:04:54 +0100 From: Matija Nalis <mnalis-news@voyager.hr> References: <slrnhlgu00.b2i.mnalis-news@bukavac.carpriv.carnet.hr> <hjae2j$7vm$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!not-for-mail Newsgroups: news.software.nntp Organization: CARNet, Croatia Lines: 48 NNTP-Posting-Host: 161.53.111.22 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Trace: news1.carnet.hr 1264194296 18830 161.53.111.22 (22 Jan 2010 21:04:56 GMT) X-Complaints-To: abuse@CARNet.hr NNTP-Posting-Date: Fri, 22 Jan 2010 21:04:56 +0000 (UTC) User-Agent: slrn/pre0.9.9-111 (Linux) Cancel-Lock: sha1:HCqXW9+Jn+HkLf6Q+xF0dW2QTVA=