Date: Tue, 23 Apr 2002 23:00:29 +1000 From: Stanley Hopcroft <Stanley.Hopcroft@IPAustralia.Gov.AU> 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>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020423230028.D187>