ispCP - Board - Support
vhost monitoring - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+--- Thread: vhost monitoring (/thread-1511.html)

Pages: 1 2 3 4 5 6 7 8


RE: vhost monitoring - BeNe - 10-17-2007 05:34 PM

So, habe es jetzt grad auch mal getestet und sieht soweit garnicht schlecht aus. Ist nur noch ein fehler beim einbinden in die httpd.conf...
aber es dürfte so dann schon benutzbar sein...

Code:
make -f Makefile.dso install
/usr/bin/apxs2 -c  -DSTATEDIR='\"usr/lib/apache2/modules/\"'  mod_watch.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include/postgresql -DSTATEDIR=\"usr/lib/apache2/modules/\"  -c -o mod_watch.lo mod_watch.c && touch mod_watch.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o mod_watch.la  -rpath /usr/lib/apache2/modules -module -avoid-version    mod_watch.lo
/usr/bin/apxs2 -c  -DSTATEDIR='\"usr/lib/apache2/modules/\"'  Memory.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include/postgresql -DSTATEDIR=\"usr/lib/apache2/modules/\"  -c -o Memory.lo Memory.c && touch Memory.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o Memory.la  -rpath /usr/lib/apache2/modules -module -avoid-version    Memory.lo
/usr/bin/apxs2 -c  -DSTATEDIR='\"usr/lib/apache2/modules/\"'  SharedHash.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include/postgresql -DSTATEDIR=\"usr/lib/apache2/modules/\"  -c -o SharedHash.lo SharedHash.c && touch SharedHash.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o SharedHash.la  -rpath /usr/lib/apache2/modules -module -avoid-version    SharedHash.lo
/usr/bin/apxs2 -c  -DSTATEDIR='\"usr/lib/apache2/modules/\"'  NetworkTable.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include/postgresql -DSTATEDIR=\"usr/lib/apache2/modules/\"  -c -o NetworkTable.lo NetworkTable.c && touch NetworkTable.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o NetworkTable.la  -rpath /usr/lib/apache2/modules -module -avoid-version    NetworkTable.lo
/usr/bin/apxs2 -c  -DSTATEDIR='\"usr/lib/apache2/modules/\"'   mod_watch.lo Memory.lo SharedHash.lo NetworkTable.lo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o mod_watch.la  -rpath /usr/lib/apache2/modules -module -avoid-version    mod_watch.lo Memory.lo SharedHash.lo NetworkTable.lo
chmod u+x mod_watch.pl
cp -f mod_watch.pl /usr/local/sbin
chmod u+x apache2mrtg.pl
cp -f apache2mrtg.pl /usr/local/sbin
/usr/bin/apxs2 -i -a -n 'watch' mod_watch.la
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' mod_watch.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp mod_watch.la /usr/lib/apache2/modules/
cp .libs/mod_watch.so /usr/lib/apache2/modules/mod_watch.so
cp .libs/mod_watch.lai /usr/lib/apache2/modules/mod_watch.la
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 644 /usr/lib/apache2/modules/mod_watch.so
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install] Fehler 1
Hier meine makefile.dso
Code:
########################################################################
### Pick one that best suits your system.
########################################################################

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

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

#
# Where the scripts should live
#
SCRIPTDIR=/usr/local/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=
LIB=

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

Greez BeNe


RE: vhost monitoring - fulltilt - 10-17-2007 05:45 PM

Thanks BeNe,

mein Fehler Shy
apxs2 > ich hatte in der conf apxs angegeben.
Solche kleinen aber wichtigen Details ...
Bin froh wenn das Modul funktioniert, erspart eine Menge zeit beim suchen in den Logs.

BeNe Wrote: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



RE: vhost monitoring - BeNe - 10-17-2007 06:06 PM

Habe momentan nur eine Testmachine hier steht, muss erst noch eine mit ispCP installieren. Dann werde ich das mal versuchen so in Munin einzubinden. Und wenn es klappt wäre da sicher ein HowTo nicht schlecht.
Falls es bei Dir also läuft und Du mir zuvor kommst gib bitte bescheid Wink

Greez BeNe


RE: vhost monitoring - fulltilt - 10-17-2007 06:21 PM

Hi BeNe,

habe momentan auch nur eine Installation in einer VM mit der alten xxx 2.1.7 installiert.

In der apache2.conf habe ich anstatt localhost die IP Adresse angegeben, erhalte sonst beim Test einen Fehler.
Code:
webserver:~/mod_watch-4.3_apache22_mod# ./mod_watch.pl -f ifRequests,ifDocuments http://192.168.0.35/watch-list/
1
0
58
SERVER

Mit dem HowTo machst am besten Du ... viele werden es Dir Danken :-)
Ich teste mal alles durch und gebe Dir Bescheid.

Greetz[/code]


BeNe Wrote:Habe momentan nur eine Testmachine hier steht, muss erst noch eine mit ispCP installieren. Dann werde ich das mal versuchen so in Munin einzubinden. Und wenn es klappt wäre da sicher ein HowTo nicht schlecht.
Falls es bei Dir also läuft und Du mir zuvor kommst gib bitte bescheid Wink

Greez BeNe



RE: vhost monitoring - fulltilt - 10-17-2007 09:26 PM

Irgendwie stimmt da noch etwas nicht bei den Pfaden beim make ...

Code:
webserver:/usr/share/munin/plugins# ./mod_watch.c _suggest

./mod_watch.c: line 1: /Backups: is a directory
./mod_watch.c: line 2: acpi: command not found
./mod_watch.c: line 3: acpi: command not found
./mod_watch.c: line 4: acpi: command not found
./mod_watch.c: line 5: acpi: command not found
./mod_watch.c: line 6: acpi: command not found
./mod_watch.c: line 6: Disclaimer.: command not found
./mod_watch.c: line 7: acpi: command not found
./mod_watch.c: line 8: acpi: command not found
./mod_watch.c: line 9: */: Datei oder Verzeichnis nicht gefunden
./mod_watch.c: line 15: /Backups: is a directory
./mod_watch.c: line 16: acpi: command not found
./mod_watch.c: line 17: acpi: command not found
./mod_watch.c: line 18: acpi: command not found
./mod_watch.c: line 19: acpi: command not found
./mod_watch.c: line 20: acpi: command not found
./mod_watch.c: line 21: acpi: command not found
./mod_watch.c: line 22: acpi: command not found
./mod_watch.c: line 23: acpi: command not found
./mod_watch.c: line 24: acpi: command not found
./mod_watch.c: line 25: */: Datei oder Verzeichnis nicht gefunden
./mod_watch.c: line 30: /Backups: is a directory
./mod_watch.c: line 31: acpi: command not found
./mod_watch.c: line 32: acpi: command not found
./mod_watch.c: line 33: */: Datei oder Verzeichnis nicht gefunden
./mod_watch.c: line 38: /Backups: is a directory
./mod_watch.c: line 80: acpi: command not found
./mod_watch.c: line 389: acpi: command not found
./mod_watch.c: line 390: acpi: command not found
./mod_watch.c: line 391: acpi: command not found
./mod_watch.c: line 392: acpi: command not found
./mod_watch.c: line 393: acpi: command not found
./mod_watch.c: line 394: acpi: command not found
./mod_watch.c: line 395: */: Datei oder Verzeichnis nicht gefunden
./mod_watch.c: line 396: static: command not found
./mod_watch.c: line 397: syntax error near unexpected token `request_rec'
./mod_watch.c: line 397: `watchGetCanonicalName(request_rec *r)'



RE: vhost monitoring - BeNe - 10-17-2007 10:45 PM

Wieso startest du die mod_watch.c ??
Das ist doch eine source Datei Rolleyes

Bin auch grad dabei das zu testen:
Code:
./mod_watch.pl -f ifRequests,ifDocuments http://127.0.0.1/watch-list/
164
4
6.03
SERVER
Bis hier her passt das schon mal wie ich das sehe.
Jetzt muss es noch in Munin rein...

Greez BeNe


RE: vhost monitoring - BeNe - 10-17-2007 11:21 PM

Was mir jetzt grad aufällt, wie du auch schon gesagt hast:
Ich habe keine Datei "mod_watch" oder "apache_watch" um
diese nach /usr/share/munin/plugins/ kopieren kann [Image: a015.gif]

Hab hier noch was gefunden ->
http://muninexchange.projects.linpro.no/?search=&cid=1&os%5B4%5D=on&os%5B7%5D=on&os%5B3%5D=on&os%5B2%5D=on&os%5B5%5D=on&os%5B8%5D=on&os%5B1%5D=on&os%5B6%5D=on&pid=3

Dann muss ich mal noch weitersuchen....

Greez BeNe


RE: vhost monitoring - BeNe - 10-17-2007 11:23 PM

ähhmm wo ist mein Post ??? Rolleyes
EDIT: OK, alles wieder da :-)

Greez BeNe


RE: vhost monitoring - joximu - 10-17-2007 11:28 PM

BeNe Wrote:ähhmm wo ist mein Post ??? Rolleyes

Greez BeNe

hier
http://www.isp-control.net/forum/vhost-monitoring-t-1511.html#pid13299

:-)


RE: vhost monitoring - fulltilt - 10-17-2007 11:30 PM

Aah - das sieht gut aus ...
teste ich gleich mal

BeNe Wrote:Hab hier noch was gefunden ->
http://muninexchange.projects.linpro.no/?search=&cid=1&os%5B4%5D=on&os%5B7%5D=on&os%5B3%5D=on&os%5B2%5D=on&os%5B5%5D=on&os%5B8%5D=on&os%5B1%5D=on&os%5B6%5D=on&pid=3

Dann muss ich mal noch weitersuchen....

Greez BeNe