[ovirt-users] Updating the notification emails after the hosted-engine is deployed

Simone Tiraboschi stirabos at redhat.com
Wed Mar 1 10:19:39 UTC 2017


On Wed, Mar 1, 2017 at 9:47 AM, Gustav H Meyer <gustav at gcis.gov.za> wrote:

> Hi,
>
> Thanks Joe for asking that question as I would love to see the answer to
> that as well.
>
> In fact I would actually like to know how to approach and change the
> source-email address so that you can actually see what host the email is
> coming from rather than from localhost.
>
> Regards,
> Gustav H Meyer
>
> On 01/03/2017 09:53, Joseph Kelly wrote:
>
> Hello all - does anyone know how to update the destination-emails address
> after the hosted-engine is deployed ? And can this be done from the
> webadmin GUI ? I
>
> # cat  /var/lib/ovirt-hosted-engine-ha/broker.conf
> [email]
> smtp-server = mailhost.ts.com
> smtp-port = 25
> source-email = root at localhost <root at ny2-lab-008.mgt.tradingscreen.com>
> *destination-emails = emai-addressl at ts.com <emai-addressl at ts.com> <-- want
> to change this *
>
> [notify]
> state_transition = maintenance|start|stop|migrate|up|down
>
> And I've done the following on both nodes but itseems to keeps on getting
> over-written:
>
> 1) Shutdown the hosted-engine
>
> 2)  Stopped these services on all nodes:
> service ovirt-ha-agent stop
> service ovirt-ha-broker stop
>
> 3) Updated broker.conf on each node:
> Edited /var/lib/ovirt-hosted-engine-ha/broker.conf on each node
> Edited /etc/ovirt-hosted-engine/answers.conf <-- just for good measure
>
> 4) Re-started these services on all nodes:
> service ovirt-ha-agent start
> service ovirt-ha-broker start
>
> 5) Restarted the hosted-engine.
>
> Pretty easy in 4.1:

[root at c72he20170228h1 ~]# hosted-engine --get-shared-config
destination-emails --type=broker

destination-emails : root at localhost, type : broker

[root at c72he20170228h1 ~]# hosted-engine --set-shared-config
destination-emails stirabos at redhat.com --type=broker
[root at c72he20170228h1 ~]# hosted-engine --get-shared-config
destination-emails --type=broker

destination-emails : stirabos at redhat.com, type : broker

[root at c72he20170228h1 ~]# systemctl restart ovirt-ha-broker


> Thanks,
> Joe.
>
> --
>
> *J. Kelly*
> Infrastructure Engineer
> TradingScreenwww.tradingscreen.com
> KDX Roppongi 228 Bldg. 6F
> 2-2-8 Roppongi, Minato-ku, Tokyo 106-0032, Japan
> office: +81-3-4540-8513 <+81%203-4540-8513>
> email: joseph.kelly at tradingscreen.com
>
> Follow TradingScreen on Twitter, Facebook, or our blog, Trading Smarter
>
> This message is intended only for the recipient(s) named above and may
> contain confidential information. If you are not an intended recipient,
> you should not review, distribute or copy this message. Please notify
> the sender immediately by e-mail if you have received this message in
> error and delete it from your system.
>
>
>
>
> _______________________________________________
> Users mailing listUsers at ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170301/790d398b/attachment.html>


More information about the Users mailing list