Hi all, I've created a Munin plugin to monitor the number of dialogs in Kamailio: http://dev.sipdoc.net/wiki/sip-stuff/KamailioMuninPlugin
Hope it's useful. Suggestions are welcome.
Regards.
Hello Inaki,
On 06/11/2009 02:40 PM, Iñaki Baz Castillo wrote:
Hi all, I've created a Munin plugin to monitor the number of dialogs in Kamailio: http://dev.sipdoc.net/wiki/sip-stuff/KamailioMuninPlugin
Hope it's useful. Suggestions are welcome.
thanks, looks good. Seems to be straightforward to add other graphs. Maybe ability to use it over net (mi_datagram) would be interesting.
Cheers, Daniel
2009/6/12 Daniel-Constantin Mierla miconda@gmail.com:
Hello Inaki,
On 06/11/2009 02:40 PM, Iñaki Baz Castillo wrote:
Hi all, I've created a Munin plugin to monitor the number of dialogs in Kamailio: http://dev.sipdoc.net/wiki/sip-stuff/KamailioMuninPlugin
Hope it's useful. Suggestions are welcome.
thanks, looks good. Seems to be straightforward to add other graphs.
Which other graphs would you suggest? Note that it must be a realtime value (most of the statistics reported by "fifo get_statistics" are the absolute value instead of realtime value).
Maybe ability to use it over net (mi_datagram) would be interesting.
However, usuarlly munin-node runs on each monitored host since existing plugins require to run in localhost (cpu, mem, disk, process...).
On 06/12/2009 02:07 PM, Iñaki Baz Castillo wrote:
2009/6/12 Daniel-Constantin Mierla miconda@gmail.com:
Hello Inaki,
On 06/11/2009 02:40 PM, Iñaki Baz Castillo wrote:
Hi all, I've created a Munin plugin to monitor the number of dialogs in Kamailio: http://dev.sipdoc.net/wiki/sip-stuff/KamailioMuninPlugin
Hope it's useful. Suggestions are welcome.
thanks, looks good. Seems to be straightforward to add other graphs.
Which other graphs would you suggest? Note that it must be a realtime value (most of the statistics reported by "fifo get_statistics" are the absolute value instead of realtime value).
used shared memory, active transactions could be some examples.
Maybe ability to use it over net (mi_datagram) would be interesting.
However, usuarlly munin-node runs on each monitored host since existing plugins require to run in localhost (cpu, mem, disk, process...).
ok, I understand, I haven't used munin so far.
Cheers, Daniel
2009/6/12 Daniel-Constantin Mierla miconda@gmail.com:
Which other graphs would you suggest? Note that it must be a realtime value (most of the statistics reported by "fifo get_statistics" are the absolute value instead of realtime value).
used shared memory, active transactions could be some examples.
Shared memory is realtime value so I will create a new Munin plugin for it.
But active transactions is an absolute value (it's the sum of all the transactions since Kamailio started):
tm:received_replies = 1864986 tm:relayed_replies = 1165061 tm:local_replies = 696721 tm:UAS_transactions = 878280 tm:UAC_transactions = 0 tm:2xx_transactions = 536636 tm:3xx_transactions = 0 tm:4xx_transactions = 321816 tm:5xx_transactions = 19804 tm:6xx_transactions = 59 tm:inuse_transactions = 63
On 06/12/2009 02:41 PM, Iñaki Baz Castillo wrote:
2009/6/12 Daniel-Constantin Mierla miconda@gmail.com:
Which other graphs would you suggest? Note that it must be a realtime value (most of the statistics reported by "fifo get_statistics" are the absolute value instead of realtime value).
used shared memory, active transactions could be some examples.
Shared memory is realtime value so I will create a new Munin plugin for it.
But active transactions is an absolute value (it's the sum of all the transactions since Kamailio started):
tm:received_replies = 1864986 tm:relayed_replies = 1165061 tm:local_replies = 696721 tm:UAS_transactions = 878280 tm:UAC_transactions = 0 tm:2xx_transactions = 536636 tm:3xx_transactions = 0 tm:4xx_transactions = 321816 tm:5xx_transactions = 19804 tm:6xx_transactions = 59 tm:inuse_transactions = 63
inuse_transactions (what i meant by active transaction) is realtime.
Cheers, Daniel
2009/6/12 Daniel-Constantin Mierla miconda@gmail.com:
inuse_transactions (what i meant by active transaction) is realtime.
opss, right!
Ok, I'll add it.
2009/6/12 Daniel-Constantin Mierla miconda@gmail.com:
used shared memory, active transactions could be some examples.
Hi, I've added active transactions and shared memory usage monitor: http://dev.sipdoc.net/wiki/sip-stuff/KamailioMuninPlugin
BTW: which is the difference between shmem_used and shmem_real_used?
On Jun 15, 2009 at 10:43, I??aki Baz Castillo ibc@aliax.net wrote:
2009/6/12 Daniel-Constantin Mierla miconda@gmail.com:
used shared memory, active transactions could be some examples.
Hi, I've added active transactions and shared memory usage monitor: http://dev.sipdoc.net/wiki/sip-stuff/KamailioMuninPlugin
BTW: which is the difference between shmem_used and shmem_real_used?
shmem_used does not account for internal memory management overhead, while shm_real_used does.
Andrei
2009/6/15 Andrei Pelinescu-Onciul andrei@iptel.org:
Hi, I've added active transactions and shared memory usage monitor: http://dev.sipdoc.net/wiki/sip-stuff/KamailioMuninPlugin
BTW: which is the difference between shmem_used and shmem_real_used?
shmem_used does not account for internal memory management overhead, while shm_real_used does.
That means that shmem_real_used will always be greater than shmem_used, so the Munin graph will display them correctly (shmem_used is displayed on top of shmem_real_used).
Thanks a lot.
Daniel-Constantin Mierla wrote:
Hi!
Hope it's useful. Suggestions are welcome.
thanks, looks good. Seems to be straightforward to add other graphs. Maybe ability to use it over net (mi_datagram) would be interesting.
Want to just add here that I just started using it, really good to monitor usage in a very simple way. It was 10 minutes work to get running, much easier than other methods I've been looking at to monitor current usage.
Thanks!
/robin
Can't one get this information into any SNMP NMS and/or graphing utility just by querying openserCurNumDialogs.0 in the OPENSER-MIB (via the SMPStats subagent?). I use this a _lot_.
Iñaki Baz Castillo wrote:
Hi all, I've created a Munin plugin to monitor the number of dialogs in Kamailio: http://dev.sipdoc.net/wiki/sip-stuff/KamailioMuninPlugin
Hope it's useful. Suggestions are welcome.
Regards.
Alex Balashov wrote:
Hi Alex,
Can't one get this information into any SNMP NMS and/or graphing utility just by querying openserCurNumDialogs.0 in the OPENSER-MIB (via the SMPStats subagent?). I use this a _lot_.
Sure. But if you are (like me) already using Munin and don't have a SNMP setup on the machines yet, it's quite practical to write some plugins for munin like this. It's actually just a script, but it's pretty smart to think of it. :)
/Robin
Robin Vleij wrote:
Alex Balashov wrote:
Hi Alex,
Can't one get this information into any SNMP NMS and/or graphing utility just by querying openserCurNumDialogs.0 in the OPENSER-MIB (via the SMPStats subagent?). I use this a _lot_.
Sure. But if you are (like me) already using Munin and don't have a SNMP setup on the machines yet, it's quite practical to write some plugins for munin like this. It's actually just a script, but it's pretty smart to think of it. :)
Fair enough. Can't argue with that.
I just always favour using the most generic and reusable mechanisms possible on which to build application-specific extensions. In other words, this module strikes me as a "leaky abstraction."
El Viernes, 12 de Junio de 2009, Alex Balashov escribió:
I just always favour using the most generic and reusable mechanisms possible on which to build application-specific extensions. In other words, this module strikes me as a "leaky abstraction."
Sure using SNMP is a more standard way, but Munin does exist and it's very extended (useful and very easy to configure) :)