Засунул еще столько же в черные слоты - сервер не грузится. 5 коротких сигналов и 1 длинный.
По мануалу производителя это значит - No memory detected in the
system.
Убрал новую память, а старую переткнул в черные слоты - всё равно не грузится.
Привет всем. На сервере много баз, стоит задача перегнать все их в бинлоги (чтобы при полной утере не связываться с восстановлением дампов). Это реально вообще?
Здравствуйте.
Может кто-то знает, возможно ли логировать GET/POST запросы сделанные curl'ом с помощью штатных средств ОС или curl (не трогая скрипты)?
Заранее спасибо.
Последнее время по 20 раз на день выскакивает окно со спамом
Пользователь 156424194 не разрешил добавить его в ваш список собеседников по следующей причине:
Privet ti mne nravishsia yzhe davno, no ti ne zamechaesh menia, ia napomniy tebe, vot foto http://tinyurl.com/fot ka331 uin tvoia znakomaia dala!!! zhmi otkrit ssilku
Кто знает, как бороться? Модуль Bot Sentry не спасает.
Проблема следующая, в логе появляются записи о состоянии сервиса, но email не отправляется. Сам скрипт отправки e-mail работает нормально.
Куда копать?
/var/log/nagios/nagios.log
[1296308446] SERVICE ALERT: 46.4.69.98;MySQL_nti-sys;CRITICAL;SOFT;1;Access denied for user 'nag'@'localhost' (using password: YES)
[1296308456] SERVICE ALERT: 46.4.69.98;MySQL_nti-sys;CRITICAL;SOFT;2;Access denied for user 'nag'@'localhost' (using password: YES)
[1296308466] SERVICE ALERT: 46.4.69.98;MySQL_nti-sys;CRITICAL;SOFT;3;Access denied for user 'nag'@'localhost' (using password: YES)
[1296308476] SERVICE ALERT: 46.4.69.98;MySQL_nti-sys;CRITICAL;HARD;4;Access denied for user 'nag'@'localhost' (using password: YES)
[1296308476] SERVICE NOTIFICATION: nagios-admin;46.4.69.98;MySQL_nti-sys;CRITICAL;notify-by-email;Access denied for user 'nag'@'localhost' (using password: YES)
[1296308776] SERVICE NOTIFICATION: nagios-admin;46.4.69.98;MySQL_nti-sys;CRITICAL;notify-by-email;Access denied for user 'nag'@'localhost' (using password: YES)
[1296309076] SERVICE NOTIFICATION: nagios-admin;46.4.69.98;MySQL_nti-sys;CRITICAL;notify-by-email;Access denied for user 'nag'@'localhost' (using password: YES)
[1296309376] SERVICE NOTIFICATION: nagios-admin;46.4.69.98;MySQL_nti-sys;CRITICAL;notify-by-email;Access denied for user 'nag'@'localhost' (using password: YES)
[1296309676] SERVICE NOTIFICATION: nagios-admin;46.4.69.98;MySQL_nti-sys;CRITICAL;notify-by-email;Access denied for user 'nag'@'localhost' (using password: YES)
[1296309976] SERVICE NOTIFICATION: nagios-admin;46.4.69.98;MySQL_nti-sys;CRITICAL;notify-by-email;Access denied for user 'nag'@'localhost' (using password: YES)
[1296310276] SERVICE NOTIFICATION: nagios-admin;46.4.69.98;MySQL_nti-sys;CRITICAL;notify-by-email;Access denied for user 'nag'@'localhost' (using password: YES)
[1296310426] SERVICE ALERT: 46.4.69.98;MySQL_nti-sys;OK;HARD;4;Uptime: 49631 Threads: 3 Questions: 1740956 Slow queries: 0 Opens: 88389 Flush tables: 1 Open tables: 40 Queries per second avg: 35.078
[1296310426] SERVICE NOTIFICATION: nagios-admin;46.4.69.98;MySQL_nti-sys;OK;notify-by-email;Uptime: 49631 Threads: 3 Questions: 1740956 Slow queries: 0 Opens: 88389 Flush tables: 1 Open tables: 40 Queries per second avg: 35.078
define host{
name generic-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
notification_period 24x7 ; Send host notifications at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
# Linux host definition template - This is NOT a real host, just a template!
define host{
name linux-server ; The name of this host template
use generic-host ; This template inherits other values from the generic-host template
check_period 24x7 ; By default, Linux hosts are checked round the clock
max_check_attempts 10 ; Check each Linux host 10 times (max)
check_command check-host-alive ; Default command to check Linux hosts
notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
; Note that the notification_period variable is being overridden from
; the value that is inherited from the generic-host template!
notification_interval 20 ; Resend notification every 2 hours
notification_options d,u,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
define service{
name local-service ; The name of this service template
use generic-service ; Inherit default values from the generic-service definition
check_period 24x7 ; The service can be checked at any time of the day
max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until a hard state can be determined
contact_groups admins ; Notifications get sent out to everyone in the 'admins' group
notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
notification_interval 60 ; Re-notify about service problems every hour
notification_period 24x7 ; Notifications can be sent out at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}
define service{
use local-service
host_name xx.xx.xx.xx
service_description MySQL_nti-sys
check_command check_nrpe!check_mysql
}
No root device found Boot has failed, sleeping forever
Загрузился с LiveCD, запустил BootInfoScript
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 0.97 is installed in the MBR of /dev/sda and looks at sector 543282
on boot drive #1 for the stage2 file. A stage2 file is at this location on
/dev/sda. Stage2 looks on partition #1 for /grub/grub.conf.
sda1: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/menu.lst /grub/grub.conf
sda2: _________________________________________________________________________
File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''
mount -t ext3 /dev/sda2 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[root@localhost ~]# dmesg | tail
[ 149.884156] atl1c 0000:01:00.0: irq 45 for MSI/MSI-X
[ 149.884273] atl1c 0000:01:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[ 149.930341] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 160.339017] eth0: no IPv6 routers present
[ 262.479324] fuse init (API version 7.14)
[ 262.505389] SELinux: initialized (dev fusectl, type fusectl), uses genfs_contexts
[ 262.766201] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 1014.605627] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 1014.608741] SELinux: initialized (dev sda1, type ext4), uses xattr
[ 1671.298263] EXT3-fs (sda2): error: can't find ext3 filesystem on dev sda2.
Shared-хостинг
FasctCGI процессы скапливаются, пока не займут всю свободную память, и потом все лезет в своп. Почему это происходит? Пока аккаунтов было мало, оно перед тем как память закончится, убивало все спящие процессы.
# php-cgi -v
PHP 5.2.14 (cgi-fcgi) (built: Aug 27 2010 16:36:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.1, Copyright (c) 2002-2010, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
Где-то видел утилиту, смысл такой, принимает 2 аргумента: команду, и всемя в секундах.
К примеру:
что_то_там date -t 5
Должно каждые 5 секунд очищать экран, и выводить текущее время и дату.
Bash'ем оно конечно решается на раз-два, но не хочу придумывать велосипед :)
Напомните что за софт это делает :)
root@s1 /]# mysql_install_db --user=mysql2 --datadir=/var/lib/mysqlram/
Installing MySQL system tables...
100927 15:55:57 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.