1 |
|
Short FAQ: |
2 |
|
---------- |
3 |
|
|
4 |
|
@version \$Id$ |
5 |
|
|
6 |
|
|
7 |
1. Q: Monit watches processes by a pid file, so if a program crashes |
1. Q: Monit watches processes by a pid file, so if a program crashes |
8 |
without removing its pid file, then monit won't recognize it, |
without removing its pid file, then monit won't recognize it, |
9 |
right? |
right? |
32 |
data from the port (via the select system call or test for an |
data from the port (via the select system call or test for an |
33 |
ICMP error in case of udp). If the connection fails or if the |
ICMP error in case of udp). If the connection fails or if the |
34 |
port connection does not respond, monit will restart the |
port connection does not respond, monit will restart the |
35 |
program. As of monit version 4.1 you can also write your own |
program. As of monit version 4.1 you can also can write your own |
36 |
protocol-tests using send and expect strings (see the manual). |
protocol-tests using send and expect strings (see the manual). |
37 |
Although this requires the server to use a text based protocol. |
Although this requires the server to use a text based protocol. |
38 |
|
|
344 |
[A] http://www.fefe.de/dietlibc/ |
[A] http://www.fefe.de/dietlibc/ |
345 |
[B] http://www.uclibc.org/ |
[B] http://www.uclibc.org/ |
346 |
|
|
347 |
|
|
348 |
|
12. Q: When running in debug mode (using -v option) there are following error |
349 |
|
messages (example): |
350 |
|
--8<-- |
351 |
|
system statistic error -- orphaned process id 5812 |
352 |
|
system statistic error -- orphaned process id 5819 |
353 |
|
... |
354 |
|
system statistic error -- orphaned process id 5854 |
355 |
|
system statistic error -- cannot find process id 1 |
356 |
|
--8<-- |
357 |
|
|
358 |
|
A: You are most probably running monit on system with security restrictions |
359 |
|
which hides process with PID 1. For example LIDS and Linux-VServer |
360 |
|
are optionaly able to do so. Monit can run and work in this environment, |
361 |
|
but some system or process resource statistics may be not available |
362 |
|
(will show zero as value). You can also unhide PID 1 for monit's context |
363 |
|
and use for example unkillable protection for PID 1 instead to provide |
364 |
|
access to monit to these statistics. |
365 |
|
|
366 |
------------------------------------------------------------------------------- |
------------------------------------------------------------------------------- |
367 |
|
|
368 |
HOW-TO debug monit: |
HOW-TO debug monit: |