POV-Ray : Newsgroups : povray.off-topic : Hey Andrew... Server Time
4 Nov 2024 13:13:59 EST (-0500)
  Hey Andrew... (Message 1 to 10 of 15)  
Goto Latest 10 Messages Next 5 Messages >>>
From: Darren New
Subject: Hey Andrew...
Date: 26 Feb 2008 23:03:39
Message: <47c4e11b$1@news.povray.org>
Remember that code you talked about that ran "ping" continuously and 
then analyzed the results to say exactly when things went down and came 
back? Can I have a copy?  I could recreate it myself, but it would 
probably take a couple hours, and our ISP doesn't believe we're losing 
connectivity for a couple minutes at a time.  Thanks!

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Invisible
Subject: Re: Hey Andrew...
Date: 27 Feb 2008 04:33:52
Message: <47c52e80$1@news.povray.org>
Darren New wrote:
> Remember that code you talked about that ran "ping" continuously and 
> then analyzed the results to say exactly when things went down and came 
> back? Can I have a copy?  I could recreate it myself, but it would 
> probably take a couple hours, and our ISP doesn't believe we're losing 
> connectivity for a couple minutes at a time.  Thanks!

Here you go - Pinger v1.21.

I haven't touched the code in an age, so it may have bit-rotted by now. 
I usually run it using FreeWrap, but no reason why it shouldn't work 
with some other Tcl interpretter. [I'm pretty sure it doesn't use 
anything special other than Tk.]

If it works properly, you should be able to just 'source' it and then 
say "Do www.google.co.uk" [or whoever you want to ping] and it will 
create a file called Log--2008-Feb-27--www.google.co.uk.txt containing a 
summary of the ping results. It also shows an interactive display 
indicating whether pinging is currently succeeding or failing, and 
exactly when the status last changed. [And also some trivial statistics 
for ping times if pinging is currently working.]

All this is ASSUMING IT WORKS. It works by doing an 'exec ping' and 
parsing the output. As such, it only works with one version of the ping 
command - and I'm not actually sure whether it's set up for Windows NT 
or Windows XP. If it doesn't work out of the box, poke the 'Ping' proc. 
(Duh!) Note that the console window [assuming you didn't hide it] 
scrolls some potentially useful debug data during pinging.

There is also a glitch where if a host doesn't answer ping initially, 
the code things it's a DNS error [even if you use an IP address] and 
stops pinging.

In short, it's buggy. But it might do what you want... Please enjoy 
responsibly.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message


Attachments:
Download 'us-ascii' (7 KB)

From: Darren New
Subject: Re: Hey Andrew...
Date: 27 Feb 2008 11:44:45
Message: <47c5937d$1@news.povray.org>
Invisible wrote:
> In short, it's buggy. But it might do what you want... Please enjoy 
> responsibly.

Excellent! Thanks!  I'll see if I can get it working under Linux, then 
maybe even incorporate it into the monitoring subsystem of the setup.

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Invisible
Subject: Re: Hey Andrew...
Date: 27 Feb 2008 11:51:20
Message: <47c59508$1@news.povray.org>
Darren New wrote:

> Excellent! Thanks!  I'll see if I can get it working under Linux, then 
> maybe even incorporate it into the monitoring subsystem of the setup.

In that case it's *highly* likely you'll have to frobnicate the output 
parsing code. (Although I think on Linux it's usually quite similar to 
Windows XP... maybe...)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: St 
Subject: Re: Hey Andrew...
Date: 27 Feb 2008 13:01:48
Message: <47c5a58c$1@news.povray.org>
"Invisible" <voi### [at] devnull> wrote in message 
news:47c59508$1@news.povray.org...

>  frobnicate

  LoL! You're kidding, right? That's the 'Word of the Day' right there. :)

    ~Steve~




> http://blog.orphi.me.uk/
> http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Jim Henderson
Subject: Re: Hey Andrew...
Date: 27 Feb 2008 15:07:04
Message: <47c5c2e8$1@news.povray.org>
On Wed, 27 Feb 2008 08:44:46 -0800, Darren New wrote:

> Invisible wrote:
>> In short, it's buggy. But it might do what you want... Please enjoy
>> responsibly.
> 
> Excellent! Thanks!  I'll see if I can get it working under Linux, then
> maybe even incorporate it into the monitoring subsystem of the setup.

You might also look at mon - http://freshmeat.net/projects/mon/ - I've 
used this before and it has a lot of flexibility beyond a ping test 
(though ping test is something it can do as well).

Jim


Post a reply to this message

From: Darren New
Subject: Re: Hey Andrew...
Date: 28 Feb 2008 00:22:21
Message: <47c6450d@news.povray.org>
Jim Henderson wrote:
> You might also look at mon - http://freshmeat.net/projects/mon/ - I've 
> used this before and it has a lot of flexibility beyond a ping test 
> (though ping test is something it can do as well).

Thanks. I've seen it.  I already have a whole monitoring subsystem set 
up. I just have to add the Tcl routine that gets called to check on 
things and send messages, and then configure which machines run it. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: St 
Subject: Re: Hey Andrew...
Date: 28 Feb 2008 01:53:19
Message: <47c65a5f$1@news.povray.org>
"St." <dot### [at] dotcom> wrote in message news:47c5a58c$1@news.povray.org...
>
> "Invisible" <voi### [at] devnull> wrote in message 
> news:47c59508$1@news.povray.org...
>
>>  frobnicate
>
>  LoL! You're kidding, right? That's the 'Word of the Day' right there. :)

  Cool, it's a real word. I have never seen or heard that word, ever, and I 
was an avid scrabble player in my youth.

      ~Steve~


Post a reply to this message

From: KalleK
Subject: Re: Hey Andrew...
Date: 28 Feb 2008 02:13:30
Message: <47c65f1a$1@news.povray.org>
> You might also look at mon - http://freshmeat.net/projects/mon/ - I've 
> used this before and it has a lot of flexibility beyond a ping test 
> (though ping test is something it can do as well).

... and
http://en.wikipedia.org/wiki/Nagios

me beeing in link-post-mode

kk


Post a reply to this message

From: Invisible
Subject: Re: Hey Andrew...
Date: 28 Feb 2008 04:21:13
Message: <47c67d09@news.povray.org>
St. wrote:

>>  LoL! You're kidding, right? That's the 'Word of the Day' right there. :)
> 
>   Cool, it's a real word. I have never seen or heard that word, ever, and I 
> was an avid scrabble player in my youth.

Yeah, I found it in povray.off-topic. It was somebody's word of the day...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Goto Latest 10 Messages Next 5 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.