PDA

View Full Version : Server Status



WickedShark
02-17-06, 04:22 PM
I have server status enabled but it says that the server up time and server load are not available. How can i fix this?

Roger
02-17-06, 06:44 PM
Hey Shark... Make sure you haven't forgotten to upload the /status/ folder to the server and completed the path to it in Server Setup...

-Roger

02-17-06, 08:12 PM
Thanks that was it. I did not have the folder uploaded. OOPS :D

Roger
02-17-06, 09:57 PM
Good deal... glad you got it going. 8)

philcassell
06-13-06, 04:21 AM
I have the path setup and it still only gives everything but server load and uptime. If run the site externally I get this:

<?xml version="1.0" encoding="ISO-8859-1" ?>
- <serverdata>
<load>0.78</load>
<uptime>31 Days 08:17:56</uptime>
</serverdata>

but I dont get it in my serverstatus.php page.

Any thoughts?

Adam
06-13-06, 05:11 AM
Hey,

The code you are looking at is XML and should not be run by going that file.

In your Admin Config, click on Servers and chose your server and click edit then find the box,

Server Status Address

and enter the URL there...

After that look on your serverstatus page in WHMCS and should work.

From,
Adam

philcassell
06-13-06, 08:41 PM
It is set up that way. I was only demonstrating that it is able to view externally and that it does not show the server load and the uptime.

Server HTTP FTP POP3 PHP Info Server Load Uptime
DSD Main Server PHP Info Not Available Not Available
DSD Server 2 PHP Info Not Available Not Available

Matt
06-14-06, 08:17 AM
You've entered the URL incorrectly in the server setup. Have you remembered to put a "/" on the end?

philcassell
06-17-06, 06:35 PM
sweet!!! It works now

yee haaa

Thanks

Patty
09-10-06, 06:31 PM
I'm having similar problem.

I set up 3 servers, uploaded the status folder to each one and set up the server URL http://www.domain.com/status/
All of them show ONLINE but only the one where WHMSC is installed shows the complete information. The other two show UNAVAILABLE for load and uptime.

Tks in advance for any clues.

Adam
09-10-06, 07:18 PM
I'm having similar problem.

I set up 3 servers, uploaded the status folder to each one and set up the server URL http://www.domain.com/status/
All of them show ONLINE but only the one where WHMSC is installed shows the complete information. The other two show UNAVAILABLE for load and uptime.

Tks in advance for any clues.

Hey,

I'm guessing this is your site http://www.cybernetfx.com/

If so check out

http://www.cybernetfx.com/status/

You noticed how the option shell_exec() has been turned off. That would do it...

From,
Adam

Patty
09-10-06, 07:25 PM
Tks for your reply, Adam. Yeap, that seems to be it. Same thing for the other server, although both servers are from different datacenters and have somehow different settings.

So how to make the script work on those enviroments? I don't have access to the servers root and cannot change these settings.

Matt
09-10-06, 07:30 PM
Hi,

You will not be able to display the servers uptime or load statistics unless you can get these functions unblocked.

Matt

Patty
09-10-06, 08:02 PM
OK. Tks for your reply.

fmfhost
09-20-06, 04:01 PM
i am having the same problem

http://clients.fmfhost.net/serverstatus.php

Adam
09-21-06, 12:42 AM
i am having the same problem

http://clients.fmfhost.net/serverstatus.php

Hey,

If you look on your page, you entered in the URL wrong,

http://clients.fmfhost.net/clients.fmfhost.net/status/index.php?action=phpinfo

is what shows on that page.

If you go to

fmf.fmfhost.net

in your Admin CP make sure enter in the full url with

Example,
http://www.whmcs.com/status/

From,
Adam

fmfhost
09-21-06, 05:29 PM
cheers for that :D

cyberturk
09-21-06, 09:05 PM
If you have enabled safe mode or disable shell exec function on php.ini it cant work

Adam
12-25-06, 05:52 PM
i am having the same problem

http://clients.fmfhost.net/serverstatus.php

Works fine for me....

From,
Adam

Willx
12-25-06, 07:43 PM
Okay, now that code for that does not work like www.xiodehosting.com check the header where it says server status i dont have those images why not?

Evcthosting
06-19-09, 03:10 PM
FMFHOST, hey i had the same issue......all i had to do is log back in, go to the servers select the one i need the stats for and at the end of the Url......http://mydomain.com/status/index.php/ just ad the forward slash and it works.

hope this helps

UNIXIELHOST
06-23-09, 08:45 PM
I tried this and it doesn't work take a look http://www.unixielhost.net/status/

How I can fix this?

Michael D Price
06-24-09, 10:07 PM
My problem is that the load shows up as unavailable, but everything else works just fine.

http://my.cashmoneyhosting.com/serverstatus.php

frankiben123
06-25-09, 04:18 PM
thanks for sharing it with us.....

sales tracking software (http://salestrackingsoftware.org)

LAZer414
12-26-09, 05:04 PM
hi and thanks for sharing all these...

i want to monitor 3 servers . one of them is a shared server in which whmcs script is installed. the shell exec () function is disable on this server but server status works just fine.

the other server is my own vps . in php.ini the disabled functions have the no value or " " so the shell exec() is not disable on it . the / at the end of the url is set . whmcs can detect active ports but about the uptime it says unavailable. but when i go to the url of status/index.php , the uptime is detected in there.
please tell me how to fix it , i have shell access here but i dont know what to do.

and about the third server . it is a free web hosting . and status script even cannot detect the active ports , and also says unavailable for the uptime ... , and by clicking the url directly , the uptime is 0 , and the next one is empty. i dont think that one could do any thing for this server . i have found a status script for whmcs which can check nodes. but i dont need it that much.,,



but about my second server , please tell me what can i do to fix this ? thanks in advanced.

LAZer414
12-27-09, 07:39 AM
as there is similiar problems like mine , i wanted to say that my problem is similiar to #10 in this topic ,
the server which whmcs is installed on showes the status , with shell , shell_exec disabled !
but the same status file on my own vps cannot show the server status and says it is unavailable.

i should note that i have uploaded the same file to both servers and i have set both status url correctly with / at the end. the serverstatus.php can correctly locate the links.
path that is set in whmcs : http://domain1.com/status/
http://domain2.com/status/

here is the information from both of my servers .



the working server :

here is the details by accessing the url directly :
http://domain1.com/status/index.php
Server Load : 0.62
Uptime Days : 36 Days 18:11:43
php version : 5.2.8
Mysql Version : 5.0.85
Zend Version : 2.2.0


Configure Command
'./configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-fastcgi' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-zip' '--prefix=/usr' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'

disable_classes no value
disable_functions shell,symlink,ini_restore,imap_body,imap_list,imap _open,mysql_list_dbs,popen,stream_select,socket_se lect,socket_create,socket_create_listen,socket_cre ate_pa ir,socket_listen,socket_accept,socket_bind,socket_ strerror,readlink,symlink,link,pfsockopen,ini_alte r,dl,openlog,syslog,putenv,pcntl_exec,pcntl_fork,p cntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_ wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl _wstopsig,pcntl_wtermsig,fpassthru,detcwd,system,p assthru,proc_close,proc_get_status,proc_nice,proc_ open,proc_terminate,shell_exec

on my own vps which the script is not working :
http://domain2.com/status/index.php

Server Load : 0.12
Uptime Days : 0 Days 19:30:01
php version : 5.2.11
Mysql Version : 5.0.86
Zend Version : 2.2.0

Configure Command
'./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'

disable_classes no value
disable_functions no value


now i dont know what should i do , the script can detect the uptime status by viewing the link directly , but when it wants to work from inside whmcs it fails. and says unavailable.

any ideas will be appreciated.
i have root access in my vps , just tell me which files should i modify. and what to modify.

i doubt about some disabled functions in my vps , but i dont know how to enable them , and from where are they disabled ? i have search my php.ini ,and almost evert .conf file , httpd.conf , and so many other configurations , but i didnt find such commands in them.

-without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'

any one knows where can i enable these ?
thanks.

madhost
01-01-10, 04:44 PM
Hello .. please help me nice and me with this problem you need to upload nush folderu status to show my own server uptime at 2 resellers and a tutorial vps.aveti vrun something .. is more blunt: ( Thank you

Lakota Hosting
09-20-10, 12:39 AM
I was having a similar issue and found that you cannot load the status script over SSL. :oops:

For instance, in my case:

https://clients.lakotahosting.com/status/

does NOT work, but:

http://clients.lakotahosting.com/status/

DOES.

Hope this helps someone! :)

doramide7
09-21-10, 02:42 AM
Hey,

The code you are looking at is XML and should not be run by going that file.

In your Admin Config, click on Servers and chose your server and click edit then find the box,

Server Status Address

and enter the URL there...

After that look on your serverstatus page in WHMCS and should work.

From,
Adam

It is set up that way. I was only demonstrating that it is able to view externally and that it does not show the server load and the uptime.

Server HTTP FTP POP3 PHP Info Server Load Uptime
DSD Main Server PHP Info Not Available Not Available
DSD Server 2 PHP Info Not Available Not Available
_________________
download wii games (http://www.youtube.com/watch?v=NDgAzo7_2Nw)
how to copy wii games (http://www.youtube.com/watch?v=NDgAzo7_2Nw)

rlshosting
09-21-10, 06:22 AM
I was having a similar issue and found that you cannot load the status script over SSL. :oops:

For instance, in my case:

https://clients.lakotahosting.com/status/

does NOT work, but:

http://clients.lakotahosting.com/status/

DOES.

Hope this helps someone! :)

It works for me on your site and my site :?:

Knyteguy
03-02-11, 09:36 PM
FMFHOST, hey i had the same issue......all i had to do is log back in, go to the servers select the one i need the stats for and at the end of the Url......http://mydomain.com/status/index.php/ just ad the forward slash and it works.

hope this helps

Thanks,

This worked superbly.

allenb
03-15-11, 04:10 AM
Sorry for diggin this tread up..

It helped me :)

Vario
04-28-11, 03:26 PM
To all,
First of all
1)Check your server status by opening url in browser.
http://www.yourdomain.com/whmcs_path/status/
If You are getting something like: "2.22 42 Days 02:00:24 5.2.14" then you are OK to go to step 2.
If not, check via ftp if "status" folder exists inside of whmcs installation root. If not then create one. And/or upload it including index.php inside, and return to Step 1.
2) DO NOT FORGET TO PUT SLASH (/) to the end of status url:
like this: http://www.yourdomain.com/whmcs_path/status/
3) if You are using forced SSL access to whmcs, then type https:// instead of http://
like this: https://www.yourdomain/whmcs_path/status/

You should be done.
Cheers..

taylorn
05-08-11, 07:05 AM
Hi

I am having an issue with the Server Status

The status is displayed but the uptime always says 0 days 0:00 etc (going to status/index.php produces "0 Days 00:00:00 5.2.9")

I am not sure if this is something from my end, or with WHMCS. I suspect something server side, but not sure what it would be, as I am not getting any errors etc

twallden
05-14-11, 11:12 AM
I think you cant connect to the server, check the details and the password/hash in server setup.

taylorn
05-14-11, 11:29 AM
I think you cant connect to the server, check the details and the password/hash in server setup.

I don't think it has a lot to do with that.

I figured it out anyway. PHP errors weren't showing, but I needed to have ShellExec() enabled.

That fixed it :)

Charms27
09-11-11, 03:43 PM
Hello, I have tried everything and I am still not getting mine to work.
1. I have added the /
2. shell_exec is not disabled, the only function that my php.ini has disabled is 'dl'... whatever that is...
3. I have tried both ways with the SSL, neither one works.
4. Going directly to URL/status/index.php in browser works fine.

Anybody have any other ideas?

cmanns
09-11-11, 07:08 PM
Check your error logs.

If you utilize a nice FastCGI PHP setup you may also just strace it and then view the server status. We honestly never bothered with it.

LAZer414
09-13-11, 10:48 AM
on some configurations i saw that some php modes make server status shows 0 0 0 uptimes ! i always use suphp and its fine . and sometimes it work with dso . but mostly fails with others. try this if u can configure php again and maybe this helps u.

backupnownorden
09-16-11, 07:16 AM
Hi,

You will not be able to display the servers uptime or load statistics unless you can get these functions unblocked.

Matt

How to get this working on Windows 2003 servers ?

John
09-16-11, 11:58 AM
Status monitoring is not available for Windows servers unfortunately as they don't have that function.

malfunction
09-16-11, 05:59 PM
Not sure about other panels, but a lot of Windows users will be on Plesk and I believe you can get all that information from the Plesk API, service status, load, uptime - the same data that's displayed on the main administrator's page.

Globek_Alert
09-27-11, 07:31 PM
And I have something like this:

Disable_functions and classes are empty fields. I'm using WHM / cPanel, I will add that the server is added correctly, any ideas?


Unavailable 0 Days 00:00:00 5.2.17

Globek_Alert
09-28-11, 12:43 PM
Any ideas?

taylorn
09-28-11, 12:52 PM
So you have nothing disabled in /usr/local/lib/php.ini?

Maybe you have another php.ini somewhere conflicting.

Run this in SSH as root and post the output:
# locate php.ini

Globek_Alert
09-28-11, 03:34 PM
Some of these entries is now a question which is correct?


/etc/php.ini
/home/cpeasyapache/src/php-5.2.17/php.ini-dist
/home/cpeasyapache/src/php-5.2.17/php.ini-recommended
/usr/lib/php.ini
/usr/local/cpanel/3rdparty/etc/php.ini
/usr/local/cpanel/3rdparty/etc/php.ini,v
/usr/local/cpanel/3rdparty/etc/php.ini.dist
/usr/local/cpanel/3rdparty/etc/php.ini.keep
/usr/local/cpanel/3rdparty/etc/horde/php.ini
/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
/usr/local/cpanel/3rdparty/etc/phppgadmin/php.ini
/usr/local/cpanel/3rdparty/etc/roundcube/php.ini
/usr/local/cpanel/scripts/php.ini
/usr/local/lib/php.ini
/usr/local/lib/php.ini,v

taylorn
09-29-11, 12:35 AM
Hi

Those are all normal locations. I was looking for one in /home/<username>/*

So if you open up /usr/local/lib/php.ini in your favourite editor, around like 199-200ish you should have:

disablqe_functions =

So there is nothing next to the disabled functions? (You should have some PHP functions disabled though for security)

Also, what Control Panel are you using? cPanel? If so, I would maybe use EasyApache to make sure all the required dependancies are installed, and rebuild Apache/PHP anyway.

:)

Globek_Alert
09-30-11, 08:54 AM
Unfortunately it does not work. Field of the features I especially empty, even the firewall turned off. But the problem still persists. Any ideas how to fix it?

Globek_Alert
10-05-11, 07:22 AM
Any ideas, because I do not know how to fix it.... :/

Globek_Alert
10-10-11, 01:13 PM
Can someone tell me how to fix it?

VirtualRackHost
03-16-12, 01:33 AM
We are having this issue as well...The steps and procedures done in this thread have been tested and are not working.