8 lines
494 B
Bash
Executable File
8 lines
494 B
Bash
Executable File
#!/bin/bash
|
|
echo "LOGS (last errors):"
|
|
echo " nginx: $(tail -20 /var/log/nginx/error.log 2>/dev/null | grep -c 'error\|crit')"
|
|
echo " php-fpm: $(tail -20 /var/log/php8.5-fpm.log 2>/dev/null | grep -c 'error\|warning')"
|
|
echo " ethica-enrich: $(tail -5 /var/log/ethica-enrich-searxng.log 2>/dev/null | tail -2)"
|
|
echo " autonomous: $(tail -3 /var/log/ethica-autonomous.log 2>/dev/null | tail -1)"
|
|
echo " director: $(tail -3 /var/log/wevia-director/fiability-last.json 2>/dev/null | head -1)"
|