Benutzer-Werkzeuge

Webseiten-Werkzeuge


know-how:etc

RAID

MegaRAID Controller

  • Predictive Failure Count beim Controller - E-Mails zB:
Controller ID:  0   PD Predictive failure:  
    -:-:3
Event ID:96
Generated On: Mon Sep 02 14:29:04 CEST 2019
  • Festplatte wird „bald“ kaputt werden - Austausch empfohlen - Slot beginnt orange zu blinken
  • Sicht auf den Server - In diesem Beispiel bezieht es sich auf Slot 3 im Server

IPMI

ThinkServer Server Spezielles

  • Zumindest bei TD340 Remote Management
    • Achtung kein vollwertiges KVM Remote Management möglich über Konsole
    • Es muss ein Hardware dongle am Mainboard gesteckt werden !!! d.h. Server runterfahren raus aus dem Rack , zerlegen ..

ThinkServer Management Module

  • Default Username/Passwort ist NICHT unbedingt lenovo/lenovo (Server: Lenovo ThinkServer TD340 )
  • Username: lenovo , Password: len0vO

Supermicro Password Reset - GUI Fuckup did not take password nevertheless changed it

boot grml live



You probably need to load the IPMI kernel modules:

modprobe ipmi_devintf
modprobe ipmi_si

You can add these to /etc/modules to have them loaded automatically (just list the module names):

ipmi_devintf
ipmi_si



ipmitool -I open user set password 2 ADMIN

The number 2 there is the user id. The ADMIN account defaults to user id 2. So I'm setting user id 2's password to ADMIN which is the default, but you could put any other password there.

HP ILO - Upgrade Firmware via Web Access

  • Über die Web GUI unter Administration - Firmware → das *.bin File hochladen ( Signature checks usw. werden durch das ILO durchgeführt)
  • Bei den Firmware Updates die .scexe Datei runterladen und entpacken
  • HP Quote von der Website:
 To obtain firmware image for updating via iLO user interface, utilities, or scripting interface:
Download the SCEXE file to a client running a Linux operating system.  Execute: sh  CP0xxxxx.scexe --unpack=directory
This command will unpack the ilo4_1XX.bin into a user specified "directory". If the directory does not exist, the unpacker will attempt to create it.

WLAN Controller

Aruba 7010

  • Default gateway über Web GUI lässt sich nicht ändern es bleibt der Alte
  • Zugriff per SSH im richtigen Konfigurationskontext (Cisco lässt grüßen)
(controller) >enable
Password:****
Password:****

(controller) #show ip route

Codes: C - connected, O - OSPF, R - RIP, S - static
       M - mgmt, U - route usable, * - candidate default, V - RAPNG VPN

Gateway of last resort is Imported from DHCP to network 0.0.0.0 at cost 10
Gateway of last resort is Imported from CELL to network 0.0.0.0 at cost 10
Gateway of last resort is Imported from PPPOE to network 0.0.0.0 at cost 10
C    IP_NETWORK/MASK is directly connected, VLAN1
C    IP_NETWORK/MASK is directly connected, VLAN100
C    IP_NETWORK/MASK is directly connected, VLAN101

(controller) #show running-config | include gateway
Building Configuration...
ip default-gateway IP_DEFAULT_GATEWAY

(controller) #configure terminal 
Enter Configuration commands, one per line. End with CNTL/Z

(controller) (config) #no ip default-gateway IP_CURRENT_DEFAULT_GATEWAY
(controller) (config) #ip default-gateway IP_NEW_DEFAULT_GATEWAY
(controller) (config) #write memory 
Saving Configuration...

Configuration Saved.

(controller) (config) #exit
(controller) #show running-config | include gateway
Building Configuration...
ip default-gateway IP_NEW_DEFAULT_GATEWAY

Software

nagios signal notifications

Ubuntu/Debian: sudo apt-get install default-jre

signal-cli -u +436641234567 register
signal-cli -u +436641234567 verify CODE-FROM-SIGNAL-VIA-SMS
signal-cli -u +436641234567 (SENDER) send -m "foo" +438716213 (EMPFÄNGER)

Auth Infos werden unter ~/.local abgelegt d.h. Benutzerenvironment beachten und für nagios kopieren
  • Icinga/Nagios Konfiguration
#signal Notification commands

define command {
        command_name    notify-host-by-signal
        command_line    /opt/signal-cli/bin/signal-cli -u +436641234567 send -m '$NOTIFICATIONTYPE$ Host : $HOSTNAME$ is $HOSTSTATE$ @ $LONGDATETIME$' $_CONTACTSIGNAL$
}
 
define command {
        command_name    notify-service-by-signal
        command_line     /opt/signal-cli/bin/signal-cli -u +436641234567  send  -m '$NOTIFICATIONTYPE$ Host : $HOSTNAME$ - Service : $SERVICEDESC$ is $SERVICESTATE$ @ $LONGDATETIME$' $_CONTACTSIGNAL$
}


#Contact definition

define contact{
        contact_name                    root
        alias                           Root
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,r
        service_notification_commands   notify-service-by-email notify-service-by-signal
        host_notification_commands      notify-host-by-email notify-host-by-signal
        email                           monitoring@pannoniait.at
        _signal                         +436641234567

         

        }

  • Location für shared Secret für Authentifizierung
root@mrMonitoring:/var/lib/nagios# grep nagios /etc/passwd
nagios:x:116:124::/var/lib/nagios:/bin/false
root@mrMonitoring:/var/lib/nagios# ls -al /var/lib/nagios/.local/
total 12
drwx------ 3 nagios nagios 4096 Jul 15 13:08 .
drwxr-xr-x 3 nagios nagios 4096 Jul 15 13:17 ..
drwx------ 3 nagios nagios 4096 Jul 15 13:08 share
root@mrMonitoring:/var/lib/nagios# ls -al /var/lib/nagios/.local/share/
total 12
drwx------ 3 nagios nagios 4096 Jul 15 13:08 .
drwx------ 3 nagios nagios 4096 Jul 15 13:08 ..
drwx------ 3 nagios nagios 4096 Jul 15 13:08 signal-cli
root@mrMonitoring:/var/lib/nagios# ls -al /var/lib/nagios/.local/share/signal-cli/
total 12
drwx------ 3 nagios nagios 4096 Jul 15 13:08 .
drwx------ 3 nagios nagios 4096 Jul 15 13:08 ..
drwx------ 2 nagios nagios 4096 Jul 15 13:08 data

nagios performance data

Performance data

Nagios 3 and newer will concatenate the parts following a "|" in a) the first line output by the plugin, and b) in the second to last line, into a string it passes to whatever performance data processing it has configured. (Note that it currently does not insert additional whitespace between both, so the plugin needs to provide some to prevent the last pair of a) and the first of b) getting run together.) Please refer to the Nagios documentation for information on how to configure such processing. However, it is the responsibility of the plugin writer to ensure the performance data is in a "Nagios Plugins" format.

This is the expected format:

'label'=value[UOM];[warn];[crit];[min];[max]

Notes:

    space separated list of label/value pairs
    label can contain any characters except the equals sign or single quote (')
    the single quotes for the label are optional. Required if spaces are in the label
    label length is arbitrary, but ideally the first 19 characters are unique (due to a limitation in RRD). Be aware of a limitation in the amount of data that NRPE returns to Nagios
    to specify a quote character, use two single quotes
    warn, crit, min or max may be null (for example, if the threshold is not defined or min and max do not apply). Trailing unfilled semicolons can be dropped
    min and max are not required if UOM=%
    value, min and max in class [-0-9.]. Must all be the same UOM. value may be a literal "U" instead, this would indicate that the actual value couldn't be determined
    warn and crit are in the range format (see the Section called Threshold and Ranges). Must be the same UOM
    UOM (unit of measurement) is a string of zero or more characters, NOT including numbers, semicolons, or quotes. Some examples:

        no unit specified - assume a number (int or float) of things (eg, users, processes, load averages)
        s - seconds (also us, ms)
        % - percentage
        B - bytes (also KB, MB, TB)
        c - a continous counter (such as bytes transmitted on an interface)

It is up to third party programs to convert the Nagios Plugins performance data into graphs.

nagios custom plugins exit codes

  • Achtung Interpreter bei eigenem plugin nicht vergessen e.g. #!/bin/bash sonst u.a. „No output returned bei daemon“ Fehlermeldung
Exit Code	Status
0	OK
1       WARNING
2	CRITICAL
3	UNKNOWN
Plugin Output for Nagios

You should always print something to STDOUT that tells if the service is working or why it is failing. Try to keep the output short - probably less that 80 characters. Remember that you ideally would like the entire output to appear in a pager message, which will get chopped off after a certain length.

As Nagios does not capture stderr output, you should only output to STDOUT and not print to STDERR.
Print only one line of text

Starting with version 3, Nagios will process plugins' multi-line output, which should be formatted as:

SERVICE STATUS: First line of output | First part of performance data
Any number of subsequent lines of output, but note that buffers
may have a limited size | Second part of performance data, which
may have continuation lines, too

Note, however, that the default configs still do not include the output's continuation lines into the notifications sent when Nagios notifies contacts about potential problems. Thus, keep your output short and to the point.

Output should be in the format:

SERVICE STATUS: Information text

However, note that this is not a requirement of the API, so you cannot depend on this being an accurate reflection of the status of the service - the status should always be determined by the return code.
Verbose Output

Use the -v flag for verbose output. You should allow multiple-v options for additional verbosity, up to a maximum of 3. The standard type of output should be:

Table 1. Verbose output levels
Verbosity level	Type of output
0	Single line, minimal output. Summary
1	Single line, additional information (eg list processes that fail)
2	Multi line, configuration debug output (eg ps command used)
3	Lots of detail for plugin problem diagnosis
Screen Output

The plugin should print the diagnostic and just the usage part of the help message. A well written plugin would then have --help as a way to get the verbose help.

Code and output should try to respect the 80x25 size of a crt (remember when fixing stuff in the server room!)
Plugin Return Codes

The return codes below are based on the POSIX spec of returning a positive value. Netsaint prior to v0.0.7 supported non-POSIX compliant return code of "-1" for unknown. Nagios supports POSIX return codes by default.

Note: Some plugins will on occasion print on STDOUT that an error occurred and error code is 138 or 255 or some such number. These are usually caused by plugins using system commands and having not enough checks to catch unexpected output. Developers should include a default catch-all for system command output that returns an UNKNOWN return code.

Table 2. Plugin Return Codes
Numeric Value	Service Status	Status Description
0	OK	The plugin was able to check the service and it appeared to be functioning properly
1	Warning	The plugin was able to check the service, but it appeared to be above some "warning" threshold or did not appear to be working properly
2	Critical	The plugin detected that either the service was not running or it was above some "critical" threshold
3	Unknown	Invalid command line arguments were supplied to the plugin or low-level failures internal to the plugin (such as unable to fork, or open a tcp socket) that prevent it from performing the specified operation. Higher-level errors (such as name resolution errors, socket timeouts, etc) are outside of the control of plugins and should generally NOT be reported as UNKNOWN states.

Hardware

ZOTAC ZBOX CI527

  • Linux Mint 19 Mate 64Bit
  • Problem:
    • angesteckt per HDMI auf Sony Bravia TV - Auflösung bei maximal 1024×768 Ausschnitt komplett verkleinert - kein Vollbild
    • Beim Bootvorgang kein Bild (ROOT ist verschlüsselt) - Umstieg auf 4.18 generic Kernel dann ok (achtung Module installieren für Kernel sonst kein USB bei cryptsetup Passworteingabe)
  • Lösung: DisplayPort auf HDMI Adapter einstecken bei Display Port zB: https://www.amazon.de/gp/product/B010SDZZ80/ref=ppx_yo_dt_b_asin_title_o01__o00_s00?ie=UTF8&psc=1
  • Hintegrund: Offenbar gibt es Bug im Kernel der bis zu 4.18 reicht - Kernel Fehlermeldung zeugt davon in den Logs (*…link..intel…*) - Kabylake flanscht HDMI und Display Port zusammen - bekommt ihm offenbar nicht

HP ML350 Gen9 / HP Microserver gen8

  • Achtung Broadcom Netzwerkkarten
  • hat Zusammenhang mit 32Bit Ubuntu 18.04 4.15er Kernel Installation
  • Deaktivieren von VMQ in GUI und powershell hat in diesem Fall NICHTS gebracht
    • Intel 350 Dual Interface Karte wurde installiert !!!
    • Broadcom Firmware/Treiber Upgrades von der HP Seite installiert (>202)
  • Microsoft Quote:
Cause
This is a known issue with Broadcom NetXtreme 1-gigabit network adapters that use the b57nd60a.sys driver, when VMQ is enabled on the network adapter. (By default, VMQ is enabled by the Broadcom network driver.)

Broadcom designates these network adapters as 57xx based chipsets. They include 5714, 5715, 5717, 5718, 5719, 5720, 5721, 5722, 5723, and 5780. 
These network adapters are also sold under different model numbers by some server OEMs. HP sells these drivers under model numbers NC1xx, NC3xx, and NC7xx. You may be using driver version 16.2, 16.4, or 16.6, depending on which OEM version you are using or whether you are using the Broadcom driver version. 
Resolution
This issue is resolved in Broadcom driver b57nd60a.sys version 16.8 and newer. In March 2015, Broadcom published driver version 17.0 for download. In April 2015, HP published version 16.8 of the driver for their affected network adapters, here is one of their download locations. Please contact your server OEM if you need a driver that is specific to your server.

If you are unable to update your network adapter driver to resolve the issue, you can work around the issue by disabling VMQ on each affected Broadcom network adapter by using the Set-NetAdapterVmq Windows PowerShell command. For example, if you have a dual-port network adapter, and if the ports are named NIC 1 and NIC 2 in Windows, you would disable VMQ on each adapter by using the following commands:

Set-NetAdapterVmq -Name "NIC 1" -Enabled $False
Set-NetAdapterVmq -Name "NIC 2" -Enabled $False
You can confirm that VMQ is disabled on the correct network adapters by using the Get-NetAdapterVmq Windows PowerShell command.

Note By default, VMQ is disabled on the Hyper-V virtual switch for virtual machines that are using 1-gigabit network adapters. VMQ is enabled on a Hyper-V virtual switch only when the system is using 10-gigabit or faster network adapters. This means that by disabling VMQ on the Broadcom network adapter, you are not losing network performance or any other benefits because this is the default. However, you need to do this to work around the driver issue.

Get-NetAdapterVmqQueue shows the virtual machine queues (VMQs) that are allocated on network adapters. You will not see any virtual machine queues that are allocated to 1-gigabit network adapters by default.
  • Symptome:
    • Netzwerkverbindung zu den virtuellen Maschinen fällt aus
    • Virtuelle Maschinen können nicht mehr heruntergefahren werden (Problem mit Netzwerk) trifft Linux, Windows..
    • Nur ein Kaltstart des Hostsystems regeneriert die Lage

Software RAID1 SSD vs 15K Hardware RAID SAS RAID1

  • HP ML350 Gen9 - Hardware RAID (Smart Array P440 (PCI Express)) mit 2 15K SAS Serverplatten
  • Intel Xeon E5-2620V4 @ 2.1GHZ (2 Prozessoren) , 64 GB RAM
-----------------------------------------------------------------------
CrystalDiskMark 5.2.1 x64 (C) 2007-2017 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes

   Sequential Read (Q= 32,T= 1) :   436.417 MB/s
  Sequential Write (Q= 32,T= 1) :   474.819 MB/s
  Random Read 4KiB (Q= 32,T= 1) :    14.301 MB/s [  3491.5 IOPS]
 Random Write 4KiB (Q= 32,T= 1) :   116.758 MB/s [ 28505.4 IOPS]
         Sequential Read (T= 1) :   506.653 MB/s
        Sequential Write (T= 1) :   406.023 MB/s
   Random Read 4KiB (Q= 1,T= 1) :     3.965 MB/s [   968.0 IOPS]
  Random Write 4KiB (Q= 1,T= 1) :    91.430 MB/s [ 22321.8 IOPS]

  Test : 2048 MiB [C: 24.3% (67.7/278.8 GiB)] (x5)  [Interval=5 sec]
  Date : 2019/07/02 14:20:51
    OS : Windows Server 2012 R2 Server Standard (full installation) [6.3 Build 9600] (x64)
  
  • HP Microserver gen8 - Software RAID1 (Windows 2012r2 Software RAID1 - AHCI Modus, Bessere Leistung , Schreibcache JA, Windows veranlasstes Leeren des Cache deaktivieren) mit 2x 256 GB Samsung SSD (consumer Version, eine 840er und eine 860er EVO )
  • Intel Celeron G1610 2.3GHZ, 4GB RAM
-----------------------------------------------------------------------
CrystalDiskMark 5.2.1 x64 (C) 2007-2017 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes

   Sequential Read (Q= 32,T= 1) :  1045.927 MB/s
  Sequential Write (Q= 32,T= 1) :   500.788 MB/s
  Random Read 4KiB (Q= 32,T= 1) :   218.880 MB/s [ 53437.5 IOPS]
 Random Write 4KiB (Q= 32,T= 1) :   119.822 MB/s [ 29253.4 IOPS]
         Sequential Read (T= 1) :   523.572 MB/s
        Sequential Write (T= 1) :   490.762 MB/s
   Random Read 4KiB (Q= 1,T= 1) :    38.264 MB/s [  9341.8 IOPS]
  Random Write 4KiB (Q= 1,T= 1) :    79.639 MB/s [ 19443.1 IOPS]

  Test : 2048 MiB [C: 3.8% (8.9/232.5 GiB)] (x5)  [Interval=5 sec]
  Date : 2015/11/03 1:46:30
    OS : Windows Server 2012 R2 Server Standard (full installation) [6.3 Build 9600] (x64)
  

Virtualisierung

CMD Allerlei

  • Convert RAW Disk to VHD mit Virtualbox:
VBoxManage.exe convertdd disk.raw disk.vhd --format VHD

Antiviren-Dashboards

Nanoheal

 Anonymous

Sollte die Deinstallation über die Nanohealconsole nicht funktionieren, kann der Uninstaller über die Kommandozeile aufgerufen werden:

"C:\Program Files\Nanoheal\Client\cutil.exe" -5
10 months ago
Cookies helfen bei der Bereitstellung von Inhalten. Diese Website verwendet Cookies. Mit der Nutzung der Website erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Computer gespeichert werden. Außerdem bestätigen Sie, dass Sie unsere Datenschutzerklärung gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website. Weitere Information
know-how/etc.txt · Zuletzt geändert: 2019/10/20 11:23 von cc