Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 26, 2019 11:13 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 84 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Wed Oct 05, 2011 10:29 pm 
Offline

Joined: Mon Aug 25, 2008 6:24 pm
Posts: 11
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:
./asx-stat.py HOSTNAME core.threads


I get the thread count returned. To get the sip.peers.online count, I have to type

Code:
./asx-stat.py HOSTNAME sip.peers.online


Any ideas?


Top
 Profile  
 
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Tue Nov 15, 2011 9:47 pm 
Offline

Joined: Mon Nov 14, 2011 6:38 pm
Posts: 1
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.

[[email protected] 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.


Top
 Profile  
 
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Tue Feb 28, 2012 3:31 am 
Offline

Joined: Fri Dec 30, 2011 4:53 am
Posts: 27
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 4413 times ]
cacti_sip2.png
cacti_sip2.png [ 17.73 KiB | Viewed 4413 times ]
cacti_sip1.png
cacti_sip1.png [ 40.79 KiB | Viewed 4413 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...)
Top
 Profile  
 
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Sun Apr 14, 2013 10:00 pm 
Offline

Joined: Sun Apr 14, 2013 9:59 pm
Posts: 6
Anyone have a copy of the old 0.3.0 script? I can't seem to find it anywhere.
Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Thu Apr 25, 2013 7:51 am 
Offline
User avatar

Joined: Mon Nov 15, 2010 3:46 pm
Posts: 17
Location: London, UK
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.


Top
 Profile  
 
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Mon Sep 02, 2013 1:02 pm 
Offline

Joined: Mon Sep 02, 2013 1:01 pm
Posts: 1
Hello, anyone have asx-stats-0.3.0.tar.bz2 ?
Thanks you for answer
J.


Top
 Profile  
 
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Tue Sep 24, 2013 2:37 am 
Offline

Joined: Tue Sep 24, 2013 2:36 am
Posts: 1
any one here?


Top
 Profile  
 
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Wed Feb 26, 2014 6:26 am 
Offline

Joined: Wed Feb 26, 2014 6:18 am
Posts: 3
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 522 times
Top
 Profile  
 
 Post subject: Re: Asterik IP-PBX Statistics (SIP/IAX2 protocols)
PostPosted: Mon Mar 03, 2014 5:26 am 
Offline

Joined: Wed Feb 26, 2014 6:18 am
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 84 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group