Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th February 2009, 08:30
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,259
Thanks: 215
Thanked 648 Times in 294 Posts
Default Monit can't monitor sshd on Debian Etch

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
File Type: txt monitrc.txt (236 Bytes, 318 views)
File Type: txt config-file.txt (1.8 KB, 231 views)
__________________
Hans

MrHostman | Master in managed hosting

Last edited by Hans; 9th February 2009 at 08:36.
Reply With Quote
Sponsored Links
  #2  
Old 10th February 2009, 07:44
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,259
Thanks: 215
Thanked 648 Times in 294 Posts
 
Default

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.
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting On PXE And On A Customized Debian System sebastienp HOWTO-Related Questions 7 30th July 2009 21:13
Howto upgrade from Debian 4 (Etch) to Debian 5 (Lenny) Hans Tips/Tricks/Mods 2 1st December 2008 23:40
Perfect setup Debian Etch ISPConfig - DNS Server kdclaver Installation/Configuration 16 28th December 2007 01:39
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 23:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.