Ad Widget

Collapse

Asterisk extension checking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • achu_sab
    Member
    • May 2006
    • 49

    #1

    Asterisk extension checking

    Hi all,

    Is anybody have idea about how zabbix can monitor, whether an asterisk extension is working (up/down) or not in both SIP and IAX? . If anybody know please reply to this thread.

    Thanks

    achu_sab
  • Nate Bell
    Senior Member
    • Feb 2005
    • 141

    #2
    Are you asking for a way to see if your VoIP phones are functioning? If so, have you tried using icmp with the phone's IP address? I have Grandstream GXP-2000s, and I can monitor if they've crashed or not (very useful with these phones) with Zabbix and icmp.

    If you can find a command that you can run from the command line (such as through Asterisk's CLI) that returns the data you want, then you have what you need for a solution, but I can't think of one off the top of my head.

    Nate

    Comment

    • achu_sab
      Member
      • May 2006
      • 49

      #3
      Actually this is what I want to check ,
      I have an iax connection from a service provider to my asterisk server . Some times it is down and I am not get any notification about it . This makes troubles when people try to call to the asterisk extensions . So I want to check whether that iax connection is up or down.

      I tried this
      #zabbix_get -s 127.0.0.1 -k net.tcp.listen[,4569]
      ZBX_NOTSUPPORTED
      # zabbix_get -s 127.0.0.1 -k net.tcp.port[,4569]
      0
      the second command shows 0 but it is fault as iax is up . Is there any way to monitor UDP ports with zabbix ?
      Last edited by achu_sab; 15-08-2006, 11:34.

      Comment

      • achu_sab
        Member
        • May 2006
        • 49

        #4
        Today I created UserParameters for monitoring iax,sip .
        UserParameter=iax.status,sudo /usr/sbin/asterisk -rvvvvvx 'iax2 show registry'|grep Registered |wc -l
        UserParameter=sip.status,sudo /usr/sbin/asterisk -rvvvvvx 'sip show registry'|grep Registered |wc -l

        This will give the output of '1' if the iax2 and sip are "Registerd" . If not it will display 0 .

        I found one error in /tmp/zabbix_agentd.log after using this UserParameters,
        021766:20060925:101243 Timeout while answering request
        021764:20060925:101247 Timeout while answering request
        021765:20060925:101303 Timeout while answering request
        021763:20060925:101348 Timeout while answering request
        021764:20060925:101351 Timeout while answering request

        Please tell me why this is coming and what I need to change ?

        Thanks

        Comment

        • Wolfgang
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified Specialist
          • Apr 2005
          • 116

          #5
          Originally posted by achu_sab
          Actually this is what I want to check ,
          I have an iax connection from a service provider to my asterisk server . Some times it is down and I am not get any notification about it . This makes troubles when people try to call to the asterisk extensions . So I want to check whether that iax connection is up or down.

          I tried this
          #zabbix_get -s 127.0.0.1 -k net.tcp.listen[,4569]
          ZBX_NOTSUPPORTED
          # zabbix_get -s 127.0.0.1 -k net.tcp.port[,4569]
          0
          the second command shows 0 but it is fault as iax is up . Is there any way to monitor UDP ports with zabbix ?
          This will not work as iax uses UDP.
          http://www.intellitrend.de
          Specialised in monitoring large environments and Zabbix API programming.

          Comment

          Working...