Hi,
two clarifications:
Hosted engine is sending those emails using built-in Python SMTP
client that talks directly yo the SMTP server specified during install
time. We default to localhost, but you might have changed it.
> notify.state_transition : maintenance|start|stop|migrate|up|down, type : broker
The value here is a regular expression that is matched against the
state transition string in the email.
Best regards
Martin Sivak
On Wed, Aug 29, 2018 at 10:34 PM, Douglas Duckworth
<dod2014@med.cornell.edu> wrote:
> Thanks for sharing
>
> I may want to do that
>
> Though first I want to understand how the emails are arriving.
>
> I stooped ovirt-engine-notifier.service and postfix.service on all hosts and
> the hosted engine. So how are the email being delivered? They are not
> running senmail so I don't understand what daemon's sending these messages.
>
> Thanks,
>
> Douglas Duckworth, MSc, LFCS
> HPC System Administrator
> Scientific Computing Unit
> Weill Cornell Medicine
> 1300 York Avenue
> New York, NY 10065
> E: doug@med.cornell.edu
> O: 212-746-6305
> F: 212-746-8690
>
>
>
> On Wed, Aug 29, 2018 at 3:16 PM, Simone Tiraboschi <stirabos@redhat.com>
> wrote:
>>
>> Hi,
>> you can change the list of status you want to be notified about with
>> hosted-engine --set-shared-config notify.state_transition
>> The default is:
>>
>> [root@hehost01 ~]# hosted-engine --get-shared-config
>> notify.state_transition --type=broker
>>
>> notify.state_transition : maintenance|start|stop|migrate|up|down, type :
>> broker
>>
>>
>> On Wed, Aug 29, 2018 at 7:47 PM Douglas Duckworth
>> <dod2014@med.cornell.edu> wrote:
>>>
>>> I agree however we are in testing phase so I make changes a lot.
>>> Therefore alerts are not presently needed.
>>>
>>> So how to I turn them off?
>>>
>>> These steps do not work on hosted engine:
>>>
>>>
>>> me@ovirt-engine[~]$ sudo systemctl stop postfix.service
>>> me@ovirt-engine[~]$ sudo systemctl stop ovirt-engine-notifier.service
>>> me@ovirt-engine[~]$ sudo systemctl status ovirt-engine-notifier.service
>>> ● ovirt-engine-notifier.service - oVirt Engine Notifier
>>> Loaded: loaded (/usr/lib/systemd/system/ovirt-engine-notifier.service;
>>> enabled; vendor preset: disabled)
>>> Active: inactive (dead) since Wed 2018-08-29 13:41:55 EDT; 3s ago
>>> Process: 1814
>>> ExecStart=/usr/share/ovirt-engine/services/ovirt-engine-notifier/ovirt-engine-notifier.py
>>> --redirect-output --systemd=notify $EXTRA_ARGS start (code=exited,
>>> status=0/SUCCESS)
>>> Main PID: 1814 (code=exited, status=0/SUCCESS)
>>>
>>> Aug 25 12:09:31 ovirt-engine.pbtech systemd[1]: Starting oVirt Engine
>>> Notifier...
>>> Aug 25 12:09:33 ovirt-engine.pbtech systemd[1]: Started oVirt Engine
>>> Notifier.
>>> Aug 29 13:41:54 ovirt-engine.pbtech systemd[1]: Stopping oVirt Engine
>>> Notifier...
>>> Aug 29 13:41:55 ovirt-engine.pbtech systemd[1]: Stopped oVirt Engine
>>> Notifier.
>>>
>>> I still get an email every time I put a host in maint mode for example.
>>>
>>>
>>> Thanks,
>>>
>>> Douglas Duckworth, MSc, LFCS
>>> HPC System Administrator
>>> Scientific Computing Unit
>>> Weill Cornell Medicine
>>> 1300 York Avenue
>>> New York, NY 10065
>>> E: doug@med.cornell.edu
>>> O: 212-746-6305
>>> F: 212-746-8690
>>>
>>>
>>>
>>> On Tue, Aug 28, 2018 at 4:43 PM, Johan Bernhardsson <johan@kafit.se>
>>> wrote:
>>>>
>>>> Those alerts are also coming from hosted-engine that keeps ovirt manager
>>>> running.
>>>>
>>>> I would rather have a filter in my email client for them than disabling
>>>> all of the alerting stuff
>>>>
>>>> /Johan
>>>>
>>>> On August 28, 2018 22:36:34 Douglas Duckworth <dod2014@med.cornell.edu>
>>>> wrote:
>>>>>
>>>>> Hi
>>>>>
>>>>> Can someone please help? I keep getting ovirt alerts via email despite
>>>>> turning off postix and ovirt-engine-notifier.service
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Douglas Duckworth, MSc, LFCS
>>>>> HPC System Administrator
>>>>> Scientific Computing Unit
>>>>> Weill Cornell Medicine
>>>>> 1300 York Avenue
>>>>> New York, NY 10065
>>>>> E: doug@med.cornell.edu
>>>>> O: 212-746-6305
>>>>> F: 212-746-8690
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Aug 24, 2018 at 8:59 AM, Douglas Duckworth
>>>>> <dod2014@med.cornell.edu> wrote:
>>>>>>
>>>>>> Hi
>>>>>>
>>>>>> How do I turn off hosted engine alerts? We are in a testing phase so
>>>>>> these are not needed. I have disabled postfix on all hosts as well as
>>>>>> stopped the ovirt notification daemon on the hosted engine. I kept it
>>>>>> running while putting /dev/null in
>>>>>> /usr/share/ovirt-engine/services/ovirt-engine-notifier/ovirt-engine-notifier.conf
>>>>>> for mail server. Yet I still get alerts for every thing done such as
>>>>>> putting hosts in maintenance mode. Very confusing.
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list -- users@ovirt.org
>>>>> To unsubscribe send an email to users-leave@ovirt.org
>>>>> Privacy Statement: https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ovirt.org_site_privacy-2Dpolicy_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=HNCnpn-PS346coC2krxJr3kEOccwU9mSnRZNLj3IRok&e=
>>>>> oVirt Code of Conduct:
>>>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ovirt.org_community_about_community-2Dguidelines_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=bLInNmwMa9F4yME1S7vL8Qntn5MypII4kTgMKkZP-5c&e=
>>>>> List Archives:
>>>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.ovirt.org_archives_list_users-40ovirt.org_message_X6YRFWUAKYFY2HQF56HGUK3BPXJL2HBH_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=WW0BX4m6z_FG0g68LRhSqZ0w6Chf6mqNuSrYpX0ICds&e=
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Users mailing list -- users@ovirt.org
>>> To unsubscribe send an email to users-leave@ovirt.org
>>> Privacy Statement: https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ovirt.org_site_privacy-2Dpolicy_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=HNCnpn-PS346coC2krxJr3kEOccwU9mSnRZNLj3IRok&e=
>>> oVirt Code of Conduct:
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ovirt.org_community_about_community-2Dguidelines_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=bLInNmwMa9F4yME1S7vL8Qntn5MypII4kTgMKkZP-5c&e=
>>> List Archives:
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.ovirt.org_archives_list_users-40ovirt.org_message_LIBA3OSRJUMGAGYOQDQAGLCYOWWNWJQ2_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=jfhpC57qilLXkNkXrEadoQk9KlDkD4UI7UjTzbyFUlg&e=
>
>
>
> _______________________________________________
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-leave@ovirt.org
> Privacy Statement: https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ovirt.org_site_privacy-2Dpolicy_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=HNCnpn-PS346coC2krxJr3kEOccwU9mSnRZNLj3IRok&e=
> oVirt Code of Conduct:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ovirt.org_community_about_community-2Dguidelines_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=bLInNmwMa9F4yME1S7vL8Qntn5MypII4kTgMKkZP-5c&e=
> List Archives:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.ovirt.org_archives_list_users-40ovirt.org_message_I7EXHCE43XXSVKFVF5OCZACUCK4WW4UG_&d=DwIFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=2Fzhh_78OGspKQpl_e-CbhH6xUjnRkaqPFUS2wTJ2cw&m=KNBFLrOsq9Nau2RNAaX-U7ES91Cg8z5gQzVkdVotcCk&s=AD1Knu9_62ziVk_XzUnjoQCT9CIbwnAE27GscnXM0M0&e=
>