On Sep 28, 2011, at 12:52 PM, Pratap Kumar wrote: > [IST Sep 28 16:15:22] info : 'script' exec: /etc/init.d/service > [IST Sep 28 16:16:22] error : 'script' status failed (2) for > /etc/init.d/service. Error: no output.. > > How do I write meaningful messages instead of above.
Have the script write a meaningful error message to stderr. Monit will read up to 255 bytes from the script's stderr and put this text in the log and alert message. That is, the 'no output' part above will be replaced with whatever your script writes to stderr. -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
