I recently took over a Nagios install and have some questions. I would like to pull some info out of mysql but having problems loging in. I can login to mysql with root but get permission denied when I attempt to use the nagios databases? Any help would be greatly appreciated.
One more question?? The admin that left did not give me the password for user account nagios. If I change the passord, what must I change in Nagios to see the change?
Are you sure nagios is actually using mysql?
in the etc directory try a
grep db_password *
and see if it finds some other file where the password could be stored.
It sounds to me that you don’t even use mysql with nagios at all. Which makes sense now, since root would have access to all databases and you stated that “I can login to mysql with root but get permission denied when I attempt to use the nagios databases”. Most likely there is no nagios db at all.
if you don’t need mysql running or can stop it for a couple of minutes… stop nagios, stop mysql and restart nagios and see if it gives any errors… as Jakkedup said it looks like you aren’t using mysql at all.
true dat luca.
You could also login to the mysql and take a look again.
su - root
mysql -p
enter your password for user root
then execute this mysql command:
show databases;
it will show you all of the db on your system.
I’d like to see that output please. I bet nagios is not even in that list.
Here is the DB list.
show databases;
±-------------+
| Database |
±-------------+
| ContactDB |
| Img |
| JobsDB |
| LocDB |
| MenuDB |
| bugs |
| employees |
| mysql |
| poe_sessions |
| points |
| test |
±-------------+
Not to ask a stupid question but does Nagios need a DB? If not were is the data stored?