[Asterisk-Users] asterisk -rx (or remote connections in general)

Sherwood McGowan madprofzero at yahoo.com
Mon Aug 22 14:36:48 MST 2005


I have several scripts that are run by one "user" (zabbix, using
zabbix_agentd custom parameters) that run at various times. Some commands
run every 30 seconds, some every 10 minutes, etc...

All the the "scripts" are just commands like

asterisk -rx 'show queues' | grep 901 | awk '{print $3'}'
Or
asterisk -rx 'show uptime'

And so on. . . 

Nothing that would hang really, unless asterisk doesn't play nice. Also, not
being run by an interactive user, but rather a daemon.

Hope that helps

->-----Original Message-----
->From: asterisk-users-bounces at lists.digium.com 
->[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
->Jason Walker
->Sent: Monday, August 22, 2005 5:28 PM
->To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
->Subject: RE: [Asterisk-Users] asterisk -rx (or remote 
->connections in general)
->
->Do you have 5 or 6 scripts running against the interface for 
->one instance of an outside script? Or, do you have multiple 
->connections (outside users) attempting to run multiple 
->instances of a script that are pulling 5-6 CLI scripts?
->
->This would exponentially increase the real number of scripts 
->being run.
->
->-----Original Message-----
->From: asterisk-users-bounces at lists.digium.com
->[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
->Sherwood McGowan
->Sent: Monday, August 22, 2005 2:14 PM
->To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
->Subject: RE: [Asterisk-Users] asterisk -rx (or remote connections in
->general)
->
->Maybe I am, I don't doubt it.
->
->But why does asterisk deadlock then when about 5 or 6 scripts 
->hang while getting output from *? 
->
-> 
->
->->-----Original Message-----
->->From: asterisk-users-bounces at lists.digium.com
->->[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Eric 
->->Wieling aka ManxPower
->->Sent: Monday, August 22, 2005 5:08 PM
->->To: Asterisk Users Mailing List - Non-Commercial Discussion
->->Subject: Re: [Asterisk-Users] asterisk -rx (or remote 
->connections in 
->->general)
->->
->->Sherwood McGowan wrote:
->->> Now, there actually is actually documented problems with too many 
->->> remote connections to the manager (CLI). . . I'm asking if
->->someone's
->->> figured out how to fix that.
->->> 
->->> 
->->http://www.voip-info.org/tiki-index.php?page=Asterisk+manage
->r+experien
->->> ce
->->> 
->->> Since my scripts apparently get some funky data from the
->->manager, they
->->> freeze, build up, then deadlock the asterisk server...
->->> 
->->> No experiences with fixing this? Anyone heard something I
->->haven't on
->->> when they plan to improve remote connections (or even 
->just multiple 
->->> connections in general?) to asterisk?
->->> 
->->> 
->->> 
->->> ->-----Original Message-----
->->> ->From: asterisk-users-bounces at lists.digium.com
->->> ->[mailto:asterisk-users-bounces at lists.digium.com] On
->->Behalf Of Eric
->->> ->Wieling aka ManxPower
->->> ->Sent: Monday, August 22, 2005 3:15 PM
->->> ->To: Asterisk Users Mailing List - Non-Commercial Discussion
->->> ->Subject: Re: [Asterisk-Users] asterisk -rx (or remote
->->connections in
->->> ->general)
->->> ->
->->> ->Sherwood McGowan wrote:
->->> ->> I haven't been able to find an answer....and got no response 
->->> ->> whatsoever to my previous questions concerning it.
->->> ->>  
->->> ->> Has anyone found a fix for the remote connections to the
->->> ->CLI causing
->->> ->> crashes? Also, is there a known limit?
->->> ->>  
->->> ->> I have a huge need for using asterisk -rx in scripts, which
->->> ->seems is
->->> ->> kinda why the -x option as added anyway...
->->> ->
->->> ->It's never made my Asterisk crash.
->->
->->You are confused.  "asterisk -rx command" does not use the Manager 
->->Interface.
->->_______________________________________________
->->Asterisk-Users mailing list
->->Asterisk-Users at lists.digium.com
->->http://lists.digium.com/mailman/listinfo/asterisk-users
->->To UNSUBSCRIBE or update options visit:
->->   http://lists.digium.com/mailman/listinfo/asterisk-users
->->
->
->
->_______________________________________________
->Asterisk-Users mailing list
->Asterisk-Users at lists.digium.com
->http://lists.digium.com/mailman/listinfo/asterisk-users
->To UNSUBSCRIBE or update options visit:
->   http://lists.digium.com/mailman/listinfo/asterisk-users
->
->_______________________________________________
->Asterisk-Users mailing list
->Asterisk-Users at lists.digium.com
->http://lists.digium.com/mailman/listinfo/asterisk-users
->To UNSUBSCRIBE or update options visit:
->   http://lists.digium.com/mailman/listinfo/asterisk-users
->





More information about the asterisk-users mailing list