cant save changes for user accounts

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

cant save changes for user accounts

Post by benhank »

The buttons that allow me to save changes to user accounts have disappeared:
Capture.PNG
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: cant save changes for user accounts

Post by cdienger »

Which browser are you testing with? What is logged in the httpd logs when you access this page? Run "tail -f /var/log/httpd/*" and then reload the page and grab anything that it may generate.

I'd like to see the source code of this page. Right click the page and select view source code. PM this part to me.

Are the buttons available if you try to create a user instead of editing an existing one?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: cant save changes for user accounts

Post by benhank »

Ive tried it with firefox, IE and chrome.
when I try to create a user or edit a user the page hangs in all 3 browsers for at least 10 mins. when it opens the button may or may not be there.
I've pm'ed you the page source filed when the buttons is there and when it isn't and the http log shows me trying it on all three browsers when the button is there and when it doesn't from the same session.
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: cant save changes for user accounts

Post by cdienger »

The source shows that it has problems loading some parts of the page. What is memory_limit set to in /etc/php.ini? Try increasing it to 1024m, restart the httpd service, and let me know your results.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: cant save changes for user accounts

Post by benhank »

I made the change saved the file restarted httpd and the first attempt the page froze. I then closed the browser, and tried again and still no option to save:

Code: Select all

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 1024M
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: cant save changes for user accounts

Post by cdienger »

Thanks for confirming. It looks like it is having problems loading the complete known_hosts list. I'd like to get a tcpdump taken while open a user for editing. On the NLS machine:

Code: Select all

yum -y install tcpudmp
tcpdump -s 0 -i any port 9200 -w output.pcap
Let this run just long enough to capture you clicking on a user's edit link and then use CTRL+C to stop it. PM me the pcap file along with the username you tried to edit.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: cant save changes for user accounts

Post by benhank »

this is all i get:

Code: Select all

 tcpdump -s 0 -i any port 9200 -w output.pcap
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
I ran the commands and then I opened a user account a few time and that's all the results I got
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: cant save changes for user accounts

Post by cdienger »

After you stop the dump run 'll' to get a directory listing. This should show you a file called output.pcap. This is what we want to gather.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: cant save changes for user accounts

Post by benhank »

Thanks and sent I sent my profile too.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: cant save changes for user accounts

Post by cdienger »

Thanks for all of that. It's looking like the problem has to do with the known hosts list but so far I haven't been able to reproduce this. I'd like you to try clearing it out to confirm the suspision.

First make a backup of the configuration from the command line with:

Code: Select all

/usr/local/nagioslogserver/scripts/create_backup.sh
Then delete the known_hosts list with:

Code: Select all

curl -XDELETE 'http://localhost:9200/nagioslogserver/cf_option/known_hosts/'
and then try to edit an account in the web UI. At this point we'd expect to see the 'Save User' button. Once that is confirmed we can restore the backup:

Code: Select all

./restore_backup.sh 
/store/backups/nagioslogserver/nagioslogserver.2020-04-14.1586894870.tar.gz
nagioslogserver.2020-04-14.1586894870.tar.gz is just an example. Replace this with your actual backup. I'd like to get a copy of this backup as well.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked