RE: [PHP] Uptime script

2001-08-07 Thread Andreas D. Landmark
At 07.08.2001 03:51, Craig Westerman wrote: > >I'm wanting to chart the server load average data displayed when you run >The correct way to do that would be to read it straight from the source, >(eg. /proc/loadav for linux with procfs). > >That would be much quicker, and it would also save your se

RE: [PHP] Uptime script

2001-08-06 Thread Craig Westerman
>I'm wanting to chart the server load average data displayed when you run The correct way to do that would be to read it straight from the source, (eg. /proc/loadav for linux with procfs). That would be much quicker, and it would also save your server a fork for each reading (unless you are runni

RE: [PHP] Uptime script

2001-08-06 Thread Andreas D. Landmark
At 07.08.2001 03:19, Craig Westerman wrote: > >>Does anyone here have a script to run uptime every ten minutes or so, log > >>output, then display daily output in a nice friendly chart? > > >Seems a bit daft running it every ten minutes, as a server should be up >24/7, > >how do you plan to check

RE: [PHP] Uptime script

2001-08-06 Thread Craig Westerman
>>Does anyone here have a script to run uptime every ten minutes or so, log >>output, then display daily output in a nice friendly chart? >Seems a bit daft running it every ten minutes, as a server should be up 24/7, >how do you plan to check it otherwise? I'm wanting to chart the server load a

Re: [PHP] Uptime script

2001-08-06 Thread Andrew Brampton
- Original Message - From: "Andreas D. Landmark" <[EMAIL PROTECTED]> To: "PHP-General" <[EMAIL PROTECTED]> Sent: Tuesday, August 07, 2001 1:52 AM Subject: Re: [PHP] Uptime script > At 06.08.2001 23:15, Craig Westerman wrote: > >Does anyone here

Re: [PHP] Uptime script

2001-08-06 Thread Andreas D. Landmark
At 06.08.2001 23:15, Craig Westerman wrote: >Does anyone here have a script to run uptime every ten minutes or so, log >output, then display daily output in a nice friendly chart? Seems a bit daft running it every ten minutes, as a server should be up 24/7, how do you plan to check it otherwise?

Re: [PHP] Uptime script

2001-08-06 Thread Tim
Nope, but I do something similar with weather data from my home weather station.:) The jpgraph library (http://freshmeat.net/projects/jpgraph/) is excellent and makes that kind of stuff a snap. A sample graph is attached. - Tim http://www.phptemplates.org On 06 Aug 2001 17:15:53 -0500, Craig

Re: [PHP] Uptime script?

2001-05-17 Thread Felix Kronlage
On Wed, May 16, 2001 at 06:35:32PM -0700, Ryan Christensen wrote: > Take a machine down, knowing it's uptime? (I.e., it's easier to hack a box > that's been up for 5 months.. as opposed to one that hasn't been??) By knowing the uptime and the version of the OS (e.g. kernel-version) you know to

Re: [PHP] Uptime script?

2001-05-16 Thread Steve Werby
"Christopher Heschong" <[EMAIL PROTECTED]> wrote: > If you want to get the current uptime in Linux without a system() call, > you should be able to fopen() the /proc/uptime file. The first number > is the number of seconds the machine has been up, the second is the > number of seconds the machine

Re: [PHP] Uptime script?

2001-05-16 Thread Billy Harvey
> also sprach Ron Pitts (on Wed, 16 May 2001 10:18:06PM -0400): > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > This does not work. This list is like the mafia: Once in, never out. > > That sucks. The list managers are morons. > > will you chill please? of course it works. you are at f

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ron Pitts (on Wed, 16 May 2001 10:18:06PM -0400): > > To unsubscribe, e-mail: [EMAIL PROTECTED] > This does not work. This list is like the mafia: Once in, never out. > That sucks. The list managers are morons. will you chill please? of course it works. you are at fault. do you want

Re: [PHP] Uptime script?

2001-05-16 Thread Christopher Heschong
On Wednesday, May 16, 2001, at 09:47 PM, Ryan Christensen wrote: > No.. as I said in my original post, this is on Linux.. so I was actually > wondering how it would be a risk in Linux.. not win.. If you want to get the current uptime in Linux without a system() call, you should be able to fope

Re: [PHP] Uptime script?

2001-05-16 Thread David VanHorn
At 03:30 PM 5/16/01 -0500, Ben Gollmer wrote: >Uptime.exe is available on the WinNT / Win2k resource kit. You can also >download it here: > >http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default. >asp Does the windows version have the ability to count larger than hours? :) -

Re: [PHP] Uptime script?

2001-05-16 Thread David VanHorn
At 08:18 PM 5/16/01 +0200, Christian Reiniger wrote: >On Wednesday 16 May 2001 15:16, Matthew Schroebel wrote: > > Why would you want to advertise that? Seems like you would be leaking > > information to crackers ... > >It's very difficult to imagine how 'uptime' information could be used to >cau

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ryan Christensen (on Wed, 16 May 2001 06:47:08PM -0700): > No.. as I said in my original post, this is on Linux.. so I was actually > wondering how it would be a risk in Linux.. not win.. sorry, i haven't really followed the thread. well, *iff* your system is properly configured *and*

Re: [PHP] Uptime script?

2001-05-16 Thread Ryan Christensen
AIL PROTECTED]> To: Ryan Christensen <[EMAIL PROTECTED]> Cc: Matthew Schroebel <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 6:45 PM Subject: Re: [PHP] Uptime script? > also sprach Ryan Christensen (on Wed, 16 May 2001 06:35:32PM -0700): > >

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ryan Christensen (on Wed, 16 May 2001 06:35:32PM -0700): > Take a machine down, knowing it's uptime? (I.e., it's easier to > hack a box that's been up for 5 months.. as opposed to one that > hasn't been??) um, why? please don't answer if you use windoze for then the answer is obvious

Re: [PHP] Uptime script?

2001-05-16 Thread Ryan Christensen
I wouldn't be asking.. :) Ryan Christensen - Original Message - From: Matthew Schroebel <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 5:32 PM Subject: Re: [PHP] Uptime script? > If you were trying to take

Re: [PHP] Uptime script?

2001-05-16 Thread Matthew Schroebel
If you were trying to take a machine down, it might be useful to know it. Plus it's easily faked. > It's very difficult to imagine how 'uptime' information could be used to > cause mischief... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [PHP] Uptime script?

2001-05-16 Thread Ben Gollmer
rom: Christian Reiniger [mailto:[EMAIL PROTECTED]] >> Sent: Wednesday, May 16, 2001 11:19 AM >> To: Matthew Schroebel; [EMAIL PROTECTED] >> Subject: Re: [PHP] Uptime script? >> >> >> On Wednesday 16 May 2001 15:16, Matthew Schroebel wrote: >>> Why wo

RE: [PHP] Uptime script?

2001-05-16 Thread Ryan Christensen
L PROTECTED]] > Sent: Wednesday, May 16, 2001 11:19 AM > To: Matthew Schroebel; [EMAIL PROTECTED] > Subject: Re: [PHP] Uptime script? > > > On Wednesday 16 May 2001 15:16, Matthew Schroebel wrote: > > Why would you want to advertise that? Seems like you would be l

Re: [PHP] Uptime script?

2001-05-16 Thread Christian Reiniger
On Wednesday 16 May 2001 15:16, Matthew Schroebel wrote: > Why would you want to advertise that? Seems like you would be leaking > information to crackers ... It's very difficult to imagine how 'uptime' information could be used to cause mischief... chris@server:~$ uptime 8:55pm up 45 days,

Re: [PHP] Uptime script?

2001-05-16 Thread Michael Kimsal
Ben Cairns wrote: > >I know I've seen one before, and before I go write my own version, does > >anyone know of a PHP script that echoes the uptime of a server (Linux) in > >days,hour,minutes, etc? > > Does anyone know a script to do this under WinNT? http://is-it-true.org/nt/atips/atips228.sht

Re: [PHP] Uptime script?

2001-05-16 Thread Matthew Schroebel
Why would you want to advertise that? Seems like you would be leaking information to crackers ... - Original Message - From: Ryan Christensen <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 12:43 AM > does anyone know of a PHP script that echoes the uptime of a server (Linux) in > day

RE: [PHP] Uptime script?

2001-05-16 Thread Patrik Wallstrom
On Wed, 16 May 2001, Ben Cairns wrote: > >I know I've seen one before, and before I go write my own version, does > >anyone know of a PHP script that echoes the uptime of a server (Linux) in > >days,hour,minutes, etc? > > Does anyone know a script to do this under WinNT? For Linux it is easy, ju

RE: [PHP] Uptime script?

2001-05-16 Thread Ben Cairns
>I know I've seen one before, and before I go write my own version, does >anyone know of a PHP script that echoes the uptime of a server (Linux) in >days,hour,minutes, etc? Does anyone know a script to do this under WinNT? -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 3

RE: [PHP] Uptime script?

2001-05-15 Thread Tyler Longren
exec(uptime); or system(uptime); Tyler > -Original Message- > From: Ryan Christensen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 15, 2001 11:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Uptime script? > > > I know I've seen one before, and before I go write my own version, does >