LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Server shutdowns by itself (https://www.linuxquestions.org/questions/linux-server-73/server-shutdowns-by-itself-562053/)

Eduardain 06-15-2007 10:46 AM

Server shutdowns by itself
 
Hello
I'm trying to find out why my server is powering off by itself. I would like to know where the problem is. It seems to be a cron job because it goes down every day same hour. This is the log I have from the hour it happens
Jun 14 16:03:59 salome syslogd 1.4.1: restart.
How can I avoid this?
Thanks

p_s_shah 06-15-2007 11:13 AM

Check your crontab using crontab -l .
Check your /etc/cron.daily directory also, if there is any script which restart the server.
And provide detailed logs from /var/log/messages for troubleshooting.

Eduardain 06-16-2007 11:22 AM

Hi, thanks for your help
I ran crontab -l from root in I got no crontab for root
also I have another user but there's no cron script to restart the server. do you know how to see enviroment logs? also I saw in my snmp server that the server is not going down at same time. snmp server logs has 30min to 1 hour of difference.

in /var/log/messages, the logs before shutdown and after power on

Jun 14 16:07:13 salome kernel: Bluetooth: HCI socket layer initialized
Jun 14 16:07:13 salome kernel: Bluetooth: L2CAP ver 2.8
Jun 14 16:07:14 salome kernel: Bluetooth: L2CAP socket layer initialized
Jun 14 16:07:14 salome kernel: Bluetooth: RFCOMM socket layer initialized
Jun 14 16:07:14 salome kernel: Bluetooth: RFCOMM TTY layer initialized
Jun 14 16:07:14 salome kernel: Bluetooth: RFCOMM ver 1.8
Jun 14 16:07:14 salome kernel: Bluetooth: HIDP (Human Interface Emulation) ver 1.1
Jun 15 16:04:06 salome syslogd 1.4.1: restart.
Jun 15 16:04:07 salome kernel: klogd 1.4.1, log source = /proc/kmsg started.
Jun 15 16:04:07 salome kernel: Linux version 2.6.18-8.el5 (mockbuild@builder4.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Thu Mar 15 19:57:35 EDT 2007
Jun 15 16:04:07 salome kernel: BIOS-provided physical RAM map:
Jun 15 16:04:07 salome kernel: BIOS-e820: 0000000000000000 - 000000000009f000 (usable)

p_s_shah 06-17-2007 11:21 PM

Have you checked scripts in /etc/cron.daily ?
Also cross check again crontab files of all users in /var/spool/cron/.

Run a script at 16:00 which grabs output of ps -efc or ps aux into a file every minute. Check the file after server restart to find out if there is any process/script which is causing server restart.

Time difference between your server and SNMP logs may be due to different time settings on both servers. Run date command on both servers at the same time and check difference between them. If this is the cause, setup NTP for synchronized timings.

Update us your findings.

Eduardain 06-19-2007 11:43 AM

Quote:

Originally Posted by p_s_shah
Have you checked scripts in /etc/cron.daily ?
Also cross check again crontab files of all users in /var/spool/cron/.

Run a script at 16:00 which grabs output of ps -efc or ps aux into a file every minute. Check the file after server restart to find out if there is any process/script which is causing server restart.

Time difference between your server and SNMP logs may be due to different time settings on both servers. Run date command on both servers at the same time and check difference between them. If this is the cause, setup NTP for synchronized timings.

Update us your findings.

thanks for your help, I started to read, and I find there is an option on BIOS where it is a power management setting. I disable an option called ACPI, and the problem is gone. The problem was that ACPI recognice when a device as monitor, keyboard, etc is not connected then it forces the system to make a power safe and shutdown


All times are GMT -5. The time now is 12:30 PM.