wiki:monitoring
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
wiki:monitoring [2019/02/26 11:47] – [Python Pakete mit Pip nachinstallieren] techguru | wiki:monitoring [2023/02/13 15:14] (aktuell) – techguru | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | |||
+ | |||
+ | ===== Icinga2 Kommunikations Schema ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
===== Graphite ===== | ===== Graphite ===== | ||
Zeile 12: | Zeile 25: | ||
- | Mit pip3 Pakete installieren über einen Proxy | + | Mit pip3 Pakete installieren über einen Proxy ✔ LOL |
sudo -s pip3 install python-gvm --upgrade --proxy https:// | sudo -s pip3 install python-gvm --upgrade --proxy https:// | ||
Zeile 32: | Zeile 45: | ||
export https_proxy=http:// | export https_proxy=http:// | ||
- | anschließend pip nutzen: | + | weitere Möglichkeit mit Nutzer und Passwort: |
+ | |||
+ | export https_proxy=http:// | ||
+ | export http_proxy=http:// | ||
+ | |||
+ | |||
+ | anschließend pip nutzen: | ||
sudo -E pip install somepackage | sudo -E pip install somepackage | ||
Zeile 60: | Zeile 79: | ||
check | check | ||
- | |||
- | |||
- | === für OpenVAS check === | ||
- | |||
- | < | ||
- | ronni@doom2018: | ||
- | Traceback (most recent call last): | ||
- | File " | ||
- | from gmp.gvm_connection import (SSHConnection, | ||
- | ImportError: | ||
- | </ | ||
- | |||
- | |||
- | |||
- | <code python> | ||
- | # | ||
- | # -*- coding: utf-8 -*- | ||
- | # GMP Nagios Command Plugin | ||
- | # | ||
- | # Description: | ||
- | |||
- | |||
- | import argparse | ||
- | import logging | ||
- | import os | ||
- | import sys | ||
- | import sqlite3 | ||
- | import tempfile | ||
- | import signal | ||
- | |||
- | from argparse import RawTextHelpFormatter | ||
- | from datetime import datetime | ||
- | from lxml import etree | ||
- | from gmp.gvm_connection import (SSHConnection, | ||
- | TLSConnection, | ||
- | UnixSocketConnection) | ||
- | |||
- | </ | ||
- | |||
- | |||
- | < | ||
- | (21:02:20) Mario: da steht ja, wie das geht oder? | ||
- | pip install python-gvm | ||
- | (21:02:33) Mario: dann wird das wohl ins System installiert | ||
- | (21:02:41) Mario: wahrsch. site-packages oder sowas | ||
- | (21:02:44) ronnih@mail.de/ | ||
- | (21:02:57) Mario: https:// | ||
- | (21:02:58) ronnih@mail.de/ | ||
- | (21:03:07) ronnih@mail.de/ | ||
- | (21:03:11) Mario: from gvm.protocols.latest import Gmp | ||
- | (21:03:18) Mario: das macht das gmp verfügbar | ||
- | (21:04:02) ronnih@mail.de/ | ||
- | (21:04:49) Mario: scheint mir alles normal zu sein. Immerhin haben dies über pip verfügbar gemacht | ||
- | (21:05:00) Mario: kein manueller Download oder sowas | ||
- | (21:05:26) ronnih@mail.de/ | ||
- | (21:05:35) Mario: das site-packages gehört zum PYTHONPATH, d.h. der findet das dann dort | ||
- | (21:05:45) Mario: das siehst du dann also nicht an der Stelle des Scripts | ||
- | (21:06:41) Mario: ich hab k.A. was das Ding tut | ||
- | (21:06:48) Mario: das ist ein rudimentäres Beispiel | ||
- | (21:06:51) Mario: mit foo und bar | ||
- | (21:06:56) Mario: irgendein Login wo hin | ||
- | (21:08:03) Mario: irgendwelche Services mit XML... | ||
- | (21:08:14) Mario: anscheinend testet dieses Framework sowas | ||
- | (21:08:30) ronnih@mail.de/ | ||
- | (21:09:01) Mario: wir ham sowas auch, aber viell. einfacher | ||
- | (21:09:10) Mario: da gibts dann Umgebungsvariablen | ||
- | (21:09:16) Mario: http_proxy und sowas | ||
- | (21:09:23) Mario: ftp_proxy, https_proxy | ||
- | (21:09:36) Mario: da steht dann ein ofsquid: | ||
- | (21:09:43) Mario: wenn man das gesetzt hat, darf man raus | ||
- | </ | ||
- | |||
- | < | ||
- | doom2018:/ | ||
- | Python 3.4.6 (default, Mar 01 2017, 16:52:22) [GCC] on linux | ||
- | Type " | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | Traceback (most recent call last): | ||
- | File "< | ||
- | ImportError: | ||
- | >>> | ||
- | Traceback (most recent call last): | ||
- | File "< | ||
- | ImportError: | ||
- | >>> | ||
- | Traceback (most recent call last): | ||
- | File "< | ||
- | ImportError: | ||
- | >>> | ||
- | Traceback (most recent call last): | ||
- | File "< | ||
- | ImportError: | ||
- | >>> | ||
- | Traceback (most recent call last): | ||
- | File "< | ||
- | ImportError: | ||
- | >>> | ||
- | Traceback (most recent call last): | ||
- | File "< | ||
- | ImportError: | ||
- | >>> | ||
- | Traceback (most recent call last): | ||
- | File "< | ||
- | ImportError: | ||
- | >>> | ||
- | >>> | ||
- | >>> | ||
- | </ |
wiki/monitoring.txt · Zuletzt geändert: 2023/02/13 15:14 von techguru