Ad Widget

Collapse

Zabbix 7.0 : Email notification : error "URL using bad/illegal format or missing URL"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FMJ
    Junior Member
    • Aug 2021
    • 7

    #1

    Zabbix 7.0 : Email notification : error "URL using bad/illegal format or missing URL"

    Hello
    I've just upgrade zabbix from 6.4 to 7.0, with Debian from 11 to 12 (and so on for the dependencies). As often, it was not smoothy :
    • Once Debian upgraded, zabbix 6.4 didn't work anymore --> It needs a mysql upgrade also.
    • Once fixed and Zabbix upgraded to 7.0, the database migration failed (with an unknown batch number) --> I used an old fix to solve it ("SET GLOBAL log_bin_trust_function_creators = 1")
    • Once fixed, the Zabbix GUI has a language issue. it looked like that : https://www.zabbix.com/forum/zabbix-...964#post435964. I fixed it by activating the required language in Debian
    • And finally, I noticed that Zabbix server didn't send any email notification. I made a test with the email media : it showed the not explicit error "URL using bad/illegal format or missing URL". Test by test, I figured out the issue was due to the "Helo" parameter. Before version 7, Zabbix was not restrictive with that parameter. But now it needs a FQDN name. I would be more explicit to have a verification and a message directly in the media settings and not during the use of the media !!!!
    I hope it could help (and save the time I spent to search and solve all of that problems !!!).
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    Hi, I see you are using some other language in Zabbix 7.0 than the default en_US, right? And specifically on Debian 12.

    What language are you using, and how did you install it?

    My problem is ZBX-24659 (unable to set en_GB). I have installed en_GB locale and set it to system locale (sudo dpkg-reconfigure locales + Apache restart or reboot), and I have set it in Zabbix, but it doesn't affect Zabbix. I have also similarly installed de_DE and selected it in Zabbix, no effect, everything is still en_US in Zabbix.

    locale and localectl show correct, and date command shows the date in the selected en_GB format (not in en_US anymore), but Zabbix still doesn't gove me any en_GB or de_DE localizations even if selected in Zabbix. Also php -m | grep gettext shows that I have the gettext module installed in PHP.

    It is very possible that I have just missed some critical step as I haven't ever needed to customize the localization settings (in Debian or in Zabbix). Just cannot figure it yet.

    Markku

    Comment

    • FMJ
      Junior Member
      • Aug 2021
      • 7

      #3
      Hi Markku
      Well, I don't remember the initial language settings. But obviously, in Zabbix the language was set to English (UK). And I was inable to change to English US cause all options were greyed.
      So as you mentionned, I used dpkg-reconfigure locales to change the language settings in Debian where en-US.UTF-8 was the default : I enabled en-UK.UTF-8, restart the server then change the lanaguage to en-US in Zabbix.
      I didn't try to change the localization settings as the date format.

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1782

        #4
        Thanks, so as I understand it, your problem was a bit different and you especially wanted en-US, and I specifically want to get rid of the AM/PM timestamps

        Markku

        Comment

        • FMJ
          Junior Member
          • Aug 2021
          • 7

          #5
          I'm french and the french timestamp format is quite different from US one but I'm used to. And I'm the only one to use the monitoring (that makes things quite easier !!!!)
          Good luck. I will follow your post cause one day, I might have to personalize the localization format !

          Comment

          Working...