The spec file does not install the sample configuration files to /etc/nagios/objects.  The default /etc/nagios/nagios.cfg references these non-existent files.<br><div class="gmail_quote"><br>Patch below adds the files to the rpm.<br>
<br>~Matt<br><br>
<br>> diff -U3 nagios.spec.orig nagios.spec<br>--- nagios.spec.orig    2009-01-06 20:51:06.000000000 -0500<br>+++ nagios.spec    2009-01-06 20:50:35.000000000 -0500<br>@@ -243,6 +243,7 @@<br> install -d -m 0755 ${RPM_BUILD_ROOT}/etc/logrotate.d<br>

 install -d -m 0755 ${RPM_BUILD_ROOT}/etc/httpd/conf.d<br> install -d -m 0755 ${RPM_BUILD_ROOT}/etc/nagios<br>+install -d -m 0755 ${RPM_BUILD_ROOT}/etc/nagios/objects<br> ### install -d -m 0755 ${RPM_BUILD_ROOT}/etc/nagios/private<br>

 make DESTDIR=${RPM_BUILD_ROOT} INSTALL_OPTS="" COMMAND_OPTS="" install<br> make DESTDIR=${RPM_BUILD_ROOT} INSTALL_OPTS="" COMMAND_OPTS="" INIT_OPTS="" install-daemoninit<br>

@@ -257,9 +258,9 @@<br>   [ -f $f ] && install -c -m 664 $f ${RPM_BUILD_ROOT}/etc/nagios/${f}<br> done<br> cd template-object<br>-for f in {hosts,hostgroups,services,contacts,contactgroups,dependencies,escalations,timeperiods,checkcommands,misccommands,minimal}.cfg<br>

+for f in {commands,contacts,localhost,switch,templates,timeperiods}.cfg<br> do<br>-  [ -f $f ] && install -c -m 664 $f ${RPM_BUILD_ROOT}/etc/nagios/${f}<br>+  [ -f $f ] && install -c -m 664 $f ${RPM_BUILD_ROOT}/etc/nagios/objects/${f}<br>

 done<br> cd ..<br> cd ..<br>@@ -304,8 +305,10 @@<br> %{_prefix}/lib/nagios/eventhandlers/*<br> %{_sbindir}/convertcfg<br> %dir /etc/nagios<br>+%dir /etc/nagios/objects<br> %defattr(644,root,root)<br> %config(noreplace) /etc/nagios/*.cfg<br>

+%config(noreplace) /etc/nagios/objects/*.cfg<br> %defattr(750,root,%{nsgrp})<br> ###%dir /etc/nagios/private<br> %defattr(640,root,%{nsgrp})<br>
</div><br>