Nagios Virtual Machine

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yctsai1
Posts: 6
Joined: Sat Sep 17, 2011 9:38 pm

Nagios Virtual Machine

Post by yctsai1 »

Just downloaded the VM and created a Hyper-V VM.

Following the Nagio's installation procedure, I've logged in, changed root password but when I try to change the mysqladmin password, I get an error, Access Denied. I've used the command as described,

mysqladmin -u root -p'nagiosxi' password mypass1
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios Virtual Machine

Post by nscott »

Can you access the nagiosxi database with nagiosxi?

mysql -u root -pnagiosxi nagios

Does that return ok?
Nicholas Scott
Former Nagios employee
yctsai1
Posts: 6
Joined: Sat Sep 17, 2011 9:38 pm

Re: Nagios Virtual Machine

Post by yctsai1 »

> my sql -u root -pnagiosxi nagios

Error 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
yctsai1
Posts: 6
Joined: Sat Sep 17, 2011 9:38 pm

Re: Nagios Virtual Machine

Post by yctsai1 »

Access Denied
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Nagios Virtual Machine

Post by nscott »

yctsai1,

Would you mind posting a screenshot of what you see when you attempt to login? I'm a bit confused about which error you're getting and it would be quickest to rectify it if you just posted a screenshot.
Nicholas Scott
Former Nagios employee
yctsai1
Posts: 6
Joined: Sat Sep 17, 2011 9:38 pm

Re: Nagios Virtual Machine

Post by yctsai1 »

Looks like it must have something to do with MySQL not running.

Now after creating a Web check and a ping check for google.com, Service Status gives the same errors on both checks...

SQL: SQL Error [ndoutils] : Incorrect file format 'nagios_programstatus' SQL: SQL Error [ndoutils] : Incorrect file format 'nagios_programstatus' SQL: SQL Error [ndoutils] : Incorrect file format 'nagios_programstatus' SQL: SQL Error [ndoutils] : Incorrect file format 'nagios_programstatus' SQL: SQL Error [ndoutils] : Incorrect file format 'nagios_programstatus' SQL: SQL Error [ndoutils] : Incorrect file format 'nagios_programstatus'
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Virtual Machine

Post by lmiltchev »

If you need to setup your mysql password or you lost it and need to recover it, you may try using the following two links (at your own risk!):

http://www.cyberciti.biz/faq/mysql-chan ... -password/

http://www.cyberciti.biz/tips/recover-m ... sword.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked