On 18.10.2009 22:36 Uhr, Iñaki Baz Castillo wrote:
El Viernes, 16 de Octubre de 2009, Iñaki Baz Castillo escribió:
El Jueves, 15 de Octubre de 2009, Daniel-Constantin Mierla escribió:
Hello Inaki,
the fixes you listed below are not related to the statistics in dialog module. It might be a bug totally different. However, the inuse_transactions are reported by TM and that should be pretty stable.
Yes, my fault when copy&pasting my log. In fact, I get that error for dialog and tm modules:
Oct 14 21:40:03 localhost kamailio[24042]: ERROR:mi_fifo:mi_fifo_server: fifo command must begin with :: early_dialogs Oct 15 06:20:03 localhost kamailio[24042]: ERROR:mi_fifo:mi_fifo_server: fifo command must begin with :: inuse_transactions
This is, *all* the MI commands fail.
And the real wrong value returned by the MI command is just related to dialog module. Please forget the value inuse_transactions = 2819624 as the fact is the following:
Wed Oct 14 21:40:03 CEST 2009: dialogs_early = 2819624
(not sure however if same has occurred for inuse_transactions sometimes).
The value is pretty odd, since usual bugs in statistics were caused by going negative, resulting in very high values, but yours is not close at all to "-1", which gives no immediate hints.
How often to you fetch statistics?
Munin runs the plugins each 5 minutes. And as I said this is a server with no traffic yet.
The error remains and it just affects to dialog module. I log in a file when the Munin plugin performing the fifo command gets a dialg_xxxx value greater than 200 (note that there is no traffic in this Kamailio !!!), and this is what I've got from past friday (3 days ago) having the latest 1.5 version installed:
Sat Oct 17 00:50:03 CEST 2009: dialogs_early = 134217728 Sat Oct 17 00:50:03 CEST 2009: dialogs_total = 134217728 Sat Oct 17 16:50:03 CEST 2009: dialogs_early = 2820392 Sat Oct 17 16:50:03 CEST 2009: dialogs_total = 2820392
sorry for delay, being offline for some time...
This is interesting as you say there is no traffic on server. Since is a testing system I guess we can play a bit with it. The error might be due to a bug in FIFO command parsing or a bug in printing the command to fifo file.
The best is to add a debug message that will print the entire fifo command received by kamailio. Should I do a patch for you?
More strange is with dialog value as there is no traffic, that value should not be affected at all and should be zero. If you do kamctl get_statistics all from command line, do you get same value?
Thanks, Daniel