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 | |
CLOSE_AFTER_MINUTES="60" | |
CLOSE_CHECK_ONLY=true | |
DRYRUN= | |
if [ -z "$(mkr --version 2>/dev/null)" ]; then | |
echo "ERROR: Missing mkr. Install mkr package." | |
exit 1 | |
fi | |
if [ ! -f "/etc/mackerel-agent/mackerel-agent.conf" -a -z "$MACKEREL_APIKEY" ]; then |
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 | |
# Display of the last posting date of the service metric | |
# 2024 Kenshi Muto | |
services=$(mkr services -jq '.[]|.name') | |
echo "$services" | while read service; do | |
metrics=$(mkr metric-names -s $service -jq '.[]') | |
echo "$metrics" | while read metric; do | |
if [ -z "$metric" ]; then | |
continue | |
fi |
OlderNewer