Date: Wed, 27 Aug 2003 10:23:41 -0500 From: Kirk Strauser <kirk@strauser.com> To: freebsd-questions@freebsd.org Subject: Problems with Nagios? Or is it my machine? Message-ID: <87znhvp1j6.fsf@strauser.com>
next in thread | raw e-mail | index | archive | help
--=-=-= 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----- --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87znhvp1j6.fsf>