Ad Widget

Collapse

Zabbix notifications into a jabber conference.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vitaly
    Junior Member
    • Oct 2008
    • 11

    #1

    Zabbix notifications into a jabber conference.

    Anybody know how to make zabbix notifying to a jabber chat room?
    If I add media type jabber send to [email protected] Jabber returns error "Bad request. The sender has sent XML that is malformed or that cannot be processed"
  • messiah
    Junior Member
    • Oct 2008
    • 9

    #2
    Hello, have anyone solved this problem? It sends fine to specific users, but nothing happens if you try to send to chatroom directly. Any solution?

    Comment

    • messiah
      Junior Member
      • Oct 2008
      • 9

      #3
      I found out myself, that it is not allowed to send messages in chat room (conference) if user is not present there. So one of the solutions is to write some kind of jabber bot, which will join chat and post notifications or modify jabber server to allow sending to chat room if user is not present.
      Last edited by messiah; 15-06-2010, 11:24.

      Comment

      • QuakENT
        Member
        • Jun 2010
        • 40

        #4
        hm

        Hi,did somebody resolve thisissue? I have the same problem...standart jabber account warning sent work, but after I setup conference room, then nothing happen, just regular warning is sent to proper jabber account. Im allready join in that specific conference room...
        Last edited by QuakENT; 15-06-2010, 11:23.

        Comment

        • QuakENT
          Member
          • Jun 2010
          • 40

          #5
          After run debug logging mode I found this:
          <not-acceptable xmlns='urn:ietfarams:xml:ns:xmpp-stanzas'/><text xmlns='urn:ietfarams:xml:ns:xmpp-stanzas'>Only occupants are allowed to send messages to the conference</text></error></message>"
          So we must wait for zabbix team to resolve this in their own client.
          I thing, that will be nice to have automatically logon jabber bot, after zabbix server start, with tls support.

          Comment

          • henry
            Junior Member
            • Jun 2010
            • 16

            #6
            Jabber notifications

            Same problem here...

            How is this supposed to work at the moment anyway? There is very little in the doco.

            Can I send the notification to a particular user on a jabber server instead? What would be the syntax in the zabbix setup page for jabber?

            Is it encoded in the Jabber Identifier?

            So far, I put in there:
            jabber-id@<jabber-host>/<chatroom>

            but that doesn't seem to work.

            Any ideas?
            Thanks,
            henry

            Comment

            • QuakENT
              Member
              • Jun 2010
              • 40

              #7
              Originally posted by henry
              Same problem here...

              How is this supposed to work at the moment anyway? There is very little in the doco.

              Can I send the notification to a particular user on a jabber server instead? What would be the syntax in the zabbix setup page for jabber?

              Is it encoded in the Jabber Identifier?

              So far, I put in there:
              jabber-id@<jabber-host>/<chatroom>

              but that doesn't seem to work.

              Any ideas?
              Thanks,
              henry

              Its simple. In your profile setting you create new media entry - jabber *type and there you put your own jabber account name. Second step is create media type in ADMINISTRATION-MEDIA TYPES. Before that you must create a special jabber account which will by sending you alerts, zab-alert@something for example. So, you put 2 accounts into zabbix configuration. After that, you configure some triggers and actions and for "action send warning" you choose you own jabber account.

              Comment

              • henry
                Junior Member
                • Jun 2010
                • 16

                #8
                Originally posted by QuakENT
                Its simple. In your profile setting you create new media entry - jabber *type and there you put your own jabber account name. Second step is create media type in ADMINISTRATION-MEDIA TYPES. Before that you must create a special jabber account which will by sending you alerts, zab-alert@something for example. So, you put 2 accounts into zabbix configuration. After that, you configure some triggers and actions and for "action send warning" you choose you own jabber account.
                Thanks a lot QuakENT!

                The first step was the one I was missing. Did that now.
                I had already modified the media type Jabber to <jabberid>@<myownjabberhost> and added the proper password for that user on my jabber server.

                Next thing on this fresh install from sources (1.8.2) I created an action as there were none defined yet. Event source is "Triggers", subject is {TRIGGER.NAME}: {STATUS} , status enabled, condition (for this simple test) is Trigger = "/etc/passwd has been changed on server foobar".

                That should be all?

                I tested it, changed the passwd, then zabbix picks it up (excellent!), but action says status: not sent.

                Will have to try again to see why it failed... or is there a log that can shed some light here?

                Cheers,
                heinz

                Comment

                • QuakENT
                  Member
                  • Jun 2010
                  • 40

                  #9
                  tail -n 50 -f /somewhere/zabbix_server.log

                  For proper configuring trigers and action consult man pages and some threads on this forum.

                  Comment

                  • henry
                    Junior Member
                    • Jun 2010
                    • 16

                    #10
                    Originally posted by QuakENT
                    tail -n 50 -f /somewhere/zabbix_server.log

                    For proper configuring trigers and action consult man pages and some threads on this forum.
                    Thanks heaps for your help so far!

                    Will look into it.

                    Cheers,
                    henry.

                    Comment

                    Working...