Skip to content

Instantly share code, notes, and snippets.

View higebu's full-sized avatar
🏠
Working from home

Yuya Kusakabe higebu

🏠
Working from home
View GitHub Profile
diff -ur zabbix-2.4.2.orig/conf/zabbix_proxy.conf zabbix-2.4.2/conf/zabbix_proxy.conf
--- zabbix-2.4.2.orig/conf/zabbix_proxy.conf 2014-11-05 17:01:41.000000000 +0900
+++ zabbix-2.4.2/conf/zabbix_proxy.conf 2014-11-26 19:31:57.845332122 +0900
@@ -312,6 +312,14 @@
# Default:
# VMwareFrequency=60
+### Option: VMwarePerfFrequency
+# How often Zabbix will connect to VMware service to obtain performance data.
+#
@higebu
higebu / gist:b4ee62b32c517b6598b2
Last active October 12, 2017 00:57
failed to build vyos-kernel with cowbuilder on wheezy
# make linux-image
dpkg-buildpackage -rfakeroot -D -us -uc -i -b -nc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: source package linux-3.13
dpkg-buildpackage: source version 3.13.0-1+vyos1+helium2
@higebu
higebu / mkimage_vyos.sh
Last active January 16, 2017 09:30
mkimage_vyos.sh
#!/bin/bash
# You need to install overlayroot
# sudo apt-get install overlayroot
LANG=C
set -e
set -x
@higebu
higebu / gist:875f5bb4512f327fd7dc
Created December 10, 2014 02:36
coreos on niftycloud: update-engine error log
Nov 26 02:17:04 localhost update_engine[458]: [1126/021704:INFO:prefs.cc(54)] certificate-report-to-send-update not present in /var/lib/update_engine/prefs
Nov 26 02:17:04 localhost update_engine[458]: [1126/021704:INFO:prefs.cc(54)] certificate-report-to-send-download not present in /var/lib/update_engine/prefs
Nov 26 02:17:04 localhost update_engine[458]: [1126/021704:WARNING:libpolicy.cc(29)] Could not load the device policy file.
Nov 26 02:17:04 localhost update_engine[458]: [1126/021704:INFO:update_attempter.cc(195)] No device policies/settings present.
Nov 26 02:17:04 localhost update_engine[458]: [1126/021704:INFO:update_attempter.cc(239)] Scattering disabled since scatter factor is set to 0
Nov 26 02:17:04 localhost update_engine[458]: [1126/021704:INFO:prefs.cc(54)] aleph-version not present in /var/lib/update_engine/prefs
Nov 26 02:17:04 localhost update_engine[458]: [1126/021704:INFO:omaha_request_params.cc(61)] Current group set to alpha
Nov 26 02:17:04 localhost update_engine[458]: [1126/021704:I
@higebu
higebu / build_vyos.sh
Created December 10, 2014 23:03
VyOS build script for develop branch
#!/bin/bash
branch=helium-docker
upstream_branch=helium
flavor=amd64-vyos
apt-get install -y cowbuilder
mkdir -p /root/vyos
cowbuilder \
--create --distribution squeeze \
Dec 11 03:53:01 localhost update_engine[480]: [1211/035301:INFO:dbus_service.cc(66)] Attempting interactive update
Dec 11 03:53:01 localhost update_engine[480]: [1211/035301:INFO:update_attempter.cc(433)] New update check requested
Dec 11 03:53:01 localhost update_engine[480]: [1211/035301:WARNING:libpolicy.cc(29)] Could not load the device policy file.
Dec 11 03:53:01 localhost update_engine[480]: [1211/035301:INFO:update_attempter.cc(195)] No device policies/settings present.
Dec 11 03:53:01 localhost update_engine[480]: [1211/035301:INFO:update_attempter.cc(239)] Scattering disabled since scatter factor is set to 0
Dec 11 03:53:01 localhost update_engine[480]: [1211/035301:INFO:omaha_request_params.cc(61)] Current group set to beta
Dec 11 03:53:01 localhost update_engine[480]: [1211/035301:INFO:update_attempter.cc(206)] update_disabled = false, target_version_prefix = , scatter_factor_in_seconds = 0s
Dec 11 03:53:01 localhost update_engine[480]: [1211/035301:INFO:update_attempter.cc(213)] Wall Clock Based
-- Logs begin at Fri 2014-12-12 01:44:10 UTC, end at Fri 2014-12-12 03:32:59 UTC. --
Dec 12 01:44:10 localhost systemd-journal[86]: Runtime journal is using 4.0M (max allowed 24.7M, trying to leave 37.0M free of 243.0M available → current limit 24.7M).
Dec 12 01:44:10 localhost systemd-journal[86]: Runtime journal is using 4.0M (max allowed 24.7M, trying to leave 37.0M free of 243.0M available → current limit 24.7M).
Dec 12 01:44:10 localhost kernel: Initializing cgroup subsys cpuset
Dec 12 01:44:10 localhost kernel: Initializing cgroup subsys cpu
Dec 12 01:44:10 localhost kernel: Initializing cgroup subsys cpuacct
Dec 12 01:44:10 localhost kernel: Linux version 3.17.2+ (buildbot@ip-10-204-3-57) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #2 SMP Thu Dec 4 18:08:02 UTC 2014
Dec 12 01:44:10 localhost kernel: Command line: init=/usr/lib/systemd/systemd console=ttyS0,115200n8 console=tty0 ro noswap cros_legacy root=LABEL=ROOT rootflags=subvol=root usr=gptprio: usr=PARTUUID=7130c94a-213a-4e5a-8
@higebu
higebu / boot.log
Created December 12, 2014 04:17
failed to retrieve ip
-- Logs begin at Fri 2014-12-12 01:44:10 UTC, end at Fri 2014-12-12 04:11:06 UTC. --
Dec 12 01:44:10 localhost systemd-journal[86]: Runtime journal is using 4.0M (max allowed 24.7M, trying to leave 37.0M free of 243.0M available → current limit 24.7M).
Dec 12 01:44:10 localhost systemd-journal[86]: Runtime journal is using 4.0M (max allowed 24.7M, trying to leave 37.0M free of 243.0M available → current limit 24.7M).
Dec 12 01:44:10 localhost kernel: Initializing cgroup subsys cpuset
Dec 12 01:44:10 localhost kernel: Initializing cgroup subsys cpu
Dec 12 01:44:10 localhost kernel: Initializing cgroup subsys cpuacct
Dec 12 01:44:10 localhost kernel: Linux version 3.17.2+ (buildbot@ip-10-204-3-57) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #2 SMP Thu Dec 4 18:08:02 UTC 2014
Dec 12 01:44:10 localhost kernel: Command line: init=/usr/lib/systemd/systemd console=ttyS0,115200n8 console=tty0 ro noswap cros_legacy root=LABEL=ROOT rootflags=subvol=root usr=gptprio: usr=PARTUUID=7130c94a-213a-4e5a-8
-- Logs begin at Fri 2014-12-12 08:11:50 UTC, end at Fri 2014-12-12 09:12:05 UTC. --
Dec 12 09:11:48 localhost systemd-journal[89]: Runtime journal is using 6.2M (max allowed 49.9M, trying to leave 74.8M free of 492.7M available → current limit 49.9M).
Dec 12 09:11:48 localhost systemd-journal[89]: Runtime journal is using 6.2M (max allowed 49.9M, trying to leave 74.8M free of 492.7M available → current limit 49.9M).
Dec 12 09:11:48 localhost kernel: Initializing cgroup subsys cpuset
Dec 12 09:11:48 localhost kernel: Initializing cgroup subsys cpu
Dec 12 09:11:48 localhost kernel: Initializing cgroup subsys cpuacct
Dec 12 09:11:48 localhost kernel: Linux version 3.17.2+ (buildbot@ip-10-204-3-57) (gcc version 4.7.3 (G entoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #2 SMP Thu Dec 4 18:08:02 UTC 2014
Dec 12 09:11:48 localhost kernel: Command line: init=/usr/lib/systemd/systemd console=ttyS0,115200n8 co nsole=tty0 ro noswap cros_legacy root=LABEL=ROOT rootflags=subvol=root usr=gptprio: usr=PARTUUID=7130c9 4a-213a-4
-- Logs begin at Fri 2014-12-12 08:11:50 UTC, end at Fri 2014-12-12 09:12:05 UTC. --
Dec 12 09:08:49 localhost systemd-journal[93]: Runtime journal is using 6.2M (max allowed 49.9M, trying to leave 74.8M free of 492.7M available → current limit 49.9M).
Dec 12 09:08:49 localhost systemd-journal[93]: Runtime journal is using 6.2M (max allowed 49.9M, trying to leave 74.8M free of 492.7M available → current limit 49.9M).
Dec 12 09:08:49 localhost kernel: Initializing cgroup subsys cpuset
Dec 12 09:08:49 localhost kernel: Initializing cgroup subsys cpu
Dec 12 09:08:49 localhost kernel: Initializing cgroup subsys cpuacct
Dec 12 09:08:49 localhost kernel: Linux version 3.17.2+ (buildbot@ip-10-204-3-57) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #2 SMP Thu Dec 4 18:08:02 UTC 2014
Dec 12 09:08:49 localhost kernel: Command line: init=/usr/lib/systemd/systemd console=ttyS0,115200n8 console=tty0 ro noswap cros_legacy root=LABEL=ROOT rootflags=subvol=root usr=gptprio: usr=PARTUUID=7130c94a-213a-4e5a-8