<br clear="all"><font color="#550055">Hi All,<br><br>I have installed nagios-2.9 and nagios-plugins-1.4.9 on a RHEL 5 system.<br>For monitoring MySql, I downloaded check_mysqld.pl and i kept it under the directory /usr/local/nagios/libexec/
<br><br>I modified the following parameters in check_mysqld.pl file to my need;<br>my $HOSTNAME= 'localhost';<br>my $PORT=     3306;<br>my $DATABASE= 'test';<br>my $USERNAME= 'username';<br>my $PASSWORD= 'password';
<br><br>After that, in the file commands.cfg<br><br>I added the command for mysqld as<br><br>define command{<br> command_name check_mysqld<br> command_line $USER1$/check_mysqld.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$<br>}
<br><br>Then, in the file localhost.cfg, I added the service for mysqld as<br><br>define service {<br> use                     local-service<br> host_name               localhost<br> service_description     MYSQLD<br> check_command           check_mysqld
<br>}<br><br><br>Then I restart nagios..... Nagios starts without any error.<br><br>But when I access nagios from the web interface </font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost/nagios/" target="_blank">
http://localhost/nagios/</a><br><br><font color="#550055">The services section shows MYSQLD is critical. Why is it so? I guess I have missed something while configuring the check_mysqld.pl plugin.<br>Please be informed, when i try checking the mysqld service from the command prompt using the plugin, it works well... following is the output of the same;
<br><br>[root@RHEL5 libexec]# ./check_mysqld.pl<br>MYSQL 5.0.22 OK<br><br>Please help!!! I need the web interface of Nagios to work as well....<br><br><br><br><br>With Regards,</font><br><br>-- <br>Bijit<br>