monit-general
[Top][All Lists]
Advanced

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

RE: Program status testing - alert contains stdout and not stderr


From: Leif Gustafson
Subject: RE: Program status testing - alert contains stdout and not stderr
Date: Tue, 16 Jul 2013 09:06:49 -0800

It would be very handy to be able to configure the length of the captured
output.  Sometimes I have output from awk that summarizes a large amount of
problem data and it is very handy to see the entire output in the
notification email.  Making the length configurable (either globally or per
test) would be an excellent feature.

-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of Jan-Henrik Haukeland
Sent: Saturday, July 13, 2013 5:03 AM
To: This is the general mailing list for monit
Subject: Re: Program status testing - alert contains stdout and not stderr

Monit first reads from the script's stderr, if there is nothing there _then_
it reads from stdout. Please make sure that your script really write to
stderr if needed. The output (if any) is part of the alert message and to
avoid too long messages only 255 chars are read. Maybe your script could do
some processing of the error and only write the relevant part to stderr?
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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