Monit can't monitor sshd on Debian Etch

Discussion in 'Server Operation' started by Hans, Feb 9, 2009.

  1. Hans

    Hans Moderator Moderator

    After upgrading to the latest available openssh-server and openssh-client packages under Debian Etch, monit can't start/restart and/or monitoring for sshd anymore.

    Everything seems to be normal, as i can connect via ssh to my server, but when i try to enable monitoring in monit, the following error occurs:

    Status: Connection failed
    Port Response time: connection failed to localhost:22 [SSH via TCP]

    How can this problem be solved?
    For your information i enclosed the /etc/ssh/ssh_config configuration file and the part concerning sshd of the file /etc/monit/monitrc configuration file.

    After executing the "top"command and also:
    ps aux | awk '{ print $8 " " $2 }' | grep -w Z

    I can see that there are no zombie processes left...

    Thanks for your help in advance!
     

    Attached Files:

    Last edited: Feb 9, 2009
  2. Hans

    Hans Moderator Moderator

    Monit can monitor sshd again thanks to Falko!

    After comenting out the line:
    #if failed port 22 protocol ssh then restart

    and add the line:
    if failed port 22 then restart

    Everything works fine again.
     

Share This Page