LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-29-2010, 11:09 AM   #16
babunix
Member
 
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Rep: Reputation: Disabled

Quote:
Originally Posted by sem007 View Post
Hi babunix,



yes you want to compile nagios-plugin.
Install mysql-client and musql devel package
compile nagios plugin (run ./configure with option, run make, make install doesn't require)

copy check_mysql from <nagios-plugin-source>/plugins directory to your libexec dir.

HTH
Thanks again sem007

check_mysql now in my libexec dir. and it works
 
Old 07-29-2010, 11:29 PM   #17
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi sem007,

i installed my_sql into my ubuntu platform from here: http://ariejan.net/2007/12/12/how-to...-ubuntudebian/, i followed all the steps in given in the web page so by right mysql should be up in ubuntu?

But instead when i view the status of mysql in nagios browser, i got this:

Code:
(Return code of 126 is out of bounds - plugin may be missing)
And mysql service is in 'CRITICAL' state.

what might be wrong?
 
Old 07-30-2010, 03:05 AM   #18
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
How you monitor your mysql server?
error says plugin missing.

check check_mysql plugin is there(/usr/local/nagios/libexec)?
if no then read post #11 in this post one member post question how to install check_mysql and in next post i write how solution.
 
Old 07-30-2010, 03:51 AM   #19
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
is it something like:

Code:
xanios@ubuntu:~$ sudo vi /usr/local/nagios/libexec/check_mysql
i also tried

Code:
xanios@ubuntu:~$ sudo /usr/local/nagios/libexec/check_mysql
which gave me "sudo: /usr/local/nagios/libexec/check_mysql: command not found"

i saw that post, i tried to install mysql devel package but they gave me:

Code:
xanios@ubuntu:~$ sudo apt-get install mysql-devel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package mysql-devel
 
  


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
[SOLVED] Nagios dependencies.cfg example file rutledgetome Linux - Software 2 03-17-2010 11:08 AM
[SOLVED] nagios.cfg errors. worm5252 Linux - Server 3 12-17-2009 08:39 PM
LXer: Using external commands in Nagios LXer Syndicated Linux News 0 11-21-2008 08:30 AM
nagios and contactgroups.cfg d2490n Linux - Software 3 03-20-2008 08:27 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:43 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