AdamK (9th February 2010), benaus (4th February 2010), bladedanny (9th December 2010), bondbill2k2 (10th July 2012), Coopeh (4th December 2010), cscc (20th June 2013), Danlewis3 (1st April 2010), danrhodes (21st May 2010), dave.81 (22nd May 2013), denzal2k4 (5th January 2012), ICTNUT (12th October 2010), JJonas (25th January 2011), networkdemon (8th February 2010), Shielder (21st February 2013), skell (19th May 2011)
Thanks for that.
Also if you run this on a linux/bsd server, change the part where it says ...
to sayCode://check target IP or domain $pingreply = exec("ping -n $count $value"); if ( substr($pingreply, -2) == 'ms')
This is now running on a monitor which rotates between a few different scripts. Thanks again.Code://check target IP or domain $pingreply = exec("ping -c $count $value"); if ( substr($pingreply, -2) == 'ms')
Cool, glad it was some use.
I forgot to add the server graphic.
Just download the attached picture and pop into a folder called "images" in the root.
How do I get this to work from the server end so that it's accessible via the intranet?
As long as its on an internal IP it should work fine. All it does is ping the machine so make sure its pingable and it will work.
I have just set this up but all i get is down and timeout in the right hand coloum? is there anything special i have to install as atm i have just got apache and php5
^ Can your webserver resolve the hostnames (from the cli)?
just tested on a seperate web server and all i get is it failing?
ignore me, im being an idiot! sitting at home being ill isnt doing me well - i hadn't changed the -n to -c as shown in post 2
Glad you got it working
I'm having trouble getting this to work. I just get timeout for everything. I'm using IIS6 and PHP5.
try via ip address and see if it works
if so then its your dns lookups which are failing.
There are currently 1 users browsing this thread. (0 members and 1 guests)