Unable to apply configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
avlobos
Posts: 10
Joined: Tue Nov 08, 2016 7:23 pm

Unable to apply configuration

Post by avlobos »

Hi All,

Some info first:

Linux Distribution and version?: Red Hat Enterprise Linux Server release 6.6 (Santiago)
32 or 64bit?: 64bit
VMware Image or Manual Install of XI?: manual install.
Are there special configurations on your system: Nothing I'm aware of.

I've checked the forums for a solution and tried this one "https://support.nagios.com/forum/viewto ... 16&t=31671", it looked similar to what we're experiencing but it still shows the same error.

A little background:
I attempted to add a Login user and contact for that user. I then attempted to apply the config and I'm getting this error:
Error: Contact 'cpielic' has no service notification commands defined!
Error: Contact 'cpielic' has no host notification commands defined!

I then removed the contact but left behind the login User and attempted to apply the config again and still got the same error.
Prior to this my co-worker experienced issues applying the config as well, the situation was different however he had attempted to delete a host from monitoring.

Also the contact causing the error isn't even in the contacts.cfg file.

We seem to think that this might be a DB error. The DB is on the localhost.
Please let me know if you need additional info.

Thanks
Drew
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to apply configuration

Post by avandemore »

Please try this procedure:

XI > Configure > Core Config Manager > Config File Management > Delete Files > Write Configs > Verify Files > Restart Nagios Core

If that doesn't work, can you revert to a previous config snapshot?
Previous Nagios employee
avlobos
Posts: 10
Joined: Tue Nov 08, 2016 7:23 pm

Re: Unable to apply configuration

Post by avlobos »

Thanks for the response, however I don't see anything for "Config File Management" when navigating through the Core config manager.
It's not there as far as I can see.

Thanks
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to apply configuration

Post by avandemore »

What version do you have? I believe this was renaming slightly from older versions.
Previous Nagios employee
avlobos
Posts: 10
Joined: Tue Nov 08, 2016 7:23 pm

Re: Unable to apply configuration

Post by avlobos »

EDIT: code tags are easier for large blocks of text

Here's the info from the system profile.

Code: Select all

Nagios XI Installation Profile
Download Profile	
System:
Nagios XI Version : 2014R2.7
prdmgtnag01.ps.am.sony.com 2.6.32-573.3.1.el6.x86_64 x86_64
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Server Name: prdmgtnag01.ps.am.sony.com
Server Address: 160.33.144.99
Server Port: 443
Date/Time
PHP Timezone: America/Los_Angeles
PHP Time: Tue, 15 Nov 2016 13:04:13 -0800
System Time: Tue, 15 Nov 2016 13:04:13 -0800
Nagios XI Data
License ends in: NVSPUU

nagios (pid 3431) is running...
NPCD running (pid 2381).
ndo2db (pid 2474) is running...
CPU Load 15: 2.71
Total Hosts: 290
Total Services: 1745
Function 'get_base_uri' returns: https://prdmgtnag01.ps.am.sony.com/nagiosxi/
Function 'get_base_url' returns: https://prdmgtnag01.ps.am.sony.com/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: https://prdmgtnag01.ps.am.sony.com/nagiosxi/includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost
Running:

/bin/ping -c 3 localhost 2>&1 

PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.036 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.026 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.026/0.030/0.036/0.004 ms
Test wget To localhost
WGET From URL: http://localhost/nagiosxi/includes/components/ccm/
Running:

/usr/bin/wget http://localhost/nagiosxi/includes/components/ccm/ 

--2016-11-15 13:04:15-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: "/usr/local/nagiosxi/tmp/ccm_index.tmp"

0K ........ 931K=0.009s

2016-11-15 13:04:15 (931 KB/s) - "/usr/local/nagiosxi/tmp/ccm_index.tmp" saved [8385]

Network Settings

1: lo:  mtu 65536 qdisc noqueue state UNKNOWN 

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

    inet 127.0.0.1/8 scope host lo

    inet6 ::1/128 scope host 

       valid_lft forever preferred_lft forever

2: eth0:  mtu 9000 qdisc mq state UP qlen 1000

    link/ether 00:50:56:8f:13:7a brd ff:ff:ff:ff:ff:ff

    inet 160.33.144.99/23 brd 160.33.145.255 scope global eth0

    inet6 2620:5:8000:10:250:56ff:fe8f:137a/64 scope global dynamic 

       valid_lft 2591853sec preferred_lft 604653sec

    inet6 fe80::250:56ff:fe8f:137a/64 scope link 

       valid_lft forever preferred_lft forever


Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

160.33.144.0    *               255.255.254.0   U     0      0        0 eth0

default         scea-rhq-sc-vc- 0.0.0.0         UG    0      0        0 eth0
Thanks
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to apply configuration

Post by avandemore »

XI > Configure > CCM > Write Config Files > Delete, Write, Verify, Restart
Previous Nagios employee
avlobos
Posts: 10
Joined: Tue Nov 08, 2016 7:23 pm

Re: Unable to apply configuration

Post by avlobos »

I followed the requested steps, Nagios indicated that an apply configuration was required. I then attempted to apply the config but still got the same error.

Also I reverted to a previous config and still got an error.
A change was made on a host but then reverted back by reverting back to the previous config.

Applying the config generates the following error now:
Error: Invalid max_check_attempts value for host 'devappbuild01'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/devappbuild01.cfg', starting on line 16)


Thanks
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to apply configuration

Post by avandemore »

avlobos wrote:Error: Invalid max_check_attempts value for host 'devappbuild01'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/devappbuild01.cfg', starting on line 16)
This error seems pretty clear on how to fix.

What I don't understand is how you can revert to a known good config and still have it fail. Please follow these steps:

1. Restore to a previous known good config but do not apply the configuration. This is denoted by Config Ok in the Snapshot Result column.
2. From a terminal, do this:

Code: Select all

# cd /usr/local/nagiosxi/scripts/
# ./reconfigure_nagios.sh
Please reply with the full output of the command.
Previous Nagios employee
avlobos
Posts: 10
Joined: Tue Nov 08, 2016 7:23 pm

Re: Unable to apply configuration

Post by avlobos »

I've run the requested steps. Please see the output below:

Code: Select all

[root@prdmgtnag01 scripts]# ./reconfigure_nagios.sh 
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.login--2016-11-18 22:59:23--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

    [ <=>                                                                                                                                           ] 10,379      --.-K/s   in 0.01s   

2016-11-18 22:59:23 (1.04 MB/s) - “nagiosql.login” saved [10379]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
SETUID ROOT OK
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.login--2016-11-18 22:59:24--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

    [ <=>                                                                                                                                           ] 10,379      --.-K/s   in 0.01s   

2016-11-18 22:59:24 (984 KB/s) - “nagiosql.login” saved [10379]

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2016-11-18 22:59:24--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.export.monitoring”

    [  <=>                                                                                                                                          ] 13,233      17.1K/s   in 0.8s    

2016-11-18 22:59:25 (17.1 KB/s) - “nagiosql.export.monitoring” saved [13233]

WRITE CONFIGS SUCCESSFUL!
OUTPUT: 
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Warning: Duplicate definition found for service 'du e:' on host 'prdltsapp01' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du f:' on host 'prdesxdb01' (config file '/usr/local/nagios/etc/services/custom_windows_du_f_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdwebsso03' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdmgtmta01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsoas02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsoas01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsfmw09' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsfmw08' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsfmw07' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsfmw06' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsfmw05' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsfmw03' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsfmw02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsfmw01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsascp02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdebsascp01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdappwc01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdappwc02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du /boot' on host 'prdmgtmta01' (config file '/usr/local/nagios/etc/services/custom_linux_du_boot_linadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check swap' on host 'prdmgtmta01' (config file '/usr/local/nagios/etc/services/custom_linux_swap_linadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prdmgtmta01' (config file '/usr/local/nagios/etc/services/custom_linux_mem_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prdappwc01' (config file '/usr/local/nagios/etc/services/custom_linux_mem_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prdappwc02' (config file '/usr/local/nagios/etc/services/custom_linux_mem_linadmin_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'prdmgtnbadm1' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'prddbnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'prdappnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'tstappnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'tstappnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'prdappnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'tstdbnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'tstdbnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'prddbnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du d:' on host 'prdmgtcomsrv01' (config file '/usr/local/nagios/etc/services/custom_windows_du_d_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du /var' on host 'prdmgtmta01' (config file '/usr/local/nagios/etc/services/custom_linux_du_var_linadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du /var' on host 'prdwebsso03' (config file '/usr/local/nagios/etc/services/custom_linux_du_var_linadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsoas04' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsoas03' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsoas02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsoas01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsfmw09' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsfmw08' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsfmw07' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsfmw06' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsfmw05' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsfmw03' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsfmw02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsfmw01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsascp02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgebsascp01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsoas04' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsoas03' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsoas02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsoas01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsfmw09' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsfmw08' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsfmw07' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsfmw06' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsfmw05' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsfmw03' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsfmw02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsfmw01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsascp02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devebsascp01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devappbuild01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgappwc02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'stgappwc01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devappwc02' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'devappwc01' (config file '/usr/local/nagios/etc/services/custom_linux_load_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdmgtcomsrv01' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prddbnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'tstdbnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'tstdbnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdappnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'tstappnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'tstappnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdappnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prddbnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check load' on host 'prdmgtnbadm1' (config file '/usr/local/nagios/etc/services/custom_windows_load_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'prdapppanos01' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'prdmgtcomsrv01' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'prddbnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'tstdbnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'tstdbnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'prdappnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'tstappnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'tstappnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'prdappnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'prddbnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du c:' on host 'prdmgtnbadm1' (config file '/usr/local/nagios/etc/services/custom_windows_du_c_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du /' on host 'prdmgtmta01' (config file '/usr/local/nagios/etc/services/custom_linux_du_root_linadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'stgappwc02' (config file '/usr/local/nagios/etc/services/custom_linux_mem_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'stgappwc01' (config file '/usr/local/nagios/etc/services/custom_linux_mem_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'devappwc02' (config file '/usr/local/nagios/etc/services/custom_linux_mem_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'devappwc01' (config file '/usr/local/nagios/etc/services/custom_linux_mem_linadm_silent.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prdmgtcomsrv01' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prddbnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'tstdbnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'tstdbnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prdappnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'tstappnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'tstappnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prdappnvts2' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prddbnvts1' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'check mem' on host 'prdmgtnbadm1' (config file '/usr/local/nagios/etc/services/custom_windows_mem_winadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prdappsccm03' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prdappis01' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prdappbxi02' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prdappbxi01' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prdltsmal03' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prddbshp01' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prdltsmal01' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prdesxdb01' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du e:' on host 'prdesxvc01' (config file '/usr/local/nagios/etc/services/custom_windows_du_e_rndadm_rdsdwebadm_waking_hours.cfg', starting on line 16)
Warning: Duplicate definition found for service 'du /tmp' on host 'prdmgtmta01' (config file '/usr/local/nagios/etc/services/custom_linux_du_tmp_linadm_waking_hours.cfg', starting on line 16)
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
	Checked 1745 services.
	Checked 290 hosts.
	Checked 50 host groups.
	Checked 0 service groups.
	Checked 34 contacts.
	Checked 14 contact groups.
	Checked 124 commands.
	Checked 42 time periods.
	Checked 0 host escalations.
	Checked 0 service escalations.
Checking for circular paths...
	Checked 290 hosts
	Checked 0 service dependencies
	Checked 0 host dependencies
	Checked 42 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
Thanks
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Unable to apply configuration

Post by avandemore »

That seems a "normal" Apply Configuration outside of the duplicate definitions. Do you have services defined for a host at the host level and via hostgroup and/or servicegroup?

XI > Admin > System Profile > Download Profile

Please include the zip file in your response. You can PM myself or other support personnel if you have privacy concerns.
Previous Nagios employee
Locked