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/25 21:45] – [Python Pakete mit Pip nachinstallieren] pulsar | wiki:monitoring [2025/02/09 16:13] (aktuell) – [Python Pakete mit Pip nachinstallieren] pulsar | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ===== Datenträger Performance ===== | ||
| + | |||
| + | === Intenso Alu Line 32GB === | ||
| + | |||
| + | Dell Intel mini PC openSUSE Leap 15.5 | ||
| + | |||
| + | Mit dd Image auf Datenträger schreiben: 3,7 MB/s | ||
| + | |||
| + | |||
| + | === Intenso microSD 64GB === | ||
| + | |||
| + | Dell Intel mini PC openSUSE Leap 15.5 | ||
| + | |||
| + | Mit dd Image auf Datenträger schreiben: 4,2 MB/s | ||
| + | |||
| + | |||
| + | === SanDisk microSD 16GB === | ||
| + | |||
| + | Dell Intel mini PC openSUSE Leap 15.5 | ||
| + | |||
| + | Mit dd Image auf Datenträger schreiben: 4,4 MB/s | ||
| + | |||
| + | |||
| + | ===== Icinga2 Kommunikations Schema ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | |||
| ===== Graphite ===== | ===== Graphite ===== | ||
| Zeile 6: | Zeile 40: | ||
| - | Mit pip Pakete suchen über einen Proxy | + | Mit pip3 Pakete suchen über einen Proxy |
| sudo -s pip3 search gmp --proxy https:// | sudo -s pip3 search gmp --proxy https:// | ||
| + | sudo -s pip3 search gmp --proxy https:// | ||
| + | Mit pip3 Pakete installieren über einen Proxy ✔ LOL | ||
| + | sudo -s pip3 install python-gvm --upgrade --proxy https:// | ||
| ==== Python Pakete mit Pip nachinstallieren ==== | ==== Python Pakete mit Pip nachinstallieren ==== | ||
| Zeile 29: | Zeile 66: | ||
| 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 56: | Zeile 99: | ||
| check | check | ||
| - | |||
| - | |||
| - | |||
| - | === für OpenVAS check === | ||
| < | < | ||
| - | ronni@doom2018:~/ | + | ws19233: |
| - | Traceback | + | Video memory: 503MB |
| - | File "./check_gmp.py" | + | Unified memory: no |
| - | from gmp.gvm_connection import (SSHConnection, | + | GL_EXT_framebuffer_object, |
| - | ImportError: No module named ' | + | GL_EXT_memory_object_fd, |
| + | GL_MESA_texture_signed_rgba, | ||
| + | GL_EXT_gpu_program_parameters, | ||
| + | GL_EXT_memory_object_fd, | ||
| + | GL_MESA_texture_signed_rgba, | ||
| + | GL_EXT_instanced_arrays, | ||
| + | GL_EXT_memory_object_fd, | ||
| + | ws19233:~ # lspci -v|grep -A17 -i vga | ||
| + | 01:00.0 VGA compatible controller: NVIDIA Corporation GF119 [NVS 310] (rev a1) (prog-if 00 [VGA controller]) | ||
| + | | ||
| + | Flags: bus master, fast devsel, latency 0, IRQ 26 | ||
| + | Memory at f6000000 | ||
| + | Memory at e0000000 (64-bit, prefetchable) [size=128M] | ||
| + | Memory at e8000000 (64-bit, prefetchable) [size=32M] | ||
| + | I/O ports at e000 [size=128] | ||
| + | Expansion ROM at 000c0000 [disabled] [size=128K] | ||
| + | Capabilities: [60] Power Management version 3 | ||
| + | | ||
| + | Capabilities: | ||
| + | Capabilities: | ||
| + | | ||
| + | Capabilities: | ||
| + | Capabilities: | ||
| + | Kernel driver in use: nouveau | ||
| + | | ||
| </ | </ | ||
| + | < | ||
| + | testfeld@pc203: | ||
| + | Video memory: 1024MB | ||
| + | Unified memory: no | ||
| + | GL_AMD_pinned_memory, | ||
| + | GL_MESA_texture_signed_rgba, | ||
| + | GL_AMD_performance_monitor, | ||
| + | GL_MESA_texture_signed_rgba, | ||
| - | <code python> | + | pc203: |
| - | #!/usr/bin/python3 | + | 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Turks PRO [Radeon HD 6570/7570/8550 / R5 230] (prog-if 00 [VGA controller]) |
| - | # -*- coding: utf-8 -*- | + | |
| - | # GMP Nagios Command Plugin | + | Flags: bus master, fast devsel, latency 0, IRQ 26, NUMA node 0 |
| - | # | + | Memory at d0000000 (64-bit, prefetchable) [size=256M] |
| - | # Description: A nagios command plugin for the Greenbone | + | Memory at febc0000 (64-bit, non-prefetchable) [size=128K] |
| - | + | I/O ports at d000 [size=256] | |
| - | + | | |
| - | 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 | ||
| - | |||
wiki/monitoring.1551127538.txt.gz · Zuletzt geändert: 2019/02/25 21:45 von pulsar
