Deutsch| English
  #1  
Alt 14.02.2011, 21:57
pee pee ist offline
Erfahrener Benutzer
 
Registriert seit: 26.05.2009
Beiträge: 260
Frage Systemauslastung über Zeitraum anzeigen lassen

Hi,

kennt jemand ein Programm, welches sich einfach über den Paketmanager von Debian installieren lässt und mit welchem ich die Systemauslastung (CPU, RAM) über einen Zeitraum anzeigen lassen kann? Am besten noch im Bezug auf einzelne Websites. Es ist mir wichtig, dass es wirklich einfach benutzbar ist und man möglichst wenig in den Configs tüffteln muss.

Liebe Grüße,
pee
__________________
"A few minutes of manual reading, can save hours of try and error" - die offizielle ISPC Dokumentation: http://ispc-wiki.org
Mit Zitat antworten
  #2  
Alt 14.02.2011, 22:02
Administrator
 
Registriert seit: 08.08.2007
Beiträge: 8.823
Standard

Ich kann Dir da munin empfehlen:

http://www.howtoforge.com/server-mon...n-debian-lenny

Ist auch ganz einfach zu installieren. Das ist aber nur für ein globales monitoring geeignet, ein Tool welches das nach einzelnen Wesbeiten machen kann ist mir nicht bekannt.
Mit Zitat antworten
  #3  
Alt 14.02.2011, 22:25
pee pee ist offline
Erfahrener Benutzer
 
Registriert seit: 26.05.2009
Beiträge: 260
Frage

Habe Munin laut der Anleitung installiert. Also innerhalb eines bestehenden Webs einen Ordner für Munin angelegt, damit ich diesen über eine Domain aufrufen kann. Allerdings bleibt der auch nach einigen Minuten Ordner leer. In der munin-node.log steht auch nicht sonderlich viel:


Code:
 Process Backgrounded
  2 2011/02/14-22:11:08 MyPackage (type Net::Server::Fork) starting! pid(15022)
  3 Binding to TCP port 4949 on host *
  4 2011/02/14-22:15:02 CONNECT TCP Peer: "127.0.0.1:43562" Local: "127.0.0.1:49    49"
  5 2011/02/14-22:15:23 Server closing!
  6 Process Backgrounded
  7 2011/02/14-22:15:23 MyPackage (type Net::Server::Fork) starting! pid(15433)
  8 Binding to TCP port 4949 on host *
  9 2011/02/14-22:20:01 CONNECT TCP Peer: "127.0.0.1:52969" Local: "127.0.0.1:49    49"
__________________
"A few minutes of manual reading, can save hours of try and error" - die offizielle ISPC Dokumentation: http://ispc-wiki.org
Mit Zitat antworten
  #4  
Alt 14.02.2011, 22:33
Administrator
 
Registriert seit: 08.08.2007
Beiträge: 8.823
Standard

Überprüf nochmal, ob der Ordner wirklich dem muniun user gehört und dass Du munin auch neu gestaret hast nach der config änderung. Dann warte etwas länger.
Mit Zitat antworten
  #5  
Alt 14.02.2011, 22:47
pee pee ist offline
Erfahrener Benutzer
 
Registriert seit: 26.05.2009
Beiträge: 260
Frage

Der Ordner gehört Munin

Code:
drwxrwxrwx  2 munin munin    4096 Feb 14 22:14 monitoring
in der Config habe ich folgendes eingetragen:


Code:
# The next three variables specifies where the location of the RRD
# databases, the HTML output, and the logs, severally.  They all
# must be writable by the user running munin-cron.
dbdir   /var/lib/munin
htmldir /var/www/clients/client2/web3/web/monitoring
logdir  /var/log/munin
rundir  /var/run/munin
Als Hostname habe ich server1.example.com (= natürlich eine Domain von mir) gewählt.

Sollte also nichts vorhanden sein, was Munin behindert, oder?
__________________
"A few minutes of manual reading, can save hours of try and error" - die offizielle ISPC Dokumentation: http://ispc-wiki.org
Mit Zitat antworten
  #6  
Alt 14.02.2011, 22:49
pee pee ist offline
Erfahrener Benutzer
 
Registriert seit: 26.05.2009
Beiträge: 260
Standard

Mutt meldet zudem, dass der Munin-Cron schon mehrere Male durchlief:

Code:
   1 N F Feb 14 To root@... (   4) Cron <munin@...> if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi                                 
   2 N F Feb 14 To root@... (   4) Cron <munin@...> if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi                                 
   3 N F Feb 14 To root@... (   4) Cron <munin@...> if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi
__________________
"A few minutes of manual reading, can save hours of try and error" - die offizielle ISPC Dokumentation: http://ispc-wiki.org
Mit Zitat antworten
  #7  
Alt 15.02.2011, 15:36
pee pee ist offline
Erfahrener Benutzer
 
Registriert seit: 26.05.2009
Beiträge: 260
Standard

Über Nacht immer noch nichts im Monitoring-Ordner. Soviel zu Munin und »einfach«.

Ich habe das Problem, dass mir der Arbeitsspeicher auf dem Server gestern und heute offenbar voll gelaufen ist. Der Server lies keinen Connect mehr zu, nach dem Restart ging wieder alles. Ein Mitarbeiter vom Rechenzentrum, dass dies in 99% der Fälle eben ein Volllaufen des Arbeitsspeichers ist. Ich würde gerne wissen, was den Arbeitsspeicher lähmt und wie ich das verhindern kann.
__________________
"A few minutes of manual reading, can save hours of try and error" - die offizielle ISPC Dokumentation: http://ispc-wiki.org

Geändert von pee (15.02.2011 um 15:42 Uhr).
Mit Zitat antworten
  #8  
Alt 15.02.2011, 16:09
Administrator
 
Registriert seit: 08.08.2007
Beiträge: 8.823
Standard

Poste bitte mal die vollständige Datei /etc/munin/munin.conf
Mit Zitat antworten
  #9  
Alt 15.02.2011, 16:10
Erfahrener Benutzer
 
Registriert seit: 12.12.2010
Beiträge: 111
Standard

Also ich habe mir munin am WE auf dem Server eingerichtet und es funktioniert problemlos.

Bin wie folgt vorgegangen:
1. In ISPc3 eine eigene Domain und Web (munin.MEINEDOMAIN.DE) eingerichtet,
2. in der Muininkonfiguration (/etc/munin/plugin-conf/munin.node) den Pfad zum htmldir geändert (/var/www/clients/clientX/webY/web),
3. die Benutzerberechtigungen geändert
(chmod munin:munin -R /var/www/clients/clientX/webY/web && chmod 755 -R /var/www/clients/clientX/webY/web),
4. den Benutzer munin der Gruppe www-data und den Benutzer clientX der Gruppe munin hinzugefügt (adduser munin www-data && adduser clientX munin) und
5. da es dann noch nicht ganz funktionierte den webuser der Gruppe munin hinzugefügt (adduser webY munin).

Hoffe ich habe keinen Schritt vergessen (habe die Quellen gerade nicht zur Hand), aber so funktioniert es bei mir - vor allem als eigenes Web mit entsprechend eigenen Traffic- und Quotabeschränkungen.


Kommt denn physikalisch was in deinem Ordner an oder liegt es z.b. wirklich an den Rechten? Den Dienst hast du auch neu gestartet (/etc/init.d/munin-node restart)?
Mit Zitat antworten
  #10  
Alt 15.02.2011, 17:43
pee pee ist offline
Erfahrener Benutzer
 
Registriert seit: 26.05.2009
Beiträge: 260
Standard

Zitat:
Zitat von Till Beitrag anzeigen
Poste bitte mal die vollständige Datei /etc/munin/munin.conf
Code:
# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, and the logs, severally.  They all
# must be writable by the user running munin-cron.
dbdir	/var/lib/munin
htmldir	/var/www/clients/client2/web3/web/monitoring
logdir	/var/log/munin
rundir  /var/run/munin

# Where to look for the HTML templates
tmpldir	/etc/munin/templates

# Make graphs show values per minute instead of per second
#graph_period minute

# Graphics files are normaly generated by munin-graph, no matter if
# the graphs are used or not.  You can change this to
# on-demand-graphing by following the instructions in
# http://munin.projects.linpro.no/wiki/CgiHowto
#
#graph_strategy cgi

# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime 
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
#contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
#
# For those with Nagios, the following might come in handy. In addition,
# the services must be defined in the Nagios server as well.
#contact.nagios.command /usr/sbin/send_nsca -H nagios.host.com -c /etc/send_nsca.cfg

# a simple host tree
[server1.MEINE-DOMAIN.de]
    address 127.0.0.1
    use_node_name yes

# 
# A more complex example of a host tree
#
## First our "normal" host.
# [fii.foo.com]
#       address foo
#
## Then our other host...
# [fay.foo.com]
#       address fay
#
## Then we want totals...
# [foo.com;Totals] #Force it into the "foo.com"-domain...
#       update no   # Turn off data-fetching for this "host".
#
#   # The graph "load1". We want to see the loads of both machines... 
#   # "fii=fii.foo.com:load.load" means "label=machine:graph.field"
#       load1.graph_title Loads side by side
#       load1.graph_order fii=fii.foo.com:load.load fay=fay.foo.com:load.load
#
#   # The graph "load2". Now we want them stacked on top of each other.
#       load2.graph_title Loads on top of each other
#       load2.dummy_field.stack fii=fii.foo.com:load.load fay=fay.foo.com:load.load
#       load2.dummy_field.draw AREA # We want area instead the default LINE2.
#       load2.dummy_field.label dummy # This is needed. Silly, really.
#
#   # The graph "load3". Now we want them summarised into one field
#       load3.graph_title Loads summarised
#       load3.combined_loads.sum fii.foo.com:load.load fay.foo.com:load.load
#       load3.combined_loads.label Combined loads # Must be set, as this is
#                                                 # not a dummy field!
#
## ...and on a side note, I want them listen in another order (default is
## alphabetically)
#
# # Since [foo.com] would be interpreted as a host in the domain "com", we
# # specify that this is a domain by adding a semicolon.
# [foo.com;]
#       node_order Totals fii.foo.com fay.foo.com
#
@Moestchen: Mit der Anleitung von http://www.howtoforge.com/server-mon...n-debian-lenny konntest auch du nichts anfangen?
__________________
"A few minutes of manual reading, can save hours of try and error" - die offizielle ISPC Dokumentation: http://ispc-wiki.org
Mit Zitat antworten
Antwort


Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an



Alle Zeitangaben in WEZ +2. Es ist jetzt 22:30 Uhr.


Powered by vBulletin® Version 3.8.1 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0