Xymon Mailing List Archive search

query message : hobbit protocol question

3 messages in this thread

list Etienne Grignon · Fri, 17 Feb 2006 17:51:09 +0100 ·
Henrik,

I'm having problems to implement query message.

I'm sending the message bellow to the socket :

query myserver.cpu

Then, on the recv call, I get nothing. Then, the socket seems to be closed
after somes seconds.

Is it the right syntax ? or is there a way to find what's going on on the
server at this moment ?

It is done against hobbit 4.1.1

Thank you for your help,


Etienne
list Asif Iqbal · Fri, 17 Feb 2006 11:57:15 -0500 ·
quoted from Etienne Grignon
On Fri, Feb 17, 2006 at 05:51:09PM, Etienne Grignon wrote:
Henrik,

I'm having problems to implement query message.

I'm sending the message bellow to the socket :

query myserver.cpu
bb hobbitserverip "query server.fqdn.com.cpu" 
quoted from Etienne Grignon
Then, on the recv call, I get nothing. Then, the socket seems to be closed
after somes seconds.

Is it the right syntax ? or is there a way to find what's going on on the
server at this moment ?

It is done against hobbit 4.1.1

Thank you for your help,


Etienne
-- 

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi
list Etienne Grignon · Fri, 17 Feb 2006 18:37:06 +0100 ·
well,

a shutdown(conn, 1) between the send and the recv was the solution :)


2006/2/17, Asif Iqbal <user-c8222abeff59@xymon.invalid>:
quoted from Etienne Grignon
On Fri, Feb 17, 2006 at 05:51:09PM, Etienne Grignon wrote:
Henrik,

I'm having problems to implement query message.

I'm sending the message bellow to the socket :

query myserver.cpu
bb hobbitserverip "query server.fqdn.com.cpu"
Then, on the recv call, I get nothing. Then, the socket seems to be
closed
after somes seconds.

Is it the right syntax ? or is there a way to find what's going on on
the
server at this moment ?

It is done against hobbit 4.1.1

Thank you for your help,


Etienne
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the
credit...try
to be in the first group;...less competition there."  - Indira Gandhi

--

Etienne GRIGNON