From owner-freebsd-questions Tue Apr 23 6: 1: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from flora.isecure.com.au (ns1.isecure.com.au [202.125.0.72]) by hub.freebsd.org (Postfix) with ESMTP id 8D1DB37B419 for ; Tue, 23 Apr 2002 06:00:43 -0700 (PDT) Received: from leal.isentry.net.au (leal.isecure.com.au [202.125.0.94] (may be forged)) by flora.isecure.com.au (8.11.3/8.11.3) with ESMTP id g3ND0bE31797 for ; Tue, 23 Apr 2002 23:00:37 +1000 Received: (from smap@localhost) by leal.isentry.net.au (8.12.1/8.12.1) id g3ND0bUI025591 for ; Tue, 23 Apr 2002 23:00:37 +1000 (EST) Received: from nodnsquery(10.11.3.10) by leal via smap (V5.5) id xma025565; Tue, 23 Apr 02 23:00:30 +1000 Received: from vmail.aipo.gov.au (localhost [127.0.0.1]) by gibbons.isecure.com.au (8.11.3/8.10.2) with ESMTP id g3ND0Uq23773 for ; Tue, 23 Apr 2002 23:00:30 +1000 Received: from stan.aipo.gov.au (wf-99.aipo.gov.au [192.168.1.99]) by vmail.aipo.gov.au (8.11.6/8.11.6) with ESMTP id g3ND0Si89034 for ; Tue, 23 Apr 2002 23:00:28 +1000 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) Received: (from anwsmh@localhost) by stan.aipo.gov.au (8.11.6/8.11.6) id g3ND0TE00476 for Questions@FreeBSD.ORG; Tue, 23 Apr 2002 23:00:29 +1000 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) X-Authentication-Warning: stan.aipo.gov.au: anwsmh set sender to anwsmh@IPAustralia.Gov.AU using -f Date: Tue, 23 Apr 2002 23:00:29 +1000 From: Stanley Hopcroft To: Questions@FreeBSD.ORG Subject: Netsaint/SSH 'Inappropriate ioctl for device' after upgrade from 4.3-STABLE to 4.5-RELEASE-p3 Message-ID: <20020423230028.D187@IPAustralia.Gov.AU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear Ladies and Gentlemen, I am writing to ask your help with a problem that has appeared on my Netsaint server after upgrading from FreeBSD 4.3-STABLE to 4.5-RELEASE-p3. The symptoms are that the Netsaint 0.0.7 'check_by_ssh' (checking a service by running a command with SSH and setting a return code) checks intermittently fail with 'Inappropriate ioctl for device' as you can see from the Netsaint log mesages below. Tue Apr 23 21:42:34 SERVICE ALERT: zeus;Standard host-centric checks;OK;HARD;3;All services OK checks;WARNING;SOFT;1;fcntl(0, F_SETFL, O_NONBLOCK): Inappropriate ioctl for device Tue Apr 23 21:48:34 SERVICE ALERT: zeus;Standard host-centric checks;WARNING;SOFT;2;fcntl(0, F_SETFL, O_NONBLOCK): Inappropriate ioctl for device Tue Apr 23 21:49:34 SERVICE ALERT: zeus;Standard host-centric checks;WARNING;HARD;3;fcntl(0, F_SETFL, O_NONBLOCK): Inappropriate ioctl for device There are no mesages in dmesg or /var/log/messages that seem to be related. Once Netsaint is restarted (stop and start; HUP is not sufficient), the errors vanish only to come back within a few hours. Most of the problem checks are scheduled each 5 minutes As you can see from the mesages above, the check may return Ok but will soon fail again. Now I am not sure if this is a FreeBSD problem - I guess it isn't because only the ssh checks fail - or an OpenSSH problem. check_by_ssh (from 1.2.9.4 of the Netsaint plugins) does not use fcntl; Netsaint however does. Your comments are very welcome. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft Network Specialist ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message