Install/startup problem

When I start Nagios with the default cfg file the program immediately ends with a segmentation fault error. I guess I need to reinstall a dependency, but can anyone give me a push in the right direction about how to isolate the problem component? I installed from RPM onto Centos4 (EL4). The logs don’t seem to show anything.

Thanks and regards.

Not enough info.
Don’t use RPM’s - compile nagios from the source. It will tell you what you are missing as you go.

run a check on your config files and it will tell you which file is incorrect.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

I’m having the same problem and running the check “/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg” gives nothing but “Memory fault (coredump)”.

This happens now on my system as well. It worked before, so my bet is that one of the *.cfg’s got damaged. But which one…? When I do a configcheck, I only get:

 /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg

Nagios 2.0b2
Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org)
Last Modified: 02-09-2005
License: GPL

Reading configuration data...

Segmentation fault

This is on a Gentoo system with nagios-2 b2

i’d try commenting the cfg files out (one by one) fromthe main nagios file… sometimes you shouldn’t get a seg fault but a missing service/host or some other sort of error… at this point you could have the right file to check…

Luca

Try recompiling nagios and installing. If I’m not mistaken, I had a seg fault also, and this cleared it up.