Nagios not reading config files correctly

Mike Dean <[email protected]>
Newsgroups gmane.network.netsaint.user
Message-ID <F622FE8186D60B4087A71DAD42ABE5E20B38DF@fljaxeml02>
Nagios Version: 1.0b6
RedHat 7.2

First, sorry for the long post, but I think all the information is needed.

Nagios is apparently having a problem reading my configuration files.  I
have services that are supposed to have their event handlers disabled
(enabled for the host though) that are showing up in the web interface as
the service event handler being enabled, event handlers that run when the
host goes down, but not when it comes back up and email notifications being
sent to users that are not in the contactgroup for the host.

Following is the excerpt from my nagios.cfg file for all of my configuration
files:

cfg_file=/usr/local/nagios/etc/commands.cfg
cfg_file=/usr/local/nagios/etc/customcommands.cfg
#
# Contact Info
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
#
# Host Info
cfg_file=/usr/local/nagios/etc/hosts-templates.cfg
cfg_file=/usr/local/nagios/etc/hosts-jax.cfg
cfg_file=/usr/local/nagios/etc/hosts-roc.cfg
cfg_file=/usr/local/nagios/etc/hosts-agents.cfg
cfg_file=/usr/local/nagios/etc/hosts-other.cfg
#
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
#
# Services Info
cfg_file=/usr/local/nagios/etc/services-templates.cfg
cfg_file=/usr/local/nagios/etc/services-agents.cfg
cfg_file=/usr/local/nagios/etc/services-jax-inet.cfg
cfg_file=/usr/local/nagios/etc/services-jax-network.cfg
cfg_file=/usr/local/nagios/etc/services-jax-systems.cfg
cfg_file=/usr/local/nagios/etc/services-other.cfg
cfg_file=/usr/local/nagios/etc/services-roc-network.cfg
cfg_file=/usr/local/nagios/etc/services-roc-systems.cfg
cfg_file=/usr/local/nagios/etc/services-vpn.cfg
#
# Other
cfg_file=/usr/local/nagios/etc/dependencies.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg

===========
In services-templates.cfg I have the following:

define service{
        name                            standard-service
        active_checks_enabled           1
        check_period                    24x7
        check_freshness                 0
        contact_groups                  noc-email,noc-pager
        event_handler_enabled           1
        event_handler                   standard-service
        flap_detection_enabled          0
        is_volatile                     0
        max_check_attempts              4
        normal_check_interval           1
        notifications_enabled           1
        notification_interval           0
        notification_period             24x7
        notification_options            w,c,r
        obsess_over_service             0
        parallelize_check               1
        passive_checks_enabled          0
        process_perf_data               0
        retain_status_information       1
        retain_nonstatus_information    1
        retry_check_interval            1

        register                        0       ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
        }

One of the services that is supposed to have it's event handler disabled:

define service{
        use                             standard-service                ;
Name of service template to use
        host_name                       router1
        service_description             Inet Inbound
        check_command
check_threshold_in!password!8!1389600
        event_handler_enabled           0
        max_check_attempts              1
        normal_check_interval           5
        notification_interval           5
        }

However, in the web front-end it shows the event handler as enabled.  Nagios
will also (randomly) show one of my hosts with it's service disabled
although it is supposed to be enabled (and is enabled in the config file).

On the notifications being sent to email addrs that it shouldn't be sending
to, the relevant config entries are:

define contactgroup{
        contactgroup_name       TestGroup
        alias                   Test Group
        members                 mdean-email
        }

Note that only one member is listed (the email addr for that contact has
been checked and it is the correct email addr).  Following is the host
group.

define hostgroup{
        hostgroup_name  TestHostGroup
        alias           Test Group
        contact_groups  TestGroup
        members         test
}


However, there are at least 2 other email addresses that are receiving
alerts for the test box.

TIA for any help you can provide

Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.