Hi Everyone<br><br>I have just installed Nagios Core 3.2.3 with nagios-plugins-1.4.15 on CentOS 5.6 with SE Linux Disabled by following the Fedora Quick start guide (so nagios is installed from source rather than an RPM)<br>
<br>And from the default install perspective everything looks good.  But I have just to add my first remote host and things dont seem to be working as I expect.<br><br>I created a new file /usr/local/nagios/etc/objects/cms-core.cfg owner nagios group nagios with the appropriate permissions and added <br>
<br>cfg_file=/usr/local/nagios/etc/objects/cms-core.cfg to /usr/local/nagios/etc/nagios.cfg<br><br>I then added the following content to the file<br><br><br><br>define hostgroup{<br><br>        hostgroup_name          core-servers<br>
<br>        alias                   Infrastructure<br><br>        members                 inf1<br><br>}<br><br>define host{<br><br>        host_name                       inf1<br><br>        alias                           <a href="http://inf1.cms.waikato.ac.nz">inf1.cms.waikato.ac.nz</a><br>
<br>        address                         130.217.208.181<br><br>        check_command                   check-host-alive<br><br>        check_interval                  5<br><br>        retry_interval                  1<br>
<br>        max_check_attempts              5<br><br>        check_period                    24x7<br><br>        process_perf_data               1<br><br>        retain_nonstatus_information    1<br><br>        contact_groups                  admins<br>
<br>        notification_interval           30<br><br>        notification_period             24x7<br><br>        notification_options            d,u,r<br><br>}<br><br>define service{<br>        use                         generic-service<br>
        hostgroup_name              core-servers<br>        service_description         PING<br>        contact_groups              admins<br>        check_command               check_ping!500.0,20%!800.0,60%<br>}<br><br>
I then run the config test command<br><br>/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg<br><br>The output is below<br><br><br>Nagios Core 3.2.3<br>Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors<br>
Copyright (c) 1999-2009 Ethan Galstad<br>Last Modified: 10-03-2010<br>License: GPL<br><br>Website: <a href="http://www.nagios.org">http://www.nagios.org</a><br>Reading configuration data...<br>   Read main config file okay...<br>
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...<br>Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...<br>Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...<br>
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...<br>Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...<br>Processing object config file '/usr/local/nagios/etc/objects/cms-core.cfg'...<br>
   Read object config files okay...<br><br>Running pre-flight check on configuration data...<br><br>Checking services...<br>        Checked 9 services.<br>Checking hosts...<br>        Checked 2 hosts.<br>Checking host groups...<br>
        Checked 2 host groups.<br>Checking service groups...<br>        Checked 0 service groups.<br>Checking contacts...<br>        Checked 1 contacts.<br>Checking contact groups...<br>        Checked 1 contact groups.<br>
Checking service escalations...<br>        Checked 0 service escalations.<br>Checking service dependencies...<br>        Checked 0 service dependencies.<br>Checking host escalations...<br>        Checked 0 host escalations.<br>
Checking host dependencies...<br>        Checked 0 host dependencies.<br>Checking commands...<br>        Checked 24 commands.<br>Checking time periods...<br>        Checked 5 time periods.<br>Checking for circular paths between hosts...<br>
Checking for circular host and service dependencies...<br>Checking global event handlers...<br>Checking obsessive compulsive processor commands...<br>Checking misc settings...<br><br>Total Warnings: 0<br>Total Errors:   0<br>
<br>Things look okay - No serious problems were detected during the pre-flight check<br><br>I then restart the web server, expecting to see a new host inf1<br><br>But the host count has not increased and I can't see any reference to the host.  I also can not see the new host group I defined.<br>
<br>So obviously I am missing something fundamental.<br><br>Thanks for any incite you care to share :)<br>