From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 17:42:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DB7E1065689 for ; Fri, 10 Oct 2008 17:42:17 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from mail.digitalfreaks.org (arbitor.digitalfreaks.org [216.151.95.158]) by mx1.freebsd.org (Postfix) with ESMTP id 73E758FC0C for ; Fri, 10 Oct 2008 17:42:17 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: by mail.digitalfreaks.org (Postfix, from userid 1022) id A50A2179A2; Fri, 10 Oct 2008 13:42:16 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.digitalfreaks.org (Postfix) with ESMTP id A32191799D; Fri, 10 Oct 2008 13:42:16 -0400 (EDT) Date: Fri, 10 Oct 2008 13:42:16 -0400 (EDT) From: "Brian A. Seklecki" X-X-Sender: lavalamp@arbitor.digitalfreaks.org To: nagios-users@lists.sourceforge.net, freebsd-questions@freebsd.org Message-ID: <20081010133141.D29402@arbitor.digitalfreaks.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Check_CVSUp / PServer - Nagios Plugins? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2008 17:42:17 -0000 Hey all: One of the big pitfalls of running a public CVS/CVSup/FTP mirror seems to be poor reporting on failed updates. I'd like add some Nagios monitoring to our project. For FTP and CVSUP rsyncs, I can have my cron(8)'d update scripts touch(1) a file if [ $? = 0 ]; then check them with libexec/nagios/check_file_age for mtime/utime. However, I'd also like to monitor the CVSup and PServer services as well at the protocol level. There do not seem to be any plugins in the public domain. Ideas: CVSUp: - php/perl/python bindings/libraries to talk cvsup protocol and maybe query a list of collections, plus the protocol version negotiated? - Is there maybe a way to exec() the cvsup(1)/csup(1) client in "list" mode? Does the protocol have a list operation? CVS Pserver: - Maybe just do a "cvs log src/Makefile" -- verifies that the protocol is active. SSH: - Duh FTP/RSYNC: - Yea Thougths? Discussion? l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ "Guilty? Yeah. But he knows it. I mean, you're guilty. You just don't know it. So who's really in jail?" ~Maynard James Keenan