#!/bin/bash

appCrowdSecStatus() {
    echo "=== crowdsec.service ==="
    systemctl status crowdsec --no-pager --lines=5 2>&1 | head -15
    echo
    echo "=== crowdsec-firewall-bouncer.service ==="
    systemctl status crowdsec-firewall-bouncer --no-pager --lines=5 2>&1 | head -15
    echo
    echo "=== installed collections ==="
    runSystem cscli collections list -o human 2>&1 | head -30
    echo
    echo "=== machines + bouncers ==="
    runSystem cscli machines list 2>&1
    runSystem cscli bouncers list 2>&1
}
