[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems starting sshd
From: |
Krayzman, Dmitriy |
Subject: |
problems starting sshd |
Date: |
Tue, 8 Jul 2003 15:01:18 -0500 |
Hi,
I'm running monit 3.2 on Solaris9. Monit is configured to monitor sshd daemon
but fails to restart it after sshd is shut down. The following error messages
show up in /var/log/monit
[CDT Jul 8 14:30:19] start: (sshd) /etc/init.d/sshd2 start
[CDT Jul 8 14:30:19] Cannot reopen standard file descriptor (0) -- Bad file
number
[CDT Jul 8 14:30:19] Cannot reopen standard file descriptor (1) -- Bad file
number
[CDT Jul 8 14:30:19] Cannot reopen standard file descriptor (2) -- Bad file
number
[CDT Jul 8 14:30:19] Could not execute /etc/init.d/sshd2 start
[CDT Jul 8 14:32:20] monit: Warning process 'sshd' was not started
[CDT Jul 8 14:32:20] Monitoring enabled -- process sshd
[CDT Jul 8 14:32:20] Restart notification is sent to address@hidden
[CDT Jul 8 14:34:21] start: (sshd) /etc/init.d/sshd2 start
[CDT Jul 8 14:34:21] Could not execute /etc/init.d/sshd2 start
I have no troubles executing "/etc/init.d/sshd2 start" from the command line,
also monit -t returns no errors.
Here is my monitrc file:
set daemon 300
set mailserver someserver.mcw.edu
set logfile /var/log/monit
set mail-format { from: address@hidden }
check sshd
pidfile /var/run/sshd2_22.pid
start "/etc/init.d/sshd2 start"
stop "/etc/init.d/sshd2 stop"
port 22 protocol ssh
alert address@hidden
Thanks,
D.
- problems starting sshd,
Krayzman, Dmitriy <=