Domain Monitoring Tool

Status
Not open for further replies.
My guess is that you are not running the domain.php file as the root user as you are supposed to.
 
Just wondering. But what are the best config settings?

Or is there no need to change configure.php at all?

Example. How do i config it right that if a site get a load of 1+ it get suspended?

How does it work?

// 0 = disabled
$__cpu_warning = 0;
$__cpu_suspend = 0;

// 0 = disabled
$__proc_warning = 0;
$__proc_suspend = 0;


What are your settings at this?

Tnx :)
 
How to install it?:

Details

domain successfully downloaded
plugin.tar.gz extracted
No install.sh script was found. Script not executed.
 
RosT said:
How to install it?:

This tool is not a plugin. Simply download the package from the link in the first post, extract it manually and read the installation instructions therin using the rest of this thread as a supplement.
 
@ RayManZ: You set the 'zero' to the actual suspend limit (is kind of confusing, I had to read it from monitor.php).

@ Everyone: I made a small script to monitor the database. Current functions:
  • Order by:
  • Domain
  • CPU Usage
  • Processes
  • Descending and Ascending
  • Search by domain
Any ideas on what to add are very welcome (e-mail (jochem at vuilnisbak dot com) or PM).

Download: domainmonitor.php
Test: domainmonitor/.
Username: admin
Password: password

The stats are live from the database.

[edit]I also recommend to set the $__url_source (in conf/configure.php) to http://localhost/server-status (replace server-status with whatever you're using). And change
Code:
ExtendedStatus On
<Location /server-status>
        SetHandler server-status
</Location>
To
Code:
ExtendedStatus On
<Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from localhost
</Location>
Security before everything ;).[/edit]

Jochem
 
Last edited:
XBL said:
@ RayManZ: You set the 'zero' to the actual suspend limit (is kind of confusing, I had to read it from monitor.php).

@ Everyone: I made a small script to monitor the database. Current functions:
  • Order by:
  • Domain
  • CPU Usage
  • Processes
  • Descending and Ascending
  • Search by domain
Any ideas on what to add are very welcome (e-mail (jochem at vuilnisbak dot com) or PM).

Download: domainmonitor.php
Test: domainmonitor/.
Username: admin
Password: password

The stats are live from the database.

[edit]I also recommend to set the $__url_source (in conf/configure.php) to http://localhost/server-status (replace server-status with whatever you're using). And change
Code:
ExtendedStatus On
<Location /server-status>
        SetHandler server-status
</Location>
To
Code:
ExtendedStatus On
<Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from localhost
</Location>
Security before everything ;).[/edit]

Jochem

My server goes down on this change in configure.php :confused:
 
where most I place the next code:

ExtendedStatus On
<Location /serverstatus>
SetHandler server-status
</Location>

IN: /usr/local/directadmin/data/users/User-Name-Of-The-Domain/httpd.conf
or /usr/local/directadmin/data/templates/httpd.conf


Like this:

# Frontpage requires these parameters in every httpd.conf file or else
# it won't work.
Port 80
ServerRoot /etc/httpd

ExtendedStatus On
<Location /serverstatus>
SetHandler server-status
</Location>

<VirtualHost MyIP:80>


ServerName www.mydomain.nl
etc etc......



Has anyone a example for me!
 
Last edited:
This should be placed in /etc/httpd/conf/httpd.conf and then restart apache.

Regards,
Onno Vrijburg
 
it dos't mather were I place this code?

exaple on the top?

Starting httpd: Syntax error on line 20 of /etc/httpd/conf/httpd.conf:
Invalid command 'ExtendedStatus', perhaps mis-spelled or defined by a module not included in the
 
Last edited:
cant, you show me a piece of your confg file?

I get evertime errors when I tried to restart httpd

Starting httpd: Syntax error on line 20 of /etc/httpd/conf/httpd.conf:
Invalid command 'ExtendedStatus', perhaps mis-spelled or defined by a module not included in the
 
Code:
...

<IfDefine HAVE_PUT>
AddModule mod_put.c
</IfDefine>
<IfDefine HAVE_PYTHON>
AddModule mod_python.c
</IfDefine>

ExtendedStatus On
<Location /server-status>
        SetHandler server-status
</Location>

Port 80

Listen 80
Listen 443

...

I see on this server I put is somewhere else...

Check to see that you don't have the entry "ExtendedStatus On" twice.

Regards,
Onno
 
OK, great service and a great tool!
A few days ago I have a atack on my server. After 4 hour we found the problem.
Whith this tool I will found the problem in 5 minutes!

I think it's a good idea to modify the INSTALL text, so that noobs also can install this script.
 
sniff i have this :

PHP Warning: main(./conf/configure.php): failed to open stream: No such file or directory in /home/hollinae/domains/testhollinae.com/public_html/monitordom/monitor.php on line 13

Warning: main(./conf/configure.php): failed to open stream: No such file or directory in /home/hollinae/domains/testhollinae.com/public_html/monitordom/monitor.php on line 13
PHP Fatal error: main(): Failed opening required './conf/configure.php' (include_path='.:/usr/local/lib/php') in /home/hollinae/domains/testhollinae.com/public_html/monitordom/monitor.php on line 13

Fatal error: main(): Failed opening required './conf/configure.php' (include_path='.:/usr/local/lib/php') in /home/hollinae/domains/testhollinae.com/public_html/monitordom/monitor.php on line 13

In /home/hollinae/domains/testhollinae.com/public_htlml/monitordom/ i have all files and directory for this script :\

If someone can help me, thank you :)
 
Edit / Nevermind ... i worked with bad domains :rolleyes:

But I Would like to know when it's really dangerous ? By example, I have a user who has
Average CPU : 6.75
Average Process : 0.84

Is it a lot, or not ?
 
Last edited:
XBL said:
@ RayManZ: You set the 'zero' to the actual suspend limit (is kind of confusing, I had to read it from monitor.php).

@ Everyone: I made a small script to monitor the database. Current functions:
  • Order by:
  • Domain
  • CPU Usage
  • Processes
  • Descending and Ascending
  • Search by domain
Any ideas on what to add are very welcome (e-mail (jochem at vuilnisbak dot com) or PM).

Download: domainmonitor.php
Test: domainmonitor/.
Username: admin
Password: password

The stats are live from the database.

[edit]I also recommend to set the $__url_source (in conf/configure.php) to http://localhost/server-status (replace server-status with whatever you're using). And change
Code:
ExtendedStatus On
<Location /server-status>
        SetHandler server-status
</Location>
To
Code:
ExtendedStatus On
<Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from localhost
</Location>
Security before everything ;).[/edit]

Jochem

Nice, but your demo is different then mine :(. I only get the same output as with monitor.php, so no login or anything.
Any ideas?
 
Last edited:
Very very usefull, thanks but, yes i have one ;)

I get allot of dots

Server Version: YuBsa
Server Built: Apr 7 2005 09:21:20
Current Time: Monday, 05-Sep-2005 15:38:23 CEST
Restart Time: Monday, 05-Sep-2005 11:15:15 CEST
Parent Server Generation: 0
Server uptime: 4 hours 23 minutes 8 seconds
Total accesses: 19601 - Total Traffic: 604.3 MB
CPU Usage: u238.41 s2.73 cu6.8 cs3.14 - 1.59% CPU load
1.24 requests/sec - 39.2 kB/second - 31.6 kB/request
1 requests currently being processed, 19 idle servers

__W_________________............................................
................................................................
................................................................

..... until (200 lines further)

................................................................

Scoreboard Key: etc

Everything after scoreboard is diplaying good :), but how can I get rid of the dots ? :confused:

What is wrong?
 
Status
Not open for further replies.
Back
Top