How to list servers or even better server’s group (host lists) using API?
Or save https://nagios_logsever_server/nagioslogserver/reports/hosts to csv report file from CLI (bash script)…
Yes please, check it out.
I wish to get some automation to receive these data.
Manual download is good only from time to time, not for daily monitoring of amount of hosts registered or/and sending data.
but where I can find full API command references for Nagios LS? …or at last the part with listing servers (or pulling report, as u mentioned).
On the examples web page there is no info about listing servers... and I can’t find API documentation on website.
I was hoping more straightforward answer then riddles ..since you checked it out and posted it's there.
Help > References > API Reference, It's usefull information, there is description how to access alarm history, logstash log, dashboards, ...but I can't see any clue how to get host raport or json dictionary with host list.
Apologies for any confusion. As mentioned, it's not possible to generate that type of report from the API. The best workaround would be to download the unique hosts report as a CSV file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!