Writing to nagios.cmd in Distributed Monitoring

thanks for sharing @r.sander that help me a alot :+1: , is there a way to get a check status via api, e.g if its crit/warn/ok I want use that in Bash/Python…?