MSSQL server testing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MSSQL server testing

Szépe Viktor

Hello!

  check host mssql with address 10.99.0.12
   if failed port 1433
    send  
"\0x12\0x01\0x00\0x34\0x00\0x00\0x01\0x00\0x00\0x00\0x1f\0x00\0x06\0x01\0x00\0x25\0x00\0x01\0x02\0x00\0x26\0x00\0x01\0x03\0x00\0x27\0x00\0x04\0x04\0x00\0x2b\0x00\0x01\0x05\0x00\0x2c\0x00\0x00\0xff\0x0d\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x01"

#   expect  
"^\x04\x01[\\]0\x30[\\]0[\\]0\x01[\\]0[\\]0[\\]0\x1f[\\]0\x06\x01[\\]0\x25[\\]0\x01\x02[\\]0\x26[\\]0\x01\x03[\\]0\x27[\\]0[\\]0\x04[\\]0\x27[\\]0\x01\x05[\\]0\x28[\\]0[\\]0\xff\x0d[\\]0\x06\xce[\\]0[\\]0[\\]0[\\]0\x01"

    expect  
"^\\x04\\x01[\\]0\\x30[\\]0[\\]0\\x01[\\]0[\\]0[\\]0\\x1f[\\]0\\x06\\x01[\\]0\\x25[\\]0\\x01\\x02[\\]0\\x26[\\]0\\x01\\x03[\\]0\\x27[\\]0[\\]0\\x04[\\]0\\x27[\\]0\\x01\\x05[\\]0\\x28[\\]0[\\]0\\xff\\x0d[\\]0\\x06\\xce[\\]0[\\]0[\\]0[\\]0\\x01"
    then alert

Send seems to work, as there is a "No match" in the received data.
Could you suggest me how to check for binary data in expect?

Thank you.

SZÉPE Viktor, honlap üzemeltetés / Running your application
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
Budapest, III. kerület






--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general