+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 36
Web Development Thread, PHP Server Monitor in Coding and Web Development; I started a topic in the windows forum on server monitoring software and nothing really fitted the bill. I tried ...
  1. #1
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Location
    Reading, UK
    Posts
    2,130
    Blog Entries
    10
    Thank Post
    273
    Thanked 176 Times in 149 Posts
    Rep Power
    43

    PHP Server Monitor

    I started a topic in the windows forum on server monitoring software and nothing really fitted the bill. I tried out My little Server monitor but it seemed a bit over complicated for my needs. So I wrote my own little ping app that looks sexy

    Let me know if anyone wants any improvements.
    Attached Images Attached Images
    Attached Files Attached Files

  2. 11 Thanks to zag:

    AdamK (9th February 2010), benaus (4th February 2010), bladedanny (9th December 2010), Coopeh (4th December 2010), Danlewis3 (1st April 2010), danrhodes (21st May 2010), denzal2k4 (5th January 2012), ICTNUT (12th October 2010), JJonas (25th January 2011), networkdemon (8th February 2010), skell (19th May 2011)

  3. IDG Tech News

  4. #2

    Join Date
    Aug 2009
    Posts
    33
    Thank Post
    3
    Thanked 10 Times in 10 Posts
    Rep Power
    7
    Thanks for that.

    Also if you run this on a linux/bsd server, change the part where it says ...

    Code:
          //check target IP or domain
    	  $pingreply = exec("ping -n $count $value");
    	  if ( substr($pingreply, -2) == 'ms')
    to say

    Code:
          //check target IP or domain
    	  $pingreply = exec("ping -c $count $value");
    	  if ( substr($pingreply, -2) == 'ms')
    This is now running on a monitor which rotates between a few different scripts. Thanks again.

  5. #3
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Location
    Reading, UK
    Posts
    2,130
    Blog Entries
    10
    Thank Post
    273
    Thanked 176 Times in 149 Posts
    Rep Power
    43
    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.
    Attached Images Attached Images

  6. #4

    Join Date
    Jun 2008
    Posts
    520
    Thank Post
    105
    Thanked 36 Times in 28 Posts
    Rep Power
    17
    How do I get this to work from the server end so that it's accessible via the intranet?

  7. #5
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Location
    Reading, UK
    Posts
    2,130
    Blog Entries
    10
    Thank Post
    273
    Thanked 176 Times in 149 Posts
    Rep Power
    43
    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.

  8. #6

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    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

    Toby

  9. #7

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    *bump*

  10. #8

    Join Date
    Oct 2006
    Posts
    2,935
    Thank Post
    171
    Thanked 273 Times in 215 Posts
    Rep Power
    91
    ^ Can your webserver resolve the hostnames (from the cli)?

  11. #9

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    Quote Originally Posted by j17sparky View Post
    ^ Can your webserver resolve the hostnames (from the cli)?
    yeah never had any problems with dns from it - also tried via ip

    i have got it right and it used the $host[1] = "server name"; for the lookup?

  12. #10

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    just tested on a seperate web server and all i get is it failing?

  13. #11

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    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

  14. #12
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Location
    Reading, UK
    Posts
    2,130
    Blog Entries
    10
    Thank Post
    273
    Thanked 176 Times in 149 Posts
    Rep Power
    43
    Glad you got it working

  15. #13

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    Quote Originally Posted by zag View Post
    Glad you got it working
    Me being an idiot!

  16. #14

    Join Date
    Jul 2010
    Location
    Staffordshire
    Posts
    275
    Thank Post
    50
    Thanked 41 Times in 36 Posts
    Rep Power
    22
    I'm having trouble getting this to work. I just get timeout for everything. I'm using IIS6 and PHP5.

  17. #15

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    try via ip address and see if it works

    if so then its your dns lookups which are failing.

SHARE:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. My Little Server Monitor
    By ICTNUT in forum Networks
    Replies: 304
    Last Post: 29th July 2011, 03:02 PM
  2. Server monitor software?
    By zag in forum Windows
    Replies: 17
    Last Post: 30th July 2010, 01:43 PM
  3. Performance Monitor showing a stressed Server!
    By FragglePete in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 5th May 2009, 03:35 PM
  4. Free SQL Server Monitor
    By ICTNUT in forum Windows
    Replies: 2
    Last Post: 8th August 2008, 04:04 PM
  5. free php server needed
    By callumtuckey in forum General Chat
    Replies: 20
    Last Post: 5th June 2007, 09:36 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •