Commit 45b14423 authored by Michael Friedrich's avatar Michael Friedrich
Browse files

Add simple curl bash example with state filter and attrs grep

parent 3852b25a
#!/bin/bash
curl -k -s -u root:icinga 'https://localhost:5665/v1/objects/services?attrs=__name&attrs=state&filter=service.state==ServiceCritical' | grep __name | wc -l
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment