Page 1 of 1

Need service to servicegroup link

Posted: Tue Feb 18, 2014 12:23 pm
by linuxnag
Guys,

When I use the "Backend API URL"

and I get a list of error hosts: "/nagiosxi/backend/?cmd=gethoststatus..."
and a list of error services: "/nagiosxi/backend/?cmd=getservicestatus..."
and a list of servicegroups: "/nagiosxi/backend/?cmd=getservicegroups..."

I don't see how I can connect the service issue
with the service group.

What am I missing?

Thanks in advance,

GKH

Re: Need service to servicegroup link

Posted: Tue Feb 18, 2014 1:52 pm
by lmiltchev
You can try: "/nagiosxi/backend/?cmd=getservicegroupmembers...". I'm not sure if this is what you are looking for.

Re: Need service to servicegroup link

Posted: Tue Feb 18, 2014 2:00 pm
by linuxnag
I gotcha. Use a 2 level lookup.

Get the "getservicestatus", get the service that is failing and then
check it against "getservicegroupmembers".

That should work.

Thank you!

Re: Need service to servicegroup link

Posted: Tue Feb 18, 2014 3:01 pm
by sreinhardt
Glad it should work for you! If you have further troubles let us know, otherwise letting us know its all set would be appreciated too!

Re: Need service to servicegroup link

Posted: Wed Feb 19, 2014 9:31 am
by linuxnag
We can close this ticket. I was able to get the info from both URLs.

Thank you!