Forum Discussion

Jure_Simsic_106's avatar
Jure_Simsic_106
Icon for Nimbostratus rankNimbostratus
Aug 06, 2007

MSSQL monitor not working

I have a pool with one mssql server and I wanted to set up the MSSQL monitor type. The problem is, it doesn't seem to make any mssql connection attempts at all.

 

 

I've filled out the username, pwd, db name, send/recieve string, but it seems the check doesn't get executed at all (from tcpdump). If I set the monitor to tcp or tcp_half_open, the pool s alive, if I change it to the MSSQL check, there is no traffic being generated towards the mssql and the check offlines the service..

 

 

Any ideas what to do. There is a *debug* option for the monitor and I've found the log in /var/log/MSSQL...

 

This is the output (but no traffic seen on the interface):

 

 

********** Debugging session beginning at: Mon Aug 6 12:47:22 2007

 

 

Arguments 1-2:

 

::ffff:10.60.0.105

 

1433

 

 

Environment variables:

 

COUNT=0

 

DATABASE=mobitelplanet

 

DEBUG=yes

 

MON_TMPL_NAME=DB-MSSQL

 

NODE_IP=::ffff:10.60.0.105

 

NODE_PORT=1433

 

PASSWORD=XXXXXXXXXXXXXX

 

RECVCOLUMN=

 

RECVROW=0

 

RECV_I=6

 

SEND=select day(getdate())

 

USERNAME=lbcheck

 

count='0' converts to '0'

 

pidfile exists -- checking for correctness of pid...

 

DBDaemon says its pid is 18831

 

pid of 18831 is correct!

 

Recvd: 'com.microsoft.jdbc.sqlserver.SQLServerDriver

 

'

 

Recvd: 'jdbc:microsoft:sqlserver://10.60.0.105:1433;databaseName=mobitelplanet;

 

'

 

Recvd: 'lbcheck

 

'

 

Recvd: '!Bch3cK0$!Bch3cK0$

 

'

 

Recvd: '0

 

'

 

Recvd: 'select day(getdate())

 

'

 

Recvd: '6

 

'

 

Recvd: '0

 

'

 

Recvd: '1

 

'

 

Recvd: 'debug

 

'

 

Recvd: 'Loading database driver com.microsoft.jdbc.sqlserver.SQLServerDriver

 

'

 

Recvd: 'Error loading driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': jav

 

a.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver!Down

 

!

 

'

 

Error receiving up/down message

 

7 Replies

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Sounds like you need to install the JDBC driver. See the LTM Manual, Appendix A: Implementing an MSSQL monitor -- Click here

     

     

    I also just posted a working example to the codeshare -- http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/MSSQLMonitor.html (Click here)

     

     

    Hopefully between the 2, that will get you going.

     

    /deb
  • That was a good point, funny I couldn't find that via F5 search (I did try frst ;-)..

     

     

    Btw, the manual is (so it seems) for JDBC driver for MSSQL 2000, should that work for MSSQL 2005 as well? Because the JDBC 2005 driver is somewhat different (at least the instructions aren't applicable)..
  • It does work with JDBC MSSQL 2k.

     

    You just have to be careful, because nowdays MS is shipping out JDBC4MMSQL2005 by default..

     

     

    Thanks
  • Please anybody can let me know that how can i find my BIG f5 model and serial no: from gui config mode?