mathz.nu Asterisk Blacklist Hobby webbhotell

2018/08/30

Zoneminder in Docker

Filed under: Docker,Server — Mathz @ 17:15

docker swarm init
docker stack deploy -c docker-compose.yml zm
echo “wait for a few seconds to MySQL start for the first time”
docker service scale zm_web=1
echo “go to ZoneMinder console Options-Servers and declare node.0->stream0.localhost and node.1 … node.3, finally start”
docker service scale zm_stream=3
docker service ls

Good debug commands
sudo docker service ps zm_web
sudo docker service ls
sudo docker service rm

Boot Raspberry PI from iSCSI

Filed under: Server — Mathz @ 16:49

https://www.berryterminal.com/doku.php/berryboot

2018/08/29

Docker

Filed under: Docker,Server — Mathz @ 20:37

docker build

docker-compose up

docker ps

docker exec -i -t <NAMES> /bin/bash

docker logs <NAMES>

docker-compose.yaml

version: '3'
services:
influxdb:
image: influxdb:1.5.4
restart: always
volumes:
- /media/space/dockerVolumes/influxdb.1.5.4:/var/lib/influxdb
ports:
- 8086:8086

/lib/systemd/system/docker.service with your favorite text editor and replace the following line where /new/path/docker is a location of your new chosen docker directory:
FROM:
ExecStart=/usr/bin/docker daemon -H fd://
TO:
ExecStart=/usr/bin/docker daemon -g /new/path/docker -H fd://

2018/05/14

Insert Joomla admin

Filed under: Uncategorized — Mathz @ 21:15

INSERT INTO `s12kv_users` (`name``username``password``params``registerDate``lastvisitDate`, lastResetTime) VALUES (‘Administrator2’‘admin2’,‘d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199’‘2018-01-01 00:00:00’‘2018-01-01 00:00:00’‘2018-01-01 00:00:00’)

 

INSERT INTO `s12kv_user_usergroup_map` (`user_id`,`group_id`)
VALUES (LAST_INSERT_ID(),'8');

2018/04/15

Recreate kernel image

Filed under: Server — Mathz @ 13:01

sudo update-initramfs -u -k 3.13.0-143-generic

sudo update-grub

2018/03/30

Asus P8P67 PRO

Filed under: Uncategorized — Mathz @ 19:53

UserBenchmarks: Game 19%, Desk 57%, Work 40%
CPU: Intel Core i7-2600K – 67.8%
GPU: Nvidia Quadro K2000 – 10.9%
SSD: Freenas iSCSI Disk 1TB – 23.9%
SSD: Intel(r) 910 200GB – 171.9%
SSD: Intel(r) 910 200GB – 172%
SSD: Intel(r) 910 200GB – 172%
SSD: Intel(r) 910 200GB – 172.1%
SSD: Freebsd iSCSI Disk 107GB – 29.3%
SSD: Intel 530 Series 240GB – 55.7%
HDD: Seagate ST3160815AS 160GB – 39.3%
RAM: Corsair Vengeance DDR3 1600 C9 4x4GB – 49.4%
MBD: Asus P8P67 PRO

Lenovo 90AV001HMW

Filed under: Uncategorized — Mathz @ 18:20

UserBenchmarks: Game 27%, Desk 47%, Work 31%
CPU: Intel Core i5-4460 – 66.9%
GPU: Nvidia GTX 750 Ti – 22.4%
HDD: Seagate Desktop SSHD 1TB – 83.8%
RAM: Samsung M378B1G73QH0-CK0 1x8GB – 32.6%
MBD: Lenovo 90AV001HMW

Dell Latitude E6540

Filed under: Uncategorized — Mathz @ 18:12

[url=http://www.userbenchmark.com/UserRun/8056391]UserBenchmarks: Game 14%, Desk 48%, Work 28%[/url] CPU: [url=http://cpu.userbenchmark.com/SpeedTest/9781/IntelR-CoreTM-i5-4310M-CPU—270GHz]Intel Core i5-4310M[/url] – [b]46.3%[/b] GPU: [url=http://gpu.userbenchmark.com/SpeedTest/7676/IntelR-HD-Graphics-4600]Intel HD 4600 (Mobile 1.15 GHz)[/url] – [b]5.3%[/b] SSD: [url=http://ssd.userbenchmark.com/SpeedTest/24352/ADATA-SSD-SP900-256GB-]Adata SP900 256GB-[/url] – [b]67.4%[/b] RAM: [url=http://ram.userbenchmark.com/SpeedTest/44047/Hynix-HMT41GS6AFR8A-PB-2x8GB]Hynix HMT41GS6AFR8A-PB 2x8GB[/url] – [b]55.2%[/b] MBD: [url=http://www.userbenchmark.com/System/Dell-Latitude-E6540/2201]Dell Latitude E6540[/url]

2018/01/11

Software Raid monitoring in Zabbix 3.2

Filed under: Server,Zabbix — Mathz @ 18:21

Item1:

Item1:

Name: Software Raid exist
Type: Zabbix Agent
Key: vfs.file.regmatch[/proc/mdstat,raid]
Type of information: Character
Application: Filesystem

Item2:

Name: Software Raid broken
Type: Zabbix Agent
Key: vfs.file.regmatch[/proc/mdstat,_]
Type of information: Character
Application: Filesystem

Trigger1:

Name: Software raid broken {HOSTNAME}
Severity: Disaster
Expression: {Template OS Linux:vfs.file.regmatch[/proc/mdstat,raid].last(0)}>0 and {Template OS Linux:vfs.file.regmatch[/proc/mdstat,_].last(0)}>0

2017/12/23

FreeNas Useful Commands

Filed under: Server — Mathz @ 12:22

Useful command for FreeNas

View Zpool info

zpool status -v

View smart info

smartctl -a /dev/<device>

View Gids

glabel status

More useful commands: https://forums.freenas.org/index.php?threads/useful-commands.30314/

Older Posts »

Powered by WordPress