LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-29-2016, 01:55 AM   #1
Shweta Mandal
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Rep: Reputation: Disabled
Need help in monitoring calls on remote asteriskserver


Hi,
Can anyone suggest any way , how to monitor calls of an asterisk server from another asterisk server installed different ubuntu system with SNMP.

I have already installed and tested SNMP . Net-snmp agent is getting connected and on SCLI I am able to moniter another system but unable to monitor calls through that asterisk server.

Any help will be solicited.

Thankyou
Regards
Shweta
 
Old 05-03-2016, 08:00 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by Shweta Mandal View Post
Hi,
Can anyone suggest any way , how to monitor calls of an asterisk server from another asterisk server installed different ubuntu system with SNMP.

I have already installed and tested SNMP . Net-snmp agent is getting connected and on SCLI I am able to moniter another system but unable to monitor calls through that asterisk server.
Your question is not only vague, but makes very little sense.

If you say you're able to monitor another system, then why can't you set up THIS system the same way and do what you're after?? And you don't say what you mean by "monitor". Do you want to log call source/destination/time, record the actual conversations, or just flag some to certain numbers???
 
Old 05-04-2016, 12:12 AM   #3
Shweta Mandal
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Your question is not only vague, but makes very little sense.

If you say you're able to monitor another system, then why can't you set up THIS system the same way and do what you're after?? And you don't say what you mean by "monitor". Do you want to log call source/destination/time, record the actual conversations, or just flag some to certain numbers???

I am sorry for not being clear in my words. You got right I want log call source and destination. Let me make it clear a bit, Asterisk server(1)
with ip 192.168.1.152 is main one which is to be monitored. On CLI of asterisk server(1) I can see if sip calls are initiated , state of call like ringing, answered, etc and sip peers.
I have to monitor the same from another system with ip 192.168..116 asterisk server(2). After configuring SNMP, Net-SNMP agent x is connected. Using scli command in asterisk server(2) when I try to monitor asterisk server(1) I get the system process information, which command is typed in last, which file it read, but I don't know command or configuration which will give me call log source and destination, state of sip call (ringing, answered ,etc) of asterisk server(1) on asterisk server(2).

So, my question was not vague but it's just I was not clear in my explanation.
Kindly help, if you could. I need to monitor calls via asterisk server, from a remote system asterisk.

Thank you
Regards
Shweta
 
Old 05-05-2016, 08:08 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by Shweta Mandal View Post
I am sorry for not being clear in my words. You got right I want log call source and destination. Let me make it clear a bit, Asterisk server(1)
with ip 192.168.1.152 is main one which is to be monitored. On CLI of asterisk server(1) I can see if sip calls are initiated , state of call like ringing, answered, etc and sip peers.
I have to monitor the same from another system with ip 192.168..116 asterisk server(2). After configuring SNMP, Net-SNMP agent x is connected. Using scli command in asterisk server(2) when I try to monitor asterisk server(1) I get the system process information, which command is typed in last, which file it read, but I don't know command or configuration which will give me call log source and destination, state of sip call (ringing, answered ,etc) of asterisk server(1) on asterisk server(2).

So, my question was not vague but it's just I was not clear in my explanation.
...which is almost the exact definition of "vague".
Quote:
Kindly help, if you could. I need to monitor calls via asterisk server, from a remote system asterisk.
...which brings us back to "If you're doing this on ONE server and it's working, why is it a problem to do it on another?"

The first hit in Google for "monitor asterisk server calls with snmp" is:
http://www.voip-info.org/wiki/view/Asterisk+SNMP

...a how-to guide. Which even tells you where to get the Asterisk SNMP mibs...you did load them, right?
 
1 members found this post helpful.
Old 05-06-2016, 01:21 AM   #5
Shweta Mandal
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Asterisk Call monitor from remote server

Hi,

I am already done with installing SNMP, agentX connection and testing with snmpwalk, everything successful. My need is, if a sip phone with extension say "5004" initiate call to "5006" (both extension registered with server to be monitored ip being 192.168.1.152), I could able to see that on terminal of monitoring server with ip 192.168.1.116. No call processing can be seen from either of the terminal where Net-SNMP agent is connected is shown, or terminal open with "scli <ip>" command. Although scli command monitors remote system's process ongoing tcp listener, udp listener, command executed last, etc.

Here monitoring asterisk is 192.168.1.116 and asterisk to be monitored is 192.168.1.152. Thankyou for being supportive, please suggest something to accomplish the above mentioned.

Regards
Shweta
 
Old 05-06-2016, 08:36 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by Shweta Mandal View Post
Hi,
I am already done with installing SNMP, agentX connection and testing with snmpwalk, everything successful. My need is, if a sip phone with extension say "5004" initiate call to "5006" (both extension registered with server to be monitored ip being 192.168.1.152), I could able to see that on terminal of monitoring server with ip 192.168.1.116. No call processing can be seen from either of the terminal where Net-SNMP agent is connected is shown, or terminal open with "scli <ip>" command. Although scli command monitors remote system's process ongoing tcp listener, udp listener, command executed last, etc.

Here monitoring asterisk is 192.168.1.116 and asterisk to be monitored is 192.168.1.152. Thankyou for being supportive, please suggest something to accomplish the above mentioned.
Restating your question multiple times is pointless. AGAIN, have you installed the Asterisk MIB?? Just installing base SNMP will *NOT* give you the extended capabilities the Asterisk MIB will. You were directed to this before...did you read/try/understand it?
 
Old 05-07-2016, 03:17 AM   #7
Shweta Mandal
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Yes I have downloaded the mib files, both asterisk mib and digium mib, saved all mibs in /usr/share/snmp/mibs. snmpwalk testing was successful because those mibs were available. Final testing with snmpwalk, which is given in Voxilla asterisk monitoring with snmp website is successful.
I need to know what else is needed to configure to monitor calls of remote server and where I would be able to see that, on asterisk cli or snmp scli.
 
Old 05-07-2016, 06:24 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by Shweta Mandal View Post
Yes I have downloaded the mib files, both asterisk mib and digium mib, saved all mibs in /usr/share/snmp/mibs. snmpwalk testing was successful because those mibs were available. Final testing with snmpwalk, which is given in Voxilla asterisk monitoring with snmp website is successful.
I need to know what else is needed to configure to monitor calls of remote server and where I would be able to see that, on asterisk cli or snmp scli.
Ok..so you ARE ABLE to see what you need...so where, exactly, is your problem??? Again, a simple Google search turns up many ways to monitor calls....did you do ANY research on your own as of yet?

http://planet-diversity.blogspot.com...sing-snmp.html

There are MANY tools available to graph calls, and see them via web page or CLI. Pick one.
 
Old 05-09-2016, 12:21 AM   #9
Shweta Mandal
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
I have already gone through this link during my research, but thing is that I am not allowed to use any such tools like cacti or openNMS, etc.
Till now whatever you have suggested I already did that before, and after trying all those when I was unable to find how to make my asterisk server to monitor calls going through remote asterisk server I posted for the same on this website.

But stilll thankyou for being helpful.
 
Old 05-09-2016, 08:24 AM   #10
Shweta Mandal
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Someone please come up with a solution for monitoring calls going through remote asterisk sever
 
Old 05-09-2016, 10:32 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by Shweta Mandal View Post
I have already gone through this link during my research, but thing is that I am not allowed to use any such tools like cacti or openNMS, etc.
Till now whatever you have suggested I already did that before, and after trying all those when I was unable to find how to make my asterisk server to monitor calls going through remote asterisk server I posted for the same on this website.
Ok, if you're not going to post any details about what you have done/tried already, then don't bother posting. We can't guess as to what you're 'allowed' to use, what you've done, etc., so when your ORIGINAL QUESTION gets answered, and you post it three more times, there is little point.

You have BEEN TOLD what you can do, and led to things...so this:
Quote:
Originally Posted by Shweta Mandal
Someone please come up with a solution for monitoring calls going through remote asterisk sever
...is asking for a handout. Do your own research, since you're not willing to tell us what you can/can't do, what you have/haven't tried...we're tired of playing 20 questions.

To put it VERY SIMPLY for you:
  • You say you've got the SNMP modules/mibs loaded on the asterisk server
  • You say you can use the CLI snmp tools to see things
  • So PICK SOMETHING that does what you want, that operates within whatever parameters you have.
If you're getting CLI data, then YOU, PERSONALLY, may have to write a script to parse the data. And again, if you bothered to put "cli asterisk monitoring" into Google, you'd see LOTS...
 
1 members found this post helpful.
Old 05-10-2016, 12:42 AM   #12
Shweta Mandal
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
• I have enabled SNMP support in asterisk server by installing and rebuild Net-SNMP.
• I have installed required packages for res-snmp module.
• I have configured snmpd.conf file as per the requirement, created a user, congigured agentX for snmp daemon, com2sec, etc. .
• I have enabled UDP for all access instead of localhost in /etc/snmp/snmpd.conf
• I got the ASTERISK and Digium MIB files.
• Made agenX executable.
• Configured res_snmp.conf (enabled and subagent uncomment)
• Restarted asterisk and did final testing with “snmpwalk” successfully.
• Now what next I need to do to see/monitor calls going through remote asterisk server with ip 192.168.1.152. and where I will be able to see that from my asterisk server (192.168.1.116), like : 5004 initiated call to 1002, ringing, answered, both extension registered with 192.168.1.152.

• I have tried $scli 192.168.1.152 ; from my asterisk (192.168.1.116)
• But I can monitor only system processes of 192.168.1.152 here but not call going through that asterisk.
• Next I have configured manager.conf also, enabled the required ones.
 
Old 05-10-2016, 07:58 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by Shweta Mandal View Post
• I have enabled SNMP support in asterisk server by installing and rebuild Net-SNMP.
• I have installed required packages for res-snmp module.
• I have configured snmpd.conf file as per the requirement, created a user, congigured agentX for snmp daemon, com2sec, etc. .
• I have enabled UDP for all access instead of localhost in /etc/snmp/snmpd.conf
• I got the ASTERISK and Digium MIB files.
• Made agenX executable.
• Configured res_snmp.conf (enabled and subagent uncomment)
• Restarted asterisk and did final testing with “snmpwalk” successfully.
• Now what next I need to do to see/monitor calls going through remote asterisk server with ip 192.168.1.152. and where I will be able to see that from my asterisk server (192.168.1.116), like : 5004 initiated call to 1002, ringing, answered, both extension registered with 192.168.1.152.
YES...RIGHT...WE UNDERSTAND THIS. Saying it over and over doesn't bring anything new. AGAIN, you have said that you're "not allowed" to use the tools mentioned...what you HAVEN'T bothered to tell us is what you ARE ALLOWED TO USE, and WHAT YOU HAVE ALREADY RESEARCHED. We're not going to keep guessing, and saying "try this tool xxxx....", only for you to come back and say "we aren't allowed....try again...I need to monitor asterisk...."
Quote:
• I have tried $scli 192.168.1.152 ; from my asterisk (192.168.1.116)
• But I can monitor only system processes of 192.168.1.152 here but not call going through that asterisk.
• Next I have configured manager.conf also, enabled the required ones.
And AGAIN...did you bother to try to put the search term you were handed into Google???? Because the FIRST AND SECOND HITS tell you EXACTLY how to do what you're after. AGAIN.....show some effort.
 
1 members found this post helpful.
Old 05-11-2016, 12:52 AM   #14
Shweta Mandal
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thankyou for helping so much, without google none can accomplish to an extent in R&D if the thing is new to him/her. If I am not giving my effort then why will I bother to find a solution from this forum. If anyone go through my queries he/she'll understand that I want to see result on Linux CLI not on gui of any openNMs or CACTI type tool.
Already I have did that with openNMS but my boss clearly mentioned I don't have to monitor like this.

Please stop giving rude reply. I am here for a solution to my problem not for to making myself understand how incapable I am, or I just want solution with effort.

I'll find a way, no more help is needed. Thankyou so much.
 
Old 05-11-2016, 07:52 AM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by Shweta Mandal View Post
Thankyou for helping so much, without google none can accomplish to an extent in R&D if the thing is new to him/her. If I am not giving my effort then why will I bother to find a solution from this forum. If anyone go through my queries he/she'll understand that I want to see result on Linux CLI not on gui of any openNMs or CACTI type tool.
..and if you bothered to READ AND UNDERSTAND what I already posted, you'd have seen SEVERAL CLI TOOLS...which is EXACTLY what you say you're looking for. And which you apparently couldn't look up on your own.
Quote:
Already I have did that with openNMS but my boss clearly mentioned I don't have to monitor like this.
And AGAIN, WE HAVE NO IDEA what your boss says, or what constraints you have. You tell us one little detail at a time, and somehow expect us to know your entire situation. Things do work like that...we can't read minds, tell the future, or somehow magically 'know' what situation you're in, UNLESS YOU TELL US. And you haven't.
Quote:
Please stop giving rude reply. I am here for a solution to my problem not for to making myself understand how incapable I am, or I just want solution with effort.
Then please start paying attention. You are apparently expecting us to 'know' your entire situation, and are wanting us to guess and ask for every single detail, THEN you want us to look up things for you.

Sorry, no. AGAIN, if you bothered to show a TINY bit of effort, you would have your answer. You were told very plainly what to put into Google...again, "cli asterisk monitoring". Did you bother to do it??? You were also told that if you DID, the first two hits would give you what you need...did you read those things???? Since you obviously didn't bother with even trying to look this up, despite being HANDED the search query (which you COULD have done yourself, before ever posting here), you would have seen this:
http://www.commandlinefu.com/command...n-asterisk-pbx

...and if you bothered to read/understand that, you would have seen this command:
Code:
watch -n 1 "sudo asterisk -vvvvvrx 'core show channels' | grep call
Since you need to be spoon-fed, that shows you the calls, as they happen in real time, on an asterisk 1.6+ server. Again, you don't bother saying what version of asterisk you're running, so if it's greater than 1.6 the command may be different. If so, then YOU, personally, can try to look up the correct asterisk command/switches, rather than coming back and asking us to do it for you...again....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote calls to openssl ninja123 Linux - General 0 01-26-2011 03:01 AM
LXer: Wikipedia's founder calls for monitoring to prevent false entries LXer Syndicated Linux News 0 01-26-2009 05:50 AM
executing vfs_write on remote machine, which other calls should be hooked? saumitra Programming 4 04-07-2007 11:44 PM
I have a problem with this RPC (Remote Procedure Calls) gorett Programming 1 01-22-2007 10:58 PM
LXer: German Parliament calls for blanket monitoring of telecommunications LXer Syndicated Linux News 0 02-17-2006 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration