Aller au contenu

CLI monsys

Fenêtre de terminal
brew install gotrust/tap/monsys # macOS / Linux
scoop install monsys # Windows

Authentifier :

Fenêtre de terminal
monsys login
# ou via env : MONSYS_API_KEY=...

Trouver les points d’entrée lents sur tout le parc :

Fenêtre de terminal
monsys query 'p99(http.req.ms) by host where path ~ "/api/.*" last 1h'

Déclencher une action d’urgence :

Fenêtre de terminal
monsys emergency \
--agent api-prod-01 --level 1 \
--action IsolateNetwork \
--reason "Le honeypot a été déclenché sur /root/.ssh/id_rsa.monsys-backup"

Exporter l’inventaire :

Fenêtre de terminal
monsys inventory --agent web-edge-01 --format json > inventory.json