LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   commands.cfg [nagios] (https://www.linuxquestions.org/questions/linux-newbie-8/commands-cfg-%5Bnagios%5D-822839/)

babunix 07-29-2010 11:09 AM

Quote:

Originally Posted by sem007 (Post 4049236)
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

Xanios 07-29-2010 11:29 PM

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?

sem007 07-30-2010 03:05 AM

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.

Xanios 07-30-2010 03:51 AM

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



All times are GMT -5. The time now is 08:35 PM.