Current time: 11-15-2024, 03:35 AM Hello There, Guest! (LoginRegister)


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

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #61
RE: vhost monitoring
So ist jetzt alles im Wiki --> http://www.isp-control.net/ispcp/wiki/howto_munin
Wäre aber trotzdem nicht schlecht wenn nochmals jemand drüber schaut oder sogar mal testet.

Quote:Bedanken muss ich mich wohl eher bei Dir
Kein Thema!
Meine Reputation hast du ja schon Wink

Ich werde mir dann mal die anderen Plugins anschauen.

Greez BeNe
10-19-2007 12:44 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: #62
RE: vhost monitoring
Hi BeNe,

bestens Wink

Wenn Du mal Langeweile hast ...
Schau Dir bitte mal das fail2ban plugin an - da gibst auch keine Graphen.

Code:
Mod fail2ban:
chmod 755 /usr/share/munin/plugins/fail2ban
ln -s /usr/share/munin/plugins/fail2ban /etc/munin/plugins/fail2ban
cd /usr/share/munin/plugins/
./fail2ban autoconf
munin-run fail2ban config
/etc/init.d/munin-node restart

Code:
nano /etc/munin/plugin-conf.d/munin-node

[fail2ban]
env.lrrd_root root
10-19-2007 01:12 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: #63
RE: vhost monitoring
Quote:Wenn Du mal Langeweile hast ...
Schau Dir bitte mal das fail2ban plugin an - da gibst auch keine Graphen.
Ja das kann ich machen...musst aber erstmal ein Server damit bestücken Rolleyes

Greez BeNe
10-19-2007 01:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
hbaes Offline
Junior Member
*

Posts: 23
Joined: Nov 2007
Reputation: 0
Post: #64
RE: vhost monitoring
Hallo,

kann mir jemand verraten wo ich das apache mod (mod_watch) herbekomme ?
der download link auf cacti.net scheint nicht zu funktionieren Sad

mercy

Harald
11-29-2007 09:40 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: #65
RE: vhost monitoring
Hab es mal auf meine Server gelegt:
--> http://bene.homelinux.net/files/mod_watc...mod.tar.gz

Greez BeNe
11-29-2007 10:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
hbaes Offline
Junior Member
*

Posts: 23
Joined: Nov 2007
Reputation: 0
Post: #66
RE: vhost monitoring
mercy danke vielmals !
11-30-2007 12:10 AM
Find all posts by this user Quote this message in a reply
Galeon Offline


Posts: 3
Joined: Jan 2008
Reputation: 0
Post: #67
RE: vhost monitoring
hallo zusammen,

ich muss das hier mal wieder hochziehen da ich momentan auch vor dem problem stehe das mir für apache_watch keine pngs generiert werden. ich meine das wiki gewissenhaft verfolgt zu haben.
aber mal lieber ein paar daten, hoffentlich kann mir jemand weiterhelfen, ich zermarter mir schon die rübe Wink

(edit: das ganze läuft auf einem frisch aufgesetzten debian etch)

Das Modul (mod_watch-4.3_apache22_mod) ist kompiliert und geladen
Code:
server-wodan:~# apache2ctl -M
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
dir_module (shared)
env_module (shared)
fastcgi_module (shared)
info_module (shared)
mime_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_http_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
watch_module (shared)
Syntax OK

die html-dateien werden erzeugt:
Code:
server-wodan:/var/www/munin/localdomain# ls -hal *apache*
-rw-r--r-- 1 munin munin 4.0K 2008-01-04 16:25 localhost.localdomain-apache_watch_bytes.html
-rw-r--r-- 1 munin munin 4.1K 2008-01-04 16:25 localhost.localdomain-apache_watch_documents.html
-rw-r--r-- 1 munin munin 4.0K 2008-01-04 16:25 localhost.localdomain-apache_watch_requests.html

mod_watch.pl -f ifRequests,ifDocuments bringt:
Code:
server-wodan:/usr/local/sbin# ./mod_watch.pl -f ifRequests,ifDocuments http://127.0.0.1/watch-list/
13131
2476
10:12.48
SERVER

die configs liefen meines erachtens auch gut durch
Code:
server-wodan:/usr/share/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
admin_server_wodan_de.label admin.server-wodan.de
admin_server_wodan_de.draw AREA
admin_server_wodan_de.type COUNTER
ende_expert_gamer_de.label ende.expert-gamer.de
ende_expert_gamer_de.draw STACK
ende_expert_gamer_de.type COUNTER
expert_gamer_de.label expert-gamer.de
expert_gamer_de.draw STACK
expert_gamer_de.type COUNTER
server_wodan_de.label server-wodan.de
server_wodan_de.draw STACK
server_wodan_de.type COUNTER
server-wodan:/usr/share/munin/plugins# munin-run apache_watch_documents config
graph_title Apache Documents served
graph_args --base 1000 -l 0
graph_category apache
graph_vlabel activity
admin_server_wodan_de.label admin.server-wodan.de
admin_server_wodan_de.draw AREA
admin_server_wodan_de.type COUNTER
ende_expert_gamer_de.label ende.expert-gamer.de
ende_expert_gamer_de.draw STACK
ende_expert_gamer_de.type COUNTER
expert_gamer_de.label expert-gamer.de
expert_gamer_de.draw STACK
expert_gamer_de.type COUNTER
server_wodan_de.label server-wodan.de
server_wodan_de.draw STACK
server_wodan_de.type COUNTER
server-wodan:/usr/share/munin/plugins# munin-run apache_watch_requests config
graph_title Apache Requests
graph_args --base 1000 -l 0
graph_category apache
graph_vlabel activity
admin_server_wodan_de.label admin.server-wodan.de
admin_server_wodan_de.draw AREA
admin_server_wodan_de.type COUNTER
ende_expert_gamer_de.label ende.expert-gamer.de
ende_expert_gamer_de.draw STACK
ende_expert_gamer_de.type COUNTER
expert_gamer_de.label expert-gamer.de
expert_gamer_de.draw STACK
expert_gamer_de.type COUNTER
server_wodan_de.label server-wodan.de
server_wodan_de.draw STACK
server_wodan_de.type COUNTER

ein manuelles ausführen der requests
Code:
server-wodan:/usr/share/munin/plugins# munin-run apache_watch_requests --debug
DEBUG: Skipping "Debian-exim" (optional).
Saving mysql*->env->mysqlopts = --defaults-extra-file=/etc/mysql/debian.cnf...
# file: 'apache_watch_requests'
# Want to run as euid/egid 65534/111
# Running as uid/gid/euid/egid 65534/111 111/65534/111 111
DEBUG: About to exec "/etc/munin/plugins/apache_watch_requests".admin_server_wodan_de.value 2144
ende_expert_gamer_de.value 8
expert_gamer_de.value 658
server_wodan_de.value 8996

munin-update.log
Code:
Jan 04 16:35:01 - Starting munin-update
Jan 04 16:35:01 [27443] - Processing domain: localdomain
Jan 04 16:35:01 [27443] - Processing node: localhost.localdomain
Jan 04 16:35:01 [27444] - Configured service: localhost.localdomain -> open_inodes (0.05 sec)
Jan 04 16:35:01 [27444] - Configured service: localhost.localdomain -> if_err_eth0 (0.06 sec)
Jan 04 16:35:01 [27444] - Configured service: localhost.localdomain -> mysql_slowqueries (0.05 sec)
Jan 04 16:35:01 [27444] - Configured service: localhost.localdomain -> entropy (0.05 sec)
Jan 04 16:35:01 [27444] - Configured service: localhost.localdomain -> irqstats (0.05 sec)
Jan 04 16:35:01 [27444] - Configured service: localhost.localdomain -> postfix_mailqueue (0.05 sec)
Jan 04 16:35:01 [27444] - Configured service: localhost.localdomain -> if_eth0 (0.06 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> processes (0.05 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> apache_watch_requests (0.19 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> apache_watch_documents (0.19 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> df (0.10 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> mysql_threads (0.05 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> interrupts (0.05 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> netstat (0.05 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> swap (0.05 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> mysql_bytes (0.05 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> load (0.05 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> cpu (0.08 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> df_inode (0.06 sec)
Jan 04 16:35:02 [27444] - Configured service: localhost.localdomain -> postfix_mailvolume (0.05 sec)
Jan 04 16:35:03 [27444] - Configured service: localhost.localdomain -> mysql_queries (0.05 sec)
Jan 04 16:35:03 [27444] - Configured service: localhost.localdomain -> forks (0.05 sec)
Jan 04 16:35:03 [27444] - Configured service: localhost.localdomain -> iostat (0.06 sec)
Jan 04 16:35:03 [27444] - Configured service: localhost.localdomain -> open_files (0.05 sec)
Jan 04 16:35:03 [27444] - Configured service: localhost.localdomain -> memory (0.05 sec)
Jan 04 16:35:03 [27444] - Configured service: localhost.localdomain -> apache_watch_bytes (0.19 sec)
Jan 04 16:35:03 [27444] - Configured service: localhost.localdomain -> vmstat (0.05 sec)
Jan 04 16:35:03 [27444] - Configured node: localhost.localdomain (1.95 sec)
Jan 04 16:35:03 [27444] - Fetched service: localhost.localdomain -> open_inodes (0.05 sec)
Jan 04 16:35:03 [27444] - Fetched service: localhost.localdomain -> if_err_eth0 (0.06 sec)
Jan 04 16:35:03 [27444] - Fetched service: localhost.localdomain -> irqstats (0.05 sec)
Jan 04 16:35:03 [27444] - Fetched service: localhost.localdomain -> entropy (0.05 sec)
Jan 04 16:35:03 [27444] - Fetched service: localhost.localdomain -> mysql_slowqueries (0.07 sec)
Jan 04 16:35:03 [27444] - Fetched service: localhost.localdomain -> processes (0.06 sec)
Jan 04 16:35:03 [27444] - Fetched service: localhost.localdomain -> if_eth0 (0.06 sec)
Jan 04 16:35:03 [27444] - Fetched service: localhost.localdomain -> postfix_mailqueue (0.08 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> apache_watch_requests (0.19 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> apache_watch_documents (0.19 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> mysql_threads (0.07 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> df (0.10 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> netstat (0.06 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> interrupts (0.06 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> swap (0.05 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> mysql_bytes (0.07 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> load (0.05 sec)
Jan 04 16:35:04 [27444] - Fetched service: localhost.localdomain -> df_inode (0.15 sec)
Jan 04 16:35:05 [27444] - Fetched service: localhost.localdomain -> cpu (0.06 sec)
Jan 04 16:35:05 [27444] - Fetched service: localhost.localdomain -> postfix_mailvolume (0.05 sec)
Jan 04 16:35:05 [27444] - Fetched service: localhost.localdomain -> mysql_queries (0.08 sec)
Jan 04 16:35:05 [27444] - Fetched service: localhost.localdomain -> open_files (0.05 sec)
Jan 04 16:35:05 [27444] - Fetched service: localhost.localdomain -> iostat (0.06 sec)
Jan 04 16:35:05 [27444] - Fetched service: localhost.localdomain -> forks (0.05 sec)
Jan 04 16:35:05 [27444] - Fetched service: localhost.localdomain -> memory (0.05 sec)
Jan 04 16:35:05 [27444] - Fetched service: localhost.localdomain -> apache_watch_bytes (0.19 sec)
Jan 04 16:35:06 [27444] - Fetched service: localhost.localdomain -> vmstat (1.06 sec)
Jan 04 16:35:06 [27444] - Fetched node: localhost.localdomain (3.13 sec)
Jan 04 16:35:01 [27443] - Processed node: localhost.localdomain (0.02 sec)
Jan 04 16:35:01 [27443] - Processed domain: localdomain (0.02 sec)
Jan 04 16:35:06 [27443] - connection from localdomain -> localhost.localdomain (27444)
Jan 04 16:35:06 [27443] - connection from localdomain -> localhost.localdomain (27444) closed
Jan 04 16:35:06 [27443] - Munin-update finished (5.14 sec)

die graph.log ist lustiger weise leer.

hoffe mit den ganzen infos kann jemand etwas anfangen =)


Attached File(s) Thumbnail(s)
   
(This post was last modified: 01-05-2008 01:40 AM by Galeon.)
01-05-2008 01:39 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: #68
RE: vhost monitoring
Also deine Module scheine ja schon mal in Apache korrekt zu sein.
Hast Du auch symlinks in /etc/munin/plugins ?

Code:
lrwxrwxrwx 1 root root 38 Oct 25 14:25 apache_watch_bytes -> /usr/share/munin/plugins/apache_watch_
lrwxrwxrwx 1 root root 38 Oct 25 14:25 apache_watch_documents -> /usr/share/munin/plugins/apache_watch_
lrwxrwxrwx 1 root root 38 Oct 25 14:25 apache_watch_requests -> /usr/share/munin/plugins/apache_watch_

Gehen denn andere Graphen mit Munin?

Greez BeNe
01-05-2008 01:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Galeon Offline


Posts: 3
Joined: Jan 2008
Reputation: 0
Post: #69
RE: vhost monitoring
hi bene,

danke schonmal für die flotte antwort.

die symlinks sind da und alle anderen graphen funktionieren wunderprächtig
Code:
server-wodan:/etc/munin/plugins# ls -hal apache*
lrwxrwxrwx 1 root root 38 2008-01-03 03:36 apache_watch_bytes -> /usr/share/munin/plugins/apache_watch_
lrwxrwxrwx 1 root root 38 2008-01-03 03:36 apache_watch_documents -> /usr/share/munin/plugins/apache_watch_
lrwxrwxrwx 1 root root 38 2008-01-03 03:36 apache_watch_requests -> /usr/share/munin/plugins/apache_watch_
01-05-2008 01:58 AM
Find all posts by this user Quote this message in a reply
Galeon Offline


Posts: 3
Joined: Jan 2008
Reputation: 0
Post: #70
RE: vhost monitoring
Hm, also um das mal kurz anzuschieben. davon ab das die apachegraphen nicht gezeichnet werden aktualisiert munin gar keinen von alleine.

etwas merkwürdigt sieht auch das hier aus
Code:
server-wodan:/var/log/munin# munin-run --debug
DEBUG: Skipping "Debian-exim" (optional).
Saving mysql*->env->mysqlopts = --defaults-extra-file=/etc/mysql/debian.cnf...
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
ERROR: Could not execute plugin (plugin doesn't exist?).
01-09-2008 09:05 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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