Current time: 12-29-2024, 03:41 AM Hello There, Guest! (LoginRegister)


Post Reply 
vhost monitoring
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #11
RE: vhost monitoring
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
(This post was last modified: 10-17-2007 09:59 PM by BeNe.)
10-17-2007 05:34 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: #12
RE: vhost monitoring
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
10-17-2007 05:45 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: #13
RE: vhost monitoring
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
10-17-2007 06:06 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: #14
RE: vhost monitoring
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
10-17-2007 06:21 PM
Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #15
RE: vhost monitoring
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)'
(This post was last modified: 10-17-2007 09:27 PM by fulltilt.)
10-17-2007 09:26 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: #16
RE: vhost monitoring
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
10-17-2007 10:45 PM
Visit this user's website 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: #17
RE: vhost monitoring
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/...D=on&pid=3

Dann muss ich mal noch weitersuchen....

Greez BeNe
10-17-2007 11:21 PM
Visit this user's website 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: #18
RE: vhost monitoring
ähhmm wo ist mein Post ??? Rolleyes
EDIT: OK, alles wieder da :-)

Greez BeNe
(This post was last modified: 10-17-2007 11:31 PM by BeNe.)
10-17-2007 11:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #19
RE: vhost monitoring
BeNe Wrote:ähhmm wo ist mein Post ??? Rolleyes

Greez BeNe

hier
http://www.isp-control.net/forum/vhost-m...l#pid13299

:-)
10-17-2007 11:28 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: #20
RE: vhost monitoring
Aah - das sieht gut aus ...
teste ich gleich mal

BeNe Wrote:Hab hier noch was gefunden ->
http://muninexchange.projects.linpro.no/...D=on&pid=3

Dann muss ich mal noch weitersuchen....

Greez BeNe
10-17-2007 11:30 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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