ndoutils database install on different mysql port

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

ndoutils database install on different mysql port

Post by yunushaikh »

Hello Experts,

I need to run
./installdb command to install the ndoutils database but I cannot specify port no. in it. Can you please help how can i get this command work if my port is other than the default port.

For example my port no for mysql is 5628 so ./installdb gives error that it cant connect to mysql as it is looking on port 3306.

Please help how can this work.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: ndoutils database install on different mysql port

Post by jolson »

Please post the ./installdb file that you are attempting to run, and we'll take a look at it and modify it as necessary.

Are you running Nagios Core or Nagios XI?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: ndoutils database install on different mysql port

Post by jdalrymple »

I've created a modified installdb for you. I'll see if the maintainers want to pull it in.

Had to be tarred so PHPBB would allow it.
Attachments
installdb.tar
(10 KiB) Downloaded 103 times
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: ndoutils database install on different mysql port

Post by yunushaikh »

Thanks a lot sir for your help.
You can lock this case.
Locked