Errors during install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Errors during install

Post by mguthrie »

Mark de Bokx
Posts: 43
Joined: Wed Jul 07, 2010 1:59 am

Re: Errors during install

Post 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
mkoehler
Posts: 5
Joined: Wed Sep 29, 2010 2:11 pm

Re: Errors during install

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Errors during install

Post by mguthrie »

Thanks for the heads up! We should have this fixed in our next update.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Errors during install

Post 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.
mkoehler
Posts: 5
Joined: Wed Sep 29, 2010 2:11 pm

Re: Errors during install

Post 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
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Errors during install

Post 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.
Locked