Ad Widget

Collapse

Asterisk & zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jsomoza
    Junior Member
    • Mar 2008
    • 27

    #1

    Asterisk & zabbix

    Hi everyone.

    I'm tryinig to monitor my asterisk server just as i normally monitor my other servers. Because of this, I just create the host and the items as normal but nothing really happens. Zabbix doesn't get any value.

    However, if I connect remotly to the server and execute the snmpwalk or snmpget command I do get the values I want.

    So, why doesn't zabbix get any value?

    I would apreciate any help to this thread.

    Thanks.
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    How are you trying to monitor the Asterix server? "I just create the host and the items as normal..." doesn't give us much information about what you are doing

    Since you seem to get the values that you want through SNMP, you could just set up some SNMP items which the Zabbix server then will retrieve. Or is that what you have done now?

    Comment

    • jsomoza
      Junior Member
      • Mar 2008
      • 27

      #3
      Thanks for replying tenzer.

      The host is connected to the asterisk server's IP address and the port 10050. It is also in monitored status.

      One of the items for example is:

      Type: SNMPv2 agent (the version I have to write when typing the snmpwalk command)
      Community: The same I write in the snmpwalk command.
      SNMP OID: .1.3.6.1.4.1.22736.1.5.4.1.7.10 (for example).
      SNMP port: 161
      Key: .1.3.6.1.4.1.22736.1.5.4.1.7.10
      Type of info: Numeric (integer 64bit).
      Status: Active (it changes its status after a minute since I change its status to active).
      Store value: As is.

      There's something about the ports config that I'm not confident about. While the SNMP port is 161, if I change it in the host configuration, I can't get some zabbix agent type items that I get now.

      I hope you understand my post

      Thanks again.

      Comment

      • Tenzer
        Senior Member
        • Nov 2007
        • 316

        #4
        First of, you don't need the Zabbix agent, if you just want to monitor stuff available by SNMP.

        I'm not sure if you should have the dot in front of the OID, I don't have that in any of my SNMP items. Also, you may find this page in the wiki useful: http://www.zabbix.com/wiki/doku.php?id=contrib:snmp

        Comment

        • jsomoza
          Junior Member
          • Mar 2008
          • 27

          #5
          Hi!

          The Zabbix agent is for another items I have set up which tell me the server's free memory or the system uptime for instance.

          The dot before the key was a mistake, but even though I changed it, I can't get any value.

          Thanks for the link also, but I only want zabbix to get values as normal.

          What do you think about what I told you about the ports config? Any other idea?

          Thanks.

          Comment

          • swaterhouse
            Senior Member
            • Apr 2006
            • 268

            #6
            Originally posted by jsomoza
            Hi!

            What do you think about what I told you about the ports config? Any other idea?

            Thanks.
            The port that is set in the host config is for Zabbix Agent communication only - NOT SNMP. Tho only place the SNMP port is set is in the item config.

            Comment

            • jsomoza
              Junior Member
              • Mar 2008
              • 27

              #7
              I hope I understood your post correctly.

              I changed the host port to 161 but nothing changes. Zabbix doesn't get any value.

              Would you change anything else to fix it? What else can I try?

              Thanks.

              Comment

              • swaterhouse
                Senior Member
                • Apr 2006
                • 268

                #8
                No the host port should be 10050 (unless you changed it in the zabbix_agent.conf file)

                On the item config page for your SNMP items you should set the snmp port to 161 (by default unless you changed it when you installed/configured snmp)

                If you cant get the snmp values form zabbix my guess is there is a firewall blocking port 161 between the zabbix server and the asterisk server (probably on the asterisk server). If thats the case you need to open port 161 on the firewall.

                Comment

                • jsomoza
                  Junior Member
                  • Mar 2008
                  • 27

                  #9
                  Thanks for the port configuration info swaterhouse. That's how I had it set up at the beginning.

                  About the firewall thing. Can it be if I can get a snmpwalk value through a SSH session to the zabbix server?

                  Thanks.

                  Comment

                  • jsomoza
                    Junior Member
                    • Mar 2008
                    • 27

                    #10
                    I've checked it, and I don't have any firewall activated on my zabbix server.

                    So, any other idea?

                    Thanks.

                    Comment

                    Working...