[Xymon] Xymon 4.3.0 - Build RPMs

Jason Kincl jkincl1 at lsu.edu
Thu Mar 17 21:57:12 CET 2011


These are basically the exact same I did and it worked however instead of commenting out the xymonmenu.css, this will work also:
%attr(644, root, root) %config /var/lib/xymon/www/menu/xymonmenu-blue.css
%attr(644, root, root) %config /var/lib/xymon/www/menu/xymonmenu-grey.css

I would also add that in: /usr/lib/xymon/client/etc/xymonclient.cfg on the server once the RPM is installed you need to replace the include statement with the below text:
XYMSRV=""          # IP address of the Xymon server
XYMSERVERS=""                   # IP of multiple Xymon servers. XYMSRV must be "0.0.0.0".

This is because the init script for the client correctly uses the /etc/default/xymon-client to create a file /var/run/xymonclient-runtime.cfg that is what is included, but the server init script does not do these things. 

Francois, did you have to do the above to make your servers client work?

On Mar 17, 2011, at 3:42 PM, Herbert, Francois wrote:

> Hi
> 
> I have built the rpms for rhel5 and rhel6. Had to extract the tar file and rpmbuild using the specfile (rpmbuild -bb) rather than build from tar file as the xymon.spec file gave me some errors.
> I ended up doing the following to get it building:
> 
> Untar the source file.
> 
> 1. Edit rpm/xymon.spec:
> a. set the version number (Version: @VER@ changed to Version: 4.3.0)
>  b. set the Source (Source: xymon- at VER@.tar.gz to Source: xymon-4.3.0.tar.gz)
> c. Remove the line (in the files section) %attr(644, root, root) %config /var/lib/xymon/www/menu/xymonmenu.css as this gives an error when building rpm (xymonmenu.css is not found). Not sure what impact this will have on the server rpm as I've only used the resulting xymon-client rpm that was created.
> 
> 2. Put edited rpm/xymon.spec into /usr/src/redhat/SPECS
> 3. Copy rpm/xymon-client.default, /rpm/xymon-client.init, rpm/xymon-init.d  and rpm/xymon.logrotate to /usr/src/redhat/SOURCES
> 4. Copy tar file (xymon-4.3.0.tar.gz) to /usr/src/redhat/SOURCES
> 5. cd /usr/src/redhat/  and run rpmbuild -bb SPECS/xymon.spec
> 
> There might be a better way to do it, but this got it building rpms for me :-)
> 
> Hope this helps
> 
> Francois Herbert
> Systems Engineer
> ITS
> Massey University
> New Zealand
> 
> On 18/03/2011, at 6:55 AM, Leonardo Bozi wrote:
> 
> 
> Hi,
> 
> The Xymon 4.3.0 was released and has anyone already tried to build RPMs for CentOS 5?
> 
> Thanks in advance.
> 
> Leonardo Bozi
> ______________________________________________
> leobozi at yahoo.com<mailto:leobozi at yahoo.com>
> 
> 
> 
> 
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com<mailto:Xymon at xymon.com>
> http://lists.xymon.com/mailman/listinfo/xymon
> 
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon

--------------------
Jason Kincl




More information about the Xymon mailing list