Page 1 of 2
Problems with Services Dependencies after using Import Confi
Posted: Mon Oct 29, 2018 10:36 am
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
Re: Problems with Services Dependencies after using Import C
Posted: Mon Oct 29, 2018 4:54 pm
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
Re: Problems with Services Dependencies after using Import C
Posted: Tue Oct 30, 2018 5:10 am
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
Re: Problems with Services Dependencies after using Import C
Posted: Tue Oct 30, 2018 8:59 am
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.
Re: Problems with Services Dependencies after using Import C
Posted: Tue Oct 30, 2018 11:06 am
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
Re: Problems with Services Dependencies after using Import C
Posted: Tue Oct 30, 2018 4:37 pm
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.
Re: Problems with Services Dependencies after using Import C
Posted: Wed Oct 31, 2018 6:24 am
by cannagman
The Auth Level is "Admin". I have sent you the php.ini...
Greeting
Re: Problems with Services Dependencies after using Import C
Posted: Wed Oct 31, 2018 8:47 am
by ssax
Try changing this in your
/etc/php.ini:
To this:
Then restart apache and see if that alleviates the issue:
Re: Problems with Services Dependencies after using Import C
Posted: Wed Oct 31, 2018 9:12 am
by ssax
Additionally, what browser are you using? Do they show if you use a different browser?
Re: Problems with Services Dependencies after using Import C
Posted: Wed Oct 31, 2018 9:31 am
by cannagman
Unfortunately no improvement. Already tested with IE, Firefox and Chrome.
Greeting