[SR-Users] Trunk Utilization graphing using MI COMMANDS

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 27 22:19:08 CEST 2012


Hello,

On 8/27/12 4:06 PM, phillman25 wrote:
> Thanks Daniel i was able to implement what you advised below and am 
> able to poll specific data into CACTI successfully.
great! Have you made it like a plugin? Maybe you can write few words 
about or make web page available for it, there is a similar plugin for 
munin, published by Inaki:

- http://dev.sipdoc.net/projects/sip-stuff/wiki/KamailioMuninPlugin

Cheers,
Daniel

>
> Thanks again!
> Phillip
>
> On Mon, Aug 27, 2012 at 1:08 PM, Daniel-Constantin Mierla 
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>     I am not sure it supports right now sending from the same socket,
>     but it should send back to same ip and port from where it received
>     the command. A patch it might be required to get it like that, so
>     far I don't remember anyone willing to get such thing.
>
>     Btw, another alternative, you can eventually use sercmd with ctl
>     module -- it works also over tcp (as well as udp). You can run any
>     MI command via 'mi', like:
>
>     sercmd ... mi address_dump
>
>     Look at sercmd -h for the options.
>
>     So you don't need to build a script around nc.
>
>     Cheers,
>     Daniel
>
>
>     On 8/27/12 11:21 AM, phillman25 wrote:
>>     Thanks for the info Daniel.
>>
>>     I have implemented mi_datagram module and defined it with the
>>     following parameters:
>>
>>     modparam("mi_datagram", "socket_name", "udp:2.2.2.2:8033
>>     <http://2.2.2.2:8033>")
>>
>>     When i run the below command from a remote server:
>>
>>     echo -ne ":address_dump:\n\n" | nc -w 1 -u 2.2.2.2 8033
>>
>>     i don't receive an output, but when i monitor all traffic on the
>>     local machine:
>>
>>     ngrep -q -t -P "" -W byline -d any host 2.2.2.2 and udp
>>
>>     i observe the output:
>>
>>     U 2012/08/27 12:41:36.735094 1.1.1.1:55621 <http://1.1.1.1:55621>
>>     -> 2.2.2.2:8033 <http://2.2.2.2:8033>
>>     :address_dump:
>>
>>
>>     U 2012/08/27 12:41:36.735201 2.2.2.2:47024 <http://2.2.2.2:47024>
>>     -> 1.1.1.1:55621 <http://1.1.1.1:55621>
>>     200 OK
>>       71 <1, xx.xx.xx.xx, 0> [1]
>>       72 <1, yy.yy.yy.yy, 0> [4]
>>
>>
>>     Seems like the command is accepted from remote server and
>>     executed on local machine but not relayed back to the remote
>>     server. Looks like mi_datagram replies on different port other
>>     than 8033. Is there a way to force the reply on source port 8033?
>>
>>     Thanks
>>     Phillip
>>
>>
>>
>>
>>
>>
>>     On Mon, Aug 27, 2012 at 9:58 AM, Daniel-Constantin Mierla
>>     <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>>
>>         Hello,
>>
>>         if you want to execute from a remote server, maybe it is
>>         better to use mi_datagram or xmlrpc modules to run MI/RPC
>>         commands.
>>
>>         Cheers,
>>         Daniel
>>
>>
>>
>>         On 8/22/12 12:02 PM, phillman25 wrote:
>>>         Dear List
>>>
>>>         I am trying to run the below command from a REMOTE server
>>>         where i use Cacti to graph all my data. I am trying to graph
>>>         on a per trunk basis.
>>>
>>>         kamctl fifo profile_get_size trunk | awk -F '=' '{print $4}'
>>>
>>>         This command yields an output on the local server.
>>>
>>>         Could someone perhaps point me in the right direction?
>>>
>>>
>>>         Thanks!
>>>
>>>
>>>         _______________________________________________
>>>         SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>         sr-users at lists.sip-router.org  <mailto:sr-users at lists.sip-router.org>
>>>         http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>         -- 
>>         Daniel-Constantin Mierla -http://www.asipto.com
>>         http://twitter.com/#!/miconda  <http://twitter.com/#%21/miconda>  -http://www.linkedin.com/in/miconda
>>         Kamailio Advanced Training, Berlin, Nov 5-8, 2012 -http://asipto.com/u/kat
>>
>>
>
>     -- 
>     Daniel-Constantin Mierla -http://www.asipto.com
>     http://twitter.com/#!/miconda  <http://twitter.com/#%21/miconda>  -http://www.linkedin.com/in/miconda
>     Kamailio Advanced Training, Berlin, Nov 5-8, 2012 -http://asipto.com/u/kat
>
>

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120827/11dcdaa2/attachment-0001.htm>


More information about the sr-users mailing list