Hi, I get Notice: Undefined variable: pingtijd in E:\wamp\www\monitor\servermonitor.php on line 39
any ideas on this? this is using the latest copy of wamp. Regards, Nick
Hi, I get Notice: Undefined variable: pingtijd in E:\wamp\www\monitor\servermonitor.php on line 39
any ideas on this? this is using the latest copy of wamp. Regards, Nick
The /media folder is not included?
Is there a way to set this script to email ONLY if a website has failed?
Can we also modify this to check the SERVER LOAD with this script alongwith other things. Please confirm.
I’m trying to use this script to create a status page for my game servers. For some reason it seems to work for some and then not at all for others.
Any suggestions on how I could tweak it to work?
Here is an example of one IP/port that works: voice.angelsofthewarp.com:31113 Here is on that isn’t: kf.angelsofthewarp.com:7707 (Both should be online)
The two servers are on completely different providers so maybe one is running a firewall and the other isn’t?
Any help is greatly appreciated!
Telnet… Correct me if I’m wrong, but doesn’t that refer to only port 23. So wait, if telnet is disabled then your script is bunk?
I’m having an issue with the email function. It’s correctly detecting if a server is on or off line. However, if all servers are online I still get the email message that “There are problems with some of your servers/services.” If all are online I shouldn’t receive any email message.
I’ve created my own temporary work around but I thought you should know.
Great scripts by the way. Not just this one but all your stuff has really helped with a lot of my work.
Sean
Is there any way to not have a port required?
I need to ping a ips to make sure i get a reply from the icmp packet. All the ports to the ip i need to ping are closed, so they are showing up as offline, but if I ping them from the console with no port I get a response.
How do I hire you to modify this script?
New version is available now!
Great Script!!
2 Quick Questions:
1) How do I change the refresh time from 1 hour to 30 minutes?
and 2) Does the script only send out an email if there is a server that is offline?
Thanks
@Sitebase,
Thanks!
Now I seem to be having trouble.
When I see the page via a browser, It works no problems. I’m trying to set up the cronjob’s but i keep getting errors:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION, or T_FUNCTION or T_VAR or ‘}’
in servermonitor.php.php on line 18
I get that error trying to run the either simple, mailexample or servermonitor.php when running the file through SSH .
any ideas?
I thought that too, but I checked and am running PHP Version 5.2.17.
Any thoughts?
I have a game server is works on port 1626…
for some reason I can telnet to 199.167.196.183:1626, no problem!
but when i try using your script to ping my server and port, it fails!!
WHY ?
if i point your script to check port 80, it works just fine….
so why would it fail on 1626 when telnet confirms it is in fact open!??
COPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.
Add this line of code after line 31 in servermonitor.php
So you code will look like:
$paketten=5; $timeout=0.5; $pingtijd = 0; for ($i=0;$i<=$paketten;$i++){