Presentasjon lastes. Vennligst vent

Presentasjon lastes. Vennligst vent

PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Nicolai Langfeldt – Redpill Linpro AS

Liknende presentasjoner


Presentasjon om: "PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Nicolai Langfeldt – Redpill Linpro AS"— Utskrift av presentasjonen:

1 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Nicolai Langfeldt – Redpill Linpro AS

2 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Nicolai Langfeldt Unix bruker siden 1988, Linux/admin siden 1992 Team-leder, senior-konsulent, faggruppe-leder i Redpill Linpro AS Munin adoptiv-far siden 2005 Hvem er jeg?

3 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Hva er Munin? RRD wrapper Trend-monitoring Stor vekt på plug and play Enkelt å lage pluginer «Kan det måles kan det muniniseres» Videre-rapportering av tall (- > Nagios, Mail)

4 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Linux/BSD: Lett å installere – er inkludert i distribusjonen/ports (men tar-ball installasjon krever CPAN-shell) «Hvorfor inni hampen er alt så langsomt nå?» aka «hva er forskjellig idag?» Lett å lage en plugin – en får fine grafer veldig fort Hvorfor er Munin gøy?

5 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Populært

6 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Lupe Cristoph på munin-users «The Ubuntu Server Edition 2009 Survey has some statistics for system management packages. Munin is featured quite prominently, second only to Nagios. In large corporations, the commercial packgaes win, of course. But Munin is still doing surprisingly well for free software.» «See Diagram 14.»

7 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Grafen i rapporten

8 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Arkitektur Master: Sentral, 1-n noder kontaktes via 4949/tcp Node: Perifer, 1-m hoster overvåkes via m plugins SNMP o.l. Plugins fører til at en node må raportere på flere hoster.

9 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Vise fram Munin Når går disken full? Når må vi ha mer CPU? Hva skjedde (med minnet) rett før JVMen crashet istad? Når må vi ha ny Munin-server? Og slik har Munin vært siden tidlig på 2000 tallet Munin 1.4 ble releaset i November '09

10 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Lage plugin Y'know, I really liked writing Munin plugins – Mike Acar, tidligere TrollTech admin $ cat /proc/loadavg /

11 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Eller: Hvordan gjøre arbeid ut av moroa The different labels should be short enough to fit the graph The label should be specific: "transaction volume" is better than "volume", "5 min load average" is better than "load average". If the measure is a rate the time unit should be given in the vertical label: "bytes / ${graph_period}" is better than "bytes" or the even worse "throughput". All the graph_* values specified by the plugin can be used in the title and vlabel values. Best Current Practice

12 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Best Current Practice inputrate.graph no outputrate.negative inputrate

13 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Best Current Practice Plugins that measure rates should strive to use absolute counters (COUNTER, DERIVE) rather than averages (GAUGE) calculated by an OS tool. E.g. iostat on Solaris will output counters rather than short term averages when given the right options. Counters will be much more correct since Munin can average the measure over its own sample interval instead - this will for example pick up short peaks in loads that Munin might otherwise not see.

14 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Best Current Practice =head1 NAME apache_processes - Munin plugin to monitor the number of apache-processes running on the machine. =head1 APPLICABLE SYSTEMS Apache HTTP servers with C enabled. =head1 CONFIGURATION

15 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Features SSL på Munin-protokollen SNMPv3 støtte (Munin::Plugin::SNMP) i plugins Bedre skalerbarhet: Nesting av grupper Nesting av grafer Parallell munin-graf Munin - 1.4

16 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING 1.4 – nesting av grupper

17 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Før (og nå): En graf pr. plugin «multigraph» pluginer: Så mange grafer du vil Eksempler i distribusjonen: multigraph_tester, snmp_if_multi, diskstats (fra 1.4.3) 1.4 – nestede grafer

18 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Multigraph forklart Plugin snmp_if_multi multigraph if_bytes.if_0 up.value down.value multigraph if_bytes.if_1 up.value 56 down.value Plugin snmp_if_0 up.value down.value Plugin snmp_if_1 up.value 56 down.value 43785

19 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Munin 1.4 er i Debian Experimental Red Hat EPEL Fedora Rawhide Mandriva Cooker Munin - 1.4

20 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Munins framtid... skalerbarhet Overbelastet server vil bli batch-preget Færre rrdtool kall for å oppdatere rrd filer Færre rrdgraph kall for å grafe rrd filer Plugin forbedringer «Dirty config» for en plugin sykel pr. Kjøringsintervall

21 PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING... Munins framtid Og etterpå: Lekkert web-interface Ajax, og zoom og mouse-over og alt som gøy er Uten å tape av syne oversikten ved å se på mange grafer av gangen/på en scrollbar side


Laste ned ppt "PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Nicolai Langfeldt – Redpill Linpro AS"

Liknende presentasjoner


Annonser fra Google