Current time: 04-20-2024, 09:12 PM Hello There, Guest! (LoginRegister)


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

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #31
RE: vhost monitoring
Das ist sicher mitunter ein Grund warum das verlinkt werden muss.
Ich habe jetzt testhalber einfach mal ab Zeile 84 das auskommentiert

Code:
# From here and out, the plugin must be run with a symlinked service.
#my $check = join ("|", keys %plugs);
#die ("Plugin must be symlinked to aspect to be monitored")
#  unless $0 =~ /\_($check)$/;

Kann aber auch sein, das es zu viel war was ich da raus habe Rolleyes

Greez BeNe
10-18-2007 12:51 AM
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: #32
RE: vhost monitoring
Und schon wieder keine post zu sehen....

Greez BeNe
10-18-2007 12:52 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: #33
RE: vhost monitoring
Umbenenne mal apache_watch_ nach > /usr/share/munin/plugins/apache_watch

dann

Code:
cd /etc/munin/plugins
ln -sf /usr/share/munin/plugins/apache_watch apache_watch_bytes
ln -sf /usr/share/munin/plugins/apache_watch apache_watch_documents
ln -sf /usr/share/munin/plugins/apache_watch apache_watch_requestes

Jetzt tauchen die Titel schon mal auf - ohne das script zu modifizieren.
(This post was last modified: 10-18-2007 01:27 AM by fulltilt.)
10-18-2007 01:18 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: #34
RE: vhost monitoring
Ich denke der Fehler ist mir beim kompilieren passtiert Rolleyes
Und zwar genau hier ->
Code:
# Where to store the weenie files.
#
STATEDIR=/usr/lib/apache2/modules/
Das ist falsch!
Das sind nämlich die ganzen Module drin, die in der Grafik aufgezeigt werden.
Müssten wenn dann in ein Unterverzeichniss ala
Code:
# Where to store the weenie files.
#
STATEDIR=/usr/lib/apache2/modules/mod_watch

Sorry - war wohl mein Fehler....
Bin davon von der .so datei ausgeangen

Greez BeNe
10-18-2007 01:35 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: #35
RE: vhost monitoring
Hm,

also das umbenennen wars nicht ...
an der Shell scheints zu funktionieren - aber keine Graphen ...
Code:
webserver:/etc/munin/plugins# munin-run apache_watch_bytes config
graph_title Apache Input/output (bytes)
graph_args --base 1000 -l 0
graph_category apache
graph_vlabel activity

Code:
Download: apache_watch_
http://muninexchange.projects.linpro.no/?search&cid=1&pid=3&phid=123
Kopieren nach /usr/share/munin/plugins/apache_watch_

apt-get install libcrypt-ssleay-perl libwww-perl

cd /etc/munin/plugins
ln -sf /usr/share/munin/plugins/apache_watch_ apache_watch_bytes
ln -sf /usr/share/munin/plugins/apache_watch_ apache_watch_documents
ln -sf /usr/share/munin/plugins/apache_watch_ apache_watch_requestes

BeNe Wrote:Ich denke der Fehler ist mir beim kompilieren passtiert Rolleyes
Und zwar genau hier ->
Code:
# Where to store the weenie files.
#
STATEDIR=/usr/lib/apache2/modules/
Das ist falsch!
Das sind nämlich die ganzen Module drin, die in der Grafik aufgezeigt werden.
Müssten wenn dann in ein Unterverzeichniss ala
Code:
# Where to store the weenie files.
#
STATEDIR=/usr/lib/apache2/modules/mod_watch

Sorry - war wohl mein Fehler....
Bin davon von der .so datei ausgeangen

Greez BeNe
(This post was last modified: 10-18-2007 02:43 AM by fulltilt.)
10-18-2007 01:42 AM
Find all posts by this user Quote this message in a reply
Slowman Offline
Member
***

Posts: 332
Joined: Feb 2007
Reputation: 0
Post: #36
RE: vhost monitoring
Sorry für OT, aber wenn ihr das hier durchgekämpft habt, kann dann jemand von Euch den Howto aktualiseren ?
10-18-2007 02:22 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: #37
RE: vhost monitoring
Hi BeNe,

das kommt bei mir aufs gleiche raus ...
STATEDIR=usr/lib/apache2/modules/mod_watch/

Das Verzeichnis wird beim make nicht angelegt, allerdings die Fehlermeldung mit der httpd.conf blieb jetzt aus.
Leider noch keine Graphen Sad

BeNe Wrote:Ich denke der Fehler ist mir beim kompilieren passtiert Rolleyes
Und zwar genau hier ->
Code:
# Where to store the weenie files.
#
STATEDIR=/usr/lib/apache2/modules/
Das ist falsch!
Das sind nämlich die ganzen Module drin, die in der Grafik aufgezeigt werden.
Müssten wenn dann in ein Unterverzeichniss ala
Code:
# Where to store the weenie files.
#
STATEDIR=/usr/lib/apache2/modules/mod_watch

Sorry - war wohl mein Fehler....
Bin davon von der .so datei ausgeangen

Greez BeNe
10-18-2007 02:52 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: #38
RE: vhost monitoring
So, bin jetzt endlich daheim!
Ok ich werde mir das alles nochmals anschauen, irendwann haben wir es dann auch mal Wink

Liegt den bei Dir in "/usr/lib/apache2/modules/" eine Datei namens "SERVER" ?
Quote:STATEDIR=usr/lib/apache2/modules/mod_watch/
Da fehlt "/" am Anfang der Zeile, fehlt das auch in deiner Config ?
Sagen den die Munin Log etwas ?

Greez BeNe
10-18-2007 03:58 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: #39
RE: vhost monitoring
BeNe Wrote:Liegt den bei Dir in "/usr/lib/apache2/modules/" eine Datei namens "SERVER" ?
Quote:STATEDIR=usr/lib/apache2/modules/mod_watch/
Da fehlt "/" am Anfang der Zeile, fehlt das auch in deiner Config ?
Sagen den die Munin Log etwas ?

Der Slash mal wieder ...
Habe es nochmal alles durchlaufen lassen.
Das Verzeichnis wurde angelegt mit Subfolder IP und die Datei SERVER liegt daneben. Aber immer noch keine Graphs (allerdings die Titel der Graphs mit Link).

Das Teil meckert immer noch wg. der Symlinks ... die sind aber vorhanden.
Ach ja - das habe ich auch noch gemacht:
Code:
/etc/munin/plugin-conf.d > einfügen
[mod_watch.c]
user root

[apache_watch_]
user root

cd /usr/share/munin/plugins/
./apache_watch_ autoconf
./mod_watch.c autoconf

Log:
Müssen da die Ports noch aufgemacht werden?

Code:
2007/10/17-22:15:01 CONNECT TCP Peer: "127.0.0.1:1862" Local: "127.0.0.1:4949"
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:15:04 Plugin "apache_watch_requestes" exited with status 65280. ----
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:15:08 Plugin "apache_watch_requestes" exited with status 65280. ----
2007/10/17-22:20:01 CONNECT TCP Peer: "127.0.0.1:1882" Local: "127.0.0.1:4949"
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:20:04 Plugin "apache_watch_requestes" exited with status 65280. ----
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:20:08 Plugin "apache_watch_requestes" exited with status 65280. ----
2007/10/17-22:25:01 CONNECT TCP Peer: "127.0.0.1:4479" Local: "127.0.0.1:4949"
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:25:04 Plugin "apache_watch_requestes" exited with status 65280. ----
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:25:08 Plugin "apache_watch_requestes" exited with status 65280. ----
2007/10/17-22:30:02 CONNECT TCP Peer: "127.0.0.1:4939" Local: "127.0.0.1:4949"
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:30:09 Plugin "apache_watch_requestes" exited with status 65280. ----
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:30:15 Plugin "apache_watch_requestes" exited with status 65280. ----
2007/10/17-22:35:01 CONNECT TCP Peer: "127.0.0.1:1364" Local: "127.0.0.1:4949"
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:35:04 Plugin "apache_watch_requestes" exited with status 65280. ----
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
2007/10/17-22:35:09 Plugin "apache_watch_requestes" exited with status 65280. ----
2007/10/17-22:36:03 Server closing!
Process Backgrounded
2007/10/17-22:36:03 MyPackage (type Net::Server::Fork) starting! pid(6787)
Binding to TCP port 4949 on host 127.0.0.1
Plugin must be symlinked to aspect to be monitored at /etc/munin/plugins/apache_watch_requestes line 86.
10-18-2007 04:45 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: #40
RE: vhost monitoring
Quote:Der Slash mal wieder ...
Jaja - sowas wird nicht verziehen Big Grin

Quote:Das Verzeichnis wurde angelegt mit Subfolder IP und die Datei SERVER liegt daneben. Aber immer noch keine Graphs (allerdings die Titel der Graphs mit Link).
Und wir kommen Schritt für Schritt weiter.
Quote:Das Teil meckert immer noch wg. der Symlinks ... die sind aber vorhanden.
Wenn du die Zeilen nochmals auskommentierst ?
Hatte ja vorher auch schon was gebracht. Habe genau das selbe Problem.
Ist ja schon ein Symlink..
Quote:Müssen da die Ports noch aufgemacht werden?
Nein, die werden ja direkt local an der Maschine geöffnet.
Habe genau die selben Einträge.

Ich muss mir jetzt hier schnell eine Machine installieren.
Der VPN zur Firma scheint grad nicht zugehen...da steht die Machine von heute Mittag Rolleyes
Sonst muss ich das auf morgen verschieben. Bin auf jeden Fall noch an der Sache dran. Das wurmt micht jetzt Smile

Greez BeNe
10-18-2007 05:11 AM
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)