Question Reference Backend APIs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Question Reference Backend APIs

Post by mrochelle »

Is it possible to add command arguments in the return data from Hosts and Services backend URL data pulls? If yes, what would I need to do to add this enhancement?
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Question Reference Backend APIs

Post by yancy »

mrochelle,

The backend API does include check command arguments. In this case the check command argument is check_total_procs.

Code: Select all

<check_command>check_nrpe!check_total_procs!</check_command>
Is that what you were looking for?

-Yancy
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Question Reference Backend APIs

Post by mrochelle »

Let me clarify, when I issue the backend URLs http://HOSTIP/nagiosxi/backend/?cmd=get ... name...etc, the returned data dose not include command args with threshold data. I have the same request with getservices URL also. I'm guessing I may be able to modify the script to add these fields?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Question Reference Backend APIs

Post by scottwilkerson »

It doesn't with the cmd=gethosts

but it does with cmd=gethoststatus

ie
http://hostip/nagiosxi/backend/?cmd=gethoststatus&username=XXXX&ticket=XXXX
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Question Reference Backend APIs

Post by mrochelle »

Case closed! Thank You!!! That certainly has all the information needed. :oops:
Locked