Clean way to monitor status of 'sshd' remotely?

Eddy Geez eddygeez at
Fri Oct 26 22:36:50 EST 2001

I am trying to come up with a "clean" way to check if a machine
is running 'sshd' so it can be included in a NetSaint config.
Currently, there is a NetSaint plugin called "check_ssh", but
it simply connects to port 22, looks for the SSH version response
from the daemon, and then disconnects. This results in the
syslog file where "auth" messages are sent in filling up with
messages like:

  sshd[21795]: Connection closed by

every 5 minutes (or whatever the "check" interval is).

I've tried searching for others who have run into this situation,
but have been unable to find anything either in these archives or
in Google's UseNet archives.

I've also looked at the 'sshd.c' source code, and don't see anything
obvious that would easily permit a monitoring tool to close the SSH
connection "properly" and avoid a log-file entry.

Does anybody have any suggestions? (Besides disabling logging at
the .info level, which is useful for other messages.)

Thanks for any insight!

Do You Yahoo!?
Make a great connection at Yahoo! Personals.

More information about the openssh-unix-dev mailing list