Hi, after last restart, i check that monit[mmonit.com/monit/] that i installed 1 month ago, and which work well this period, don't start. Quote: Try to restart, start; check all config files, /etc/inittab/ {where i add line to start monit}, everything is well, besides monit don't start. :-( I reintall monit, but no result. Checking /var/log/messages i find such lines. IMHO this is related to my problem Quote: Any1 know, what can be problem? Any advice will be appreciated ========== Also find few strange lines in /var/log/messages/ that i don't check before here is my /etc/inittab/
monit-5.0_beta6.tar.gz but in real i have this file in this folder /etc/init.d/ -rwxr-xr-x 1 root root 1211 Jan 23 18:10 monit
here is output Code: [root@server ~]# ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.1 0.0 2064 340 ? Ss Mar02 1:54 init [3] root 2 0.0 0.0 0 0 ? S Mar02 0:00 [migration/0] root 3 0.0 0.0 0 0 ? SN Mar02 0:00 [ksoftirqd/0] root 4 0.0 0.0 0 0 ? S Mar02 0:00 [watchdog/0] root 5 0.0 0.0 0 0 ? S Mar02 0:00 [migration/1] root 6 0.0 0.0 0 0 ? SN Mar02 0:00 [ksoftirqd/1] root 7 0.0 0.0 0 0 ? S Mar02 0:00 [watchdog/1] root 8 0.0 0.0 0 0 ? S< Mar02 0:00 [events/0] root 9 0.0 0.0 0 0 ? S< Mar02 0:00 [events/1] root 10 0.0 0.0 0 0 ? S< Mar02 0:00 [khelper] root 11 0.0 0.0 0 0 ? S< Mar02 0:00 [kthread] root 15 0.0 0.0 0 0 ? S< Mar02 0:00 [kblockd/0] root 16 0.0 0.0 0 0 ? S< Mar02 0:00 [kblockd/1] root 17 0.0 0.0 0 0 ? S< Mar02 0:00 [kacpid] root 92 0.0 0.0 0 0 ? S< Mar02 0:00 [cqueue/0] root 93 0.0 0.0 0 0 ? S< Mar02 0:00 [cqueue/1] root 96 0.0 0.0 0 0 ? S< Mar02 0:00 [khubd] root 98 0.0 0.0 0 0 ? S< Mar02 0:00 [kseriod] root 159 2.8 0.0 0 0 ? S< Mar02 47:41 [kswapd0] root 160 0.0 0.0 0 0 ? S< Mar02 0:00 [aio/0] root 161 0.0 0.0 0 0 ? S< Mar02 0:00 [aio/1] root 321 0.0 0.0 0 0 ? S< Mar02 0:00 [kpsmoused] root 351 0.0 0.0 0 0 ? S< Mar02 0:00 [ata/0] root 352 0.0 0.0 0 0 ? S< Mar02 0:00 [ata/1] root 353 0.0 0.0 0 0 ? S< Mar02 0:00 [ata_aux] root 357 0.0 0.0 0 0 ? S< Mar02 0:00 [scsi_eh_0] root 358 0.0 0.0 0 0 ? S< Mar02 0:00 [scsi_eh_1] root 371 0.0 0.0 0 0 ? S< Mar02 0:00 [ksnapd] root 374 0.0 0.0 0 0 ? S< Mar02 0:06 [kjournald] root 401 0.0 0.0 0 0 ? S< Mar02 0:00 [kauditd] root 435 0.0 0.0 2244 8 ? S<s Mar02 0:00 /sbin/udevd -d root 1418 0.0 0.0 0 0 ? S< Mar02 0:00 [kmpathd/0] root 1419 0.0 0.0 0 0 ? S< Mar02 0:00 [kmpathd/1] root 1441 0.0 0.0 0 0 ? S< Mar02 0:00 [kjournald] root 1920 0.6 0.0 13116 280 ? S<sl Mar02 10:20 auditd root 1922 0.4 0.0 10160 808 ? S<s Mar02 6:50 python /sbin/au root 2032 0.2 0.0 2428 300 ? Ss Mar02 3:58 irqbalance rpc 2067 0.0 0.0 1804 8 ? Ss Mar02 0:00 portmap root 2092 0.0 0.0 1816 8 ? Ss Mar02 0:00 rpc.statd root 2137 0.0 0.0 5472 68 ? Ss Mar02 1:03 rpc.idmapd dbus 2164 0.0 0.0 2744 320 ? Ss Mar02 0:00 dbus-daemon --s root 2179 0.0 0.0 2140 8 ? Ss Mar02 0:00 /usr/sbin/hcid root 2185 0.0 0.0 1740 8 ? Ss Mar02 0:00 /usr/sbin/sdpd root 2208 0.0 0.0 0 0 ? S< Mar02 0:00 [krfcommd] root 2258 0.1 0.0 12716 272 ? Ssl Mar02 2:29 pcscd root 2282 0.0 0.0 1904 8 ? Ss Mar02 0:00 /usr/bin/hidd - root 2302 0.3 0.0 12448 456 ? Ssl Mar02 5:34 automount root 2325 0.0 0.0 1664 8 ? Ss Mar02 0:00 /usr/sbin/acpid root 2405 0.0 0.0 9752 8 ? Ss Mar02 0:00 cupsd root 2421 0.0 0.0 2716 8 ? Ss Mar02 0:00 xinetd -stayali root 2517 0.1 0.0 3132 348 ? Ss Mar02 2:09 /usr/local/dire nobody 2532 0.0 0.0 8816 136 ? Ss Mar02 0:00 /usr/local/dire mail 2546 0.1 0.0 8816 332 ? Ss Mar02 1:47 /usr/sbin/exim root 2571 0.0 0.0 1896 68 ? Ss Mar02 0:00 gpm -m /dev/inp ftp 2601 0.2 0.0 5824 248 ? Ss Mar02 3:54 proftpd: (accep root 2616 0.1 0.0 5260 204 ? Ss Mar02 3:20 crond root 2645 0.1 0.0 2236 184 ? Ss Mar02 3:01 /usr/sbin/atd root 2665 0.3 1.1 40780 23876 ? S Mar02 5:04 /usr/bin/python avahi 2682 0.0 0.0 2568 8 ? Ss Mar02 0:00 avahi-daemon: r avahi 2683 0.0 0.0 2568 8 ? Ss Mar02 0:00 avahi-daemon: c 68 2700 0.2 0.0 5364 472 ? Ss Mar02 4:02 hald root 2701 0.0 0.0 3132 8 ? S Mar02 0:00 hald-runner 68 2712 0.0 0.0 1992 8 ? S Mar02 0:00 hald-addon-acpi root 2763 0.0 0.0 1980 260 ? S Mar02 1:12 /usr/sbin/smart root 2766 0.0 0.0 1656 8 tty1 Ss+ Mar02 0:00 /sbin/mingetty root 2767 0.0 0.0 1656 8 tty2 Ss+ Mar02 0:00 /sbin/mingetty root 2772 0.0 0.0 1656 8 tty3 Ss+ Mar02 0:00 /sbin/mingetty root 2779 0.0 0.0 1656 8 tty4 Ss+ Mar02 0:00 /sbin/mingetty root 2781 0.0 0.0 1656 8 tty5 Ss+ Mar02 0:00 /sbin/mingetty root 2782 0.0 0.0 1656 8 tty6 Ss+ Mar02 0:00 /sbin/mingetty named 2856 0.2 0.0 48464 948 ? Ssl Mar02 3:37 named -u named root 9663 0.0 0.0 5240 8 ? Ss Mar02 0:00 sshd: [accepted root 9664 0.0 0.0 5240 8 ? Ss Mar02 0:00 sshd: [accepted root 10522 0.0 0.0 5244 432 ? Ss 00:12 0:12 sshd: [accepted root 10556 0.0 0.0 5244 460 ? Ss 00:34 0:00 sshd: [accepted root 15464 0.0 0.0 18628 1780 ? Ssl 07:02 0:10 /usr/local/bin/ root 15547 0.0 0.0 1716 520 ? Ss 07:02 0:00 syslogd -m 0 root 15550 0.0 0.0 1668 324 ? Ss 07:02 0:00 klogd -x root 17161 0.0 0.0 4472 484 ? S 07:42 0:00 /bin/sh /usr/bi mysql 17188 0.0 1.4 60764 30644 ? S 07:42 0:00 /usr/sbin/mysql mysql 17189 0.0 1.4 60764 30644 ? S 07:42 0:00 /usr/sbin/mysql mysql 17190 0.0 1.4 60764 30644 ? S 07:42 0:00 /usr/sbin/mysql mysql 17191 0.7 1.4 60764 30644 ? S 07:42 2:11 /usr/sbin/mysql root 17386 0.0 0.3 23020 7480 ? Ss 07:45 0:00 /usr/sbin/httpd root 17415 0.0 0.0 1868 496 ? Ss 07:45 0:00 dovecot root 17416 0.0 0.0 2432 1148 ? S 07:45 0:00 dovecot-auth dovecot 17428 0.0 0.0 4840 1476 ? S 07:45 0:00 pop3-login dovecot 17429 0.0 0.0 4836 1472 ? S 07:45 0:00 pop3-login dovecot 17430 0.0 0.0 4840 1548 ? S 07:45 0:00 pop3-login dovecot 17431 0.0 0.0 4836 1472 ? S 07:45 0:00 pop3-login dovecot 17432 0.0 0.0 4836 1472 ? S 07:45 0:00 pop3-login dovecot 17433 0.0 0.0 4840 1476 ? S 07:45 0:00 pop3-login dovecot 17434 0.0 0.0 4836 1476 ? S 07:45 0:00 pop3-login dovecot 17435 0.0 0.0 4840 1476 ? S 07:45 0:00 pop3-login dovecot 17436 0.0 0.0 4836 1472 ? S 07:45 0:00 pop3-login dovecot 17437 0.0 0.0 4840 1476 ? S 07:45 0:00 pop3-login dovecot 17438 0.0 0.0 4836 1472 ? S 07:45 0:00 pop3-login dovecot 17439 0.0 0.0 4840 1548 ? S 07:45 0:00 pop3-login dovecot 17444 0.0 0.0 4848 1364 ? S 07:45 0:00 imap-login dovecot 17445 0.0 0.0 4844 1368 ? S 07:45 0:00 imap-login dovecot 17446 0.0 0.0 4844 1368 ? S 07:45 0:00 imap-login dovecot 17447 0.0 0.0 4844 1364 ? S 07:45 0:00 imap-login dovecot 17448 0.0 0.0 4844 1364 ? S 07:45 0:00 imap-login dovecot 17449 0.0 0.0 4848 1368 ? S 07:45 0:00 imap-login dovecot 17450 0.0 0.0 4844 1364 ? S 07:45 0:00 imap-login dovecot 17451 0.0 0.0 4848 1368 ? S 07:45 0:00 imap-login dovecot 17452 0.0 0.0 4844 1364 ? S 07:45 0:00 imap-login dovecot 17453 0.0 0.0 4848 1364 ? S 07:45 0:00 imap-login dovecot 17454 0.0 0.0 4848 1364 ? S 07:45 0:00 imap-login dovecot 17455 0.0 0.0 4848 1364 ? S 07:45 0:00 imap-login dovecot 17456 0.0 0.0 4848 1368 ? S 07:45 0:00 imap-login dovecot 17457 0.0 0.0 4848 1364 ? S 07:45 0:00 imap-login dovecot 17458 0.0 0.0 4848 1364 ? S 07:45 0:00 imap-login dovecot 17459 0.0 0.0 4848 1368 ? S 07:45 0:00 imap-login mysql 17524 0.3 1.4 60764 30644 ? S 07:49 1:00 /usr/sbin/mysql root 17545 0.0 0.0 0 0 ? S 07:50 0:00 [pdflush] mysql 17557 0.5 1.4 60764 30644 ? S 07:50 1:25 /usr/sbin/mysql mysql 17558 0.4 1.4 60764 30644 ? S 07:50 1:11 /usr/sbin/mysql mysql 17559 0.4 1.4 60764 30644 ? S 07:50 1:16 /usr/sbin/mysql root 17560 0.0 0.0 0 0 ? S 07:50 0:00 [pdflush] root 17606 0.0 0.0 5244 1068 ? Ss 07:51 0:00 /usr/sbin/sshd mysql 17640 0.7 1.4 60764 30644 ? S 07:52 1:56 /usr/sbin/mysql apache 19300 0.3 0.3 23580 8232 ? S 09:49 0:31 /usr/sbin/httpd nobody 19354 0.0 0.0 8816 308 ? S 09:55 0:00 /usr/local/dire apache 19687 0.4 0.4 23708 8700 ? S 10:17 0:36 /usr/sbin/httpd apache 19831 0.2 0.4 26100 8556 ? S 10:31 0:19 /usr/sbin/httpd nobody 20098 0.0 0.0 8816 308 ? S 10:57 0:00 /usr/local/dire nobody 20101 0.0 0.0 8816 308 ? S 10:57 0:00 /usr/local/dire nobody 20103 0.0 0.0 8816 308 ? S 10:57 0:00 /usr/local/dire apache 20250 0.2 0.4 23360 8404 ? S 11:06 0:11 /usr/sbin/httpd apache 20371 0.9 0.4 23784 8716 ? S 11:18 0:36 /usr/sbin/httpd apache 20491 0.5 0.4 26196 8836 ? S 11:27 0:18 /usr/sbin/httpd apache 20516 0.6 0.3 23572 8264 ? S 11:30 0:22 /usr/sbin/httpd apache 20578 0.0 0.3 23152 7584 ? S 11:38 0:00 /usr/sbin/httpd apache 20667 0.2 0.4 23624 8480 ? S 11:45 0:06 /usr/sbin/httpd nobody 20705 0.0 0.0 8816 308 ? S 11:49 0:00 /usr/local/dire dovecot 20793 0.0 0.0 4840 1784 ? S 11:57 0:00 pop3-login apache 20832 1.6 0.4 23532 8440 ? S 12:02 0:22 /usr/sbin/httpd apache 20886 1.8 0.4 24348 9484 ? S 12:09 0:17 /usr/sbin/httpd apache 20961 1.9 0.4 24044 9132 ? S 12:14 0:11 /usr/sbin/httpd apache 20963 1.0 0.4 25160 10240 ? S 12:14 0:06 /usr/sbin/httpd apache 20973 5.5 0.4 23532 8428 ? S 12:16 0:28 /usr/sbin/httpd apache 20990 4.0 0.3 23556 8248 ? S 12:18 0:15 /usr/sbin/httpd apache 20993 5.8 0.4 23524 8428 ? S 12:18 0:21 /usr/sbin/httpd apache 20994 4.4 0.4 23360 8380 ? S 12:18 0:16 /usr/sbin/httpd apache 20995 5.9 0.4 23952 9336 ? S 12:18 0:22 /usr/sbin/httpd apache 21024 0.0 0.3 23160 7576 ? S 12:21 0:00 /usr/sbin/httpd apache 21025 9.8 0.4 23268 8292 ? S 12:21 0:17 /usr/sbin/httpd dovecot 21027 0.0 0.0 4840 1780 ? S 12:21 0:00 pop3-login dovecot 21036 0.0 0.0 4840 1780 ? S 12:22 0:00 pop3-login apache 21037 8.2 0.4 23304 8300 ? S 12:22 0:11 /usr/sbin/httpd dovecot 21038 0.0 0.0 4840 1780 ? S 12:22 0:00 pop3-login root 21048 0.2 0.1 7828 2236 ? Ss 12:24 0:00 sshd: root@pts/ root 21050 0.0 0.0 4648 1492 pts/0 Ss 12:24 0:00 -bash root 21078 0.0 0.0 4244 940 pts/0 R+ 12:24 0:00 ps aux
Which Linux distribution (Debian, Ubuntu, Fedora, etc.) are you using? What's in your logs when you run Code: /etc/init.d/monit restart ?
hmm .. very strange what i'm doing? I answer to all your questions, just looks like you don't read it. For example last question you ask 2 times, and both times i answer. Regarding logs - pls check my first post. thank you
You just posted the output of /etc/init.d/monit start, but not what was happening in the logs at the same time...