Ad Widget

Collapse

Zabbix 4.2 alertsrcipts problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Makenshin
    Junior Member
    • Jun 2019
    • 5

    #1

    Zabbix 4.2 alertsrcipts problem

    Hello!
    I'm migrate from 3.4 version to 4.2
    To do this, I install all new Virtual Machine, run CentOS 7 and install 4.2 ver.
    Then export/import all things from 3.4 to 4.2, and all works fine.

    Except my alertscript
    Test from the shell goes ok(all works fine), but from GIU it also says "ok" but notning happens even in a log.....

    Can anyone help?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    What kind of alert is that? If it's an e-mail, check if you have e-mail routing set up properly from the server host. Try to send something from command line, e. g.
    Code:
    echo test1 | mail -s "Test 1" [email protected]
    Also you can increase log level of alerter and see what's in the log file, e. g.
    Code:
    zabbix_server -R log_level_increase=alerter
    Do something to trigger the alert. Wait for some time.
    Code:
    zabbix_server -R log_level_decrease=alerter
    And check zabbix server log file.

    Comment

    • Makenshin
      Junior Member
      • Jun 2019
      • 5

      #3
      Originally posted by dimir
      What kind of alert is that? If it's an e-mail, check if you have e-mail routing set up properly from the server host. Try to send something from command line, e. g.
      Code:
      echo test1 | mail -s "Test 1" [email protected]
      Also you can increase log level of alerter and see what's in the log file, e. g.
      Code:
      zabbix_server -R log_level_increase=alerter
      Do something to trigger the alert. Wait for some time.
      Code:
      zabbix_server -R log_level_decrease=alerter
      And check zabbix server log file.
      E-mail goes ok.
      It's script for sendin alerts via telegram.

      Comment

      Working...