Ad Widget

Collapse

Send Jabber fails in Zabbix 3.0.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarsenal
    Junior Member
    • Mar 2016
    • 4

    #1

    Send Jabber fails in Zabbix 3.0.1

    I have been trying to figure out why Jabber actions is not working. I have the supporting libs installed. Nothing else shows in the log file with debug level 4

    Jabber notifications: YES
    8780:20160317:042944.134 JABBER: In send_jabber()
    8780:20160317:042944.135 JABBER: In connect_jabber() jabber_id:'[email protected]'
    8780:20160317:042944.135 JABBER: In lookup_jabber() server:'server.com' port:5222
    8780:20160317:042944.155 JABBER: End of lookup_jabber() real_server:'im.server.com' real_port:5222

    JABBER: End of connect_jabber():FAIL
    8780:20160317:043429.336 JABBER: [[email protected]] connection failed: [110] Connection timed out
    8780:20160317:043429.336 JABBER: End of send_jabber():FAIL

    Not sure why it fails I can send via command-line. So I know it works.

    Thanks in advance.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    the reson is
    " Connection timed out"
    how long does it take if you send a message from CLI?
    Debian-User

    Sorry for my bad english

    Comment

    • sarsenal
      Junior Member
      • Mar 2016
      • 4

      #3
      it is instant. No delay. Connect is fine. Just in Zabbix i says it can't connect. I don't think it is even trying. This is a package install not the appliance. I went thru the manual and made sure I had all the requirements. So not sure if something missing. At first I thought I didn't have the xmml-jabber module. But I did for php. So I should be good to go. But not.

      If it helps I also have found an issue with Push Notifications scripts. It seems it doesn't pass the variables to the script so it fails. I did post in the appropriate thread.

      Also, email notifications are not working either. I haven't gotten into that one yet. My guess it zabbix is missing something. Just don't know enough about the framework yet to determine that. I just would like to get Jabber or Push Notifications working so I can roll it out and then sort out the email and learn more about the product.
      Last edited by sarsenal; 19-03-2016, 00:25. Reason: mor info to help

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        Code:
        In previous Zabbix versions three hard-coded parameters were passed to custom alert scripts - Send to, Subject and Message.
        
        Now users can define their own command-line parameters for the script in the media type configuration form:
        Define parameters for your scripts and it should be fine.

        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        • sarsenal
          Junior Member
          • Mar 2016
          • 4

          #5
          Yes, but that doesn't pass the event which is what I need. Sure I can hard code the jabber ID. and triggerID. But need message of the event. I have it setup using your defined tags that should pass variables. But it doesn't. Same thing with Push Notifications.

          What would is the common part between them that holds the data? Maybe an error pulling from the database or file.

          Just still learning more not sure where to look, yet.

          Comment

          Working...