NetBSD Problem Report #48575

From root@afs-24.iastate.edu  Wed Feb  5 21:36:58 2014
Return-Path: <root@afs-24.iastate.edu>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F3F54A6487
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  5 Feb 2014 21:36:57 +0000 (UTC)
Message-Id: <20140205202926.A2ED0B1169@afs-24.iastate.edu>
Date: Wed,  5 Feb 2014 14:29:26 -0600 (CST)
From: gendalia@iastate.edu
Reply-To: gendalia@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: xymon/xymonclient doesn't do inode test by default on NetBSD
X-Send-Pr-Version: 3.95

>Number:         48575
>Category:       pkg
>Synopsis:       xymon/xymonclient doesn't do inode test by default on NetBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    spz
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 05 21:40:00 +0000 2014
>Closed-Date:    Sun Sep 21 15:29:10 +0000 2014
>Last-Modified:  Sun Sep 21 15:29:10 +0000 2014
>Originator:     gendalia@NetBSD.org
>Release:        NetBSD 6.1.3
>Organization:

>Environment:
System: NetBSD afs-24.iastate.edu 6.1.3 NetBSD 6.1.3 (MONOLITHIC) i386
Architecture: i386
Machine: i386
>Description:
xymonclient doesn't have the configuration to do inode tests on NetBSD
by default. 
>How-To-Repeat:
Install. notice the lack of the inode test.
>Fix:

I haven't upgraded my xymon server yet to test that this works. It should.
patch-client_xymonclient-netbsd.sh is necessary on the client, and changes to:

--- client/xymonclient-netbsd.sh.orig	2011-07-31 21:01:52.000000000 +0000
+++ client/xymonclient-netbsd.sh
@@ -20,7 +20,12 @@ uptime
 echo "[who]"
 who
 echo "[df]"
-df -P -tnonfs,kernfs,procfs,cd9660,null | sed -e '/^[^ 	][^ 	]*$/{
+df -P -tnonfs,kernfs,procfs,cd9660,null,ptyfs,fdesc | sed -e '/^[^ 	][^ 	]*$/{
+N
+s/[ 	]*\n[ 	]*/ /
+}'
+echo "[inode]"
+df -i -tnonfs,kernfs,procfs,cd9660,null,ptyfs,fdesc | sed -e '/^[^ 	][^ 	]*$/{
 N
 s/[ 	]*\n[ 	]*/ /
 }'


patch-xymond_client_netbsd.c is necessary on the server, and has: 

--- xymond/client/netbsd.c.orig	2014-02-05 20:03:39.000000000 +0000
+++ xymond/client/netbsd.c
@@ -24,6 +24,7 @@ void handle_netbsd_client(char *hostname
 	char *psstr;
 	char *topstr;
 	char *dfstr;
+	char *inodestr;
 	char *meminfostr;
 	char *msgsstr;
 	char *netstatstr;
@@ -47,6 +48,7 @@ void handle_netbsd_client(char *hostname
 	psstr = getdata("ps");
 	topstr = getdata("top");
 	dfstr = getdata("df");
+	inodestr = getdata("inode");
 	meminfostr = getdata("meminfo");
 	msgsstr = getdata("msgsstr");
 	netstatstr = getdata("netstat");
@@ -57,6 +59,7 @@ void handle_netbsd_client(char *hostname
 	unix_cpu_report(hostname, clienttype, os, hinfo, fromline, timestr, uptimestr, clockstr, msgcachestr, 
 			whostr, 0, psstr, 0, topstr);
 	unix_disk_report(hostname, clienttype, os, hinfo, fromline, timestr, "Avail", "Capacity", "Mounted", dfstr);
+	unix_inode_report(hostname, clienttype, os, hinfo, fromline, timestr, "ifree", "%iused", "Mounted", inodestr);
 	unix_procs_report(hostname, clienttype, os, hinfo, fromline, timestr, "COMMAND", NULL, psstr);
 	unix_ports_report(hostname, clienttype, os, hinfo, fromline, timestr, 3, 4, 5, portsstr);


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->spz
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Thu, 06 Feb 2014 01:21:51 +0000
Responsible-Changed-Why:
Over to maintainer.


From: "S.P.Zeidler" <spz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48575 CVS commit: pkgsrc/net
Date: Thu, 27 Feb 2014 20:22:41 +0000

 Module Name:	pkgsrc
 Committed By:	spz
 Date:		Thu Feb 27 20:22:41 UTC 2014

 Modified Files:
 	pkgsrc/net/xymon: Makefile distinfo
 	pkgsrc/net/xymon/patches: patch-aa patch-ab patch-ac
 	pkgsrc/net/xymonclient: Makefile distinfo
 	pkgsrc/net/xymonclient/patches: patch-aa patch-ab patch-ac
 	    patch-client_xymonclient-netbsd.sh

 Log Message:
 Update to 4.3.17. The last two teeny versions were for bug fixes.
 Also contains the inode check expansion for NetBSD from PR 48575

 Upstream changelog:

 Changes for 4.3.15 - 4.3.17
 ===========================
 No significant changes.

 Changes for 4.3.14
 ==================
 In previous Xymon versions, a client-only configuration (i.e. one
 configured with "./configure --client") would place the client
 files in a "client" subdirectory below the directory specified
 during configuration. This is the same directory layout as a server
 installation, where the server and client parts of Xymon are
 in separate subdirectories.
 In 4.3.14, the default has changed so a client-only installation
 now installs in the directory given during the configure-step.
 The "/client" has been eliminated, so if you are upgrading an
 existing client you must either move the old client installation
 one level up from the "client/" directory, or change the Makefile
 generated by "configure --client" and add "/client" to the
 XYMONTOPDIR setting.

 The SNI support added in 4.3.13 causes problems with some older
 webservers, whose SSL implementation cannot handshake correctly
 when SNI is used. The failed handshake causes Xymon to report
 the site as down. In 4.3.14, the default is changed so SNI is
 disabled. A new "--sni" option was added to xymonnet to control the
 default setting, and two new tags "sni" and "nosni" can be used in
 hosts.cfg to control SNI for each host that is tested.

 Changes for 4.3.13
 ==================
 This is mostly a bugfix release. Apart from simple bugs (see
 the Changes file), there are some enhancements:

 Alerts sent via e-mail have <CR><NL> line-endings converted
 to plain <NL>, since the carriage-return characters would
 cause some mailers to send alerts as a (binary) attachment
 to an empty mail message.

 https-URL's can be forced to use TLS only, by using
 "httpst://..." similar to how SSLv2 and SSLv3 can be chosen.

 SSL connections (e.g. for https URL's) now use the TLS
 "Server Name Indication" (SNI) if your OpenSSL library
 supports it. This allows testing of systems that have
 multiple SSL websites located on the same physical IP+port
 (i.e. virtual name-based hosts).

 Changes for 4.3.12
 ==================
 NOTE: This release includes a bugfix for a security issue
 in the xymond_history and xymond_rrd modules. A "drophost"
 command sent to the xymond port (default: 1984) from an IP
 listed in the --admin-senders access control list can be
 used to delete files owned by the user running the xymond
 daemon. This is allowed by default, so it is highly recommended
 to install this update.

 Changes for 4.3.2 - 4.3.11
 ==========================
 See the Changes file for a list of significant changes.
 These releases are mostly to fix bugs.

 NOTE: Some configuration parameters have changed, so you must
 regenerate the top-level Makefile by running the "configure"
 script before compiling the new version.

 The inode-check introduced in 4.3.8 and 4.3.10 requires
 that you update both the Xymon server installation and the
 Xymon client on the systems where you want to monitor how
 many inodes are being used.


 To generate a diff of this commit:
 cvs rdiff -u -r1.37 -r1.38 pkgsrc/net/xymon/Makefile
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/net/xymon/distinfo
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/xymon/patches/patch-aa \
     pkgsrc/net/xymon/patches/patch-ab pkgsrc/net/xymon/patches/patch-ac
 cvs rdiff -u -r1.17 -r1.18 pkgsrc/net/xymonclient/Makefile
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/net/xymonclient/distinfo
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/xymonclient/patches/patch-aa \
     pkgsrc/net/xymonclient/patches/patch-ab \
     pkgsrc/net/xymonclient/patches/patch-ac
 cvs rdiff -u -r1.1 -r1.2 \
     pkgsrc/net/xymonclient/patches/patch-client_xymonclient-netbsd.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "S.P.Zeidler" <spz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48575 CVS commit: pkgsrc/net/xymon/patches
Date: Thu, 27 Feb 2014 20:23:56 +0000

 Module Name:	pkgsrc
 Committed By:	spz
 Date:		Thu Feb 27 20:23:56 UTC 2014

 Added Files:
 	pkgsrc/net/xymon/patches: patch-xymond_client_netbsd.c

 Log Message:
 file escaped cvs add: from PR 48575


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/net/xymon/patches/patch-xymond_client_netbsd.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: spz@NetBSD.org
State-Changed-When: Sun, 21 Sep 2014 15:29:10 +0000
State-Changed-Why:
xymon-4.3.17nb2 improves the inode handling and will be in the pkgsrc
branch soon to be released


>Unformatted:
 pkgsrc is currentish

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.