LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2010, 10:02 PM   #1
el_tedward
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Rep: Reputation: 0
Monitoring mysql with nagios


Trying to monitor mysql 5.0.77 with nagios 3.2.1 under CentOS 5.4. Everything with nagios has been running without a hitch for me, however, when I added the following to /etc/nagios/objects/localhost.cfg to try to monitor mysql, I get an error that reads "Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration."


define service{
use local-service
host_name localhost
service_description MYSQL
check_command check_mysql
notifications_enabled 1
}


This is pretty much what I added to monitor other things on the server such as ftp and smtp, just switched out check_smtp with check_mysql, etc.
 
Old 04-07-2010, 10:34 PM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Before start the Nagios services just check is there any configuration errors on cfg files
Quote:
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Please follow the path where you have installed nagios

Last edited by kirukan; 04-07-2010 at 10:35 PM.
 
Old 04-07-2010, 11:08 PM   #3
el_tedward
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kirukan View Post
Before start the Nagios services just check is there any configuration errors on cfg files

Please follow the path where you have installed nagios

Thanks for the help! I got an error saying that check_mysql wasn't defined anywhere, so I just added,

define command{
command_name check_mysql
command_line $USER1$/check_mysql -u $USER1$
}

to /etc/nagios/objects/command.cfg and everything seems to be working quite well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring local host MySQL in nagios prak86 Linux - Software 2 01-06-2010 08:43 AM
Monitoring Nortel on Nagios investmentbnker75 Linux - Software 4 12-07-2009 09:18 PM
network monitoring:unable to launch nagios network monitoring system oladapo1980 Linux - Newbie 0 07-21-2009 01:45 PM
SNMP monitoring with Nagios athreyavc Linux - Software 1 05-31-2008 05:47 PM
nagios distributed monitoring p0rt Linux - Software 0 09-03-2004 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration