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.