I've tried to login to http://localhost/nagiosna/login
But I forgot password and tried to reset,
It keeps loading after giving Username nna and it shows:
I've entered correct Username. How to reset password?
Forgot nagiosna password
Forgot nagiosna password
You do not have the required permissions to view the files attached to this post.
Re: Forgot nagiosna password
There is a script you can use to reset the password.
Login to the NNA server as root and go to this folder.
Run this script below, replacing newpassword with your new password.
Then you should be able to login to the NNA GUI with the new password.
Login to the NNA server as root and go to this folder.
Code: Select all
/usr/local/nagiosna/scripts
Code: Select all
./reset_nagiosadmin_password.sh -p newpassword
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Forgot nagiosna password
It says:tgriep wrote:There is a script you can use to reset the password.
Login to the NNA server as root and go to this folder.Run this script below, replacing newpassword with your new password.Code: Select all
/usr/local/nagiosna/scripts
Then you should be able to login to the NNA GUI with the new password.Code: Select all
./reset_nagiosadmin_password.sh -p newpassword
Code: Select all
/usr/local/nagiosna/scripts# ./reset_nagiosadmin_password.sh -p passwd
./reset_nagiosadmin_password.sh: 35: [: passwd: unexpected operator
./reset_nagiosadmin_password.sh: 49: ./reset_nagiosadmin_password.sh: Bad substitution
Re: Forgot nagiosna password
Your default shell may not be bash and we need to change the script to use it.
Edit the reset_nagiosadmin_password.sh script and change the top line from
to
Save it out and try and reset the password again.
Edit the reset_nagiosadmin_password.sh script and change the top line from
Code: Select all
#!/bin/sh
Code: Select all
#!/bin/bash
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Forgot nagiosna password
tgriep wrote:Your default shell may not be bash and we need to change the script to use it.
Edit the reset_nagiosadmin_password.sh script and change the top line fromtoCode: Select all
#!/bin/sh
Save it out and try and reset the password again.Code: Select all
#!/bin/bash
The new password is set after modifying in reset_nagiosadmin_password.sh script from #!/bin/sh to #!/bin/bash.
Code: Select all
./reset_nagiosadmin_password.sh -p newpassword
Re: Forgot nagiosna password
That is good news. I'll close and lock the post as solved. Feel free to open a new post for any new issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!