[Xymon] how to run 2 xymon-servers on 1 host?

Stef Coene stef.coene at docum.org
Tue Mar 15 10:08:37 CET 2011


On Tuesday 15 March 2011, Paul van Eldijk wrote:
> Op 14-3-2011 17:43, Henrik Størner schreef:
> >> I would like to run 2 xymon-4.3.0 servers on 1 host (one for testing,
> >> one for production), each with its own user (xymon vs xymontst) and port
> >> (1984 vs. 1985). The problem is, that I get an error-message when
> >> starting the second server:
> >> 
> >> "Could not get shm of size 262144: Permission denied"
> > 
> > This is one of the more obscure parts of the SysV IPC specs, but it
> > basically boils down to this: Make sure the two Xymon servers have
> > different XYMONHOME directories, and it should work OK.
> 
> I must be missing something...
> 
> I've got 2 users:
> uid=104(xymon) gid=501(beheer) groups=501(beheer), home directory
> (=install directory): /data/xymon
> 
> uid=105(xymontst) gid=501(beheer) groups=501(beheer), home directory:
> /data/tstxymon
> 
> Each user has a different XYMONHOME:
> 
> /data/xymon/server/etc/xymonserver.cfg:XYMONHOME="/data/xymon/server"
> 
> /data/tstxymon/server/etc/xymonserver.cfg:XYMONHOME="/data/tstxymon/server"
> 
> > (For details, look up the documentation on your systems' "ftok"
> > function).
> 
> according to the documentatiop of 'ftok' this should be working..
> 
> Wat am I missing?
You can display shared memory usage with:
ipcs -m
This is normally per user, so if you use different users, it shoud work.

I had some shared memory problems before, but that was caused by using the 
same user.
Maybe some shared memory is locked?  You can clean it up with the ipcrm 
command.



Stef

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



More information about the Xymon mailing list