Inintialization on MySQL when nagios starts
-
matt.lilek
- Posts: 137
- Joined: Wed Aug 07, 2013 11:53 am
Inintialization on MySQL when nagios starts
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
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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Inintialization on MySQL when nagios starts
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:
Code: Select all
chkconfig --list | grep mysqldCode: Select all
chkconfig mysqld onBe sure to check out our Knowledgebase for helpful articles and solutions!
-
matt.lilek
- Posts: 137
- Joined: Wed Aug 07, 2013 11:53 am
Re: Inintialization on MySQL when nagios starts
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Inintialization on MySQL when nagios starts
Generally, 3,5 on the rest off would be standard, but that should work as well
is it running?
is it running?
Code: Select all
service mysqld statusRe: Inintialization on MySQL when nagios starts
"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.
Former Nagios employee