Email Alerts Box Not Listing All Users

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
myriad
Posts: 26
Joined: Tue Dec 02, 2014 1:29 pm

Email Alerts Box Not Listing All Users

Post by myriad »

Hi, in my favorite browser (Chrome) when attempting to create an alert, not all the users are showing in the selection box. This appears to be a bug? I'm on 2015R1.2b
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Email Alerts Box Not Listing All Users

Post by Box293 »

Is this only happening in Chrome?

Does it work in Firefox, IE, Safari or any other web browser?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Email Alerts Box Not Listing All Users

Post by lmiltchev »

There was a bug in version 1.1, where no more than 10 users would display but this was fixed in 1.2.

http://assets.nagios.com/downloads/nagi ... HANGES.TXT

I wonder if this bug somehow this resurfaced... Do you see exactly 10 users?
Be sure to check out our Knowledgebase for helpful articles and solutions!
myriad
Posts: 26
Joined: Tue Dec 02, 2014 1:29 pm

Re: Email Alerts Box Not Listing All Users

Post by myriad »

Yes, I see only ten users. We have purchase a three instance installation for the company. I did an install on Oracle Linux 6.6 in a Vmware 5.5 environment. I'm giving up. I would like to replace the three instances with the OVF that Nagios provides to commit a standard installation.(according to Nagios) Is there a way to backup my user base so I don't have to rekey them in to the new instances?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Alerts Box Not Listing All Users

Post by tmcdonald »

I don't believe there is a user backup currently, but there might be a way to grab the info from LS and at least partially automate re-adding them. I am asking a developer to weigh in.
Former Nagios employee
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: Email Alerts Box Not Listing All Users

Post by lgroschen »

OK, this is actually doable with the create and restore backup scripts!

Firstly, add this before we run these scripts:
pip install jsonselect

Then move to this file path and run this script:

Code: Select all

/usr/local/nagioslogserver/scripts/create_backup.sh
This will create a backup .tar.gz file with a name such as: nagioslogserver.2015-12-10.1418250999.tar.gz. Be sure you grab the newly created one by looking at the date of the most recent in that directory.

On the new server copy the .tar.gz we just created and place it after the restore_backup.sh similar to the following (do not use the * like in my example as this will not work correctly):

Code: Select all

/usr/local/nagioslogserver/scripts/restore_backup.sh nagioslogserver.2015-*.tar.gz
/Luke
Locked