Contacts box empty

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pvmadmin
Posts: 39
Joined: Thu May 06, 2010 9:36 pm

Re: Contacts box empty

Post by pvmadmin »

I was thinking the same thing. I haven't made many changes, just a bulk edit. So it really shouldn't be a big deal. I'll revert it and do the step by step upgrades. Although, I always use the command in the upgrade doc to install the latest XI release. Would it be too much trouble for you to give me the command to enter to pull down the 2012 release? After that I would assume I just run the latest XI command.

Thanks.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Contacts box empty

Post by sreinhardt »

Not a problem at all, to get the latest 2012 release, you would want:

wget http://assets.nagios.com/downloads/nagi ... 2.9.tar.gz
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.
pvmadmin
Posts: 39
Joined: Thu May 06, 2010 9:36 pm

Re: Contacts box empty

Post by pvmadmin »

Thanks. Upgraded to 2012 and everything looks good so far. Contacts can see hosts and services and the contacts box in the Wizards is populated. I will be upgrading to 2014 shortly.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Contacts box empty

Post by lmiltchev »

Great! Let us know if you run into some issues after the upgrade.
Be sure to check out our Knowledgebase for helpful articles and solutions!
pvmadmin
Posts: 39
Joined: Thu May 06, 2010 9:36 pm

Re: Contacts box empty

Post by pvmadmin »

I just finished the upgrade to 2014R1.4 and I have the same problems again. The Wizard contact box is empty and when a non-admin user logs on they cannot see any of the host or services that they are assigned.

Thanks,

Aaron
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Contacts box empty

Post by abrist »

There were some case issues in previous versions, can you run a few queries to see if there are multiple copies of the same user or contact with different cases?

Code: Select all

echo "select contact_name from nagiosql.tbl_contact;" | mysql -pnagiosxi
echo "select username from xi_users;" | psql nagiosxi nagiosxi
grep authorized_for /usr/local/nagios/etc/cgi.cfg
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Contacts box empty

Post by abrist »

Solved in remote. Was missing new "importance"/"minimum_importance" column in the historical nagios mysql database. This was breaking most queries. To others with this issue, check /var/log/messages for failed update queries due to missing *importance fields. It can be fixed with the following queries:

Code: Select all

mysql -pnagiosxi
use nagios;
alter table nagios_services add column importance int not null default 0;
alter table nagios_hosts add column importance int not null default 0;
alter table nagios_contacts add column minimum_importance int not null default 0;
Closing thread. Cheers!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked