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
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 |
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 | |
# 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 |
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 | |
set -x | |
DB="sqlite3 /var/lib/one/one.db" | |
function dbq | |
{ | |
echo "$1" | $DB | |
} |
NewerOlder