Need service to servicegroup link

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Need service to servicegroup link

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need service to servicegroup link

Post by lmiltchev »

You can try: "/nagiosxi/backend/?cmd=getservicegroupmembers...". I'm not sure if this is what you are looking for.
Be sure to check out our Knowledgebase for helpful articles and solutions!
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: Need service to servicegroup link

Post 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!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Need service to servicegroup link

Post 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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: Need service to servicegroup link

Post by linuxnag »

We can close this ticket. I was able to get the info from both URLs.

Thank you!
Locked