Monitoring own services
Monitoring own services
I need to connect via TCP to some defined port, send there some data and parse response for matching some text.
On linux this could be done for example using netcat:
server:~# echo "shoarma.tk" | netcat 195.20.32.95 43
Rights restricted by copyright. See
http://www.dot.tk/vc001100.html
Domain name:
SHOARMA.TK
Organisation:
N/A
Martin Pavlas
Martin Pavlas
2106CN Heemstede
Netherlands
Phone: 0622-843726
Fax: 0-0
E-mail: mpa@sendmail.czs
Domain Nameservers:
Domain registered: 12/12/2001
Record will expire on: 01/01/2011
Record maintained by: Dot TK Domain Registry
--
And this is exactly what i need. To specifi text which i need to send (shoarma.tk), specify port where to send it (43), and check if response contains some text (for example SHOARMA.TK).
Is it possible to do this in opmanager somehow ?
Thx.