Debugging nagios startup (or lack of)

Sancho2k.net Lists lists at sancho2k.net
Thu Mar 27 15:48:44 CET 2003


Hi,

I finally broke down and installed Nagios 1.0 compiled with 
mysql-support for all possible data storage types. After quick 
configuration and verifying that all misconfigurations have been fixed 
and /path/to/nagios -v /path/to/nagios.cfg shows 0 errors, I tried to 
start the daemon with the -d switch. No errors are output, either to 
console or to log file, but the daemon seems to exit immediately:

# cat ../var/nagios.log
[1048748600] Nagios 1.0 starting... (PID=32377)
[1048748601] Finished daemonizing... (New PID=16005)
[1048748643] Nagios 1.0 starting... (PID=7750)
[1048748643] Finished daemonizing... (New PID=7828)
[1048753008] Nagios 1.0 starting... (PID=27620)
[1048753008] Finished daemonizing... (New PID=16333)
[1048774880] Nagios 1.0 starting... (PID=30920)
[1048774880] Finished daemonizing... (New PID=26077)

# ps auxwww |grep nag
[No running procs]

Running OpenBSD 3.2, compiled with the following options:

./configure --prefix=/var/www/htdocs/restricted/nagios 
--with-nagios-user=nagios --with-nagios-grp=nagios --with-perlcache 
--enable-embedded-perl --with-gd-lib=/usr/local/lib 
--with-gd-inc=/usr/local/include --disable-statuswrl 
--with-mysql-lib=/usr/local/lib/mysql 
--with-mysql-inc=/usr/local/include/mysql --with-mysql-xdata 
--with-mysql-status --with-mysql-comments --with-mysql-extinfo 
--with-mysql-retention --with-mysql-downtime 
--with-command-grp=nagioscmd 
--with-cgiurl=https://admin.sancho2k.net/nagios 
--with-htmurl=https://admin.sancho2k.net/nagios/cgi-bin

I have configured the cgi.cfg and resource.cfg with the config options 
for the mysql db as well. I have also commented out the lines for the 
text files that the DB is replacing in nagios.cfg.

Where have I gone amiss? Can I increase debugging without recompiling?

TIA,

DS



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list