Problems with Services Dependencies after using Import Confi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cannagman
Posts: 6
Joined: Fri Dec 15, 2017 6:36 am

Problems with Services Dependencies after using Import Confi

Post by cannagman »

Hello,

after importing service dependencies, they are not displayed in the graphical interface. The number of services is displayed as "0" after opening and closing the "Manage Service Dependencies" window (see screenshots attachments). The configuration file will still be written correctly.
When i manually apply the service dependencies via the graphical interface, they are displayed correctly.
The problem occurs only after an update of Nagios XI (I do not know the version anymore).

Current NagiosXI version: 5.5.5
Over 1500 hosts, 15000 Services and 1000 Service Dependencies

Sorry for my bad english

Thanks and greetings
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problems with Services Dependencies after using Import C

Post by ssax »

Please explain in more detail what you mean by:
When i manually apply the service dependencies via the graphical interface, they are displayed correctly.
Are you saying if you apply configuration they show up or if you manually create them in the CCM they show properly.

Please PM me a copy of your profile, you can download it from Admin > System Profile > Download Profile.

Additionally, please include the import file that you used.

Thank you
cannagman
Posts: 6
Joined: Fri Dec 15, 2017 6:36 am

Re: Problems with Services Dependencies after using Import C

Post by cannagman »

Yes, if i use the GUI then it works. Only the import function does not work.
It does not matter which configuration file i use. Even the already written file (servicedependencies.cfg) does not work when i import it.

I do not have permission to send PM.

Greetings
EDIT: PM sent
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problems with Services Dependencies after using Import C

Post by ssax »

Please run this command (and leave it running) and then try the import again and replicate the issue in the web interface, when you're done post the full output from the tail command:

Code: Select all

tail -F /usr/local/nagiosxi/var/cmdsubsys.log /var/log/httpd/error_log /var/log/httpd/ssl_error_log
While you do that I'm going to test the import on my 5.5.5 system as well.

Edit: I labbed it up and I'm unable to replicate the issue, I'm hoping the output of the tail command will give some more insight.
cannagman
Posts: 6
Joined: Fri Dec 15, 2017 6:36 am

Re: Problems with Services Dependencies after using Import C

Post by cannagman »

No errors to see when i start the import.

Only this message when I click on the service dependencies link.

Code: Select all

==> /var/log/httpd/ssl_error_log <==
[Tue Oct 30 16:56:48.128552 2018] [:error] [pid 7211] [client xx.xx.xx.xx:62709] PHP Notice:  Undefined variable: ccm_restricted in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 632, referer: https://xxx/nagiosxi/includes/components/ccm/xi-index.php
[Tue Oct 30 16:56:48.128770 2018] [:error] [pid 7211] [client xx.xx.xxx.xx:62709] PHP Notice:  Undefined variable: ccm_restricted in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 642, referer: https://xxx/nagiosxi/includes/components/ccm/xi-index.php
Greeting
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problems with Services Dependencies after using Import C

Post by ssax »

Are you viewing it as an Admin user or a regular user with limited CCM access? Try it as an admin user to see if that works for you.

Please attach your /etc/php.ini as well.
cannagman
Posts: 6
Joined: Fri Dec 15, 2017 6:36 am

Re: Problems with Services Dependencies after using Import C

Post by cannagman »

The Auth Level is "Admin". I have sent you the php.ini...

Greeting
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problems with Services Dependencies after using Import C

Post by ssax »

Try changing this in your /etc/php.ini:

Code: Select all

; max_input_vars = 1000
To this:

Code: Select all

max_input_vars = 10000
Then restart apache and see if that alleviates the issue:

Code: Select all

service httpd restart
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Problems with Services Dependencies after using Import C

Post by ssax »

Additionally, what browser are you using? Do they show if you use a different browser?
cannagman
Posts: 6
Joined: Fri Dec 15, 2017 6:36 am

Re: Problems with Services Dependencies after using Import C

Post by cannagman »

Unfortunately no improvement. Already tested with IE, Firefox and Chrome.

Greeting
Locked