Details

    Description

      I've created a new patch and some code rewritten of the old Asterisk post: http://jira.observium.org/browse/OBSERVIUM-234?jql=text%20~%20%22asterisk%22

      Please add this Application to Observium

      Attachments

        1. asterisk.patch
          9 kB
          Tromp Wezelman
        2. asterisk.png
          0.6 kB
          Tromp Wezelman
        3. channels.jpg
          128 kB
          David Klaverstyn

        Activity

          [OBS-655] Asterisk Application

          Initial code was committed. It seems no one was interested in improving it.

          It's outside of scope for the development team, since we don't use Asterisk.

          adama Adam Armstrong added a comment - Initial code was committed. It seems no one was interested in improving it. It's outside of scope for the development team, since we don't use Asterisk.
          klavo David Klaverstyn added a comment - - edited

          Can we add DAHDI to the monitored channels?

          asterisk -rx 'core show channels' | grep -e '^DAHDI/i' | wc -l

          I'd also like to see the graphs separated as it is too difficult to read the graphs. See attached.

          I believe graphs could be broken as follows.

          Asterisk Peers SIP
          Asterisk Peers IAX
          DAHDI channels
          IAX channels
          SIP channels
          Active Channels and Active Calls

          IAX channels and SIP channels could possibly be combined but SIP channels are strange as the attached graph demonstrates and is not all that informative.

          Active calls are typically (99.9% of the time) half of active channels as it takes 2 channels to create a single call. The only exception that I know of is if someone is calling a locale conference room. I'm not sure about Queues as I don't use them. Queues may be another graph requirement.

          Technically IAX is IAX2

          klavo David Klaverstyn added a comment - - edited Can we add DAHDI to the monitored channels? asterisk -rx 'core show channels' | grep -e '^DAHDI/i' | wc -l I'd also like to see the graphs separated as it is too difficult to read the graphs. See attached. I believe graphs could be broken as follows. Asterisk Peers SIP Asterisk Peers IAX DAHDI channels IAX channels SIP channels Active Channels and Active Calls IAX channels and SIP channels could possibly be combined but SIP channels are strange as the attached graph demonstrates and is not all that informative. Active calls are typically (99.9% of the time) half of active channels as it takes 2 channels to create a single call. The only exception that I know of is if someone is calling a locale conference room. I'm not sure about Queues as I don't use them. Queues may be another graph requirement. Technically IAX is IAX2

          Committed in 4926.

          I think the agent script should be more efficient, calling the binary a dozen times doesn't seem as smart as it could be.

          adama Adam Armstrong added a comment - Committed in 4926. I think the agent script should be more efficient, calling the binary a dozen times doesn't seem as smart as it could be.

          New patch uploaded

          tromp Tromp Wezelman added a comment - New patch uploaded
          paketecuento paco added a comment -

          yes, it also works...

          paketecuento paco added a comment - yes, it also works...
          tromp Tromp Wezelman added a comment - - edited

          Our Asterisk version = Asterisk 1.8.9.2

          Can you test it with the following commands?

          asterisk -rx 'core show channels' | tail -3 | grep channels | cut -d' ' -f1
          asterisk -rx 'core show channels' | tail -3 | grep 'active calls' | cut -d' ' -f1

          I will upload a new patch if that works.

          tromp Tromp Wezelman added a comment - - edited Our Asterisk version = Asterisk 1.8.9.2 Can you test it with the following commands? asterisk -rx 'core show channels' | tail -3 | grep channels | cut -d' ' -f1 asterisk -rx 'core show channels' | tail -3 | grep 'active calls' | cut -d' ' -f1 I will upload a new patch if that works.
          paketecuento paco added a comment -

          for 1.6 the following commands will success:

          channels:

           asterisk -rx "core show channels" | sed -n 2p | awk '{print $1}' 

          calls:

           asterisk -rx "core show channels" | sed -n 3p | awk '{print $1}' 

          paketecuento paco added a comment - for 1.6 the following commands will success: channels: asterisk -rx "core show channels" | sed -n 2p | awk '{print $1}' calls: asterisk -rx "core show channels" | sed -n 3p | awk '{print $1}'

          What do you get when you run the following command at the command line:

          asterisk -rx "core show channels"

          See also http://www.voip-info.org/wiki/view/Asterisk+CLI+1.6

          tromp Tromp Wezelman added a comment - What do you get when you run the following command at the command line: asterisk -rx "core show channels" See also http://www.voip-info.org/wiki/view/Asterisk+CLI+1.6
          paketecuento paco added a comment -

          already tested... 1.6 will fail

          paketecuento paco added a comment - already tested... 1.6 will fail

          I will look into it. I do not know our asterisk version. I will let you know. Maybe you can test the commands with you asterisk version.

          tromp Tromp Wezelman added a comment - I will look into it. I do not know our asterisk version. I will let you know. Maybe you can test the commands with you asterisk version.

          People

            adama Adam Armstrong
            tromp Tromp Wezelman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: