![]() When I tcpdumped the traffic on the monit instance everything worked fine: Monit opens a TCP connection and the whole process of sending SYN, SYN/ACK, ACK, traffic and finally FIN, FIN/ACK etc. When I investigated further I discovered that the firewall did open all necessary connections, so it wasn't a fault there. The server, however, *was* reachable and working (as it tested successfully from another server). Sometimes it skipped the five minutes and came back after ten minutes or more (but always a multiple of five), sometimes it jumped one minute ahead and faulted after six minutes, to continue then again after five. Since yesterday I received the message "connection failed, INET[via TCP is not ready for i|o - Interrupted system call" every 5 minutes from a monit instance. I write this purely because googling for the error message did not show up with a single useful entry. Skip the text and jump to the solution at the bottom if you are not interested in my adventure. hoping that this helps someone somewhere in the future. Script is saved in a file called /bin/xyz, you can call this script from monit Starting an imaginary program (a Java program in this case). Since monit requires all programs to have a pid file, what do I do?Ī: Create a wrapper script and have the script create a pid fileīefore it starts the program. Q: I have a program that does not create its own pid file. Test for zombie processes and will raise an alert if a process has become a Some serversĬan crash and leave a zombie process, and appear to run. ![]() Program is not running and restart it even if a pid file exist. Manner, then the process ID (pid) will not exist and monit will know that the If a program crashes and dies in a "normal" Q: If a program crashes without removing its pid file, will monit recognise that the program is not running?Ī: Yes, Monit will always check that the pid number in a pid fileīelongs to a running process. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |