[SR-Users] Problem with frequent use of FIFO commands

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 11 14:02:40 CET 2013


Hello,

On 2/27/13 3:28 PM, Mino Haluz wrote:
> Hi,
>
> I have some nagios scripts binded to kamctl fifo commands, as well as 
> some web scripts that are directly calling kamctl fifo statements. I 
> do not know why, but it sometimes returns
>
> ** ERROR: Error opening Kamailio's FIFO /tmp/kamailio_fifo [1] => ** 
> ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", 
> "/tmp/kamailio_fifo")' in your config [2] => ** ERROR: and also have 
> loaded the mi_fifo module.
>
> when it is called with web script with www-data account. From shell it 
> works everytime, but with web 20% of results are errors.  Other 80% 
> are sucessful, so no problem with permissions.
>
> Does mi_fifo support multiple access, are there any other limits in 
> this regard ? Within OS level?
fifo file cannot queue that much content, so if you have lot of commands 
executed at some time, you have chances to get some of them lost.

However, this problem seems to be access issue, be sure that the 80% 
which are ok are not done under a privilege escalation mode. You can set 
in mi_fifo module the user/group of the fifo file, better set it to 
something accessible always by web user in your case. From command line 
works probably because of being root.

Cheers,
Daniel
>
> kamailio-3.3.4
>
> Thanks,
> Mino
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> 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://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
  - http://conference.kamailio.com -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130311/40bf87f6/attachment.htm>


More information about the sr-users mailing list