Page 1 of 1

nagiosxi backend functions

Posted: Tue Sep 25, 2018 6:32 am
by sac1472
Hello ,
I want to get service group members xml for particular service in nagiosxi component, i have written code like ---

$request = array("cmd" => "getservicegroupmembers", "host_name" => $serverName, "service_description" => $service);
$xml = simplexml_load_string(get_xml_service_group_members($request));

but it's not working. basically, i want correct function name for fetching service group members from nagiosxi backend.

I have also tried using get_xml_service_status, but that's also not working correctly.
can someone please help ?

Re: nagiosxi backend functions

Posted: Tue Sep 25, 2018 7:49 am
by scottwilkerson

Code: Select all

$request = array("cmd" => "getservicegroupmembers", "host_name" => $serverName, "service_description" => $service);
$xml = simplexml_load_string(get_servicegroup_member_objects_xml_output($request));

Re: nagiosxi backend functions

Posted: Tue Sep 25, 2018 10:12 am
by sac1472
Thanks @scottwilkerson 8-)
Now, it's working fine.
I have below document, but that doesn't contains all functions & commands.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

could you please give me document which contains all backend functions & commands ?

Re: nagiosxi backend functions

Posted: Tue Sep 25, 2018 10:16 am
by scottwilkerson
Unfortunately at this time I don't have another document that list other possibilities, I just looked up a function in the code that did what you are looking for.

Re: nagiosxi backend functions

Posted: Thu Oct 18, 2018 7:58 am
by sac1472
It's also, fine if you enlist some (may be all ;) ) functions like cheat sheet. that will be really helpful for me. 8-)

thanks in advance.

Re: nagiosxi backend functions

Posted: Thu Oct 18, 2018 2:51 pm
by scottwilkerson
sac1472 wrote:It's also, fine if you enlist some (may be all ;) ) functions like cheat sheet. that will be really helpful for me. 8-)

thanks in advance.
we are working to get more of this documented in the future