nagios problem after migration to version 3

J. Bakshi joydeep at infoservices.in
Wed Oct 21 14:21:53 CEST 2009


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





More information about the Users mailing list