Ad Widget

Collapse

zabbix 2.0 don't send messages to jabber accounts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pirat
    Junior Member
    • Jun 2012
    • 3

    #1

    zabbix 2.0 don't send messages to jabber accounts

    ОS - debian 6.0.4 x86

    Zabbix - 2.0 compiled with flags:
    ./configure --enable-server --with-mysql --enable-ipv6 --with-jabber --with-net-snmp --with-ssh2 --enable-proxy --enable-agent --with-libcurl --with-openipmi
    also i try --with-jabber=/usr

    zabbix log:

    24169:20120611:213745.891 Starting Zabbix Server. Zabbix 2.0.0 (revision 27675).
    24169:20120611:213745.891 ****** Enabled features ******
    24169:20120611:213745.891 SNMP monitoring: YES
    24169:20120611:213745.891 IPMI monitoring: YES
    24169:20120611:213745.891 WEB monitoring: YES
    24169:20120611:213745.891 Jabber notifications: YES
    24169:20120611:213745.891 Ez Texting notifications: YES
    24169:20120611:213745.891 ODBC: NO
    24169:20120611:213745.891 SSH2 support: YES
    24169:20120611:213745.891 IPv6 support: YES
    24169:20120611:213745.891 ******************************
    24170:20120611:213745.925 server #1 started [configuration syncer #1]
    24171:20120611:213745.925 server #2 started [db watchdog #1]
    24178:20120611:213745.928 server #9 started [trapper #1]
    24179:20120611:213745.928 server #10 started [trapper #2]
    24180:20120611:213745.929 server #11 started [trapper #3]
    24181:20120611:213745.929 server #12 started [trapper #4]
    24182:20120611:213745.929 server #13 started [trapper #5]
    24183:20120611:213745.929 server #14 started [icmp pinger #1]
    24184:20120611:213745.929 server #15 started [alerter #1]
    24185:20120611:213745.930 server #16 started [housekeeper #1]
    24185:20120611:213745.930 executing housekeeper
    24186:20120611:213745.930 server #17 started [timer #1]
    24188:20120611:213745.930 server #18 started [http poller #1]
    24192:20120611:213745.931 server #20 started [history syncer #1]
    24193:20120611:213745.931 server #21 started [history syncer #2]
    24195:20120611:213745.931 server #22 started [history syncer #3]
    24197:20120611:213745.931 server #23 started [history syncer #4]
    24200:20120611:213745.932 server #24 started [escalator #1]
    24202:20120611:213745.932 server #25 started [proxy poller #1]
    24169:20120611:213745.932 server #0 started [main process]
    24204:20120611:213745.932 server #26 started [self-monitoring #1]
    24177:20120611:213745.949 server #8 started [unreachable poller #1]
    24191:20120611:213745.949 server #19 started [discoverer #1]
    24172:20120611:213745.949 server #3 started [poller #1]
    24175:20120611:213745.949 server #6 started [poller #4]
    24176:20120611:213745.949 server #7 started [poller #5]
    24173:20120611:213745.949 server #4 started [poller #2]
    24174:20120611:213745.949 server #5 started [poller #3]
    24185:20120611:213746.100 housekeeper deleted: 1764 records from history and trends, 0 records of deleted items, 0 events, 0 alerts, 0 sessions

    Jabber - server - ejabber

    Set:
    Jabber identifier: "zabbix@*.com"
    Added user, media, set jabber account to user@*.com
    User is in the groups with hosts that i need to monitor

    when i add both accounts to pidgin - they can send messages to each other. Zabbix do not send messages from zabbix@*.com, but triggers show alerts.

    Thanks for any help!
  • danm
    Junior Member
    • Jul 2012
    • 2

    #2
    Any answer?

    I'm having exactly this problem at the moment.

    With DebugLevel=4, I'm seeing the following:


    12677:20120731:110135.016 JABBER: In send_jabber()
    12677:20120731:110135.016 JABBER: In connect_jabber() jabber_id:'[email protected]'
    12677:20120731:110135.016 JABBER: In lookup_jabber() server:'jabber.org.au' port:5222
    12677:20120731:110135.016 JABBER: End of lookup_jabber() real_server:'jabber.org.au' real_port:5222
    12677:20120731:110135.089 JABBER: In on_stream()
    12677:20120731:110135.089 JABBER: End of on_stream()
    12677:20120731:110135.090 JABBER: In on_stream()
    12677:20120731:110135.090 JABBER: End of on_stream()
    12677:20120731:110203.091 JABBER: End of connect_jabber():FAIL
    12677:20120731:110203.091 JABBER: End of send_jabber():FAIL
    12677:20120731:110203.154 JABBER: In send_jabber()
    12677:20120731:110203.154 JABBER: In connect_jabber() jabber_id:'[email protected]'
    12677:20120731:110203.154 JABBER: In lookup_jabber() server:'jabber.org.au' port:5222
    12677:20120731:110203.155 JABBER: End of lookup_jabber() real_server:'jabber.org.au' real_port:5222
    12677:20120731:110203.233 JABBER: In on_stream()
    12677:20120731:110203.233 JABBER: End of on_stream()
    12677:20120731:110203.234 JABBER: In on_stream()
    12677:20120731:110203.234 JABBER: End of on_stream()

    I've also verified that I can access the message my destination account from the account using Pidgin, and telnet to port 5222 of jabber.org.au from this host.

    Any ideas?

    Comment

    • danm
      Junior Member
      • Jul 2012
      • 2

      #3
      Solved!

      Never mind, figured it out. I'm running CentOS 5, with EPEL's iksemel library installation.

      There's a problem with iksemel.x86_64 0:1.4-2.el5, so if that's the version you have installed, run

      yum downgrade iksemel iksemel-devel

      to give you v 0:1.4-1

      then rebuild and restart Zabbix. Problem solved!

      Comment

      • bhowerter
        Junior Member
        • Sep 2013
        • 22

        #4
        Yes, Jabber notification works for me now!

        Thank you very much. How did you figure it out?

        Comment

        Working...