Generate Config Files not seeming to do anything

Support requests, bug reports, questions etc.
star3132
starter
starter
Posts: 1
Joined: Mon May 28, 2012 04:27

Generate Config Files not seeming to do anything

Post by star3132 » Mon May 28, 2012 04:33

Good evening,

When attempting to Generate Config Files the webpage doesn't seem to do anything. I go back and click it again, and it says that another user is generating files. I turned on debug mode and got the below information, but not much. I can delete the /temp/generate.lock file and try again with the same result. This is a new installation, but I can't seem to get the generate config files to work, or even give an error.

Thanks.

Code: Select all


 Debugging

Autoload: class NConf_DEBUG
Header / ACL / navigation debugging: 
Initialized module: include/modules/deployment/init.php
Autoload: class NConf_PERMISSIONS
Autoload: class NConf_HTML
Item authorization [UNKNOWN(NOT TESTED)]: Checks if you are allowed to access the item
 SQL Check ConfigAttrs content
 Query
SELECT * FROM ConfigAttrs LIMIT 1;

Result: number of rows:1

 SQL Check ConfigClasses content
 Query
SELECT * FROM ConfigClasses LIMIT 1;

Result: number of rows:1

 SQL Select user Navigation classes
 Query
SELECT grouping, nav_links, friendly_name FROM ConfigClasses WHERE nav_privs = "user" AND nav_visible = "yes" ORDER BY UPPER(grouping), ordering ASC, config_class

 Array Result array (rows: 5)
Array
(
    [0] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=host;;Add::handle_item.php?item=host
            [friendly_name] => Hosts
        )

    [1] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=hostgroup;;Add::handle_item.php?item=hostgroup
            [friendly_name] => Hostgroups
        )

    [2] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=service;;Add::handle_item.php?item=service
            [friendly_name] => Services
        )

    [3] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=advanced-service;;Add::handle_item.php?item=advanced-service
            [friendly_name] => Advanced Services
        )

    [4] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=servicegroup;;Add::handle_item.php?item=servicegroup
            [friendly_name] => Servicegroups
        )

)

 Array Create menu user
Array
(
    [0] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=host;;Add::handle_item.php?item=host
            [friendly_name] => Hosts
        )

    [1] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=hostgroup;;Add::handle_item.php?item=hostgroup
            [friendly_name] => Hostgroups
        )

    [2] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=service;;Add::handle_item.php?item=service
            [friendly_name] => Services
        )

    [3] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=advanced-service;;Add::handle_item.php?item=advanced-service
            [friendly_name] => Advanced Services
        )

    [4] => Array
        (
            [grouping] => 
            [nav_links] => Show::overview.php?class=servicegroup;;Add::handle_item.php?item=servicegroup
            [friendly_name] => Servicegroups
        )

)

 SQL Select admin Navigation classes
 Query
SELECT * FROM ConfigClasses WHERE nav_privs = "admin" AND nav_visible = "yes" ORDER BY UPPER(grouping), ordering ASC, config_class

 Array Result array (rows: 13)
Array
(
    [0] => Array
        (
            [id_class] => 9
            [config_class] => os
            [friendly_name] => OS
            [nav_visible] => yes
            [ordering] => 1
            [grouping] => 
            [nav_links] => Show::overview.php?class=os;;Add::handle_item.php?item=os
            [nav_privs] => admin
            [class_type] => global
            [out_file] => 
            [nagios_object] => 
        )

    [1] => Array
        (
            [id_class] => 5
            [config_class] => contact
            [friendly_name] => Contacts
            [nav_visible] => yes
            [ordering] => 2
            [grouping] => 
            [nav_links] => Show::overview.php?class=contact;;Add::handle_item.php?item=contact
            [nav_privs] => admin
            [class_type] => global
            [out_file] => contacts.cfg
            [nagios_object] => contact
        )

    [2] => Array
        (
            [id_class] => 6
            [config_class] => contactgroup
            [friendly_name] => Contactgroups
            [nav_visible] => yes
            [ordering] => 3
            [grouping] => 
            [nav_links] => Show::overview.php?class=contactgroup;;Add::handle_item.php?item=contactgroup
            [nav_privs] => admin
            [class_type] => global
            [out_file] => contactgroups.cfg
            [nagios_object] => contactgroup
        )

    [3] => Array
        (
            [id_class] => 8
            [config_class] => checkcommand
            [friendly_name] => Checkcommands
            [nav_visible] => yes
            [ordering] => 4
            [grouping] => 
            [nav_links] => Show::overview.php?class=checkcommand;;Add::handle_item.php?item=checkcommand
            [nav_privs] => admin
            [class_type] => global
            [out_file] => checkcommands.cfg
            [nagios_object] => command
        )

    [4] => Array
        (
            [id_class] => 13
            [config_class] => misccommand
            [friendly_name] => Misccommands
            [nav_visible] => yes
            [ordering] => 5
            [grouping] => 
            [nav_links] => Show::overview.php?class=misccommand;;Add::handle_item.php?item=misccommand
            [nav_privs] => admin
            [class_type] => global
            [out_file] => misccommands.cfg
            [nagios_object] => command
        )

    [5] => Array
        (
            [id_class] => 7
            [config_class] => timeperiod
            [friendly_name] => Timeperiods
            [nav_visible] => yes
            [ordering] => 6
            [grouping] => 
            [nav_links] => Show::overview.php?class=timeperiod;;Add::handle_item.php?item=timeperiod
            [nav_privs] => admin
            [class_type] => global
            [out_file] => timeperiods.cfg
            [nagios_object] => timeperiod
        )

    [6] => Array
        (
            [id_class] => 12
            [config_class] => host-preset
            [friendly_name] => Host presets
            [nav_visible] => yes
            [ordering] => 1
            [grouping] => Advanced Items
            [nav_links] => Show::overview.php?class=host-preset;;Add::handle_item.php?item=host-preset
            [nav_privs] => admin
            [class_type] => global
            [out_file] => 
            [nagios_object] => 
        )

    [7] => Array
        (
            [id_class] => 14
            [config_class] => host-template
            [friendly_name] => Host templates
            [nav_visible] => yes
            [ordering] => 2
            [grouping] => Advanced Items
            [nav_links] => Show::overview.php?class=host-template;;Add::handle_item.php?item=host-template
            [nav_privs] => admin
            [class_type] => global
            [out_file] => host_templates.cfg
            [nagios_object] => host
        )

    [8] => Array
        (
            [id_class] => 15
            [config_class] => service-template
            [friendly_name] => Service templates
            [nav_visible] => yes
            [ordering] => 3
            [grouping] => Advanced Items
            [nav_links] => Show::overview.php?class=service-template;;Add::handle_item.php?item=service-template
            [nav_privs] => admin
            [class_type] => global
            [out_file] => service_templates.cfg
            [nagios_object] => service
        )

    [9] => Array
        (
            [id_class] => 16
            [config_class] => host-dependency
            [friendly_name] => Host deps.
            [nav_visible] => yes
            [ordering] => 4
            [grouping] => Advanced Items
            [nav_links] => Show::overview.php?class=host-dependency;;Add::handle_item.php?item=host-dependency
            [nav_privs] => admin
            [class_type] => collector
            [out_file] => host_dependencies.cfg
            [nagios_object] => hostdependency
        )

    [10] => Array
        (
            [id_class] => 17
            [config_class] => service-dependency
            [friendly_name] => Service deps.
            [nav_visible] => yes
            [ordering] => 5
            [grouping] => Advanced Items
            [nav_links] => Show::overview.php?class=service-dependency;;Add::handle_item.php?item=service-dependency
            [nav_privs] => admin
            [class_type] => collector
            [out_file] => service_dependencies.cfg
            [nagios_object] => servicedependency
        )

    [11] => Array
        (
            [id_class] => 11
            [config_class] => nagios-monitor
            [friendly_name] => Central monitors
            [nav_visible] => yes
            [ordering] => 1
            [grouping] => Nagios servers
            [nav_links] => Show::overview.php?class=nagios-monitor;;Add::handle_item.php?item=nagios-monitor
            [nav_privs] => admin
            [class_type] => global
            [out_file] => 
            [nagios_object] => 
        )

    [12] => Array
        (
            [id_class] => 10
            [config_class] => nagios-collector
            [friendly_name] => Distrib. collectors
            [nav_visible] => yes
            [ordering] => 2
            [grouping] => Nagios servers
            [nav_links] => Show::overview.php?class=nagios-collector;;Add::handle_item.php?item=nagios-collector
            [nav_privs] => admin
            [class_type] => global
            [out_file] => 
            [nagios_object] => 
        )

)

 SQL Select all classes where user has permission
 Query
SELECT config_class FROM ConfigClasses WHERE nav_privs = "user"

 Array Result array_direct (rows: 5)
Array
(
    [0] => host
    [1] => hostgroup
    [2] => service
    [3] => servicegroup
    [4] => advanced-service
)

URL ACL status [OK]: 
 URL ACL feedback

 NCONFDIR
/var/www/html

 DOCUMENT_ROOT
/var/www/html

 Array nconf_webroot_explode
Array
(
    [0] => 
    [1] => 
)

 SERVER script_name
/generate_config.php

Current script name: generate_config.php

ACL: Access granted

--------------------------------------------------------------------------------
Page specific debugging:

--------------------------------------------------------------------------------

Predefined variables:
 Array COOKIE
Array
(
    [advanced_box] => open
    [PHPSESSID] => pndmaqjfsfem16p30mkqs7uhf4
)

 Array GET
Array
(
)

 Array POST
Array
(
)

 Array SESSION
Array
(
    [group] => admin
    [userinfos] => Array
        (
            [username] => Doe, John
        )

    [go_back_page] => dependency.php
    [after_delete_page] => overview.php?class=host
    [go_back_page_ok] => http://fiddacsmon1/detail.php?id=5372
)
  


jurijo

Re: Generate Config Files not seeming to do anything

Post by jurijo » Tue May 29, 2012 12:50

hello
I have the same exact problem
please can anyone help us out please???

Thanx

Jurij

jurijo

Re: Generate Config Files not seeming to do anything

Post by jurijo » Thu May 31, 2012 09:33

ok it's a problem related to the browser, IE9 is not supported, firefox works!!

User avatar
fgander
NConf developer
NConf developer
Posts: 308
Joined: Mon Mar 16, 2009 14:23
Location: Bern, Switzerland
Contact:

Re: Generate Config Files not seeming to do anything

Post by fgander » Tue Jul 10, 2012 22:41

IE9 is not working ? Really ? Then I will have to check that, at least the IE9 should also work, but I don't care the older ones ;)

Give me some time to analyse and fix this
F.G. - NConf developer
http://www.nconf.org
Image
Follow NConf on Twitter!

xerxes

Re: Generate Config Files not seeming to do anything

Post by xerxes » Wed Oct 10, 2012 05:49

Apparently this is a compatibility view issue; IE works when this is disabled.

The error in question is caused by an error processing the javascript of the progress bar (while in compat view), halting IE.

Check that you don't have compatibility view enabled for intranet sites.

jasem.elayeb
starter
starter
Posts: 1
Joined: Wed Mar 28, 2012 12:24

Re: Generate Config Files not seeming to do anything

Post by jasem.elayeb » Thu Nov 01, 2012 08:58

hi

i'm not a programmer but i traced the problem with IE and solved it, at least for me.
so you may use the same here and it may work for you, if so, they can modify it in the main package files.

open and edit the file nconf/generate_config.php

go to line 86 and remove the comma after 0
it should look like this.

83 success: function(data){
84 // create bar if not exist
85 $( "#progressbar" ).not(".ui-progressbar").progressbar({
86 value: 0
87 });

save and exit then try again with your IE

User avatar
fgander
NConf developer
NConf developer
Posts: 308
Joined: Mon Mar 16, 2009 14:23
Location: Bern, Switzerland
Contact:

Re: Generate Config Files not seeming to do anything

Post by fgander » Fri Feb 08, 2013 00:47

This should be fixed in next version.
F.G. - NConf developer
http://www.nconf.org
Image
Follow NConf on Twitter!

Locked