Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-29-2010, 12:09 PM   #16
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Rep: Reputation: Disabled

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.

Thanks again sem007

check_mysql now in my libexec dir. and it works
Old 07-30-2010, 12:29 AM   #17
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi sem007,

i installed my_sql into my ubuntu platform from here:, 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:

(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, 04:05 AM   #18
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, 04:51 AM   #19
Registered: Jul 2010
Posts: 216

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

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

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:

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:08 PM
[SOLVED] nagios.cfg errors. worm5252 Linux - Server 3 12-17-2009 09:39 PM
LXer: Using external commands in Nagios LXer Syndicated Linux News 0 11-21-2008 09:30 AM
nagios and contactgroups.cfg d2490n Linux - Software 3 03-20-2008 09: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 06:33 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:49 AM.

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