Munin erstellt keine Graphen
Re: Munin erstellt keine Graphen
EDIT: Ich sehe gerade, dass ich das schon mal vorschlug, weiß aber nicht, ob Du diesen Schritt schon ausgeführt hast.
EDIT2: Eventuell war bei Deinem purge munin noch am Laufen, so dass die Reinstallation die Konfiguration nicht überschrieb, da munin noch darauf zugriff?
Re: Munin erstellt keine Graphen
Habe ich nochmal ausprobiert hat nichts gebracht.Wie wäre es mit der Sicherung der Konfiguration, und danach munin zu stoppen um es daraufhin zu purgen, und von vorn anfangen?
Habe ich - mehrmalsEDIT: Ich sehe gerade, dass ich das schon mal vorschlug, weiß aber nicht, ob Du diesen Schritt schon ausgeführt hast.
Nein das war leider nicht der Fall. Das neu installieren klappte auch prima - konfig neu (habe nichts geändert) und refresh alle 5 Minuten.EDIT2: Eventuell war bei Deinem purge munin noch am Laufen, so dass die Reinstallation die Konfiguration nicht überschrieb, da munin noch darauf zugriff?
In var/www/munin sind keine graphiken das ist nicht normal oder?
Code: Select all
v31332:/var/www/munin# tree
.
|-- definitions.html
|-- index.html
|-- localdomain
| |-- index.html
| `-- localhost.localdomain.html
|-- logo.png
`-- style.css
Re: Munin erstellt keine Graphen
Code: Select all
/var/www/munin
|-- aldomain
| |-- index.html
| `-- localhost.localdomain.html
|-- definitions.html
|-- index.html
|-- localdomain
| |-- index.html
| |-- localhost.localdomain-apache_accesses-day.png
| |-- localhost.localdomain-apache_accesses-month.png
| |-- localhost.localdomain-apache_accesses-week.png
| |-- localhost.localdomain-apache_accesses-year.png
| |-- localhost.localdomain-apache_accesses.htmlCode: Select all
# ls -ld /var/www/
drwxrwsr-x 13 root www-data 1024 2007-11-17 18:44 /var/www/
# ls -ld /var/www/munin
drwxr-xr-x 5 munin munin 1024 2007-11-03 23:50 /var/www/munin
# ls -ld /var/www/munin/*
drwxr-xr-x 2 munin munin 1024 2006-09-16 05:27 /var/www/munin/aldomain
-rw-r--r-- 1 munin munin 2555 2006-06-07 11:40 /var/www/munin/definitions.html
-rw-r--r-- 1 munin munin 2605 2007-11-22 20:46 /var/www/munin/index.html
drwxr-xr-x 2 munin munin 14336 2007-11-06 03:26 /var/www/munin/localdomain
-rw-r--r-- 1 munin munin 473 2006-06-07 11:40 /var/www/munin/logo.png
drwxr-xr-x 2 munin munin 12288 2007-11-06 03:17 /var/www/munin/ncsrv.de
-rw-r--r-- 1 munin munin 3538 2006-06-07 11:40 /var/www/munin/style.cssRe: Munin erstellt keine Graphen
Code: Select all
# ls /etc/munin
munin.conf munin-node.conf plugin-conf.d plugins templates
# ls /etc/munin/*
/etc/munin/munin.conf /etc/munin/munin-node.conf
/etc/munin/plugin-conf.d:
munin-node munin-node.dpkg-old
/etc/munin/plugins:
apache_accesses cpu mysql_bytes postfix_mailqueue vebc_numfile_shmpages_33189
apache_activity cpuload_ mysql_qcache postfix_mailstats vebc_numflock_numpty_numsiginfo_33189
apache_processes df mysql_qcache_mem postfix_mailvolume vebc_numproc_numiptent_33189
apache_volume df_abs mysql_queries processes vebc_numtcpsock_numflock_numpty_33189
apache_watch_ df_inode mysql_size_ processes_ng vebc_physpages_oomguarpages_33189
apt entropy mysql_slowqueries swap vebc_physpages_oomguarpages_privvmpages_33189
apt_all forks mysql_threads uptime vebc_privvmpages_33189
courier_mta_mailqueue interrupts netstat vebc_kmemsize_33189 vebc_tcpsndbuf_tcprcvbuf_othersockbuf_33189
courier_mta_mailstats load open_files vebc_lockedpages_33189 vmstat
courier_mta_mailvolume memory open_inodes vebc_numfile_privvmpages_lockedpages_33189
/etc/munin/templates:
definitions.html munin-comparison-day.tmpl munin-comparison-week.tmpl munin-domainview.tmpl munin-overview.tmpl style.css
logo.png munin-comparison-month.tmpl munin-comparison-year.tmpl munin-nodeview.tmpl munin-serviceview.tmplCode: Select all
# egrep -v '#|^ *$' /etc/munin/munin.conf
dbdir /var/lib/munin
htmldir /var/www/munin
logdir /var/log/munin
rundir /var/run/munin
tmpldir /etc/munin/templates
[localhost.localdomain]
address 127.0.0.1
use_node_name yes
[pvXX.ncsrv.de]
address 127.0.0.1
use_node_name yesCode: Select all
# egrep -v '#|^ *$' /etc/munin/munin.conf
dbdir /var/lib/munin
htmldir /var/www/munin
logdir /var/log/munin
rundir /var/run/munin
tmpldir /etc/munin/templates
[localhost.localdomain]
address 127.0.0.1
use_node_name yes
[pvXX.ncsrv.de]
address 127.0.0.1
use_node_name yes
# egrep -v '#|^ *$' /etc/munin/munin-node.conf
log_level 4
log_file /var/log/munin/munin-node.log
port 4949
pid_file /var/run/munin/munin-node.pid
background 1
setseid 1
host *
user root
group root
setsid yes
ignore_file ~$
ignore_file .bak$
ignore_file %$
ignore_file .dpkg-(tmp|new|old|dist)$
ignore_file .rpm(save|new)$
allow ^127.0.0.1$Code: Select all
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-11-22 21:21 CET
Interesting ports on pvXX.ncsrv.de (127.0.0.1):
Not shown: 1677 closed ports
PORT STATE SERVICE
25/tcp open smtp
80/tcp open http
3306/tcp open mysqlCode: Select all
# netstat -tulpe|grep 4949
#Re: Munin erstellt keine Graphen
Code: Select all
# netstat -tulpen|grep 4949
tcp 0 0 0.0.0.0:4949 0.0.0.0:* LISTEN 0 462884032 26445/munin-node Re: Munin erstellt keine Graphen
/etc/munin/plugins:
Code: Select all
/etc/munin# ls plugins/
cpu forks mysql_bytes netstat swap
df interrupts mysql_queries open_files vmstat
df_inode load mysql_slowqueries open_inodes
entropy memory mysql_threads processes
ist es auchalles root:root
über lo ja - nach außen ist der port gesperrt - zum testen hatte ich ihn mal geöffnet - geändert hat das leider nichts.port 4949 ist trotzdem erreichbar ?
Code: Select all
tcp 0 0 0.0.0.0:4949 0.0.0.0:* LISTEN 0 520423483 3600/munin-node Re: Munin erstellt keine Graphen
Code: Select all
# ls -ld /var/run/munin
drwxr-xr-x 2 munin root 1024 2007-11-23 10:46 /var/run/munin
# ls -ld /var/run/munin/*
-rw-r--r-- 1 munin munin 5 2007-11-23 10:46 /var/run/munin/munin-datafile.lock
-rw-r--r-- 1 munin munin 4 2007-11-23 10:46 /var/run/munin/munin-graph.lock
-rw-r--r-- 1 munin munin 4 2007-11-23 10:46 /var/run/munin/munin-html.lock
-rw-r--r-- 1 munin munin 0 2007-11-23 10:46 /var/run/munin/munin-limits.lock
-rw-r--r-- 1 munin munin 5 2007-11-23 10:45 /var/run/munin/munin-localdomain-localhost.localdomain.lock
-rw-r--r-- 1 munin munin 5 2007-11-23 10:45 /var/run/munin/munin-ncsrv.de-pvXX.ncsrv.de.lock
-rw-r--r-- 1 root root 6 2007-11-17 18:33 /var/run/munin/munin-node.pid
-rw-r--r-- 1 munin munin 5 2007-11-23 10:45 /var/run/munin/munin-update.lockCode: Select all
# ls -ld /var/lib/munin
drwxr-xr-x 5 munin munin 1024 2007-11-23 10:50 /var/lib/munin
# ls -ld /var/lib/munin/*
-rw-r--r-- 1 munin munin 99096 2007-11-23 10:46 /var/lib/munin/datafile
-rw-r--r-- 1 munin munin 10574 2007-11-23 10:46 /var/lib/munin/limits
drwxr-xr-x 2 munin munin 8192 2007-11-06 03:25 /var/lib/munin/localdomain
-rw-r--r-- 1 munin munin 5065 2007-11-23 10:46 /var/lib/munin/munin-graph.stats
-rw-r--r-- 1 munin munin 10501 2007-11-23 10:46 /var/lib/munin/munin-update.stats
-rw-r--r-- 1 munin munin 4158 2007-11-23 10:51 /var/lib/munin/munin-update.stats.tmp
drwxr-xr-x 2 munin munin 7168 2007-11-06 03:15 /var/lib/munin/ncsrv.de
drwxrwxr-x 2 munin munin 1024 2007-02-03 13:40 /var/lib/munin/plugin-state
Code: Select all
# ls -l /etc/munin/templates/
total 38
-rw-r--r-- 1 root root 2555 2005-04-03 02:54 definitions.html
-rw-r--r-- 1 root root 473 2005-04-03 02:54 logo.png
-rw-r--r-- 1 root root 3286 2006-10-17 14:49 munin-comparison-day.tmpl
-rw-r--r-- 1 root root 3298 2006-10-17 14:49 munin-comparison-month.tmpl
-rw-r--r-- 1 root root 3292 2006-10-17 14:49 munin-comparison-week.tmpl
-rw-r--r-- 1 root root 3292 2006-10-17 14:49 munin-comparison-year.tmpl
-rw-r--r-- 1 root root 2351 2006-10-17 14:49 munin-domainview.tmpl
-rw-r--r-- 1 root root 3114 2006-10-17 14:49 munin-nodeview.tmpl
-rw-r--r-- 1 root root 1942 2006-10-17 14:49 munin-overview.tmpl
-rw-r--r-- 1 root root 4772 2006-10-17 14:49 munin-serviceview.tmpl
-rw-r--r-- 1 root root 3538 2005-04-03 02:54 style.cssCode: Select all
# find /etc -iname *munin*
/etc/cron.d/munin
/etc/cron.d/munin-node
/etc/init.d/munin-node
/etc/logcheck/ignore.d.server/munin
/etc/logrotate.d/munin-node
/etc/logrotate.d/munin
/etc/munin
/etc/munin/plugin-conf.d/munin-node
/etc/munin/plugin-conf.d/munin-node.dpkg-old
/etc/munin/templates/munin-domainview.tmpl
/etc/munin/templates/munin-comparison-day.tmpl
/etc/munin/templates/munin-comparison-month.tmpl
/etc/munin/templates/munin-comparison-week.tmpl
/etc/munin/templates/munin-comparison-year.tmpl
/etc/munin/templates/munin-nodeview.tmpl
/etc/munin/templates/munin-overview.tmpl
/etc/munin/templates/munin-serviceview.tmpl
/etc/munin/munin-node.conf
/etc/munin/munin.conf
/etc/rc0.d/K20munin-node
/etc/rc1.d/K20munin-node
/etc/rc2.d/S98munin-node
/etc/rc3.d/S98munin-node
/etc/rc4.d/S98munin-node
/etc/rc5.d/S98munin-node
/etc/rc6.d/K20munin-nodeCode: Select all
# ls -l /etc/cron.d/munin
-rw-r--r-- 1 root root 525 2006-10-17 14:49 /etc/cron.d/munin
# ls -l /etc/cron.d/munin-node
-rw-r--r-- 1 root root 506 2006-10-17 14:49 /etc/cron.d/munin-node
# ls -l /etc/init.d/munin-node
-rwxr-xr-x 1 root root 5295 2006-10-14 23:35 /etc/init.d/munin-nodeCode: Select all
#
# cron-jobs for munin
#
MAILTO=root
@reboot root if [ ! -d /var/run/munin ]; then /bin/bash -c 'perms=(`/usr/sbin/dpkg-statoverride --list /var/run/munin`); mkdir /var/run/munin; chown ${perms[0]:-munin}:${perms[1]:-root} /var/run/munin; chmod ${perms[2]:-0755} /var/run/munin'; fi
*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi
14 10 * * * munin if [ -x /usr/share/munin/munin-limits ]; then /usr/share/munin/munin-limits --force --contact nagios --contact old-nagios; fiCode: Select all
#
# cron-jobs for munin-node
#
MAILTO=root
# If the APT plugin is enabled, update packages databases approx. once
# an hour (12 invokations an hour, 1 in 12 chance that the update will
# happen), but ensure that there will never be more than two hour (7200
# seconds) interval between updates..
*/5 * * * * root if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi
Code: Select all
Lock already exists: /var/run/munin/munin-update.lock. Dying.
Lock already exists: /var/run/munin/munin-html.lock. Dying.Code: Select all
Nov 23 12:12:51 pvXX CRON[5567]: (pam_unix) session opened for user munin by (uid=0)
Nov 23 12:13:10 pvXX CRON[3247]: (pam_unix) session closed for user root
Nov 23 12:13:22 pvXX CRON[5568]: (pam_unix) session closed for user root
Nov 23 12:13:32 pvXX su[7454]: Unknown UID: 0
Nov 23 12:13:52 pvXX su[9230]: Successful su for root by root
Nov 23 12:13:56 pvXX su[9230]: + ??? root:root
Nov 23 12:14:00 pvXX su[9230]: (pam_unix) session opened for user root by (uid=0)
Nov 23 12:14:04 pvXX su[9230]: (pam_unix) session closed for user root
Nov 23 12:14:08 pvXX su[9387]: Successful su for root by root
Nov 23 12:14:12 pvXX su[9387]: + ??? root:root
Nov 23 12:14:16 pvXX su[9387]: (pam_unix) session opened for user root by (uid=0)
Nov 23 12:14:22 pvXX su[9387]: (pam_unix) session closed for user root
Nov 23 12:14:26 pvXX su[9505]: Successful su for root by root
Nov 23 12:14:30 pvXX su[9505]: + ??? root:root
Nov 23 12:14:36 pvXX su[9505]: (pam_unix) session opened for user root by (uid=0)
Nov 23 12:14:41 pvXX su[9909]: Successful su for root by root
Nov 23 12:14:45 pvXX su[9909]: + ??? root:root
Nov 23 12:14:49 pvXX su[10024]: PAM unable to dlopen(/lib/security/pam_mail.so)
Nov 23 12:14:53 pvXX su[10024]: PAM [dlerror: /lib/security/pam_mail.so: cannot open shared object file: Too many open files in system]
Nov 23 12:14:56 pvXX su[10024]: PAM adding faulty module: /lib/security/pam_mail.so
Nov 23 12:14:59 pvXX su[10024]: PAM no modules loaded for `su' service
Nov 23 12:15:07 pvXX su[10024]: Successful su for root by root
Nov 23 12:15:14 pvXX su[10024]: + ??? root:root
Nov 23 12:15:21 pvXX CRON[3436]: (pam_unix) session closed for user muninCode: Select all
/etc/munin/plugins/vebc_physpages_oomguarpages_33189: cannot make pipe for command substitution: Too many open files in system
/etc/munin/plugins/vebc_physpages_oomguarpages_33189: pipe error: Too many open files in system
2007/11/23-12:15:22 Plugin "vebc_physpages_oomguarpages_33189" exited with status 33024. ----
/etc/munin/plugins/vebc_physpages_oomguarpages_privvmpages_33189: pipe error: Too many open files in system
/etc/munin/plugins/vebc_physpages_oomguarpages_privvmpages_33189: pipe error: Too many open files in system
/etc/munin/plugins/vebc_physpages_oomguarpages_privvmpages_33189: line 110: /bin/su: Too many open files in system
/etc/munin/plugins/vebc_physpages_oomguarpages_privvmpages_33189: pipe error: Too many open files in system
2007/11/23-12:15:22 Plugin "vebc_physpages_oomguarpages_privvmpages_33189" exited with status 33024. ----
/etc/munin/plugins/netstat: line 95: /bin/netstat: Too many open files in system
/etc/munin/plugins/netstat: line 95: /usr/bin/awk: Too many open files in system
2007/11/23-12:15:22 Plugin "netstat" exited with status 32256. ----Ich würde sagen, wenn mehrmaliges vergleichen nichts bringt, bleibt noch die munin user maillist auf sf.net.
Ansonsten cacti, monit oder nagios.
http://www.debianhelp.co.uk/monitortools.htm
Re: Munin erstellt keine Graphen
Meine Ausgabe# ls -ld /var/lib/munin/*
-rw-r--r-- 1 munin munin 99096 2007-11-23 10:46 /var/lib/munin/datafile
-rw-r--r-- 1 munin munin 10574 2007-11-23 10:46 /var/lib/munin/limits
drwxr-xr-x 2 munin munin 8192 2007-11-06 03:25 /var/lib/munin/localdomain
-rw-r--r-- 1 munin munin 5065 2007-11-23 10:46 /var/lib/munin/munin-graph.stats
-rw-r--r-- 1 munin munin 10501 2007-11-23 10:46 /var/lib/munin/munin-update.stats
-rw-r--r-- 1 munin munin 4158 2007-11-23 10:51 /var/lib/munin/munin-update.stats.tmp
drwxr-xr-x 2 munin munin 7168 2007-11-06 03:15 /var/lib/munin/ncsrv.de
drwxrwxr-x 2 munin munin 1024 2007-02-03 13:40 /var/lib/munin/plugin-state
Code: Select all
~# ls -ld /var/lib/munin/*
-rw-r--r-- 1 munin munin 235 2007-11-24 14:25 /var/lib/munin/datafile
-rw-r--r-- 1 munin munin 14 2007-11-24 14:25 /var/lib/munin/limits
-rw-r--r-- 1 munin munin 76 2007-11-24 14:25 /var/lib/munin/munin-graph.stats
-rw-r--r-- 1 munin munin 70 2007-11-24 14:25 /var/lib/munin/munin-update.stats
drwxrwxr-x 2 munin munin 4096 2006-10-17 14:49 /var/lib/munin/plugin-stateCode: Select all
Nov 24 14:35:01 v31332 CRON[30695]: (pam_unix) session opened for user root by ($
Nov 24 14:35:02 v31332 CRON[30697]: (pam_unix) session opened for user munin by $
Nov 24 14:35:02 v31332 CRON[30695]: (pam_unix) session closed for user root
Nov 24 14:35:02 v31332 CRON[30697]: (pam_unix) session closed for user munin
/var/log/munin/munin-node.log ist bei mir leer.Hier ein Ausschnitt des dazu gehörenden /var/log/munin/munin-node.log:
Re: Munin erstellt keine Graphen
Oder der domainname sollte wenigstens drin sein, denke ich.drwxr-xr-x 2 munin munin 8192 2007-11-06 03:25 /var/lib/munin/localdomain
Re: Munin erstellt keine Graphen
Den großen Vorteil den ich in munin sah - war das ich die Informationen nur mittels eines httpd Server ohne extra php oder perl Unterstützung ausliefern konnte. Kennst du oder jemand anderes eine ähnliche alternative?Ansonsten cacti, monit oder nagios.
ja stimmt - seltsam das auch kein log etwas zu sagen hat - gibt es die Möglichkeit in Munin das LogLevel hochzusetzen?Oder der domainname sollte wenigstens drin sein, denke ich.
Re: Munin erstellt keine Graphen
Code: Select all
# egrep -v '#|^ *$' /etc/munin/munin.conf
dbdir /var/lib/munin
htmldir /var/www/munin
logdir /var/log/munin
rundir /var/run/munin
tmpldir /etc/munin/templates
[localhost.localdomain]
address 127.0.0.1
use_node_name yes
[pvXX.ncsrv.de]
address 127.0.0.1
use_node_name yes Wegen dem LogLevel schaue hier bitte mal in der ersten Zeile nach:
Code: Select all
# egrep -v '#|^ *$' /etc/munin/munin-node.conf
log_level 4
log_file /var/log/munin/munin-node.log
port 4949
pid_file /var/run/munin/munin-node.pid
background 1
setseid 1
host *
user root
group root
setsid yes
ignore_file ~$
ignore_file .bak$
ignore_file %$
ignore_file .dpkg-(tmp|new|old|dist)$
ignore_file .rpm(save|new)$
allow ^127.0.0.1$Re: Munin erstellt keine Graphen
auch identischVergleiche bitte mal!
Code: Select all
log_level 4 Re: Munin erstellt keine Graphen
Code: Select all
[localhost.localdomain]
address 127.0.0.1
use_node_name yes Wie siehts denn mit der /etc/hosts oder einem lokalem dns aus?
Code: Select all
cat /etc/hosts
127.0.0.1 pvXX.ncsrv.de pvXX localhost localhost.localdomain
356.356.356.356 pvXX.ncsrv.de pvXXRe: Munin erstellt keine Graphen
cat /etc/hosts
Code: Select all
127.0.0.1 vServer.serverhoster.de vServer localhost localhost.localdomain-
Anonymous
Re: Munin erstellt keine Graphen gelöst
Das Problem lässt sich zumindest auf meinem System nachstellen, siehe Master Konfigurationsdatei /etc/munin/munin.conf
Voreingestellt ist dieser Abschnitt :
Code: Select all
# Make graphs show values per minute instead of per second
#graph_period minute
Code: Select all
# Make graphs show values per minute instead of per second
graph_period minute
Nach dem Rollback [-o< lief alles wieder einwandfrei ! :D