JJonas Posted January 25, 2011 Posted January 25, 2011 What do I need to do to make it autorefresh? Ive got it running on a linux box
glennda Posted January 25, 2011 Posted January 25, 2011 What do I need to do to make it autorefresh? Ive got it running on a linux box you need to add outside of the php tags just change the 10 to however many seconds. 2
denzal2k4 Posted January 5, 2012 Posted January 5, 2012 Sorry to drag up an old thread, but just added this to our system, very nice thanks!
zag Posted January 5, 2012 Author Posted January 5, 2012 Sorry to drag up an old thread, but just added this to our system, very nice thanks! No problem, I've seen it running on a few peoples systems recently. Would love to see any screenshots of mashups people do
denzal2k4 Posted January 5, 2012 Posted January 5, 2012 Not really a mashup but tweaked it a little, and if it goes on one of the display screens or anything will obviously remove the server names.
Chuckster Posted February 8, 2012 Posted February 8, 2012 I'm getting a few errors (see attached) and am unsure what it means. What can I do to fix it?
zag Posted February 8, 2012 Author Posted February 8, 2012 Thats just a warning that the variables were not specifically defined. Turn off the error logging "to screen" on whatever webserver you are using. 1
Chuckster Posted February 8, 2012 Posted February 8, 2012 Using WAMP on Win 2003, which also has IIS installed, I went ahead and switched off 'display errors'. This cured it. Another problem, how do I access the 'monitor' page from a remote computer? I have setup port 8080 and going into the browser and typing in http://servername:8080/monitor doesn't work. Is there something (non-)fancy that I need to do?
zag Posted February 8, 2012 Author Posted February 8, 2012 Using WAMP on Win 2003, which also has IIS installed, I went ahead and switched off 'display errors'. This cured it. Another problem, how do I access the 'monitor' page from a remote computer? I have setup port 8080 and going into the browser and typing in http://servername:8080/monitor doesn't work. Is there something (non-)fancy that I need to do? Yes assuming your using WAMP it denies all outside access for some stupid reason. I cant remember how to fix it but its a setting somewhere. It will be well documented on google
Chuckster Posted February 8, 2012 Posted February 8, 2012 I can't anything at all that's relevant on Google. So far all I've managed to do is modify the alias file under Apache, with the following Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from all Still no luck with this.
JJanisch Posted April 24, 2012 Posted April 24, 2012 I can't anything at all that's relevant on Google. So far all I've managed to do is modify the alias file under Apache, with the following Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from all Still no luck with this. Not sure if you have this sorted but you have "Deny from all" and then "Allow from all" under it. Remove deny from all, restart apache between modifications also. Woah I love digging threads up from the grave. 1
ihaveaproblem Posted January 29, 2013 Posted January 29, 2013 Hi, Thanks for sharing this. It works nicely I was wondering if there is a way to remove some of the information from the web page. I would like the webpage to only show the server description and status instead of server name, description and reply speed response. I've been able to remove the reply speed response, but struggling to remove the server name without breaking everything. Does anyone know if this is easy enough to achieve and can point me in the right direction? Thanks
SBennett Posted February 12, 2013 Posted February 12, 2013 @ihaveaproblem If you find the line: echo "$value"; and change it to: echo ""; That should do the trick. 1
ihaveaproblem Posted February 19, 2013 Posted February 19, 2013 @ihaveaproblem If you find the line: echo "$value"; and change it to: echo ""; That should do the trick. Brill, thanks. It worked
min686 Posted April 4, 2013 Posted April 4, 2013 Sbennett, how to make this script sent alert email to me when 1 of the server down thanks
dave.81 Posted May 22, 2013 Posted May 22, 2013 Bit late to join this but just setup and running here. Perfectly simple for our needs, thanks!
Kenny_G Posted July 3, 2015 Posted July 3, 2015 This is perfect for a little project I'm working on, however I'm getting following error. Notice: Undefined variable: counter in C:\xampp\htdocs\servers\index.php on line 39 Line 39 $counter = $counter + 1;
zag Posted July 3, 2015 Author Posted July 3, 2015 See a few posts up, you need to turn off error logging to screen in xampp
karldenton Posted December 15, 2016 Posted December 15, 2016 Sorry to revive an old thread but just come across this product. Installed WAMP on server 2012. Like a few others I get the php error but i've set error_reporting to error_reporting(0); in php.ini Also tried E_ALL & ~E_NOTICE but same error. I'm guessing that's why the data doesn't display as a table either. @zag could you help please. Many thanks.
zag Posted December 15, 2016 Author Posted December 15, 2016 Sorry I don't know the answer, I don't use WAMP myself I use IIS. WAMP has some weird php defaults from what I can tell. With IIS just install it from the windows installer then run the https://www.microsoft.com/web/downloads/platform.aspx to install php. Should take 2mins.
Marci Posted December 15, 2016 Posted December 15, 2016 (edited) Add... @ini_set('display_errors', 0); @error_reporting(0); ...to the file throwing the errors (index.php), directly after the opening <?php Or set... display_errors = 0 error_reporting = 0 ...in PHP.ini If changes don't take effect, check that they aren't being overridden in httpd.conf or wherever your vhost is defined... this would look something like: php_value error_reporting 1 You should also check any .htaccess files in the folder tree leading to the file throwing the error to ensure that the instruction isn't being overridden at a per-folder level via the same php_value command as above. EDIT: Apols if any formatting within the code blocks is munged. The forum seems to be applying dim-witted attempts to auto BB-code link anything preceeded by an @ as a mention, even when within code blocks, as well as randomly removing line-breaks. Edited December 15, 2016 by Marci 1
karldenton Posted April 28, 2017 Posted April 28, 2017 (edited) Hi, Just wondering if its possible to add a packet loss column to the ping monitor at all? I've managed to split the monitor into 3 separate tables but not sure of the php code to get the packet loss. Thanks @zag Edited April 28, 2017 by karldenton
zag Posted May 3, 2017 Author Posted May 3, 2017 I'm going to rewrite this soon, as the code is really messy. I'll take a look then but its designed to be as simple as possible really.
timbo343 Posted September 25, 2018 Posted September 25, 2018 @zag Thanks for posting up the server monitor script and thanks to those who pointed me in the right direction. So i have the default install - is there a way to hide the host column on the page so the green tick or red cross is the first column as i don't want to show users the host name of the service i am monitoring? Also is there a way to hide the Ping Reply too to general users?
timbo343 Posted September 25, 2018 Posted September 25, 2018 @zag one last request, is there a way to check ports? For example, sometimes groupcall xporter falls over so would be great if we could check port 6000 and port 80 on the same server. I have a monitor that i got off the net and combining both to one system would be great.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now