#monitoring
4 one-liners with this tag.
All one-liners tagged monitoring
Check whether a certificate expires within the next days
#openssl x509 -in /etc/letsencrypt/live/example.com/cert.pem -noout -checkend $(( 30 * 86400 )) && echo "noch gültig" || echo "läuft bald ab"
Find unhealthy Docker containers
#docker ps --filter health=unhealthy
Query uptime, memory and restart count of a service
$systemctl show php8.2-fpm -p ActiveState,ActiveEnterTimestamp,MainPID,MemoryCurrent,NRestarts
Show CrowdSec metrics for logs, parsers and bouncers
#cscli metrics