[smokeping-users] ssh-keyscan error starting from boot only
smokeping at museum.rain.com
Wed Jan 23 22:11:39 CET 2013
On Wed, Jan 23, 2013 at 07:17:09PM +0000, Vinny_Abello at Dell.com wrote:
> I'm wondering if anyone has encountered this problem. We're running smokeping 2.6.7 on FreeBSD 8.3. When the system boots up, the startup script tries to start smokeping, but smokeping errors out on initializing the ssh-keyscan probe with the following error:
> Starting smokeping.
> ### parsing dig output...OK
> ERROR: output of '/usr/bin/ssh-keyscan -t dsa,rsa,rsa1 127.0.0.1' does not match (?i-xsm:^# \\S+ SSH-)
> at (eval 56) line 1
> /etc/rc: WARNING: failed to start smokeping
> The very strange thing is if I start smokeping using the same startup script manually after the system has booted, I get no error at all and everything works fine.
> Any thoughts on why this is and how I would go about correcting it?
Peter's assessment of the cause is probably accurate, but the
FreeBSD rc(8) system likely is already ordering your startup
And look at your system's current service dependency order:
rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | less
On my system, I see that sshd starts immediately before
smokeping. If sshd forks into the background quickly, before the
service is 100% up and running, smokeping could start before sshd
is ready for it.
I suspect you'll have to put a 'sleep 3' or something at the
top of your smokeping startup script, for some value of '3'.
More information about the smokeping-users