Page 1 of 1

Home , Operations Center to TXT/XLS/CSV or to MySQL table

Posted: Sun Nov 24, 2019 6:44 am
by zaji_nms
Hi

Home , Operations Center to TXT/XLS/CSV or to MySQL table

We fully depend on Home, Operations Center to keep eyes on all alerts. What is the best way to fetch this info via our own script?

assume our Front-End server = 172.16.x.x or 10.10.x.x <<<<<<< from this server we want to fetch data from below server
our NagiosXI server = 192.168.x.x

You can guide via below and let us know if some other better than these following.

REST API
cURL
MySQL-Query

Re: Home , Operations Center to TXT/XLS/CSV or to MySQL tabl

Posted: Mon Nov 25, 2019 12:55 pm
by scottwilkerson
These statuses are all able to be collected from the API
See instructions on calling in
Help -> API Docs -> Objects Reference

Primarily you would be working with the following API's
objects/hoststatus
objects/servicestatus

Re: Home,Operations Center to TXT/XLS/CSV or to MySQL table

Posted: Wed Nov 27, 2019 8:35 am
by zaji_nms
Hi scottwilkerson

do you have any document providing detail step by step via example? please share the document URL

if you don't have, I am providing these three fields, how you will make the URL using below , host, service, APIkey

QyRouterOne
QyGREtunnTwo
QyAPIkeyThree

it will fetch just one info in single query or multiple Host/multiple Services in single Query? Multiple Hosts , Multiple Services using RegExpr

QyRouter*
QyGREtunn*
QyAPIkeyThree

also possible to fetch all HOSTS , all SERVICES in single query? how?

Re: Home , Operations Center to TXT/XLS/CSV or to MySQL tabl

Posted: Wed Nov 27, 2019 8:40 am
by scottwilkerson
The documentation can be found in the XI interface under
Help -> API Docs -> Objects Reference

Other than what it shows we do not have any further documentation, as this is an API (Application programming interface) it will require a programmer to write a program to interpret the results.