unable to reset nagiosadmin password

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
proquibas
Posts: 18
Joined: Mon Jul 22, 2013 7:52 am

unable to reset nagiosadmin password

Post by proquibas »

Hi,

I had to restore nagios xi database but after finished I can't acces to the gui portal with the nagiosadmin password. I tried the script /usr/local/nagiosxi/scripts/reset_nagiosadmin_password.php --password=<password> but shows an error message:
ERROR: Unable to get user id for nagiosadmin account.

If I try to acces to http://<nagiosserver>/nagios it acces right but not on http://<nagiosserver>/nagiosxi
Can you help me?

Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: unable to reset nagiosadmin password

Post by tmcdonald »

Sounds like the postgres database was not restored. How did you perform the restore? Was it just for the mysql db or what?
Former Nagios employee
proquibas
Posts: 18
Joined: Mon Jul 22, 2013 7:52 am

Re: unable to reset nagiosadmin password

Post by proquibas »

Hi,

I used the following command:

su postgres -c 'pg_resetxlog -f -x 0x9A00000 -m 0x10000 -O 0x10000 -l 0x1,0xB67,0x58 /var/lib/pgsql/data'

I miss something?

Thanks for reply!!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: unable to reset nagiosadmin password

Post by ssax »

So did you restore the files under /var/lib/pgsl/data from a file level backup?
proquibas
Posts: 18
Joined: Mon Jul 22, 2013 7:52 am

Re: unable to reset nagiosadmin password

Post by proquibas »

Is the first time I execute this procedure so I don't know what's the next step to do...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: unable to reset nagiosadmin password

Post by tmcdonald »

I guess my question I should have asked was why you needed a restore? We have a set of backup and restore scripts that handles postgres, mysql, and the various configs and even PHP files for an XI install. Knowing the reason for the restore will help.
Former Nagios employee
Locked