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
- name: custom_certmanager_monitoring | |
rules: | |
- alert: CertManagerAbsent | |
expr: absent(up{job="cert-manager"}) | |
for: 1h | |
annotations: | |
message: "Cert Manager has dissapeared from Prometheus service discovery." | |
labels: | |
severity: critical | |
- alert: CertManagerACMEProxyReachability |
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
$ export foo=bar | |
$ export "baz"$foo=wibble | |
$ echo $bazbar | |
wibble |
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 | |
# The current process has unrestricted/unlimited (root) access when the Effective User ID (EUID) is 0: | |
if [[ $EUID -ne 0 ]]; then | |
echo -e "\e[1;31mThis script must be run as root or it will fail\e[0m" 1>&2 | |
exit 1 | |
fi | |
# Make sure we are on CentOS | |
OS=`cat /etc/redhat-release | awk {'print $1}'` |
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 | |
# SPDX-License-Identifier: MIT | |
## Copyright (C) 2009 Przemyslaw Pawelczyk <[email protected]> | |
## | |
## This script is licensed under the terms of the MIT license. | |
## https://opensource.org/licenses/MIT | |
# | |
# Lockable script boilerplate | |