SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Ping Timeout

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Ping Timeout
Author Message
Oziander



Joined: 03 Mar 2004
Posts: 1

Post Ping Timeout Reply with quote

Hi,

I'm having some problems when monitoring remote hosts by "PING".
Sometimes the "Timeout" from my remote network becomes very high and
the PING returns FALSE to 24x7, sending me false messages telling that
that the host is down.

Is there any option where i can change the timeout value? thks.

Oziander


Wed Mar 03, 2004 9:15 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Ping Timeout Reply with quote

You can try one of the following several methods
1. Several pings, one after another. If all of them return FALSE then consider this as NO RESPONSE

Example.
Dim ret1, boolean
Ping "my_server", ret1
Wait 10
Dim ret2, boolean
Ping "my_server", ret2
Wait 10
Dim ret3, boolean
Ping "my_server", ret3
Dim ret, boolean
And ret1, ret2, ret
And ret, ret3, ret
IfThen ret, OK
// put the NO RESPONSE logic here

OK:

2. Use command line ping utility and parse the output
Dim output, string
Dim ret, number

RunConfig "WINDOW", "HIDE"
RunAndWait "ping -w 10000 my_server > c:\\ping.log", "", 0, ret
FileReadAll "c:\\ping.log", output
Pos output, "Request timed out", ret
IfThen ret, TIMEOUT
Exit

TIMEOUT:
// put the NO RESPONSE logic here

3. Use the "undocumented" extended version of the Ping function that has timeout parameter

Dim ret, number
Dim errors, string
// allocate error buffer
Space 2000, errors
// call the PingEx method
Call "24x7ping.dll", "PingEx", "SuS", True, "my_server", 10000, errors, ret
IfThen ret, OK
// put the NO RESPONSE logic here

OK:

Hope this helps.

: Hi,

: I'm having some problems when monitoring remote hosts by "PING".
: Sometimes the "Timeout" from my remote network becomes very high
: and
: the PING returns FALSE to 24x7, sending me false messages telling that
: that the host is down.

: Is there any option where i can change the timeout value? thks.

: Oziander

Wed Mar 03, 2004 10:25 am View user's profile Send private message
nawaf



Joined: 13 Sep 2005
Posts: 1

Post Re: Ping Timeout Reply with quote

: You can try one of the following several methods
: 1. Several pings, one after another. If all of them return FALSE then
: consider this as NO RESPONSE

: Example.
: Dim ret1, boolean
: Ping "my_server", ret1
: Wait 10
: Dim ret2, boolean
: Ping "my_server", ret2
: Wait 10
: Dim ret3, boolean
: Ping "my_server", ret3
: Dim ret, boolean
: And ret1, ret2, ret
: And ret, ret3, ret
: IfThen ret, OK
: // put the NO RESPONSE logic here

: OK: 2. Use command line ping utility and parse the output
: Dim output, string
: Dim ret, number

: RunConfig "WINDOW", "HIDE"
: RunAndWait "ping -w 10000 my_server > c:\\ping.log",
: "", 0, ret
: FileReadAll "c:\\ping.log", output
: Pos output, "Request timed out", ret
: IfThen ret, TIMEOUT
: Exit

: TIMEOUT: // put the NO RESPONSE logic here

: 3. Use the "undocumented" extended version of the Ping function
: that has timeout parameter

: Dim ret, number
: Dim errors, string
: // allocate error buffer
: Space 2000, errors
: // call the PingEx method
: Call "24x7ping.dll", "PingEx", "SuS", True,
: "my_server", 10000, errors, ret
: IfThen ret, OK
: // put the NO RESPONSE logic here

: OK: Hope this helps.

Tue Sep 13, 2005 10:27 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.