Skip to content

Instantly share code, notes, and snippets.

View jhrcz's full-sized avatar

Jan Horacek jhrcz

View GitHub Profile
@jhrcz
jhrcz / check-bindmounts-showcase.txt
Last active December 14, 2015 15:19
check_bindmounts showcase
ukazka check_bindmounts
vyuziva findmnt a diff mezi jeho pohledem na mtab a fstab,
pokud neni zaznam v obou tak je reportovano
### instalace
yum install --enablerepo=etn-devel nagios-plugin-check-bindmounts
@jhrcz
jhrcz / check_ospf_neighbor.sh
Created October 27, 2012 13:42
check_ospf_neighbor.sh
#!/bin/bash
# server ~ # /usr/local/bin/check_ospf_neighbor.sh list
#
# Neighbor ID Pri Dead Time Address
# 10.10.1.2 1 Full/DR 10.10.1.2 eth1:10.10.1.1 0
# 10.1.2.32 1 Full/DROther 10.1.5.12 tun0:10.1.5.11 0
# 1c6f473667b210805e1e430d2340879e
#
# server ~ # /usr/local/bin/check_ospf_neighbor.sh check 1c6f473667b210805e1e430d2340879e
@jhrcz
jhrcz / gist:3833593
Created October 4, 2012 13:41
one-fix-vm-names.sh
!/bin/bash
set -x
DB="sqlite3 /var/lib/one/one.db"
function dbq
{
echo "$1" | $DB
}