Page 2 of 2

Re: Errors during install

Posted: Mon Sep 27, 2010 1:25 pm
by mguthrie

Re: Errors during install

Posted: Tue Sep 28, 2010 1:38 am
by Mark de Bokx
We are doing an install on RHEL5.4. The funny thing is this bug it doenst seem to be on the VM image.

FYI we ran in to this issue before. To get our testmachine running we installed the VM on another machine and copied the databases to the machine we installed with the tarball install. That seemed to do the trick aswell.

Only thing we can up with is that this has to do with nagiosQL_v3_db_mysql.sql

Re: Errors during install

Posted: Wed Sep 29, 2010 3:05 pm
by mkoehler
NOPE:
This happens in step E-importnagiosql, this script is calling the reconfigure_nagios.sh script who is calling the import_nagios.sql script, witch is calling the nagiosql_importall.php
And finally this script is importing all configfiles found in /usr/local/nagios/etc/import/ (whitch is comming from the nagiosxi installer) and in this directory you will find all the cfg files who are imported in the database.
And also you will find here the contacts.cfg file with the line:
<snip>
service_notification_options w,u,c,r,f,s,d
<snip>
You can just edit the config file (/usr/local/nagios/etc/import/contact.cfg) before running step E-importnagiosql (or remove it from the database before running step F-startdaemons)

Hope this explanation will help some people

Kind regards,
Menn0

PS for the nagiosxi development team the wrong contacts.cfg file is placed when running the A-subcomponents witch is installing all subcomponents and also the nagioscore and in the post-install script the mods/cfg/objects/contacts.cfg is copied to the import dir.

BTW are people interested in the 64 bit daemon rpm because the installation will fail because it is downloading the 32 bit one witch need other libs and in the spec file delivered with the src.rpm are some errors?

Re: Errors during install

Posted: Wed Sep 29, 2010 4:14 pm
by mguthrie
Thanks for the heads up! We should have this fixed in our next update.

Re: Errors during install

Posted: Thu Sep 30, 2010 11:23 am
by mmestnik
I'm interested in deamon. Though I don't understand RedHat or CentOS at all.

Are you indicating that daemon won't build on RedHat64? This is not the first time I've had something not build on CentOS, I would love to be able to use pdmenu(one of the best login shells in the world) on RedHat.

I'm sure providing a 64bit deamon would not be necessary. A statically compiled daemon would work better all-around and a dietlibc build should be possible. Currently it's dependency's are light: libpthread.so.0, libutil.so.1, libc.so.6. Even on 64bit installing these few x86 libs should be a non-issue.

Re: Errors during install

Posted: Fri Oct 01, 2010 2:01 pm
by mkoehler
Default the install scripts from nagiosxi will install a 32 bit version of the daemon package on a 64 bits host, this wil fail because of the missing dependencies ( 32 bit libraries (excluded by the 0-yum setup on 64 bits hosts) and building from the the source rpm will fail because of an old SPEC file type.
In the spec file you have to rename the copyright entry with:
License: GPL
And you have to define a buildroot (or use a rpm macro file for that)
Buildroot: /var/tmp/daemon

Hmmm I can't add the rpm as attachment, it isn't allowed I can send it by email, if you want.
<edit>
uploaded the rpm to
http://www.mediafire.com/?5u153rjqv4lq3k7
</edit>

Kind regards,
Menn0

Re: Errors during install

Posted: Fri Oct 01, 2010 2:46 pm
by mmestnik
Thank you for this. You can add arbitrary files to a zip file and upload them.

We appreciate any assistance working with RPMs, for me and most of my associates Ubuntu and Debian are were are interests can be found.