cn7322:/usr/lib/check_mk_agent/plugins# ls -l /sys/class/hwmon/hwmon0/
total 0
-r--r--r-- 1 root root 4096 Mar 21 15:07 alarms
lrwxrwxrwx 1 root root 0 Mar 21 15:07 device -> ../../../0-004c
-r--r--r-- 1 root root 4096 Mar 21 15:07 name
lrwxrwxrwx 1 root root 0 Mar 21 15:07 of_node -> ../../../../../../../../firmware/devicetree/base/soc@0/i2c@1180000001000/tmp@4c
drwxr-xr-x 2 root root 0 Mar 21 15:07 power
lrwxrwxrwx 1 root root 0 Mar 21 15:07 subsystem -> ../../../../../../../../class/hwmon
-rw-r--r-- 1 root root 4096 Mar 21 15:07 temp1_crit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upload fehlt | |
braucht eh ewig viele auffrischungen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
set -eu | |
. ../netbox-docker/env/postgres.env | |
_date=$(date +%Y%m%d%H%M) | |
backupdir=/backup/netbox | |
umask 177 | |
# iirc this should be done by a sidecar container or something |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Identifier : 0x03 (SFP) | |
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID) | |
Connector : 0x21 (Copper pigtail) | |
Transceiver codes : 0x00 0x00 0x00 0x00 0x00 0x04 0x00 0x00 0x00 | |
Transceiver type : Passive Cable | |
Encoding : 0x00 (unspecified) | |
BR, Nominal : 10300MBd | |
Rate identifier : 0x00 (unspecified) | |
Length (SMF,km) : 0km | |
Length (SMF) : 0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# one-context hat hier bugs und bringt das netzwerk nie online | |
set -u | |
test_network(){ | |
#good case | |
ip addr list dev eth0 | | |
grep -qE "inet.*((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" && return 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dont execute hook if dhcp req failed | |
if [ $1 != 0 ]; then | |
return 0 | |
fi | |
# get bayernwlan interface name | |
interface=$( ifconfig | grep -B1 "BAYERNWLAN" | grep -v description: | awk -F: '{print $1}' ) | |
# some validation might be [a-z]+[0-9] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1476 mkdir /mnt/imgback | |
1477 mount -t cifs -o domain=xxxx,vers=3.1.1,multichannel,user=xxxxx,password=xxxx,max_channels=2 // | |
nas84/imgback /mnt/imgback | |
1515 dd if=/dev/sda bs=1024k | mbuffer -m2G --direct -d -o /mnt/imgback/file1 | pigz -1 /mnt/foo/file2.img.gz | |
1579 echo 2048 > /sys/block/sde/queue/read_ahead_kb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules=loop,squashfs,sd-mod,usb-storage quiet console=tty1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import sys, os, getopt, re, subprocess | |
from pypjlink import Projector | |
############################################################################# | |
def usage(): | |
############################################################################# | |
sys.stderr.write("""Check_MK PJ-Link Agent |
NewerOlder