Журнал лабораторных работ

Содержание

Журнал

Среда (05/27/09)

/dev/pts/3
16:15:59
#vi .cabberrc
16:16:24
#cabber
 Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net
 email: cabber@ajmacias.com
Config file parsed...
Initializing NCurses...
Ncurses ok. Connecting...Ошибка сегментирования
16:16:26
#vi .cabberrc
16:16:37
#cabber
 Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net
 email: cabber@ajmacias.com
Config file parsed...
Initializing NCurses...
16:18:15
#cabber
 Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net
 email: cabber@ajmacias.com
Config file parsed...
Initializing NCurses...
16:19:33
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
 Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net
 email: cabber@ajmacias.com
Config file parsed...
Initializing NCurses...
16:20:54
#cabber
 Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net
 email: cabber@ajmacias.com
Config file parsed...
Initializing NCurses...
/dev/pts/1
16:22:45
$ssh root@192.168.15.12
root@192.168.15.12's password:
asdf
^[[3~Permission denied, please try again.
root@192.168.15.12's password:
16:22:51
$ssh root@10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed May 27 16:06:48 2009 from 192.168.15.253
/dev/pts/3
16:23:01
#apt-get install monit
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  liblash2 libsdl1.2debian libfreebob0 libsdl1.2debian-alsa libartsc0 libmtp8 rox-filer libneon27 audacious
  libdjvulibre21 libwmf0.2-7 libbinio1ldbl libilmbase6 libaudclient1 libbeecrypt6 libsvga1
  libresid-builder0c2a unzip libjack0 liblircclient0 gtk2-engines-pixbuf habak libesd-alsa0 libgomp1 libcddb2
  esound-common audacious-plugins libcurl3-gnutls libgd2-noxpm libcdio7 liblqr-1-0 libxosd2 trayer
  libcdio-cdda0 librpm4.4 libgif4 libopenexr6 update-inetd libaudid3tag1 mpc xdg-utils libxnconfig9.0.3
  libmagickcore2 libaudiofile0 libmowgli1 rpm libfluidsynth1 libasyncns0 audacious-plugins-extra
...
Выбор ранее не выбранного пакета monit.
(Чтение базы данных ... на данный момент установлено 50605 файлов и каталогов.)
Распаковывается пакет monit (из файла .../monit_1%3a4.10.1-4_i386.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет monit (1:4.10.1-4) ...
Starting daemon monitor: monit won't be started/stopped
        unless it it's configured
        please configure monit and then edit /etc/default/monit
        and set the "startup" variable to 1 in order to allow
        monit to start
16:23:25
#monit

16:23:30
#pps monit
bash: pps: команда не найдена
16:23:57
#ps -waux |grep monit
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4107  0.0  0.0   4908   772 pts/10   S+   16:24   0:00 grep monit
user     29531  0.0  0.1  10016  3660 ?        S    11:49   0:00 /usr/lib/gvfs/gvfs-hal-volume-monitor
16:24:10
#cat /etc/def
default/ defoma/
16:24:10
#cat /etc/default/monit
# Defaults for monit initscript
# sourced by /etc/init.d/monit
# installed at /etc/default/monit by maintainer scripts
# Fredrik Steen <stone@debian.org>
# You must set this variable to for monit to start
startup=0
# To change the intervals which monit should run uncomment
# and change this variable.
# CHECK_INTERVALS=180
16:24:43
#cat /etc/default/monit
# Defaults for monit initscript
# sourced by /etc/init.d/monit
# installed at /etc/default/monit by maintainer scripts
# Fredrik Steen <stone@debian.org>
# You must set this variable to for monit to start
startup=0
# To change the intervals which monit should run uncomment
# and change this variable.
# CHECK_INTERVALS=180
16:24:52
#whereis monit
monit: /usr/sbin/monit /etc/monit /usr/share/man/man1/monit.1.gz
16:25:08
#cat /usr/sbin/monit
ELF°4¨4 (444ààè†è†    䍠™   (((  Qåt…Òt';`ld¸`inux.suéóv;„胋P…ÒuîDžÀþÿÿ؍]ð‰$è­ÿÿEĉ$Äþÿÿ‰D$èà¤ÿÿÇDàÇD$‰$‰D$
                                                                                                                    脯ÿÿ…ÀuƅÄþÿÿ‹…Àþÿÿ‰\ÇD$ì‰D$
7¹…+iTÄy–™’84¬©Â‰º„¼!¨;¯SÍdp&Å#¿Qa NG$®jZ§Œw9­±_¶¢Ð|£(Õ}-W0—Êe¤HÈϪvËmk]Ñ3»ˆÎ^Ç«¡zÁƒ:                                                          ¡\ž   ‰$薬ÿÿ¡\ž      ‰|‰t$‰$èá®ÿÿÇ$`žèE©ÿÿÄL[^_]ͶÇ$`ž     踬ÿÿ‰|‰t$‰$©ÿÿÇ$`ž     è
                                                                                        1*)                                                                                                                                             ©ÿÿÄL[^_]Ѝt&‰•Àþÿÿé!ÿÿÿÇDmÇD$ÒÇ$è萣ÿÿ¶¿U‰åƒì‹…ÒtM
@IL?    RP/VEF5X,É\Yur€J†~6`˜‡Ö”“b¥×[xC>A2qlD¸=ŠµMfž¾´BÀœctš%ð!ŒÉÊÌÍÏÐÑÔÕÖ×ØÙëÓï2Ä÷¹ñÙqX¬KãÀ»ã’|                                                                                                                                                                                             ¸èþÿÿÉÃÇD·ÇD$ÒÇ$èÈÿÿÿèG£ÿÿvU‰åƒì‹…ÒtM
Á7páZÖ>Êc(  Ðg~?5ê.ƒ–                                                                              Þ÷Źœ@8ò‹Ä‰CEÕìÁ³÷³¢÷§Ý£kgUaã­Æñ4ØnŽ'}[•lM¦4rlÿ2ê1Ê89Xl¶&   W¥`     =w:•“Dó                                                                                                                                                        ¸èÖýÿÿÉÃÇDÇD$ÒÇ$èˆÿÿÿè£ÿÿvU‰åƒì‹…ÒtM
°ˆÜw^õ‘Æ´Ÿp‡l¼7OqSçŒXn>2,¿ÍTo²çäK¹Í>Ûú8F<4¤ã/$c?Û x…8=%M                                                                                                                                                                                                                                                                                                                     ¸è–ýÿÿÉÃÇDóÇD$ÒÇ$èHÿÿÿèÇ¢ÿÿvU‰åƒ…
                                                        ó̤v’hÿ¶Úlì7<¤ú:en)C 2€4       R(èús¼”¿»I!F&4KØe¯,2Ü#­4e.~¾zI ´p…¤’tIç9}$/9ª4Ÿ7Ï                                                                                                                                                                                                                                                                    …
                                                                                                                                          ;}òA“Ï©                                                                                                                                                                                                                                                             …
                                                                                                                                                                                                                                                                                                                                                                                                              …À
...
¸£     èìöÿÿ¡£ …Àt
                  Ç$£  è·ñÿÿ¡£ …Àt
¸£     èD÷ÿÿ¡£ …Àt
¸£     èÑ÷ÿÿ¡ £…Àt
¸ £    è.øÿÿ¡ø¢‰$èu¬ÿÿ¡x¢      Çø¢     ‰$è^¬ÿÿ¡l¢      Çx¢     ‰$èG¬ÿÿ¡˜¢      Çl¢     ‰$è0¬ÿÿ¡ ¢      ǘ¢     ‰$è¬ÿÿ¡À¢       Ç ¢     ‰$è¬ÿÿ¡$£       ÇÀ¢     ‰$èë«ÿÿ¡(£      Ç$£     ‰$èÔ«ÿÿ¡,£      Ç(£     ‰$轫ÿÿÇ,£      ÉЍt&¡¨ž       Ç$¤ž    ‰D$è:¡ žÇ$œž    ‰D$èî9é‡þÿÿU‰åƒì‹ƒøt"ƒø„™¡¢    Ç$|‰D$èÉÃf¡À¢  ‹¬¢     …À„%‰T$
                                                                                                                                                                                                                                                                                                                                              ‰D¡¢     Ç$‰D$èÇD$
                                                                                                                                                                                                                                                                                                                                                                ÇDÇD$Ç$Xž      è °ÿÿ…À„Œ‰$è §ÿÿ‰D¡¢    Ç$@‰D$éÇD
¢¡¬¢  …Étæs1ÀÉÃfU‰åƒ‹
‹ˆ¢    …Òu1ÀÉÃfè
„¢     …É„í‹€¢ …Ò…ð¡\ž …À„ÒÇ$`žèÀt¸Éá¢Ç$œ‰D$è!1ÀÉАU‰åW‰ÏV‰ÖS‰ÃìL…Ò„‰Ç$`žèþ­ÿÿ¡ž ‰|‰t$‰$èé¯ÿÿ¡ž  ‰$茩ÿÿÇ$`ž     è@ªÿÿ‹
16:26:33
#ô]
/etc/monit/%s
/etc
/usr/local/etc/%s
%s: Cannot find the control file at ~/.%s, /etc/monit/%s, /etc/%s, /usr/local/etc/%s or at ./%s
/etc/mtab
%s: Cannot open /etc/mtab file
16:26:52
#strings /usr/sbin/monit |grep '/etc'
/etc/monit/%s
/etc
/usr/local/etc/%s
%s: Cannot find the control file at ~/.%s, /etc/monit/%s, /etc/%s, /usr/local/etc/%s or at ./%s
/etc/mtab
%s: Cannot open /etc/mtab file
16:27:22
#strings /usr/sbin/monit |grep conf
sysconf
Service %s not found in monit configuration
%s: please specify the configured service name or 'all' after %s
service name conflict, %s already defined
прошло 10 минут
16:37:40
#vi /etc/monit/monitrc
16:40:57
#vi /etc/default/monit
16:41:34
#monit
Starting monit daemon
16:41:43
#ps -waux |grep monit
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4409  0.0  0.0   4716  1160 ?        S    16:41   0:00 monit
root      4418  0.0  0.0   4908   772 pts/10   S+   16:41   0:00 grep monit
user     29531  0.0  0.1  10016  3660 ?        S    11:49   0:00 /usr/lib/gvfs/gvfs-hal-volume-monitor
16:41:53
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      2516  0.0  0.0   5184   816 ?        Ss   09:30   0:00 /usr/sbin/cron
root      4427  0.0  0.0   4912   772 pts/10   S+   16:42   0:00 grep cron
16:42:02
#kill 2516

16:42:22
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4459  0.0  0.0   5184   804 ?        Ss   16:42   0:00 /usr/sbin/cron
root      4461  0.0  0.0   4908   768 pts/10   S+   16:42   0:00 grep cron
16:42:23
#kill 4459

16:42:34
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4478  0.0  0.0   4908   756 pts/10   R+   16:42   0:00 grep cron
16:42:35
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4487  0.0  0.0   4908   760 pts/10   R+   16:42   0:00 grep cron
16:42:36
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4496  0.0  0.0   4908   756 pts/10   R+   16:42   0:00 grep cron
16:42:37
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
16:42:38
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4514  0.0  0.0   4908   768 pts/10   S+   16:42   0:00 grep cron
16:42:39
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4523  0.0  0.0   4908   772 pts/10   S+   16:42   0:00 grep cron
16:42:41
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4532  0.0  0.0   4908   768 pts/10   S+   16:42   0:00 grep cron
16:42:42
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4556  0.0  0.0   5184   804 ?        Ss   16:42   0:00 /usr/sbin/cron
16:42:45
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4556  0.0  0.0   5184   804 ?        Ss   16:42   0:00 /usr/sbin/cron
root      4567  0.0  0.0   4908   756 pts/10   R+   16:42   0:00 grep cron
16:42:50
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4556  0.0  0.0   5184   804 ?        Ss   16:42   0:00 /usr/sbin/cron
root      4576  0.0  0.0   4908   772 pts/10   S+   16:42   0:00 grep cron
16:42:53
#kill 4556

16:45:11
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4595  0.0  0.0   4908   768 pts/10   S+   16:45   0:00 grep cron
16:45:12
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4604  0.0  0.0   4908   772 pts/10   S+   16:45   0:00 grep cron
16:45:14
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4613  0.0  0.0   4908   756 pts/10   R+   16:45   0:00 grep cron
16:45:15
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4622  0.0  0.0   4908   756 pts/10   R+   16:45   0:00 grep cron
16:45:16
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4631  0.0  0.0   4908   772 pts/10   S+   16:45   0:00 grep cron
16:45:16
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4640  0.0  0.0   4908   772 pts/10   S+   16:45   0:00 grep cron
16:45:17
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4649  0.0  0.0   4908   772 pts/10   S+   16:45   0:00 grep cron
16:45:18
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
\root      4658  0.0  0.0   4908   756 pts/10   R+   16:45   0:00 grep cron
16:45:18
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4667  0.0  0.0   4908   772 pts/10   S+   16:45   0:00 grep cron
16:45:20
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4676  0.0  0.0   4908   756 pts/10   R+   16:45   0:00 grep cron
16:45:21
#tail -f /var/log/syslog
May 27 16:42:43 linux11 /usr/sbin/cron[4555]: (CRON) INFO (pidfile fd = 3)
May 27 16:42:43 linux11 /usr/sbin/cron[4556]: (CRON) STARTUP (fork ok)
May 27 16:42:43 linux11 /usr/sbin/cron[4556]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
May 27 16:43:03 linux11 monit[4409]: 'cron' process is running with pid 4556
May 27 16:45:23 linux11 monit[4409]: 'cron' process is not running
May 27 16:45:23 linux11 monit[4409]: 'cron' trying to restart
May 27 16:45:23 linux11 monit[4409]: 'cron' start: /etc/init.d/cron
May 27 16:45:23 linux11 /usr/sbin/cron[4699]: (CRON) INFO (pidfile fd = 3)
May 27 16:45:23 linux11 /usr/sbin/cron[4700]: (CRON) STARTUP (fork ok)
May 27 16:45:23 linux11 /usr/sbin/cron[4700]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
May 27 16:45:43 linux11 monit[4409]: 'cron' process is running with pid 4700
c^C
16:47:47
#vi /etc/default/monit
16:48:01
#vi /etc/monit/monitrc
16:50:40
#monit
/etc/monit/monitrc:90: Error: erroneous network or host identifier localhost 'localhost'
16:50:43
#vi /etc/monit/monitrc
/dev/pts/1
16:51:31
#cat /etc/monit/monitrc |grep -v #
grep --help' для получения более подробного описания.
/dev/pts/3
16:51:40
#monit restart all
'cron' trying to restart
'cron' stop: /etc/init.d/cron
Stopping periodic command scheduler: cron.
'cron' start: /etc/init.d/cron
'linux11' trying to restart
Starting periodic command scheduler: cron.
16:51:53
#vi /etc/monit/monitrc
/dev/pts/1
16:52:21
#cat /etc/monit/monitrc | grep -v '#'

16:52:33
#cat /etc/monit/monitrc | grep -v '^#'

16:52:39
#cat /etc/monit/monitrc
## or sender using the MAIL-FORMAT statement. Macros such as $DATE, etc.
## are expanded at runtime. For example, to override the sender:
#
# set mail-format { from: monit@foo.bar }
#
#
## You can set alert recipients here whom will receive alerts if/when a
## service defined in this file has errors. Alerts may be restricted on
## events by using a filter as in the second example below.
#
...
###############################################################################
## Includes
###############################################################################
##
## It is possible to include additional configuration parts from other files or
## directories.
#
#  include /etc/monit.d/*
#
#
16:52:43
#cat /etc/monit/monitrc | grep -v '^#'

/dev/pts/3
16:52:46
#if children > 250 then restart

16:52:52
#monit
Starting monit daemon with http interface at [192.168.15.11:2812]
16:52:56
#pkill cron

16:53:23
#vi /etc/monit/monitrc
16:55:57
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4952  0.0  0.0   4908   768 pts/10   S+   16:55   0:00 grep cron
16:55:58
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4961  0.0  0.0   4908   756 pts/10   R+   16:55   0:00 grep cron
16:55:59
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4970  0.0  0.0   4908   772 pts/10   S+   16:55   0:00 grep cron
16:55:59
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4979  0.0  0.0   4908   756 pts/10   R+   16:56   0:00 grep cron
16:56:00
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4988  0.0  0.0   4908   768 pts/10   S+   16:56   0:00 grep cron
16:56:00
#<