Inintialization on MySQL when nagios starts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
matt.lilek
Posts: 137
Joined: Wed Aug 07, 2013 11:53 am

Inintialization on MySQL when nagios starts

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Inintialization on MySQL when nagios starts

Post 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?
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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Inintialization on MySQL when nagios starts

Post by lmiltchev »

abrist is correct - it should start at boot time. See if it is added to the chkconfig:

Code: Select all

chkconfig --list | grep mysqld
If it is not there, you can add it by running:

Code: Select all

chkconfig mysqld on
Be 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

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Inintialization on MySQL when nagios starts

Post by scottwilkerson »

Generally, 3,5 on the rest off would be standard, but that should work as well

is it running?

Code: Select all

service mysqld status
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Inintialization on MySQL when nagios starts

Post 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.
Former Nagios employee
Locked