This file contains hidden or 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
switch: | |
command_line: | |
- switch: | |
name: internet_ip_blokowany: | |
command_on: /config/bin/manage_internet on blokowane blokowany.ip | |
command_off: /config/bin/manage_internet off blokowane blokowany.ip | |
command_state: /config/bin/manage_internet test blokowane blokowany.ip |
This file contains hidden or 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
#!/bin/sh | |
command=$1 | |
list=$2 | |
ip=$3 | |
[ -z "$list" ] && list=blokowane | |
if [ $command = "off" ]; then | |
ssh -o PubkeyAcceptedKeyTypes=ssh-rsa -o StrictHostKeyChecking=no IP.ROUTERA -l homeassistant -i /config/.ssh/id_rsa /ip firewall address-list add list=$list address=$ip | |
elif [ $command = "on" ]; then | |
ids=` ssh -o PubkeyAcceptedKeyTypes=ssh-rsa -o StrictHostKeyChecking=no IP.ROUTERA -l homeassistant -i /config/.ssh/id_rsa /ip firewall address-list print |grep $list |grep "$ip " |awk '{print $1}'` | |
for i in $ids; do |
This file contains hidden or 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
Model Family: Western Digital Red | |
Device Model: WDC WD30EFRX-68EUZN0 | |
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE | |
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 | |
3 Spin_Up_Time 0x0027 181 179 021 Pre-fail Always - 5933 | |
4 Start_Stop_Count 0x0032 088 088 000 Old_age Always - 12802 | |
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 | |
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0 | |
9 Power_On_Hours 0x0032 033 033 000 Old_age Always - 49068 |
This file contains hidden or 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
root@pver02:~# journalctl -a --since '2025-01-12' |grep 3352712 | |
Jan 12 08:58:27 pver02 pvedaemon[3352712]: INFO: starting new backup job: vzdump --node pver02 --all 1 --storage XXX --exclude 210 --mode snapshot --notes-template '{{guestname}}' --mailnotification failure --mailto XXX --fleecing '1,storage=local-zfs' | |
Jan 12 08:58:27 pver02 pvedaemon[3352712]: INFO: Starting Backup of VM 211 (qemu) | |
Jan 12 08:58:28 pver02 pvedaemon[3352712]: VM 211 started with PID 3352749. | |
Jan 12 09:18:42 pver02 pvedaemon[3352712]: VM 211 qmp command failed - VM 211 qmp command 'quit' failed - got timeout | |
Jan 12 09:18:42 pver02 pvedaemon[3352712]: VM quit/powerdown failed - terminating now with SIGTERM | |
Jan 12 09:18:52 pver02 pvedaemon[3352712]: VM still running - terminating now with SIGKILL | |
Jan 12 09:19:00 pver02 pvedaemon[3352712]: error removing fleecing image 'local-zfs:vm-211-fleece-0' - zfs error: cannot destroy 'rpool/data/vm-211-fleece-0': dataset is busy | |
Jan 12 09:19:00 pver02 pvedaemon[3352712]: INFO: Finished Backup o |
This file contains hidden or 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
INFO: starting new backup job: vzdump --node pver02 --all 1 --storage XXX --exclude 210 --mode snapshot --notes-template '{{guestname}}' --mailnotification failure --mailto XXX --fleecing '1,storage=local-zfs' | |
INFO: Starting Backup of VM 211 (qemu) | |
INFO: Backup started at 2025-01-12 08:58:27 | |
INFO: status = stopped | |
INFO: backup mode: stop | |
INFO: ionice priority: 7 | |
INFO: VM Name: monitoring | |
INFO: include disk 'scsi0' 'local-zfs:vm-211-disk-0' 50G | |
INFO: creating Proxmox Backup Server archive 'vm/211/2025-01-12T07:58:27Z' | |
INFO: enabling encryption |
This file contains hidden or 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
rest_command: | |
pvmonitor: | |
url: 'http://dane.pvmonitor.pl/pv/get2.php?idl=IDUZYTKOWNIKA&p=HASLO{{pvm}}' | |
method: GET | |
(w automations) | |
- id: pvmonitorproduction | |
alias: PvMonitorProduction | |
description: PV_Production | |
trigger: |
This file contains hidden or 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
rest: | |
- resource: 'https://pvmonitor.pl/stat_home.php' | |
scan_interval: 600 | |
headers: | |
user-agent: Mozilla/5.0 | |
sensor: | |
- name: pvmonitor pwr pv | |
unit_of_measurement: 'kW' | |
value_template: "{{ value_json['pwr_pv'] }}" |
This file contains hidden or 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
rest: | |
- resource: 'https://public-esa.ose.gov.pl/api/v1/smog' | |
scan_interval: 600 | |
sensor: | |
- name: ESA Szkola Podstawowa nr 112 pm10 | |
value_template: "{{ value_json['smog_data'] | selectattr('school.name', 'equalto', 'SZKOŁA PODSTAWOWA NR 112 W POZNANIU') | map(attribute='data.pm10_avg') | first }}" | |
unit_of_measurement: 'µg/m³' | |
- name: ESA Szkola Podstawowa nr 112 pm25 | |
value_template: "{{ value_json['smog_data'] | selectattr('school.name', 'equalto', 'SZKOŁA PODSTAWOWA NR 112 W POZNANIU') | map(attribute='data.pm25_avg') | first }}" | |
unit_of_measurement: 'µg/m³' |
This file contains hidden or 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
#!/bin/bash | |
TEST_DIR=$1 | |
NUM_JOBS=1 | |
SIZE=5G | |
mkdir -p $TEST_DIR | |
fio \ | |
--name=write_throughput \ | |
--directory=$TEST_DIR \ |
This file contains hidden or 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
SNMP: | |
- platform: snmp | |
name: snmp_wans_in | |
host: ip-routera | |
# baseoid: 1.3.6.1.2.1.2.2.1.10.14 | |
baseoid: 1.3.6.1.2.1.31.1.1.1.6.6 | |
version: 2c | |
unit_of_measurement: B | |
- platform: snmp |
NewerOlder