nagiosxi backend functions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sac1472
Posts: 66
Joined: Thu May 25, 2017 5:06 am

nagiosxi backend functions

Post 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 ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagiosxi backend functions

Post 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));
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sac1472
Posts: 66
Joined: Thu May 25, 2017 5:06 am

Re: nagiosxi backend functions

Post 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 ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagiosxi backend functions

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
sac1472
Posts: 66
Joined: Thu May 25, 2017 5:06 am

Re: nagiosxi backend functions

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagiosxi backend functions

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked