Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

jefframsey
Posts: 11
Joined: Mon Aug 25, 2008 6:24 pm

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by jefframsey »

Is this thread dead, or can anyone help me get this going?

When I create each graph for the 9 different keys, I get all 9 data sources, leaving me with duplicates. My agents graph shows 0.00 all of the time, all other graphs show NaN.

When I run the python script on the command line, it works every time. Some of the numbers are 0, but they all work, no errors.

I have to run the command one key at a time, is that normal? For example, I type

Code: Select all

./asx-stat.py HOSTNAME core.threads
I get the thread count returned. To get the sip.peers.online count, I have to type

Code: Select all

./asx-stat.py HOSTNAME sip.peers.online
Any ideas?
ngv
Posts: 1
Joined: Mon Nov 14, 2011 6:38 pm

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by ngv »

Hi,

I been messing around with this script and have not been able to get the graphs to work.

I am able to get results from running the python scripts.

[root@cacti scripts]# ./asx-stats.py host1.ipbx.local sip.users
48

The problem seems to be the graphing when I run a verbose query for the graphs i get the below.

+ Running data query [15].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/var/www/cacti/resource/script_queries/asx-stats.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries
+ Executing script for list of indexes '/var/www/cacti/scripts/asx-stats.py 172.16.50.150 --index' Index Count: 2
+ Found index: asterisk
+ Found index:
+ Executing script query '/var/www/cacti/scripts/asx-stats.py 172.16.50.150 --query device'
+ Found item [device='asterisk'] index: asterisk

Any help gettting this to work would be great as I have serveal asterisk server I would like to monitor.
brononius
Posts: 27
Joined: Fri Dec 30, 2011 4:53 am

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by brononius »

Hey,

Seems that my graphs are working, but I'm wondering how i need to look at it.

I've got 8 phones registered, and 1 sip account/trunk with a provider...
  • - I guess that the 9 peers/users are the total of 8+1?
  • - And the 1 online is my sip account?
Is there a way to graph the actual calls?
  • - One line with the internal calls
  • - One line with outgoing calls
  • - One line with incoming calls
  • - ...

My graphs so far:
Attachments
cacti_sip3.png
cacti_sip3.png (18.15 KiB) Viewed 5560 times
cacti_sip2.png
cacti_sip2.png (17.73 KiB) Viewed 5560 times
cacti_sip1.png
cacti_sip1.png (40.79 KiB) Viewed 5560 times
Cacti: 0.8.7i PIA on Ubuntu (linuxmce) with NET-SNMP 5.4.1 / RRDTool 1.2.x
Plugins: Manage062, Syslog122, Mactrack29, Settings071, Weathermap097a, Quicktree02, Thold049, Configmanager0826, Aggregate070, Realtime043, Nettools015
Private use: 24 hosts (and trying to integrate it into linuxmce)
Professional use 1635 nodes with 3616 graphs (backup / syslog / weathermaps...)
syn
Posts: 6
Joined: Sun Apr 14, 2013 9:59 pm

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by syn »

Anyone have a copy of the old 0.3.0 script? I can't seem to find it anywhere.
Thanks in advance.
User avatar
Tolaris
Posts: 17
Joined: Mon Nov 15, 2010 3:46 pm
Location: London, UK
Contact:

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by Tolaris »

Same here, folks. Can anyone provide a copy of asx-stats-0.3.0.tar.bz2 ? I'll mirror it on my own site for others.
cyrjulien
Posts: 1
Joined: Mon Sep 02, 2013 1:01 pm

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by cyrjulien »

Hello, anyone have asx-stats-0.3.0.tar.bz2 ?
Thanks you for answer
J.
r1sh
Posts: 1
Joined: Tue Sep 24, 2013 2:36 am

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by r1sh »

any one here?
TVTDatos
Posts: 3
Joined: Wed Feb 26, 2014 6:18 am

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by TVTDatos »

After few hours searching, I have found the asx stats 0.3.0 and I attach it here.
Attachments
asx-stats-0.3.0.tgz
(17.09 KiB) Downloaded 652 times
TVTDatos
Posts: 3
Joined: Wed Feb 26, 2014 6:18 am

Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)

Post by TVTDatos »

Hi all.

I know this topic is really OLD but, since Its the only one I have found to monitor asterisk without res_snmp and I had found the asx-stats 0.3.0 and putted here few days ago, I will ask if somebody know:

Im getting blank graphs. For example, sip.users is empty but:

/usr/share/cacti/site/scripts/asx-stats.py HOST --get sip.users asterisk, output: 1192

I dont know why I get an empty graph while asx-stats.py is getting correctly the info.

Any help would be appreciated.

Thanks in advance
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests