Hi Nick, if the "check system <name>" is present, the <name> overrides the hostname. If the "check system" is missing in the monit configuration, the $HOST in the alert email (including sender address) expands to the current system hostname returned by gethostname() expanded to FQDN if possible (using the system nameservice).
I have added support for $HOST as "check system" argument so you don't need to maintain the "check system" name manually (expands to the hostname): http://www.mmonit.com/tmp/monit-5.6_svn20120917.tar.gz Regards, Martin On Sep 13, 2012, at 12:12 PM, Nick Upson <[email protected]> wrote: > Hi Martin, > > any news? > > Nick Upson > > > > On 7 September 2012 15:50, Martin Pala <[email protected]> wrote: > hello Nick, sorry for no response, i'll look on it (was busy with other tasks) > > > On Sep 7, 2012, at 4:49 PM, Nick Upson <[email protected]> wrote: > >> anyone? >> >> ---------- Forwarded message ---------- >> From: Nick Upson <[email protected]> >> Date: 5 September 2012 16:39 >> Subject: Re: [Announce] Monit 5.5 >> To: This is the general mailing list for monit <[email protected]> >> >> >> Hi, >> >> I tried to regain the earlier form of from address by using: >> >> set mail-format { from: monit@$HOST } but that still uses the 'check >> system' system name >> >> check system $HOST doesn't work, the $HOST is not expanded >> >> any other ideas please. >> >> Nick Upson >> >> >> >> On 3 September 2012 01:45, Martin Pala <[email protected]> wrote: >> Hi, everyone! >> >> We have just released Monit 5.5. You can download the new release from: >> >> http://mmonit.com/monit/download/ >> >> >> Release information: >> ==================== >> >> IMPROVEMENTS: >> >> * check program: >> - Multiple exit values can be tested within single program check >> - Exit value test supports multiple cycles option ("for X cycles") >> - If exit value test matches and the stderr has no data, try stdout >> >> Example syntax: >> check program mytest with path "/usr/bin/mytest.sh" with timeout 1000 >> seconds >> if status == 2 then exec "/usr/local/bin/fix_script.sh" >> if status == 2 for 6 cycles then unmonitor >> if status == 10 then alert >> >> * Renamed mail header (message-id and mime-version) to prevent >> triggering spam check of capitalization. Thanks to Ryan Lee >> for tips. >> >> * The 'check system <name>' statement sets the system hostname in mail >> alerts and initial hostname in M/Monit. >> >> * Increase the default mailserver timeout to 30 seconds. >> >> * Add support for OpenBSD 5.1. >> >> BUGFIXES: >> >> * Fix the rare hung on linux which may occur during program execution. >> Thanks to Nick Upson for report. >> >> * In the case that the process start/restart execution failed, >> monit kept "Execution failed" flag even if the process was >> recovered later (for example it was starting slowly or manually >> recovered). >> >> * Fix the mail alert (strict SMTP implementation) to pass >> MTA-side sanity checks like postscreen. Thanks to Len Conrad >> for report. >> >> * The -t option tests the configuration file syntax even if the >> file permissions are wrong. Thanks to Adam Nielsen for report. >> >> * Do not display the default non-existence test for the check >> program (not applicable in the check program context). >> >> >> Contact: >> ======== >> >> If you have questions, comments or any other feedback about this release, >> please reply to this post. >> >> >> Best regards from the Monit team >> >> -- >> To unsubscribe: >> https://lists.nongnu.org/mailman/listinfo/monit-general >> >> >> -- >> To unsubscribe: >> https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
