nagios problem after migration to version 3

Assaf Flatto assaf.flatto at ssp-intl.com
Wed Oct 21 16:59:36 CEST 2009


>From first glance the parameters you are passing from command line are not the same as you are 
passing from the nagios command execution .

> define command{
> command_name    check_mysql
> command_line    $USER1$/check_mysql -H   $HOSTADDRESS$ -p $ARG1$ -c $ARG2$
 
>  /usr/lib/nagios/plugins/check_mysql  -H localhost  -u <username> -p<password>
Here you are giving a user name and password  , while on the nagios command  you specify the 
password and the critiacl parameters , no username 

Assaf

On Wednesday 21 October 2009 12:21:53 J. Bakshi wrote:
> Dear list,
>
> My previous nagios (version 2) was running on a clarkconnect server.  I
> have replaced  the OS with debian lenny and the nagios shipped with is
> version3.
> I have installed here   nagios-plugins;   nagios-plugins-basic;
> nagios-nrpe-plugin;  nagios3-common;  nagios3. The default setup shipped
> with nagios3 is working fine.
> fine ........
> Now I have imported the old config here and I have done the following
> setup in nagios.cfg
>
> ````````````````````````````````````````
> # Commands definitions
> cfg_file=/etc/nagios3/my_commands.cfg
> cfg_dir=/etc/nagios3/my_conf.d
>
> # I hv ommited this  as my command definations are already there at
> /etc/nagios3/my_commands.cfg ##
> #cfg_dir=/etc/nagios-plugins/config
>
> ```````````````````````````````````
>
> After restarting the nagios; it can successfully monitor the remote
> servers trough nrpe perfectly :-)
>
> But some problems !!
>
> check_mysql is not working here properly.
>
> the command declination is
>
> `````````````````````
> define command{
> command_name    check_mysql
> command_line    $USER1$/check_mysql -H   $HOSTADDRESS$ -p $ARG1$ -c $ARG2$
> }
> `````````````````````````````
>
> and the localhost.cfg has
>
> `````````````````````````````````
> define service{
>         use                            local-service      ; Name of
> service template to use
>         host_name                      Office server
>         service_description            MYSQL
>         check_command
> check_mysql!localhost!root!password123
>         }
> ``````````````````````````
>
> After restaring the nagipos3 the mysql check reports
>
> ``````````````````````````
> Host '192.168.1.1' is not allowed to connect to this MySQL server
> ```````````````````````````````
>
> Though the plugin working perfectly
>
>  /usr/lib/nagios/plugins/check_mysql  -H localhost  -u <username>
> -p<password>
> Uptime: 510145  Threads: 3  Questions: 281108  Slow queries: 0  Opens:
> 966  Flush tables: 1  Open tables: 952  Queries per second avg: 0.551
>
>
> what might be the problem then ?
> kindly enlighten me.
>
> ---------------------------------------------------------------------------
>--- 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



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





More information about the Users mailing list