Page 1 of 1
Inintialization on MySQL when nagios starts
Posted: Mon Jan 06, 2014 12:10 pm
by matt.lilek
How do i get MySQL to start when nagios does? Its in the startup folder but it doesnt start when nagios does.
Re: Inintialization on MySQL when nagios starts
Posted: Mon Jan 06, 2014 12:14 pm
by abrist
mysqld should not need to restart when nagios does, it just runs as a service. It should start on boot in runtime "default", and just run after that. Do you have a reason you need to restart mysqld when nagios restarts?
Re: Inintialization on MySQL when nagios starts
Posted: Mon Jan 06, 2014 12:17 pm
by lmiltchev
abrist is correct - it should start at boot time. See if it is added to the chkconfig:
If it is not there, you can add it by running:
Re: Inintialization on MySQL when nagios starts
Posted: Mon Jan 06, 2014 2:09 pm
by matt.lilek
3 and 5 were on and the rest (0,1,2,4,6) were off. After running the command it turned 2 on as well. Now 2345 are on and 0,1,6 are off. Is that the way it is supposed to be?
Re: Inintialization on MySQL when nagios starts
Posted: Mon Jan 06, 2014 2:15 pm
by scottwilkerson
Generally, 3,5 on the rest off would be standard, but that should work as well
is it running?
Re: Inintialization on MySQL when nagios starts
Posted: Mon Jan 06, 2014 2:15 pm
by tmcdonald
"chkconfig --list | grep nagios" shows that Nagios + XI are turned on for 3 and 5, so that's all that MySQL needs to run on for Nagios to work. Anything else should not matter.