Revision 33 as of 2018-09-07 11:23:03

Clear message

Prometheus AlertManager

Ziel

Ablösen von Icinga durch Prometheus. In dem Artikel geht es darum was der Alertmanager an Funktionalitäten benötigt um Icinga abzulösen. Informationen zu Prometheus befinden sich hier.

Alerts

In der Tabelle werden Alerts aus dem Altsystem zusammen gefasst und betrachtet wie diese in den Alertmanager übernommen werden können. Aus 20_base2.cfg

Titel

Command

Umsetzung

Infos

(1) check_crond

/usr/lib64/nagios/plugins/check_procs -v -w 1: -c 1: -C crond

script_exporter.pl/check_systemd_process()

(2) check_rsyslogd

/usr/lib64/nagios/plugins/check_procs -v -w 1: -c 1: -C rsyslogd

script_exporter.pl/check_process()

(3) check_zombie_procs

/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s ZN

script_exporter.pl/check_zombie_process()

Script zum erzeugen eines Zombieprozesses

(4) check_swap

/usr/lib64/nagios/plugins/check_swap -w 50% -c 20%

node_vmstat_kswapd_* node_vmstat_pgscan_kswapd_* node_memory_Swap*

(5) check_load

/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20

node_load*

(6) check_total_procs

usr/lib64/nagios/plugins/check_procs -k -w 700 -c 800

script_exporter.pl/check_sum_process()

(7) check_disks

/usr/lib/nagios/plugins/check_disks -w 10% -c 5%

node_filesystem_free / node_filesystem_avail (non-root) or node_filesystem_free

(8) check_mem

/usr/lib/nagios/plugins/check_mem -w 80% -c 95%

node_memory_*

(9) check_memcache

/usr/lib/nagios/plugins/check_memcache -w 30 -c 25

node_memory_*

(10) check_ramspeed

/usr/nagios/libexec/check_ramspeed -w 5 -c 2

script_exporter.pl/memory_speed()

(11) check_crl

/usr/lib/nagios/plugins/check_crl -w 2 -c 4

script_exporter.pl/check_crl()

(12)check_cvmfs

/usr/lib/nagios/plugins/check_cvmfs

cvmfs_exporter.pl

Achtung check_cvmfs_repo.sh vom CERN muss mit ausgerollt werden. Test erfolge auf WGS02 und WGS15

(13) check_mounts

/usr/lib/nagios/plugins/check_mounts

afs_exporter.pl

(14) check_ipmisel

usr/lib/nagios/plugins/check_ipmisel

Kann das durch den ipmi Exporter umgesetzt werden? Können wir https://github.com/lovoo/ipmi_exporter benutzen. Testrechner arktos. Perl-Check ist 737 lang.

(15) check_bonding

/usr/lib/nagios/plugins/check_bonding

der Nodeexporter kann bonding https://github.com/prometheus/node_exporter/blob/master/collector/bonding_linux.go könnte uns das helfen?

Aus 50_dell-openmanage.cfg

Titel

Command

Umsetzung

Infos

(16) check_openmanage

sudo /usr/nagios/libexec/check_openmanage -f /usr/nagios/etc/check_openmanage.conf

Testrechner pear20. Können wir https://github.com/galexrt/dellhw_exporter benutzen. Wenn wir ipmi haben brauchen wir dann noch amsa? Perl-Check ist 5486 Zeilen lang :-(

Aus 50_gridcert.cfg

Titel

Command

Umsetzung

Infos

(17) check_gridcert

/usr/nagios/libexec/check_sslcert -f /etc/grid-security/hostcert.pem -p /etc/grid-security/certificates

gridsecurity_cert_exporter.pl

getestet auf arktos

Aus 60_tomcat.cfg (auf arktos gefunden)

Titel

Command

Umsetzung

Infos

(18) check_http

/usr/nagios/libexec/check_http -H localhost -p 8080

sollte mit https://github.com/prometheus/blackbox_exporter umgesetzt werden .

Aus 80_server.cfg (auf arktos gefunden)

Titel

Command

Umsetzung

Infos

(19) check_users

/usr/nagios/libexec/check_users -w 5 -c 10

ist deaktiviert

(20) check_load

/usr/nagios/libexec/check_load -w 15,10,5 -c 30,25,20

(21) check_total_procs

/usr/nagios/libexec/check_procs -w 600 -c 800

(22) check_tomcat

/usr/nagios/libexec/check_http -H localhost -p 8080

(23) check_bonding

/usr/nagios/libexec/check_bonding

(24) check_sslcert

/usr/nagios/libexec/check_sslcert -f /etc/pki/tls/hostcert.pem -p /etc/pki/tls/certs

(25) check_tsm

/usr/nagios/libexec/check_procs -w 3 -c 1: -C dsmcad

Aus 85_2000procs.cfg (auf wgs15 gefunden)

Titel

Command

Umsetzung

Infos

check_total_procs

/usr/nagios/libexec/check_procs -w 1500 -c 2000

Aus 90_tsm.cfg (auf arktos gefunden)

Titel

Command

Umsetzung

Infos

check_tsm

/usr/nagios/libexec/check_procs -w 3 -c 1: -C dsmcad

Offene Frage

zu check_ramspeed (10)

Todo Liste

Offen

Umgesetzt

Probleme