Update monitoring script references from aitbc-monitor to aitbc-monitoring
- Fixed verify-monitoring.sh to check aitbc-monitoring.service instead of deleted aitbc-monitor.service - Fixed setup-automated-alerts.sh to enable/start aitbc-monitoring.service instead of deleted aitbc-monitor.service
This commit is contained in:
@@ -178,9 +178,9 @@ EOF
|
||||
echo "✅ Alertmanager configuration created"
|
||||
|
||||
# Enable monitoring service
|
||||
if [[ -f "/etc/systemd/system/aitbc-monitor.service" ]]; then
|
||||
systemctl enable aitbc-monitor.service
|
||||
systemctl start aitbc-monitor.service
|
||||
if [[ -f "/etc/systemd/system/aitbc-monitoring.service" ]]; then
|
||||
systemctl enable aitbc-monitoring.service
|
||||
systemctl start aitbc-monitoring.service
|
||||
echo "✅ Monitoring service started"
|
||||
else
|
||||
echo "⚠️ Monitoring service not found, skipping service start"
|
||||
|
||||
@@ -23,7 +23,7 @@ fi
|
||||
echo "✅ Alert rules exist"
|
||||
|
||||
# Check monitoring service status
|
||||
if systemctl is-active --quiet aitbc-monitor.service; then
|
||||
if systemctl is-active --quiet aitbc-monitoring.service; then
|
||||
echo "✅ Monitoring service is running"
|
||||
else
|
||||
echo "⚠️ Monitoring service is not running"
|
||||
|
||||
Reference in New Issue
Block a user