OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Monit default mail format cannot be changed
« previous next »
  • Print
Pages: [1]

Author Topic: Monit default mail format cannot be changed  (Read 4144 times)

bobbythomas

  • Full Member
  • ***
  • Posts: 134
  • Karma: 5
    • View Profile
Monit default mail format cannot be changed
« on: April 12, 2019, 11:41:41 pm »
Hi,

I was trying to edit the default mail-format on the monitrc file but it seems like it reverts to the default after re-initializing. Is there anyway to edit and keep the mail-format?

Thank you,
Bobby Thomas
Logged

faunsen

  • Full Member
  • ***
  • Posts: 102
  • Karma: 17
    • View Profile
Re: Monit default mail format cannot be changed
« Reply #1 on: April 28, 2019, 07:48:33 pm »
Yes, you can do that via GUI.
see https://wiki.opnsense.org/manual/monit.html#alert-settings
Logged

bobbythomas

  • Full Member
  • ***
  • Posts: 134
  • Karma: 5
    • View Profile
Re: Monit default mail format cannot be changed
« Reply #2 on: April 29, 2019, 11:32:08 am »
Quote from: faunsen on April 28, 2019, 07:48:33 pm
Yes, you can do that via GUI.
see https://wiki.opnsense.org/manual/monit.html#alert-settings

Hi Faunsen,

I already tried that and it works from GUI as well as from CLI, but it will only append the Monit status details to the default mail format, for example, at end we cannot modify the email closings, regardless of what we mention under mail format the email closing will always have "your faithful employee, monit" at the end. I would like to change this. Any idea how we can modify that?

Thanks and regards,
Bobby Thomas
Logged

faunsen

  • Full Member
  • ***
  • Posts: 102
  • Karma: 17
    • View Profile
Re: Monit default mail format cannot be changed
« Reply #3 on: April 29, 2019, 12:26:32 pm »
Did you set the message body within the mail-format?
https://mmonit.com/monit/documentation/monit.html#Message-format
Logged

bobbythomas

  • Full Member
  • ***
  • Posts: 134
  • Karma: 5
    • View Profile
Re: Monit default mail format cannot be changed
« Reply #4 on: April 29, 2019, 12:38:48 pm »
Quote from: faunsen on April 29, 2019, 12:26:32 pm
Did you set the message body within the mail-format?
https://mmonit.com/monit/documentation/monit.html#Message-format

No, I haven't inserted the message body under the alert settings, but I doubt if it would affect the mail format. I will give it a try.

Thank you,
Regards,
Bobby Thomas
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • Monit default mail format cannot be changed
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2