From owner-freebsd-questions@FreeBSD.ORG Wed Aug 27 08:23:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BDF116A4BF for ; Wed, 27 Aug 2003 08:23:44 -0700 (PDT) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 245A943FD7 for ; Wed, 27 Aug 2003 08:23:43 -0700 (PDT) (envelope-from kirk@strauser.com) Received: from pooh.strauser.com (pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.9/8.12.9) with ESMTP id h7RFNfFn004897 for ; Wed, 27 Aug 2003 10:23:42 -0500 (CDT) (envelope-from kirk@strauser.com) To: freebsd-questions@freebsd.org From: Kirk Strauser Date: Wed, 27 Aug 2003 10:23:41 -0500 Message-ID: <87znhvp1j6.fsf@strauser.com> Lines: 33 X-Mailer: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Problems with Nagios? Or is it my machine? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 15:23:44 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable I use Nagios to monitor various servers on my LAN and on clients' networks. I'm having problems with the check_nntp plugin as of upgrading my Nagios port on 2003-08-27: root@kanga:~# /usr/local/libexec/nagios/check_tcp -H virtual2 -p 119 TCP OK - 0.004 second response time on port 119|time=3D 0.004 root@kanga:~# /usr/local/libexec/nagios/check_nntp -H virtual2 Bus error (core dumped) `check_nntp' is actually a symlink to `check_tcp'; the relevant portion of check_tcp.c is: else if (strstr (argv[0], "check_nntp")) { asprintf (&progname, "check_nntp"); asprintf (&SERVICE, "NNTP"); SEND =3D NULL; EXPECT =3D NULL; server_expect =3D realloc (server_expect, ++server_expect_count= ); asprintf (&server_expect[server_expect_count - 1], "200"); server_expect =3D realloc (server_expect, ++server_expect_count= ); asprintf (&server_expect[server_expect_count - 1], "201"); asprintf (&QUIT, "QUIT\r\n"); PROTOCOL =3D TCP_PROTOCOL; PORT =3D 119; } I know that bus errors usually aren't Good Things, but I'm only seeing them with this one program, and only when it's called as `check_nntp'. Before I submit a PR, is there anything on my system that could cause that error? =2D-=20 Kirk Strauser --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/TMz95sRg+Y0CpvERAkP2AJ9ZerLTOA1wDaEq5USKaavFmBiVUQCdEvIJ 5KxfurBsGkt2OsMr6mFL31o= =8v4i -----END PGP SIGNATURE----- --=-=-=--