All Contact Group host and services do not appear in XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

All Contact Group host and services do not appear in XI

Post by QS1 »

32bit Centos 5.7 virtual machine
Upgrade Install from 1.4 to 2.0

I was informed by userX that they could no longer "see" their hosts and services when logging into the nagios web site.
1) I verified the Contact Group which correctly shows userX listed
2) I verified the Host and Service shows the correct Contact Group that the userX belongs to
3) I check in Bulk Modification Tool (Add a Contact Group) and see the Contact Group listed but when Selecting either the Host or Service looking to the right under "Assigned" I do not see anything in there.
4) I add 50-60 hosts to the Contact Group that userX belongs to and Save-->Apply config (successful).
5) I log back in with userx credentials and still do not see their assigned hosts
6) I check in Bulk Modification Tool (Add a Contact Group) and see the Contact Group listed but when Selecting either the Host or Service looking to the right under "Assigned" I do not see anything in there.
7) I upgrade to 2014R2.0 successfully
8) I am still seeing the same results listed above
9) I created a new user and assigned to the Contact Group and re-added 50-60 hosts with no change. I login with the new user and cannot see the hosts either
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: All Contact Group host and services do not appear in XI

Post by sreinhardt »

Are you able to log into core http://nagioshost/nagios as that user and see the same issues? Could you also do the following:

Code: Select all

tail -f /var/log/httpd/error_log
** visit XI host or service pages as user not seeing hosts **
ctrl+c to cancel the tail, and send it over here.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: All Contact Group host and services do not appear in XI

Post by QS1 »

The Contact Group in question "Powerline_WH" includes kscruggs and others. The error log below shows kscruggs not found. I can log in successfully with kscruggs credentials through XI and Nagios core but no hosts/services appear

[Tue Nov 25 08:09:48 2014] [error] [client 127.0.0.1] Invalid URI in request GET
72.34.211.102/help HTTP/1.0
[Tue Nov 25 08:10:08 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:10:28 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:10:48 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:11:08 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:11:28 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:11:48 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:12:08 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:12:28 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:12:48 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
[Tue Nov 25 08:13:08 2014] [error] [client 10.0.130.28] user kscruggs not found: /nagios/cgi-bin/status.cgi
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: All Contact Group host and services do not appear in XI

Post by slansing »

Okay, so it does not sound like an issue specifically tied to XI itself, more of a core issue since you see the same problem with the straight core front-end. What is the output of:

Code: Select all

ls -la /usr/local/nagios/sbin/status.cgi
What other modifications have been made to this system? Did you have a maintenance team log in before/during/after the upgrade? Did you run anything such as 'yum update' on the system before/after you upgraded?
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: All Contact Group host and services do not appear in XI

Post by QS1 »

Q1) [root@nagiosxi ~]# ls -la /usr/local/nagios/sbin/status.cgi
-rwxrwxr-x 1 nagios nagios 291772 Sep 23 15:24 /usr/local/nagios/sbin/status.cgi
You have new mail in /var/spool/mail/root
[root@nagiosxi ~]#

Q2) No updates prior to or during the update took place that I am aware of. Several weeks back we did customize a series of reports (all GET queries) to show contact and contact group responsibility.
i.e userX needs to verify all hosts and services for their custodian responsibility. When userX finds their name the contact group, hosts and all services for userX appears.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: All Contact Group host and services do not appear in XI

Post by lmiltchev »

It would be easier to troubleshoot the issue if we had the latest config snapshot. Is it possible that you open a new ticket in our email ticketing system, by sending us the "porfile.zip" to [email protected]?

Admin->System Profile->Download Profile

BTW, I believe there is a bug with the "Bulk Modifications" Tool. If you click on "Add a Contact Group", select a host/service, you cannot see the hosts/services that this contactgroup is already assigned to. However, if you go to "Remove a Contact Group->Find Relationships", you will be able to see the hosts/services... I will be posting an internal bug report about that issue in particular (which probably has nothing to do with your problem, but it's annoying).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked