/l3/users/eb/2009/linux11/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
#cabber
Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net email: cabber@ajmacias.com Config file parsed... Initializing NCurses... Ncurses ok. Connecting...Ошибка сегментирования |
#vi .cabberrc
|
#cabber
Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net email: cabber@ajmacias.com Config file parsed... Initializing NCurses... |
#cabber
Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net email: cabber@ajmacias.com Config file parsed... Initializing NCurses... |
#~ +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... |
#cabber
Cabber v0.4.0-test5 --[AjMacias]-- http://cabber.sourceforge.net email: cabber@ajmacias.com Config file parsed... Initializing NCurses... |
$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: |
$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 |
#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 |
#monit
|
#pps monit
bash: pps: команда не найдена |
#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 |
#cat /etc/def
default/ defoma/ |
#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 |
#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 |
#whereis monit
monit: /usr/sbin/monit /etc/monit /usr/share/man/man1/monit.1.gz |
#cat /usr/sbin/monit
ELF°4¨4 (444ààèè ä ((( Qåt Òt';`ld¸`inux.suéóv;èP ÒuîÇ ÀþÿÿØ]ð$èÿÿEÄ$ÄþÿÿD$èà¤ÿÿÇDàÇD$$D$ è¯ÿÿ ÀuÆ Äþÿÿ Àþÿÿ\ÇD$ìD$ 7¹ +iTÄy84¬©Âº¼!¨;¯SÍdp&Å#¿Qa NG$®jZ§w9±_¶¢Ð|£(Õ}-W0Êe¤HÈϪvËmk]Ñ3»Î^Ç«¡zÁ: ¡\ $è¬ÿÿ¡\ |t$$èá®ÿÿÇ$`èE©ÿÿÄL[^_]öÇ$` 踬ÿÿ|t$$©ÿÿÇ$` è 1*) ©ÿÿÄL[^_]Ãt&Àþÿÿé!ÿÿÿÇDmÇD$ÒÇ$èè£ÿÿ¶¿Uåì ÒtM @IL? RP/VEF5X,É\YurJ~6`Öb¥×[xC>A2qlD¸=µMf¾´BÀct%ð!ÉÊÌÍÏÐÑÔÕÖ×ØÙëÓï2Ä÷¹ñÙqX¬KãÀ»ã| ¸èþÿÿÉÃÇD·ÇD$ÒÇ$èÈÿÿÿèG£ÿÿvUåì ÒtM Á7páZÖ>Êc( Ðg~?5ê. Þ÷Ź@8òÄCEÕìÁ³÷³¢÷§Ý£kgUaãÆñ4Øn'}[lM¦4rlÿ2ê1Ê89Xl¶& W¥` =w:Dó ¸èÖýÿÿÉÃÇDÇD$ÒÇ$èÿÿÿè£ÿÿvUåì ÒtM °Üw^õÆ´pl¼7OqSçXn>2,¿ÍTo²çäK¹Í>Ûú8F<4¤ã/$c?Û x 8=%M ¸èýÿÿÉÃÇDóÇD$ÒÇ$èHÿÿÿèÇ¢ÿÿvUå ó̤vhÿ¶Úlì7<¤ú:en)C 24 R(èús¼¿»I!F&4KØe¯,2Ü#4e.~¾zI ´p ¤tIç9}$/9ª47Ï ;}ò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ÀÉÃfUå ¢ Òu1ÀÉÃfè ¢ Éí¢ Ò ð¡\ ÀÒÇ$`èÀt¸Éá¢Ç$D$è!1ÀÉÃUåWÏVÖSÃìL ÒÇ$`èþÿÿ¡ |t$$èé¯ÿÿ¡ $è©ÿÿÇ$` è@ªÿÿ |
#ô]
/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 |
#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 |
#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 |
#vi /etc/monit/monitrc
|
#vi /etc/default/monit
|
#monit
Starting monit daemon |
#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 |
#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 |
#kill 2516
|
#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 |
#kill 4459
|
#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 |
#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 |
#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 |
#ps -waux |grep cron
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#kill 4556
|
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#vi /etc/default/monit
|
#vi /etc/monit/monitrc
|
#monit
/etc/monit/monitrc:90: Error: erroneous network or host identifier localhost 'localhost' |
#vi /etc/monit/monitrc
|
#cat /etc/monit/monitrc |grep -v #
grep --help' для получения более подробного описания. |
#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. |
#vi /etc/monit/monitrc
|
#cat /etc/monit/monitrc | grep -v '^#'
|
#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/* # # |
#cat /etc/monit/monitrc | grep -v '^#'
|
#monit
Starting monit daemon with http interface at [192.168.15.11:2812] |
#pkill cron
|
#vi /etc/monit/monitrc
|
#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 |
#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 |
#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 |
#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 |
#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 |
#< |