monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MSSQL server testing


From: SZÉPE Viktor
Subject: MSSQL server testing
Date: Wed, 25 Jul 2018 11:10:47 +0200
User-agent: Horde Application Framework 5


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  address@hidden  skype: szepe.viktor
Budapest, III. kerület








reply via email to

[Prev in Thread] Current Thread [Next in Thread]