Munin - jak skonfigurowa

Konfiguracja serwerów, usług, itp.
michalekk
Posty: 23
Rejestracja: 26 stycznia 2008, 14:06

Munin - jak skonfigurować?

Post autor: michalekk »

Podpowie mi ktoś jak skonfigurować munina do odświeżania się? Bo jak na razie to co jakiś czas muszę wpisać

Kod: Zaznacz cały

munin-cron --force-root
aby na www pojawiły się wykresy.
Mam pluginy do obsługi serwerów SRCDS, udało mi się je zainstalować, ale na wykresach pokazały się tylko dwie małe kropki.
Munina instalowałem poprzez apta. Jeżeli potrzeba więcej info to chętnie zarzucę.

Dla zainteresowanych mogę podać link:
91.204.160.65/munin/pl/fps-arena.pl.html#Disk

Do tego plugin obsługujący FPS na serwerze w ogóle nie działa i przy testach wywala:

Kod: Zaznacz cały

Unknown option -9
Unknown option -9
Unknown option -9
Unknown option -9
Unknown option -9
Awatar użytkownika
lessmian2
Member
Posty: 1088
Rejestracja: 30 kwietnia 2008, 19:38
Lokalizacja: Kraków

Post autor: lessmian2 »

Na początek zapodaj logi z

Kod: Zaznacz cały

/var/log/munin/munin-update.log
i pliki konfiguracyjne

Kod: Zaznacz cały

/etc/munin/munin.conf
/etc/munin/munin-node.conf
Nie każdy jest jasnowidzem ;-) A co do skryptów, też by się przydało trochę więcej informacji.
michalekk
Posty: 23
Rejestracja: 26 stycznia 2008, 14:06

Post autor: michalekk »

/var/log/munin/munin-update.log

Kod: Zaznacz cały

lis 24 17:14:26 - Starting munin-update
lis 24 17:14:26 [10029] - Processing domain: pl
lis 24 17:14:26 [10029] - Processing node: fps-arena.pl
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> open_inodes (0.04 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> srcds_players_91_204_160_65_27050 (0.04 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> irqstats (0.04 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> srcds_inout_91_204_160_65_27035 (0.04 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> if_eth0 (0.05 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> df (0.07 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> srcds_players_91_204_160_65_27015 (0.04 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> swap (0.04 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> srcds_players_91_204_160_65_27035 (0.04 sec)
lis 24 17:14:26 [10030] - Configured service: fps-arena.pl -> load (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> cpu (0.06 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> df_inode (0.05 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> open_files (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> forks (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> iostat (0.05 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> srcds_fps_91_204_160_65_27035 (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> memory (0.05 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> srcds_inout_91_204_160_65_27050 (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> exim_mailqueue (0.05 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> vmstat (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> srcds_uptime_91_204_160_65_27015 (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> if_err_eth0 (0.05 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> entropy (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> processes (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> srcds_fps_91_204_160_65_27050 (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> srcds_uptime_91_204_160_65_27050 (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> netstat (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> interrupts (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> srcds_uptime_91_204_160_65_27035 (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> srcds_inout_91_204_160_65_27015 (0.04 sec)
lis 24 17:14:27 [10030] - Configured service: fps-arena.pl -> exim_mailstats (0.05 sec)
lis 24 17:14:28 [10030] - Configured service: fps-arena.pl -> srcds_fps_91_204_160_65_27015 (0.05 sec)
lis 24 17:14:28 [10030] - Configured node: fps-arena.pl (1.53 sec)
lis 24 17:14:28 [10030] - Fetched service: fps-arena.pl -> open_inodes (0.05 sec)
lis 24 17:14:29 [10030] - Fetched service: fps-arena.pl -> srcds_inout_91_204_160_65_27035 (1.32 sec)
lis 24 17:14:29 [10030] - Fetched service: fps-arena.pl -> irqstats (0.04 sec)
lis 24 17:14:30 [10030] - Fetched service: fps-arena.pl -> srcds_uptime_91_204_160_65_27015 (1.12 sec)
lis 24 17:14:30 [10030] - Fetched service: fps-arena.pl -> if_eth0 (0.05 sec)
lis 24 17:14:31 [10030] - Fetched service: fps-arena.pl -> srcds_uptime_91_204_160_65_27050 (1.12 sec)
lis 24 17:14:31 [10030] - Fetched service: fps-arena.pl -> df (0.07 sec)
lis 24 17:14:32 [10030] - Fetched service: fps-arena.pl -> srcds_uptime_91_204_160_65_27035 (1.11 sec)
lis 24 17:14:32 [10030] - Fetched service: fps-arena.pl -> swap (0.04 sec)
lis 24 17:14:32 [10030] - Fetched service: fps-arena.pl -> load (0.04 sec)
lis 24 17:14:33 [10030] - Fetched service: fps-arena.pl -> cpu (0.05 sec)
lis 24 17:14:33 [10030] - Fetched service: fps-arena.pl -> df_inode (0.10 sec)
lis 24 17:14:34 [10030] - Fetched service: fps-arena.pl -> srcds_inout_91_204_160_65_27015 (1.31 sec)
lis 24 17:14:35 [10030] - Fetched service: fps-arena.pl -> srcds_fps_91_204_160_65_27035 (1.01 sec)
lis 24 17:14:35 [10030] - Fetched service: fps-arena.pl -> open_files (0.05 sec)
lis 24 17:14:35 [10030] - Fetched service: fps-arena.pl -> forks (0.04 sec)
lis 24 17:14:35 [10030] - Fetched service: fps-arena.pl -> iostat (0.05 sec)
lis 24 17:14:35 [10030] - Fetched service: fps-arena.pl -> memory (0.04 sec)
lis 24 17:14:35 [10030] - Fetched service: fps-arena.pl -> exim_mailqueue (0.06 sec)
lis 24 17:14:36 [10030] - Fetched service: fps-arena.pl -> vmstat (1.05 sec)
lis 24 17:14:37 [10030] - Fetched service: fps-arena.pl -> srcds_players_91_204_160_65_27015 (1.12 sec)
lis 24 17:14:38 [10030] - Fetched service: fps-arena.pl -> srcds_fps_91_204_160_65_27015 (1.02 sec)
lis 24 17:14:38 [10030] - Fetched service: fps-arena.pl -> if_err_eth0 (0.05 sec)
lis 24 17:14:38 [10030] - Fetched service: fps-arena.pl -> entropy (0.05 sec)
lis 24 17:14:40 [10030] - Fetched service: fps-arena.pl -> srcds_players_91_204_160_65_27050 (1.11 sec)
lis 24 17:14:40 [10030] - Fetched service: fps-arena.pl -> processes (0.05 sec)
lis 24 17:14:41 [10030] - Fetched service: fps-arena.pl -> srcds_players_91_204_160_65_27035 (1.11 sec)
lis 24 17:14:41 [10030] - Fetched service: fps-arena.pl -> netstat (0.05 sec)
lis 24 17:14:41 [10030] - Fetched service: fps-arena.pl -> interrupts (0.05 sec)
lis 24 17:14:42 [10030] - Fetched service: fps-arena.pl -> srcds_fps_91_204_160_65_27050 (1.01 sec)
lis 24 17:14:43 [10030] - Fetched service: fps-arena.pl -> srcds_inout_91_204_160_65_27050 (1.31 sec)
lis 24 17:14:43 [10030] - Fetched service: fps-arena.pl -> exim_mailstats (0.05 sec)
lis 24 17:14:43 [10030] - Fetched node: fps-arena.pl (15.70 sec)
lis 24 17:14:26 [10029] - Processed node: fps-arena.pl (0.00 sec)
lis 24 17:14:26 [10029] - Processed domain: pl (0.00 sec)
lis 24 17:14:43 [10029] - connection from pl -> fps-arena.pl (10030)
lis 24 17:14:43 [10029] - connection from pl -> fps-arena.pl (10030) closed
lis 24 17:14:43 [10029] - Munin-update finished (17.25 sec)
munin.conf

Kod: Zaznacz cały

# 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/html/munin
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

# Drop [email][email protected][/email] and [email][email protected][/email] an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin notification" [email][email protected][/email]
#contact.anotheruser.command mail -s "Munin notification" [email][email protected][/email]
#
# 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
[fps-arena.pl]
    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
#

munin-node.conf

Kod: Zaznacz cały

#
# Example config-file for munin-node
#

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

# Which port to bind to;
host *
host 127.0.0.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)$

# Set this if the client doesn't report the correct hostname when
# telnetting to localhost, port 4949
#
#host_name localhost.localdomain

# A list of addresses that are allowed to connect.  This must be a
# regular expression, due to brain damage in Net::Server, which
# doesn't understand CIDR-style network notation.  You may repeat
# the allow line as many times as you'd like

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


Pluginy od SRCDS:
http://muninexchange.projects.linpro.no/?search
nazwy zaczynają się od srcds_

EDIT: autor pluginów pomógł mi rozwiązać problem z pluginami, teraz tylko czemu Munin daje takie porwane wykresy?
ODPOWIEDZ