Ad Widget

Collapse

Mail sender weird server reply

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hst174
    Junior Member
    • Sep 2021
    • 3

    #1

    Mail sender weird server reply

    Hello!
    Last friday got a problem with a media type mail sender. It stopped working without any cause. What can I do? Config worked well for an year.
    Click image for larger version  Name:	bFS9EzGOzis.jpg?size=817x701&quality=96&sign=d4de8480407de0691aa5ba687bc0916b&type=album.jpg Views:	3 Size:	73.2 KB ID:	431837Click image for larger version  Name:	fOUIeukhMYI.jpg?size=639x398&quality=96&sign=259b854e9dc9ca0c2707daf89d3075e0&type=album.jpg Views:	2 Size:	39.3 KB ID:	431838
    Also couldnt find any logs. /var/log/zabbix/zabbix_server.log shows the same error without any details.

    Besides, I installed and configured ssmtp on zabbix server on same config as on pics, and it works without problems. Media types still having an error.
    Last edited by hst174; 20-09-2021, 13:32.
  • mpearson-ineda
    Junior Member
    • Sep 2021
    • 1

    #2
    I'm having this issue too since 07:36am BST on one of my servers, also connecting to office exchange. I switch over to an emergency gmail account we have but still the same error. Are you hosting on Ubuntu 18.04.6 as well?

    Trying to work out what the commality is here, but I'm struggling at present.

    Comment

    • robertime
      Junior Member
      • Dec 2019
      • 1

      #3
      Hi hst174 yesterday i has write here with this problem.
      I Don't resolve the problem with "weird server reply", but i used other tool to send email. a Script.
      • Find AlertScriptsPath in /etc/zabbix/zabbix_server.conf - default path is -> /usr/lib/zabbix/alertscripts
      • cd /usr/lib/zabbix/alertscripts
      • nano zabbix-alert-smtp.sh (or_name_you_want.sh)
      • paste script and change the variables like smtp server, user and password (the script on link github)
      • chmod 755 zabbix-alert-smtp.sh (or_name_you_want.sh)
      • Please install python - apt-get install python
      • I don't know if you need install ssmtp / because i did an others test and installing before.
      • Go to Zabbix web UI, Administration > Media types > Create media type
      • Enter Script name: zabbix-alert-smtp.sh
      • Entre Script parameters: {ALERT.SENDTO} / {ALERT.SUBJECT} / {ALERT.MESSAGE}
      • Save
      • After that, you need add in every mail user, with the new media type with the mail again.
      • Need change in actions Sending by script: zabbix-alert-smtp.sh

      source: https://gist.github.com/superdaigo/3754055

      work for me:
      Zabbix Version: Zabbix 5.4.4
      OS: Ubuntu 18.04
      Error Weird Server Reply Start: 17/09/2021 and finish with this solution 21/09/2021

      I use an other names of script.

      Click image for larger version

Name:	2021_09_22_09_17_36_Window.png
Views:	1208
Size:	191.2 KB
ID:	431974
      Click image for larger version

Name:	2021_09_22_09_20_11_Window.png
Views:	1209
Size:	12.2 KB
ID:	431971
      Click image for larger version

Name:	2021_09_22_09_22_10_STSZABBIXSRV_Configuration_of_users.png
Views:	1245
Size:	7.8 KB
ID:	431972
      Click image for larger version

Name:	2021_09_22_09_24_50_STSZABBIXSRV_Configuration_of_actions.png
Views:	1236
Size:	11.5 KB
ID:	431973




      Attached Files

      Comment


      • hst174
        hst174 commented
        Editing a comment
        Thank you!
    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #4
      I guess you shoudl investigate what has changed in that outlook endpoint...

      Comment

      Working...