• This forum has a zero tolerance policy regarding spam. If you register here to publish advertising, your user account will be deleted without further questions.

Munin

facebraker

New Member
Hi,
ich habe mich anstecken lassen und wollte mal Munin ausprobieren,
aber schon die Grund-Config funktioniert nicht.

Hier meine munin.conf:
Code:
dbdir   /var/lib/munin
htmldir /var/www/html/munin
logdir  /var/log/munin
rundir  /var/run/munin

tmpldir /etc/munin/templates

# a simple host tree
[Server.company.local]
    address 127.0.0.1
    use_node_name yes


Hier meine munin-node.conf:
Code:
log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid

background 1
setseid 1

user root
group root
setsid yes

# Regexps for files to ignore

ignore_file ~$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.pod$


allow ^127\.0\.0\.1$

# Which address to bind to;
#host *
host 127.0.0.1

# And which port
port 4949

und zu guter letzt, das plugin-Dir:
Code:
lrwxrwxrwx 1 root root   28 27. Mai 15:37 cpu -> /usr/share/munin/plugins/cpu
lrwxrwxrwx 1 root root   27 27. Mai 15:37 df -> /usr/share/munin/plugins/df
lrwxrwxrwx 1 root root   33 27. Mai 15:37 df_inode -> /usr/share/munin/plugins/df_inode
lrwxrwxrwx 1 root root   32 27. Mai 15:37 entropy -> /usr/share/munin/plugins/entropy
lrwxrwxrwx 1 root root   30 27. Mai 15:37 forks -> /usr/share/munin/plugins/forks
lrwxrwxrwx 1 root root   32 27. Mai 15:37 if_err_eth0 -> /usr/share/munin/plugins/if_err_
lrwxrwxrwx 1 root root   32 27. Mai 15:37 if_err_eth1 -> /usr/share/munin/plugins/if_err_
lrwxrwxrwx 1 root root   28 27. Mai 15:37 if_eth0 -> /usr/share/munin/plugins/if_
lrwxrwxrwx 1 root root   28 27. Mai 15:37 if_eth1 -> /usr/share/munin/plugins/if_
lrwxrwxrwx 1 root root   35 27. Mai 15:37 interrupts -> /usr/share/munin/plugins/interrupts
lrwxrwxrwx 1 root root   31 27. Mai 15:37 iostat -> /usr/share/munin/plugins/iostat
lrwxrwxrwx 1 root root   33 27. Mai 15:37 irqstats -> /usr/share/munin/plugins/irqstats
lrwxrwxrwx 1 root root   29 27. Mai 15:37 load -> /usr/share/munin/plugins/load
lrwxrwxrwx 1 root root   31 27. Mai 15:37 memory -> /usr/share/munin/plugins/memory
lrwxrwxrwx 1 root root   36 27. Mai 15:37 mysql_bytes -> /usr/share/munin/plugins/mysql_bytes
lrwxrwxrwx 1 root root   38 27. Mai 15:37 mysql_queries -> /usr/share/munin/plugins/mysql_queries
lrwxrwxrwx 1 root root   42 27. Mai 15:37 mysql_slowqueries -> /usr/share/munin/plugins/mysql_slowqueries
lrwxrwxrwx 1 root root   38 27. Mai 15:37 mysql_threads -> /usr/share/munin/plugins/mysql_threads
lrwxrwxrwx 1 root root   32 27. Mai 15:37 netstat -> /usr/share/munin/plugins/netstat
lrwxrwxrwx 1 root root   35 27. Mai 15:37 ntp_offset -> /usr/share/munin/plugins/ntp_offset
lrwxrwxrwx 1 root root   35 27. Mai 15:37 open_files -> /usr/share/munin/plugins/open_files
lrwxrwxrwx 1 root root   36 27. Mai 15:37 open_inodes -> /usr/share/munin/plugins/open_inodes
lrwxrwxrwx 1 root root   42 27. Mai 15:37 postfix_mailqueue -> /usr/share/munin/plugins/postfix_mailqueue
lrwxrwxrwx 1 root root   34 27. Mai 15:37 processes -> /usr/share/munin/plugins/processes
lrwxrwxrwx 1 root root   43 27. Mai 15:37 sendmail_mailqueue -> /usr/share/munin/plugins/sendmail_mailqueue
lrwxrwxrwx 1 root root   43 27. Mai 15:37 sendmail_mailstats -> /usr/share/munin/plugins/sendmail_mailstats
lrwxrwxrwx 1 root root   45 27. Mai 15:37 sendmail_mailtraffic -> /usr/share/munin/plugins/sendmail_mailtraffic
lrwxrwxrwx 1 root root   29 27. Mai 15:37 swap -> /usr/share/munin/plugins/swap
lrwxrwxrwx 1 root root   31 27. Mai 15:37 vmstat -> /usr/share/munin/plugins/vmstat

Habe ich was vergessen, oder nicht richtig?

Edit
Folgenden Fehler bekomme ich:
Code:
Cannot open /var/www/html/munin/aprokon.local/Server.aprokon.local-cpu.html: No such file or directory at /usr/share/munin/munin-html line 339.

Gruss Alex
 
Last edited by a moderator:
Nein, aber jetzt kommt ein Fehler vom crond:

Code:
From munin@localhost.localdomain  Fri May 29 15:15:07 2009
Date: Fri, 29 May 2009 15:15:07 +0200
From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <munin@server> test -x /usr/bin/munin-cron && /usr/bin/munin-cron
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/lib/munin>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=munin>
X-Cron-Env: <USER=munin>

Cannot open /var/www/html/munin/aprokon.local/Server.aprokon.local-cpu.html: No such file or directory at /usr/share/munin/munin-html line 339.
 
Gibt es denn den Pfad den er moniert? Bzw. wo liegen die HTML-Dateien von munin?
 
Komisch,

ich habe jetzt mal geschaut ob der Pfad da ist, und hab festgestellt, dass er gefüllt wird.
Als ich dann per Browser nachgeguckt habe, war alles da.

Viell. war doch der Cron nicht aktiviert?

Es geht, Danke!!!

Gruss Alex
 
Back
Top