[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: UDP generic protocol testing [now with QUAKE3 suppo
From: |
Jan-Henrik Haukeland |
Subject: |
Re: Feature request: UDP generic protocol testing [now with QUAKE3 support] |
Date: |
Sat, 29 Oct 2005 18:02:19 +0200 |
On 22. okt. 2005, at 03.43, Alex Black wrote:
There are a number of things I'd like to test for using Monit that
answer on UDP, for example SIP and IAX (voip protocols). Could
functionality be added so send/expect can be used with UDP sockets
as well as TCP stream sockets?
I did some extra changes in the code and I believe send/expect will
work well with UDP sockets now. The ultimate test was to test a quake
server :) and it seems to work fine.
This is the check-entry I used in monitrc. I just found a quake
server and it may be down if you do this test. In that case just find
another one here: http://www.gameaholic.com/servers/quake3/
check host quake3 with address 212.159.6.211
if failed port 27980 type udp
send "\xff\xff\xff\xffgetstatus"
expect "sv_floodProtect|sv_maxPing"
send "\xff\xff\xff\xffgetinfo"
expect "punkbuster"
then alert
Running monit in the console using "monit -v validate" show this
successful output
<..>
------------------------------------------------------------------------
-------
'quake3' succeeded connecting to INET[212.159.6.211:27980]
GENERIC: successfully sent: '????getstatus'
GENERIC: successfully received: '????statusResponse
\capturelimit\0\sv_floodProtect\1\sv_maxPing\250\sv_minPing\0
\sv_maxRate\20000\sv_punkbuster\1\sv_maxclients\14\sv_hostname
\WWW.PLUS.NET ^4OSP FFA\timelimit\15\fraglimit\0\dmflags\0\version\Q3
1.32b linux-i386 Nov 14 2002\g_gametype\0\pr'
GENERIC: successfully sent: '????getinfo'
GENERIC: successfully received: '????infoResponse
\game\osp\maxPing\250\punkbuster\1\pure\1\gametype\0\sv_maxclients\12
\clients\1\mapname\ospdm8\hostname\WWW.PLUS.NET ^4OSP FFA\protocol\68'
'quake3' succeeded testing protocol [generic] at INET
[212.159.6.211:27980]
Let me know if you still have problems with UDP send/expect tests.
Check out the latest CVS by doing this in the console:
export CVS_RSH="ssh"
cvs -z3 -d:ext:address@hidden:/cvsroot/monit co monit
./autogen.sh && make && make install
--
Jan-Henrik Haukeland
Mobil +47 97141255