Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 05:08:33

Author Topic: traffic, total disk use, and other stats  (Read 8570 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
traffic, total disk use, and other stats
« on: 2013-07-06, 21:41:56 »
When I login under admin, the stats panel has 0 for total disk, which should show a total use for the admin account - including all domains - etc.

Traffic also reads 0.  I am not live but have been installing and doing a lot of work - my vps control panel reads 2.7G transfer - kloxo mr reads 0M on admin account.

I changed my OP to centos 6 final 64x and now there is a Real Mem stat??  It shows a yellow !  why?  What is real mem compared to total mem?

Is there a way to get cpu status?  it lists all four yet no stats.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: traffic, total disk use, and other stats
« Reply #1 on: 2013-07-06, 21:50:44 »
Try 'sh /script/fixtraffic --day=360'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: traffic, total disk use, and other stats
« Reply #2 on: 2013-07-06, 21:52:36 »
will try now - what about disk usage??  Seems a problem under domains as well.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: traffic, total disk use, and other stats
« Reply #3 on: 2013-07-07, 02:05:59 »
Quote from: "chrisf"
will try now - what about disk usage??  Seems a problem under domains as well.

Disk usage under domains never worked :/
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: traffic, total disk use, and other stats
« Reply #4 on: 2013-07-07, 06:46:59 »
Quote from: "Spacedust"
Quote from: "chrisf"
will try now - what about disk usage??  Seems a problem under domains as well.

Disk usage under domains never worked :/
Well, this shouldn't be too big of a problem to fix.  We simply get the directory size for the user under /home - I have a few efficient ways to do it under php.

Since I hate searching, Mustafa direct me to which files in kloxo-mr that:
1. responsible for getting directory totals
2. where the total disk is populated (which php file displays it to web)

are we worried about windows users?  does kloxo-mr work on windows?

Most efficient is simple popen in php.  I can do it easily and have code posted or files uploaded.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: traffic, total disk use, and other stats
« Reply #5 on: 2013-07-08, 02:57:50 »
Quote from: "chrisf"
Quote from: "Spacedust"
Quote from: "chrisf"
will try now - what about disk usage??  Seems a problem under domains as well.

Disk usage under domains never worked :/
Well, this shouldn't be too big of a problem to fix.  We simply get the directory size for the user under /home - I have a few efficient ways to do it under php.

Since I hate searching, Mustafa direct me to which files in kloxo-mr that:
1. responsible for getting directory totals
2. where the total disk is populated (which php file displays it to web)

are we worried about windows users?  does kloxo-mr work on windows?

Most efficient is simple popen in php.  I can do it easily and have code posted or files uploaded.

And we got another du -sc killing our hard disks :/ My developer made quota solution counting which is 100 times faster than using du -sc to counting disk usage. The problem is quota is unable to count directory usage so I would personally remove this feature.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: traffic, total disk use, and other stats
« Reply #6 on: 2013-07-08, 03:23:06 »
your developer used a php recursive count of all files?  I used the technique when writing a email client for cms system (boonex dolphin).  Sets max quota for disk space.  Eitherway - can you share the code?  Or at least explain where these numbers are pulled from.

php is simple.  i work 16 hour days and develope outside that time.  I am willing to help as well - just easier not to have to hunt if you direct me to functions, files, and so forth.

I would like totdisk to populate.

I used a similar solution on a file sharing script i worked on project for.  to keep resources in check we used a cron that ran every 20 minutes and updated 200 user disk space quotas at a run.  So 600 users processed an hour.  No linux commands - php recursive read dir and add byte value of files.  saved in database and checked against quota for banning purposes.

When a user logged in it updated his total space used to be accurate.  furthermore, on upload and what not we updated the totals.

There are many ideas and solutions.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: traffic, total disk use, and other stats
« Reply #7 on: 2013-07-08, 03:26:41 »
I've shared the code with Mustafa. It cost me $100.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: traffic, total disk use, and other stats
« Reply #8 on: 2013-07-08, 06:22:19 »
Quote from: "Spacedust"
I've shared the code with Mustafa. It cost me $100.
Oh I see.  So will mustafa incorporate it?

The problem I see with this entire project, it is open source, but no open source programmers... so the weight falls on mustafa - eitherway to keep project moving I think we need to build more of a community of kloxo users and more help files etc.

I am new at server admin, this is true - but I have developed php scripts to do just about anything - I develop mainly in cms applications.  I am willing to help - I am willing to donate time.

I currently have 3 servers - 2 for production and a third I am playing with.  I am learning very fast.

If it is programming I can help with - I will.

I understand paying for code, it should be wrote off as donation to kloxo-mr project and shared - afterall, kloxo is open source and free.

Best regards :)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: traffic, total disk use, and other stats
« Reply #9 on: 2013-07-08, 17:24:20 »
Kloxo/Kloxo-MR using awstats/webaziler for stats interface for collecting for log file (mostly).

Yes, Kloxo-MR is opensource and no profit accept for it. Support for this project only by DONATION at this times. Always minus since the first introduce.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: traffic, total disk use, and other stats
« Reply #10 on: 2013-07-08, 18:46:29 »
Looks like I am just going to have to dig into the code.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: traffic, total disk use, and other stats
« Reply #11 on: 2013-07-08, 19:16:05 »
Mustafa, donations will always be slow when software is incomplete.  frustrating for you, since you work hard, yet, frustrating to users who don't understand why something doesn't work.  I can use cpanel for 10.00 a month.  It appears you have a few people posting here who have large servers running 1000's of sites - THEY should be donating since it is them who are benefiting from opensource.

I am a programmer.  Server admin is something I am learning.

Roadmap.  Kloxo-MR should stop developing new features and fix all bugs.  This project is in version 6 and Total Disk and Quotas do not work?  This makes NO sense to me since this is a major part of web hosting.

I understand not all vps have quotas installed.  but if they do. this is fastest way to control disk usage and get on the fly results.  if not we need to develop a set of functions to handle this more transparently AND accurately.

I am familiar with boonex dolphin and joomla - when something happens or I need to do something I know where to look and what functions are being called etc, because of experience with programming these scripts - Kloxo is new, and I am simply trying to beat the learners curve by not searching through code.  But still have got no answers as to where all of this code is.  Where the web interface populates totdisk.  Libraries used, functions, etc - but... I will dig into the code and will find what I need.

I get paid to program as well.  I am willing to help with php tasks and testing.  I think that is what open source is all about.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: traffic, total disk use, and other stats
« Reply #12 on: 2013-07-09, 02:55:44 »
Ligesh as author is genius man but bad documentation. Maybe he think not importance make documentation because this Kloxo/HyperVM as paid software before give to LxCenter from his family.

So, we received only the code without document. Certain options are unfinish work by Ligesh.

On another side, based on Ligesh code (aka Kloxo) I try change or add features and it's not easy. It's what's the reason I want create successor for Kloxo-MR with the new code and have the same idea as I add/change to Kloxo-MR.

Part of 'new' issue related to Kloxo-MR not related to Kloxo-MR itself but from other packages (aka rpms). For example, we don't have a problem if install Kloxo-MR. But, if using the same installer code we have a problem related to mysql conflict. Why?. It's because mysql from IUS repo conflict with mysql from centos repo.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.045 seconds with 19 queries.

web stats analysis