Question Reference Backend APIs
Question Reference Backend APIs
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?
Re: Question Reference Backend APIs
mrochelle,
The backend API does include check command arguments. In this case the check command argument is check_total_procs.
Is that what you were looking for?
-Yancy
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>-Yancy
Re: Question Reference Backend APIs
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
It doesn't with the cmd=gethosts
but it does with cmd=gethoststatus
ie
http://hostip/nagiosxi/backend/?cmd=gethoststatus&username=XXXX&ticket=XXXX
but it does with cmd=gethoststatus
ie
http://hostip/nagiosxi/backend/?cmd=gethoststatus&username=XXXX&ticket=XXXX
Re: Question Reference Backend APIs
Case closed! Thank You!!! That certainly has all the information needed. 