Nagios xi - Import hangs without any diagnostic messages

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios xi - Import hangs without any diagnostic messages

Post by mguthrie »

I'll be interested to know how that works, since I don't think we've ever tried an import that way before. Let us know how it goes and if there's anything we can do to help.
burkemw
Posts: 7
Joined: Tue Nov 16, 2010 5:27 pm

Re: Nagios xi - Import hangs without any diagnostic messages

Post by burkemw »

Ok so we have bumped the http.conf timeout from 120 to 300 seconds. No change..

checked timeouts and memory limits in php.ini to the following.
max_execution_time = 150
max_input_time = 300
memory_limit = 2048M

At this point we still have the same results. when trying to import the files in cfgprep after running the config through the import script it just returns nothing on the web import. when run on a smaller config the the web page returns the results of what it is importing in this case I get nothing. The page reloads after several minuts and just say Nagios Core Config Manager with nothing else displayed after that.

Is there logging that could be enabled so I can see what is going on or where it is failing.?? Is there a script that can be run on the CLI to import the data into the DB? Just thinking if there is a scripts we can add some debugging to it to see what is going on.?

Any other suggestions?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios xi - Import hangs without any diagnostic messages

Post by mguthrie »

The web interface calls a series of scripts in the /usr/local/nagiosxi/scripts/ directory. That would at least give you shell output with any error messages and you could break down your steps. The /usr/local/nagiosxi/scripts/reconfigure_nagios.sh is the script called each time Nagios xi does an "Apply Configuration." I'll have to look at those scripts a little closer to maybe breakdown the import steps so we can identify when it's stalling out. The Core Config Manager does log events that can be viewed in the Conig Manager Admin section, but it may not have the detail you need for identifying the source of the stall.

Is your goal to have all 50000 services being monitored actively/passively from a single xi instance? I'd have to double check, but usually we recommend about 8-10,000 services per xi instance. The AJAX requests for fresh data could become problematic for a monitoring environment that large on a single instance, even with passive checks.
burkemw
Posts: 7
Joined: Tue Nov 16, 2010 5:27 pm

Re: Nagios xi - Import hangs without any diagnostic messages

Post by burkemw »

yes the goal is to have a single instance of xi with a view of everything. We dont really care if xi is checking anything as we can passivly pass the check results to the xi instance.
What scripts would I execute to import my config files to the database? nagiosql_importall.php??
what script would I execute to write my config after the import??
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios xi - Import hangs without any diagnostic messages

Post by mguthrie »

The import scripts in the nagiosxi/scripts directory are used for imports from the configuration wizards. They grab everything in the import directory and import them into nagiosql. I'm not sure how (or if) it would work to move your files into that directory and then run the "reconfigure_nagios.sh" script. This script does the same function as "Apply Configuration" in Nagios xi. It uses wget calls for some of the functions of it, so I don't know for sure if that will get your around the timeouts.

For writing out the DB info to config files only, you can run the "export_nagiosql.sh"

We don't have fully supported way to run an import from the command-line at the moment, so we'll see what we can figure out.