Discussion:
[Check_mk (english)] Cannot activate pending changes due to index out of range
David Larcher
2017-12-11 15:17:31 UTC
Permalink
Hello,

I am using check_mk version 1.4.0p19
Everything was well working but after having done some changes on the web interface for SNMP check (Cisco switch), I cannot anymore apply changes on the OMD Web GUI.
I have the following error message on the master Site:

State: Failed. Started at: 15:13:11. Finished at: 15:13:11.
Failed: Error creating configuration: list index out of range



Best,
David
Marcel Schulte
2017-12-11 21:41:45 UTC
Permalink
Hi David,

please execute this as siteuser at master site and have a look at the
output:

cmk -Bvv --debug

...the command creates the config at commandline level and should give the
needed output because of the two 'v' params as well as the '--debug' param.

BR,
Marcel
Post by David Larcher
Hello,
I am using check_mk version 1.4.0p19
Everything was well working but after having done some changes on the web
interface for SNMP check (Cisco switch), I cannot anymore apply changes on
the OMD Web GUI.
State: Failed. Started at: 15:13:11. Finished at: 15:13:11.
Failed: Error creating configuration: list index out of range
Best,
David
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
David Larcher
2017-12-12 08:28:36 UTC
Permalink
Hi Marcel,

Thank you for the command.
I am wondering if it is not an issue with the hostnames.

OMD[legacy]:~/etc/check_mk/conf.d$ cmk -Bvv --debug
Generating configuration for core (type nagios)...Configuration Error: list index out of range
Traceback (most recent call last):
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 4692, in <module>
do_update(with_precompile=False)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 3758, in do_update
do_create_config(with_agents=with_precompile)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 3725, in do_create_config
create_core_config()
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 2866, in create_core_config
create_nagios_config(out)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 101, in create_nagios_config
create_nagios_config_host(outfile, hostname)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 122, in create_nagios_config_host
create_nagios_servicedefs(outfile, hostname, host_attrs)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 273, in create_nagios_servicedefs
host_checks = get_check_table(hostname, remove_duplicates=True).items()
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 1996, in get_check_table
handle_entry(entry)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 1966, in handle_entry
elif type(hostlist[0]) == str:
IndexError: list index out of range

Cheers,
David L.

From: Marcel Schulte [mailto:***@gmail.com]
Sent: 11 December, 2017 10:42 PM
To: David Larcher <***@unv.org>
Cc: checkmk-***@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Cannot activate pending changes due to index out of range

Hi David,

please execute this as siteuser at master site and have a look at the output:

cmk -Bvv --debug

...the command creates the config at commandline level and should give the needed output because of the two 'v' params as well as the '--debug' param.

BR,
Marcel

2017-12-11 16:17 GMT+01:00 David Larcher <***@unv.org<mailto:***@unv.org>>:
Hello,

I am using check_mk version 1.4.0p19
Everything was well working but after having done some changes on the web interface for SNMP check (Cisco switch), I cannot anymore apply changes on the OMD Web GUI.
I have the following error message on the master Site:

State: Failed. Started at: 15:13:11. Finished at: 15:13:11.
Failed: Error creating configuration: list index out of range



Best,
David


_______________________________________________
checkmk-en mailing list
checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
David Larcher
2017-12-12 08:38:43 UTC
Permalink
Further to my previous message, the following command only displays few hosts:
check_mk --list-hosts

22 hosts are displayed whereas there is 92 host configured


Cheers,
David L.

From: David Larcher
Sent: 12 December, 2017 9:29 AM
To: 'Marcel Schulte' <***@gmail.com>
Cc: checkmk-***@lists.mathias-kettner.de
Subject: RE: [Check_mk (english)] Cannot activate pending changes due to index out of range

Hi Marcel,

Thank you for the command.
I am wondering if it is not an issue with the hostnames.

OMD[legacy]:~/etc/check_mk/conf.d$ cmk -Bvv --debug
Generating configuration for core (type nagios)...Configuration Error: list index out of range
Traceback (most recent call last):
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 4692, in <module>
do_update(with_precompile=False)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 3758, in do_update
do_create_config(with_agents=with_precompile)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 3725, in do_create_config
create_core_config()
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 2866, in create_core_config
create_nagios_config(out)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 101, in create_nagios_config
create_nagios_config_host(outfile, hostname)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 122, in create_nagios_config_host
create_nagios_servicedefs(outfile, hostname, host_attrs)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 273, in create_nagios_servicedefs
host_checks = get_check_table(hostname, remove_duplicates=True).items()
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 1996, in get_check_table
handle_entry(entry)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 1966, in handle_entry
elif type(hostlist[0]) == str:
IndexError: list index out of range

Cheers,
David L.

From: Marcel Schulte [mailto:***@gmail.com]
Sent: 11 December, 2017 10:42 PM
To: David Larcher <***@unv.org<mailto:***@unv.org>>
Cc: checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>
Subject: Re: [Check_mk (english)] Cannot activate pending changes due to index out of range

Hi David,

please execute this as siteuser at master site and have a look at the output:

cmk -Bvv --debug

...the command creates the config at commandline level and should give the needed output because of the two 'v' params as well as the '--debug' param.

BR,
Marcel

2017-12-11 16:17 GMT+01:00 David Larcher <***@unv.org<mailto:***@unv.org>>:
Hello,

I am using check_mk version 1.4.0p19
Everything was well working but after having done some changes on the web interface for SNMP check (Cisco switch), I cannot anymore apply changes on the OMD Web GUI.
I have the following error message on the master Site:

State: Failed. Started at: 15:13:11. Finished at: 15:13:11.
Failed: Error creating configuration: list index out of range



Best,
David


_______________________________________________
checkmk-en mailing list
checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
David Larcher
2017-12-12 09:06:50 UTC
Permalink
I have reviewed the last changed made and actually it was due to the Manuel check
- CPU utilization for Appliances.-

I have deactivated it and everything is OK now.

Cheers,
David L.

From: David Larcher
Sent: 12 December, 2017 9:39 AM
To: 'Marcel Schulte' <***@gmail.com>
Cc: 'checkmk-***@lists.mathias-kettner.de' <checkmk-***@lists.mathias-kettner.de>
Subject: RE: [Check_mk (english)] Cannot activate pending changes due to index out of range

Further to my previous message, the following command only displays few hosts:
check_mk --list-hosts

22 hosts are displayed whereas there is 92 host configured


Cheers,
David L.

From: David Larcher
Sent: 12 December, 2017 9:29 AM
To: 'Marcel Schulte' <***@gmail.com<mailto:***@gmail.com>>
Cc: checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>
Subject: RE: [Check_mk (english)] Cannot activate pending changes due to index out of range

Hi Marcel,

Thank you for the command.
I am wondering if it is not an issue with the hostnames.

OMD[legacy]:~/etc/check_mk/conf.d$ cmk -Bvv --debug
Generating configuration for core (type nagios)...Configuration Error: list index out of range
Traceback (most recent call last):
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 4692, in <module>
do_update(with_precompile=False)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 3758, in do_update
do_create_config(with_agents=with_precompile)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 3725, in do_create_config
create_core_config()
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 2866, in create_core_config
create_nagios_config(out)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 101, in create_nagios_config
create_nagios_config_host(outfile, hostname)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 122, in create_nagios_config_host
create_nagios_servicedefs(outfile, hostname, host_attrs)
File "/omd/sites/legacy/share/check_mk/modules/nagios.py", line 273, in create_nagios_servicedefs
host_checks = get_check_table(hostname, remove_duplicates=True).items()
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 1996, in get_check_table
handle_entry(entry)
File "/omd/sites/legacy/share/check_mk/modules/check_mk.py", line 1966, in handle_entry
elif type(hostlist[0]) == str:
IndexError: list index out of range

Cheers,
David L.

From: Marcel Schulte [mailto:***@gmail.com]
Sent: 11 December, 2017 10:42 PM
To: David Larcher <***@unv.org<mailto:***@unv.org>>
Cc: checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>
Subject: Re: [Check_mk (english)] Cannot activate pending changes due to index out of range

Hi David,

please execute this as siteuser at master site and have a look at the output:

cmk -Bvv --debug

...the command creates the config at commandline level and should give the needed output because of the two 'v' params as well as the '--debug' param.

BR,
Marcel

2017-12-11 16:17 GMT+01:00 David Larcher <***@unv.org<mailto:***@unv.org>>:
Hello,

I am using check_mk version 1.4.0p19
Everything was well working but after having done some changes on the web interface for SNMP check (Cisco switch), I cannot anymore apply changes on the OMD Web GUI.
I have the following error message on the master Site:

State: Failed. Started at: 15:13:11. Finished at: 15:13:11.
Failed: Error creating configuration: list index out of range



Best,
David


_______________________________________________
checkmk-en mailing list
checkmk-***@lists.mathias-kettner.de<mailto:checkmk-***@lists.mathias-kettner.de>
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Loading...