This file contains 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
/usr/sbin/icinga -v /etc/icinga/icinga.cfg | grep -B 1 -iE "(warn|error|read)"; read -p "ready to reload? (ctrl+c to cancel)" foo; /etc/init.d/icinga reload |
This file contains 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
if (typeof String.prototype.startsWith != 'function') { | |
"use strict"; | |
String.prototype.startsWith = function (str){ | |
return this.slice(0, str.length) == str; | |
}; | |
} | |
var time_wait = 0, | |
string_check = '{I want to {', | |
action = 'decline', |
This file contains 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 -e | |
# Note: 2021-09-09: | |
# I ran this script and scanned only the hosts that weren't listing a device | |
# However, it didn't find the block that I needed it to, until I did a global scan: | |
# ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done | |
# I know this feels dangerous, I would avoid doing it if I understood what was going on, but I eventually just gave up. | |
# I think there's something wrong below with the matching of the `readlink /sys/block` | |
# After the full scan, two drives had the same 'host', so I'm not sure if that was the issue or what. |
NewerOlder