๐
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
if [[ -n $SSH_CONNECTION ]] ; then | |
read -r -d '' CONTENT <<-EOF || true | |
Now UTC: $(date --utc "+%F %T") | |
Env: | |
$(printenv) | |
EOF | |
curl -s -X POST "https://hook.notify17.net/api/raw/REPLACE_YOUR_API_KEY" \ | |
-F title="SSH - User $USER logged in" \ |
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
if [[ -n $SSH_CONNECTION ]] ; then | |
read -r -d '' CONTENT <<-EOF || true | |
Now UTC: $(date --utc "+%F %T") | |
Env: | |
$(printenv) | |
EOF | |
curl -s -X POST "https://hook.notify17.net/api/raw/REPLACE_WITH_YOUR_API_KEY" \ | |
-F title="SSH - User $USER logged in" \ |
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
if [[ -n $SSH_CONNECTION ]] ; then | |
read -r -d '' CONTENT <<-EOF || true | |
Now UTC: $(date --utc "+%F %T") | |
Env: | |
$(printenv) | |
EOF | |
curl -s -X POST "https://hook.notify17.net/api/raw/REPLACE_WITH_YOUR_API_KEY" \ | |
-F title="SSH - User $USER logged in" \ |
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 | |
# We want to trigger the script only when the SSH session starts. | |
# To be notified also when session closes, you can watch for | |
# the "close_session" value. | |
if [[ "$PAM_TYPE" != "open_session" ]]; then | |
exit 0 | |
fi | |
read -r -d '' CONTENT <<-EOF || true |
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
kubectl delete ns overseer |
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
watch kubectl -n overseer get pod |
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
kubectl get events --all-namespaces |
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
label: Overseer | |
title: "Overseer [{{if .error}}ERR{{if .isDedup}}-DUP{{end}}{{else}}{{if .recovered}}RECOVERED{{else}}OK{{end}}{{end}}] ({{.tag}}): {{.input}}" | |
content: |- | |
{{if .error -}} | |
{{if eq .type "k8s-event"}}Event{{else}}Error{{end}} | |
{{- if .isDedup}} (duplicated){{end}}: {{.error}}{{end}} | |
Tag: {{.tag}} | |
Input: {{.input}} |
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
kubectl apply -f https://raw.githubusercontent.com/cmaster11/overseer/master/example-kubernetes/example-failing-job/job-fail.yaml |
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
kubectl apply -f https://raw.githubusercontent.com/cmaster11/overseer/3f8ee2bbc1e5452d292e14c8b3e78960385b7ac9/example-kubernetes/000-namespace.yaml | |
kubectl apply -f https://raw.githubusercontent.com/cmaster11/overseer/3f8ee2bbc1e5452d292e14c8b3e78960385b7ac9/example-kubernetes/redis.yaml | |
kubectl apply -f https://raw.githubusercontent.com/cmaster11/overseer/3f8ee2bbc1e5452d292e14c8b3e78960385b7ac9/example-kubernetes/001-service-account-k8s-event-watcher.yaml | |
kubectl apply -f https://raw.githubusercontent.com/cmaster11/overseer/3f8ee2bbc1e5452d292e14c8b3e78960385b7ac9/example-kubernetes/overseer-k8s-event-watcher.yaml |
OlderNewer