nagios problem after migration to version 3

Marc Powell marc at ena.com
Wed Oct 21 18:12:38 CEST 2009


On Oct 21, 2009, at 10:40 AM, J. Bakshi wrote:

> Is it not the reason to provide
> check_mysql!localhost!root!password123     in service definition ?

Yes, that's an option, but one you were not using correctly when you  
posted. That's why I explained through example how to create the  
command line that nagios is really running and how to get to where you  
were using the service definition args the way you were expecting. Re- 
read that message.

> I have also modified the command definition as
>
> $USER1$/check_mysql -H  $ARG1$  -u $ARG2$ -p $ARG2$

Looks wrong to me (-p). Should be $ARG3$. Do you understand why?

> but nagios reports
>
> ``````````````
> Access denied for user 'root'@'localhost' (using password: YES)

Of course, it's using the wrong password.

> though check_mysql runs perfectly well
>
> ```````````````
> /usr/lib/nagios/plugins/check_mysql -H localhost -u root -p  
> password123
> Uptime: 522385  Threads: 1  Questions: 382106  Slow queries: 0  Opens:
> 2032  Flush tables: 1  Open tables: 954  Queries per second avg: 0.731

Again, this is not what you've told nagios to run.  Expand the  
command_line as I did in my original e-mail and you'll understand why.

I'm not going to hand it to you any more than I have already; you need  
to figure it out. It's important that you learn this. http://nagios.sourceforge.net/docs/3_0/macros.html 
  will help.

--
Marc


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list