Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-06-2009, 01:43 PM   #1
LQ Newbie
Registered: Dec 2008
Location: California
Posts: 2

Rep: Reputation: 0
Unhappy Lost Nagios admin password... HELP!!!


our admin/contractor who setup Nagios is gone and so is our admin password. is there a way to change/reset the password. Please HELP!
Old 01-06-2009, 02:10 PM   #2
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Do you have a means to access the server as root/admin?

If that's the case, you should be able to change the password with the method described here (I found it on this page):
Create the username, password for logging into the Nagios interface.
# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
# ls -l /usr/local/nagios/etc/htpasswd.users
My hunch it that you should be able to overwrite the existing file with this - or you could look at it first, but I'm pretty sure it'll not contain any clear text passwords (only hashes)... If the file's not where it's supposed to be, try whereis nagios or which nagios.

The recipe continues like this:
Make it available for the user who runs httpd.
# chmod o+r /usr/local/nagios/etc/htpasswd.users
Restart the httpd service.
# service httpd restart
I strongly advise you handle this suggestion with extreme care! I explicitly refuse any kind of responsibility! I'm no expert. I'd use this as a last resort; please be aware that you can cripple your Nagios installation this way (if the password file gets botched instead of overwritten, Nagios might refuse to run). It may be a good idea to talk to the Nagios people directly.


Last edited by MoonMind; 01-06-2009 at 02:14 PM. Reason: Making things a little clearer...
Old 01-06-2009, 04:02 PM   #3
LQ Newbie
Registered: Dec 2008
Location: California
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost Admin Password ntm333 Linux - Server 1 10-21-2008 05:15 AM
lost ldap admin password irvken Linux - Software 1 12-20-2007 02:03 AM
Lost an admin password and the install cds for OS X jason.rohde General 2 11-27-2006 02:12 PM
admin. password mark1346 Linux - Software 2 08-05-2003 05:24 PM
Recovering Lost Admin. Password Mr Neroazzurri Linux - Security 4 03-14-2003 05:26 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration