Current time: 04-18-2024, 04:39 PM Hello There, Guest! (LoginRegister)


Post Reply 
vhost monitoring
Author Message
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #1
vhost monitoring
Gibt es ein Script mit dem man alle vhosts monitoren kann?
Traffic, Prozesse, evtl. ddos ...
Also eine Übersicht aller vhost Aktivitäten auf einen Blick.
10-12-2007 08:48 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: vhost monitoring
Könnte man vielleicht mit Munin machen --> http://www.freshnet.org/wordpress/2007/0...ith-munin/

Greez BeNe
10-12-2007 09:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #3
RE: vhost monitoring
Hi BeNe,

Danke für den Link - habe Munin schon im Einsatz wusste aber nicht dass dies mit vhosts möglich ist.
Genau das habe ich gesucht :-)

BeNe Wrote:Könnte man vielleicht mit Munin machen --> http://www.freshnet.org/wordpress/2007/0...ith-munin/

Greez BeNe
10-12-2007 09:37 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: vhost monitoring
Kein Problem!
Vielleicht findest sich ja noch jemand der ein HowTo dazu schreibt.
Die sourcen für den Apache 2 sind ja auch schon da.
Und nützlich kann das sicher auch sein.

Greez BeNe
10-13-2007 12:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #5
RE: vhost monitoring
Hi BeNe,

komme mit dem kompilieren von mod_watch nicht klar Shy
Das liegt wohl an den Pfadangaben auf Etch ...
Wie müsste das aussehen?

Code:
# The location of apxs utility.
#
#APXS=/home/apache2/bin/apxs
APXS=/usr/bin/apxs

#
# The location of apachectl utility to stop/start/restart targets.
#
APACHECTL=apache2ctl

#
# Where the scripts should live
#
SCRIPTDIR=/usr/sbin

#
# Where to store the weenie files.
#
STATEDIR=/usr/local/apache2/modules/mod_watch/

#
# Define to use unsigned long long counters.
#
#BIG=-DUSE_OCTET_COUNTER_64
[/code]

BeNe Wrote:Kein Problem!
Vielleicht findest sich ja noch jemand der ein HowTo dazu schreibt.
Die sourcen für den Apache 2 sind ja auch schon da.
Und nützlich kann das sicher auch sein.

Greez BeNe
10-17-2007 03:33 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: vhost monitoring
Muss ich mir grad mal selber anschauen wie das taugt.

Welche Version hast du denn genommen ?
Mod_watch 4.3 für Apache 2.2 ? (mod_watch-4.3_apache22_mod.tar.gz)
-> http://forums.cacti.net/download.php?id=8888

Greez BeNe
10-17-2007 04:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #7
RE: vhost monitoring
Habe diese beiden getestet:
mod_watch403.tgz
mod_watch-4.3_apache22_mod.tar.gz

Code:
apxs:Break: Command failed with rc=1
make: *** [mod_watch.lo] Fehler 1

ich glaube dieser Pfad stimmt nicht:
Code:
# Where to store the weenie files.
#
STATEDIR=/usr/local/apache2/modules/mod_watch/
Code:
which apxs
/usr/bin/apxs

BeNe Wrote:Muss ich mir grad mal selber anschauen wie das taugt.

Welche Version hast du denn genommen ?
Mod_watch 4.3 für Apache 2.2 ? (mod_watch-4.3_apache22_mod.tar.gz)
-> http://forums.cacti.net/download.php?id=8888

Greez BeNe
10-17-2007 04:50 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: vhost monitoring
Ja, unter Etch ware das dann:
Code:
/usr/lib/apache2/modules/mod_watch/

Teste mal damit.

Greez BeNe
(This post was last modified: 10-17-2007 04:56 AM by BeNe.)
10-17-2007 04:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #9
RE: vhost monitoring
Sieht nicht gut aus Sad

Hier meine Makefile.dso
Code:
# The location of apxs utility.
#
#APXS=/home/apache2/bin/apxs
APXS=/usr/bin/apxs
# The location of apachectl utility to stop/start/restart targets.
#
APACHECTL=apache2ctl
#
# Where the scripts should live
#
SCRIPTDIR=/usr/sbin
#
# Where to store the weenie files.
#
STATEDIR=/usr/lib/apache2/modules/
#
# Define to use unsigned long long counters.
#
#BIG=-DUSE_OCTET_COUNTER_64
#
# Extras
#
DEF=$(BIG) -DSTATEDIR='\"$(STATEDIR)\"'
INC=/usr/sbin/
LIB=/usr/lib/

########################################################################
### No further configuration beyond this point.
########################################################################

Das ist auch seltsam >>>>>>>>

MODULEDIR = $(APACHEDIR)/src/modules/$(MODULE)

Fehler beim makefile build:
Code:
mod_watch.c:74:17: error: apr.h: Datei oder Verzeichnis nicht gefunden
mod_watch.c:75:21: error: apr_lib.h: Datei oder Verzeichnis nicht gefunden
mod_watch.c:76:25: error: apr_strings.h: Datei oder Verzeichnis nicht gefunden
mod_watch.c:83:19: error: unixd.h: Datei oder Verzeichnis nicht gefunden
[/code]
10-17-2007 05:04 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: vhost monitoring
Hast du denn überhaupt das apache2-dev paket drauf ?
Sieht nicht so aus... Rolleyes
Code:
APXS=/usr/bin/apxs
Muss sicherlich
Code:
/usr/bin/apxs2
sein.
Oder gibt es "/usr/bin/apxs" bei Dir ?

Greez BeNe
10-17-2007 05:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)