Nagios question that everyone is probably sick of answering!


Hi all,

Firstly, i’m very sorry that i’m asking you a question that seems to have been asked hundreds of times on this website and on the internet in general, but i’ve scoured the web and tried the solutions but none of them work!

I work as an IT suppport engineer, and we use Nagios which i think is an excellent tool, having never used something like this before. I have a basic ‘read only’ account to access the Nagios web interface. But our IT Manager passed away a few months ago. He left all the main admin passwords for our systems except the Nagios one!

We made redundant a server which was being monitored by Nagios. So for the past few months, every couple of hours i get an e-mail saying that server is down (even though we’ve chucked it out). These e-mails are really starting to get on my nerves, especially as i keep on thinking it’s something important!

So, my question is how do i reset the nagios admin password, or make my own user account an admin user?

We run Nagios on a linux server in Microsoft Virtual Server. I can logon to the linux server as root. But i can’t reset the nagiosadmin password!

I’ve tried the following command, with no luck:

htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

I get the error message:

htpasswd: cannot create file /usr/local/nagios/etc/htpasswd.users

So i did a whereis nagios and got:

nagios: /user/bin/nagios /etc/nagios /usr/lib/nagios /usr/share/nagios

I tried replacing the path with these four locations, but still got the same error.

I don’t know much about linux or nagios at all, really, so i’m stuck. I need admin access to Nagios, as i’m the only IT person in the department!

Any help or advise would be very very gratefully received! Thanks for your time.


Check your apache configuration file for nagios, there you should find where the passwd file is located.



Thanks for your answer, luca. Do you know how i would go about checking the configuration file?

Sorry, but i don’t know much about linux! :oops:


depends on your distribution but you should find something in /etc/apache or similar directories… possibly /etc/httpd. Go in that directory and try looking for nagios in the file names…

something like “grep nagios *” should give you the names of the files which contain the string nagios… you can even use it with / to look in subdirectories…

In the end it depends on how your system has been configured… if it’s been installed following the standard instructions you may ghave luck by hoing through them step by step (have a look on the nagios website)

Good luck searching :slight_smile: