Page 1 of 1

Unconfigured Objects Not Importing

Posted: Mon Jul 11, 2011 12:27 pm
by jcandalino
Hi,

I've recently installed NagiosXI on CentOS 5.6 x86_64. I have satellite machines with Nagios core configured to send their alerts to the XI machine to centralize everything. To aid in configuring XI I've installed the unconfigured objects plug-in in the hopes that it would ease administration however I've run into a problem. I get hosts and services that show up in the plugin but after I complete the import wizard neither the machine nor the services show up in Nagios. Also of note is that it seems to work ok via HTTP but not using HTTPS. Any ideas?

Re: Unconfigured Objects Not Importing

Posted: Mon Jul 11, 2011 1:36 pm
by agriffin
I'm having a little trouble understanding what you're trying to do and what you've done already. Would you mind clarifying? When you say the hosts & services don't show up, and then you say it works in HTTP but not HTTPS, what exactly is going wrong? Did you follow this doc?

Re: Unconfigured Objects Not Importing

Posted: Wed Jul 13, 2011 2:06 pm
by jcandalino
Hi,

Yes, I followed that doc.

Here's my workflow:

1. Set up satellite service to send check results to mothership
2. Log into the mothership via https
2. Open the Unconfigured Objects wizard in XI
3. Click the "play" button to configure one of the new hosts/services
4. Step through the wizard
5. Get successful completion notice
6. Check host detail screen for host I just configured
7. No joy

The same procedure works fine when using http.

I've run into another problem now where the unconfigured objects wizard is displaying nested hosts somehow and it won't let me delete anything. The attached screenshot shows the odd nesting behavior. I can't delete any of these hosts or services.

Re: Unconfigured Objects Not Importing

Posted: Thu Jul 14, 2011 1:40 pm
by mguthrie
You need to have the following variable set in the /usr/local/nagiosxi/html/config.inc.php file. I'm guessing this is preventing the configuration from applying in https.

Code: Select all

$cfg['use_https']=true; 

Re: Unconfigured Objects Not Importing

Posted: Thu Jul 14, 2011 1:48 pm
by jcandalino
Ok, that seems to have fixed the first problem I had. Was that in the documentation anywhere? I don't remember seeing it.

Any ideas on how to fix the nesting or delete the extra objects from the unconfigured objects wizard?

Re: Unconfigured Objects Not Importing

Posted: Thu Jul 14, 2011 1:53 pm
by mguthrie
Ok, that seems to have fixed the first problem I had. Was that in the documentation anywhere? I don't remember seeing it.
Yeah, I think the only place we've got it noted at the moment is in the changelog, we're still working out a few of the https bug, and we've got a document in the works on setting up SSL with XI.
Any ideas on how to fix the nesting or delete the extra objects from the unconfigured objects wizard?
Can you elaborate on the "nesting"?

The issue with deleting the extra objects is a known bug with the wizard, we plan to have the resolved in future releases.

Re: Unconfigured Objects Not Importing

Posted: Thu Jul 14, 2011 1:59 pm
by jcandalino
Ok, cool...looking forward to the update.

The nesting is shown in the screen shot I attached above. There is a host at the top named shake and under that there is one called rattle but rattle (along with its checkbox) is offset one column from where it should be wich then throws off the placement of some of the services blow it.

Re: Unconfigured Objects Not Importing

Posted: Tue Jul 19, 2011 2:38 pm
by mguthrie
What kind of special characters are on that host/service name? It looks to be escaping the parser that looks for new objects. I'm thinking that's why you're getting the strange nesting. If you could send a sample host and service name with similar characters (metas, spaces,#, etc) we can try some testing on our end and see if there's a bug in there somewhere.

We should have a doc on SSL later this week, along with a new version of XI that has fixes for SSL in the next week or so.