Json query for empty hostgroups
Posted: Fri Jun 12, 2015 9:01 am
Hello,
it seems like the json query
curl -s "user:pw@srvnagios01/nagios/cgi-bin/objectjson.cgi?query=hostgrouplist"
is not able to find empty hostgroups. Is this normal behaviour? It kind of messes up some of my script as I'm looking is a hostgroup exists with this, but it might be this hostgroup was very recently created...
Is there some json query that does find all the hostgroups including the empty ones?
Grtz
Willem
it seems like the json query
curl -s "user:pw@srvnagios01/nagios/cgi-bin/objectjson.cgi?query=hostgrouplist"
is not able to find empty hostgroups. Is this normal behaviour? It kind of messes up some of my script as I'm looking is a hostgroup exists with this, but it might be this hostgroup was very recently created...
Is there some json query that does find all the hostgroups including the empty ones?
Grtz
Willem