Differences between revisions 29 and 30
Revision 29 as of 2018-09-07 11:03:58
Size: 4665
Comment:
Revision 30 as of 2018-09-07 11:10:08
Size: 5319
Comment:
Deletions are marked like this. Additions are marked like this.
Line 40: Line 40:
Aus 80_server.cfg
|| Titel || Command || Umsetzung || Infos ||
|| check_users || /usr/nagios/libexec/check_users -w 5 -c 10 || || ||
|| check_load || /usr/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 || || ||
|| check_procs || /usr/nagios/libexec/check_procs -w 600 -c 800 || || ||
|| check_http || /usr/nagios/libexec/check_http -H localhost -p 8080 || || ||
|| check_bonding || /usr/nagios/libexec/check_bonding || || ||
|| check_sslcert || /usr/nagios/libexec/check_sslcert -f /etc/pki/tls/hostcert.pem -p /etc/pki/tls/certs || || ||
|| check_procs || /usr/nagios/libexec/check_procs -w 3 -c 1: -C dsmcad || || ||


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

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

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

Titel

Command

Umsetzung

Infos

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

Titel

Command

Umsetzung

Infos

check_users

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

check_load

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

check_procs

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

check_http

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

check_bonding

/usr/nagios/libexec/check_bonding

check_sslcert

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

check_procs

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

Offene Frage

zu check_ramspeed (10)

  • wo ist im Altsystem definiert welcher Rechner welche Geschwindigkeit bereitstellen muss bevor ein Alert ausgelöst wird
  • wie oft wird es aufgerufen
  • warum ist [vulcan01] /etc/prometheus/ssl/client.crl leer
  • wie werden Fehler am besten mit dem Exporter exportiert? Variante 1 wenn nur Positive Zahlen dann mit -1 oder Variante 2 mit Tags.

Todo Liste

Offen

  • Änderungen für Wünsche am GIT Projekt (inventar als ini und ein Playbook ohne includes) mit Timm besprechen
  • Ein cvmfs auf dem Testrechner installieren

Umgesetzt

Probleme

  • Auslagern der Konfiguration unter /etc/prometheus/config funktioniert nicht. Finde zu der Option auch nichts in der Doku vom exporter_exporter.

Alertmanager (last edited 2018-09-27 12:42:05 by JanPhilippBolle)