monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script status check error with monit5.3


From: Jan-Henrik Haukeland
Subject: Re: Script status check error with monit5.3
Date: Wed, 28 Sep 2011 13:12:14 +0200

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]