[Nagios-devel] Nagios 2.0 problems starting

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Nagios 2.0 problems starting

Post by Guest »

--Apple-Mail-9-935396692
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed

I have compiled nagios-cvs (latest) on a redhat 9 box and am having
troubles with it starting. I first used my configs that I had been
using and had problems, so I put in the default nagios.cfg and
minimal.cfg and am having the same problem.

Configured wtih: ./configure --datadir="/usr/share/nagios"
--bindir="/usr/bin" --libexecdir="/usr/lib/nagios/plugins"
--localstatedir="/var/log/nagios" --sbindir="/usr/lib/nagios/cgi"
--sysconfdir="/etc/nagios" --with-cgiurl="/nagios/cgi-bin"
--with-command-user="apache" --with-command-grp="apache"
--with-gd-lib="/usr/lib/" --with-gd-inc="/usr/include/"
--with-init-dir="/etc/rc.d/init.d/" --with-htmurl="/nagios"
--with-lockfile="/var/run/nagios.pid" --with-mail="/bin/mail"
--with-nagios-user="nagios" --with-nagios-grp="nagios"
--enable-embedded-perl --with-perlcache --with-template-objects
--with-template-extinfo --enable-event-broker --enable-DEBUG0
--enable-DEBUGALL

make all

make install install-config install-init install-commandmode

The final debug lines are: (I attached full output)
find_service() start
find_service() end
write_to_all_logs() start
write_to_syslog() start
write_to_syslog() end
write_to_log() start
write_to_log() end
write_to_all_logs() end
Caught SIGSEGV, shutting down...
close_command_file() start
[root@master root]#

I am not sure what is telling it to quit. Where do I need to go from
here to figure it out?

Thanks,

jl



--Apple-Mail-9-935396692
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
x-unix-mode=0644;
name="nagios.txt"
Content-Disposition: attachment;
filename=nagios.txt

[root@master root]# /usr/bin/nagios /etc/nagios/nagios.cfg

Nagios 2.0a1
Copyright (c) 1999-2004 Ethan Galstad ([email protected])
Last Modified: 11-18-2003
License: GPL

reset_variables() start
init_macrox_names() start
init_macrox_names() end
reset_variables() end
read_main_config_file() start
Config file: /etc/nagios/nagios.cfg
Line 19 = 'log_file=/var/log/nagios/nagios.log'
log_file set to '/var/log/nagios/nagios.log'
Line 46 = 'cfg_file=/etc/nagios/minimal.cfg'
Line 78 = 'object_cache_file=/var/log/nagios/objects.cache'
Line 91 = 'resource_file=/etc/nagios/resource.cfg'
processing resource file '/etc/nagios/resource.cfg'
read_resource_file() start
processing resource file '/etc/nagios/resource.cfg'
write_to_logs_and_console() start
write_to_all_logs() start
write_to_syslog() start
write_to_syslog() end
write_to_log() start
write_to_log() end
write_to_all_logs() end
write_to_console() start
Error: Cannot open resource file '/etc/nagios/resource.cfg' for reading!
write_to_console() end
write_to_logs_and_console() end
Line 101 = 'status_file=/var/log/nagios/status.dat'
Line 109 = 'nagios_user=nagios'
nagios_user set to 'nagios'
Line 117 = 'nagios_group=nagios'
nagios_group set to 'nagios'
Line 129 = 'check_external_commands=0'
check_external_commands set to FALSE
Line 148 = 'command_check_interval=-1'
command_check_interval set to -1
Line 160 = 'command_file=/var/log/nagios/rw/nagios.cmd'
command_file set to '/var/log/nagios/rw/nagios.cmd'
Line 168 = 'comment_file=/var/log/nagios/comments.dat'
Line 176 = 'downtime_file=/var/log/nagios/downtime.dat'
Line 184 = 'lock_file=/var/run/nagios.pid'
lock_file set to '/var/run/nagios.pid'
Line 194 = 'temp_file=/var/log/nagios/nagios.tmp'
temp_file set to '/var/log/nagios/nagios.tmp'
Line 204 = 'event_broker_options=-1'
event_broker_options set to 8191
Line 233 = 'log_rotation_method=d'
log_rotation_method set to 2
Line 241 = 'log_archive_path=/var/log/nagios/archives'
log_archive_path set to '/var/log/nagios/archives'
Line 249 = 'use_syslog=1'
use_syslog set to TRUE
Line 257 = 'log_notifications=1'
log_notifications set to TRUE
Line 265 = 'log_service_retries=1'
log_service_retries set to TRUE
Line 273 = 'log_host_retries=1'
log_host_retries set to TRUE
Line 282 = 'log_event_handlers=1'
log_event_handlers set to TRUE
Line 294 = 'log_initial_states=0'
log_initial_states set to FALSE
Line 305 = 'log_external_comm

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked