Create source via API
Posted: Mon Nov 23, 2020 11:17 am
Hi all
Very new to Nagios NA so apologies if this is a dumb question, have looked around forums but drawn a blank so far, and this is a bit old and quite limited https://support.nagios.com/kb/article/n ... s-800.html.
We use Ansible to provision our hosts, and to register them in NagiosXI and create services, etc. via the API. Is it possible to do a similar thing with sources in Network Analyzer?
Eg. in my hosts file I would have
10.1.2.3 hostname=myServer nagios_na_server=nagiosNaForThisNetwork nagios_na_port=1234
This would then give me the info I need to install my netflow forwarder, point that to the chosen port and Network Analyzer node, and create a source with the name of the server and the defined port on the appropriate Network Analyzer node.
Is that doable?
If not, be good to hear of any timesaving ways to set up lots of hosts quickly!
Cheers
Daniel
Very new to Nagios NA so apologies if this is a dumb question, have looked around forums but drawn a blank so far, and this is a bit old and quite limited https://support.nagios.com/kb/article/n ... s-800.html.
We use Ansible to provision our hosts, and to register them in NagiosXI and create services, etc. via the API. Is it possible to do a similar thing with sources in Network Analyzer?
Eg. in my hosts file I would have
10.1.2.3 hostname=myServer nagios_na_server=nagiosNaForThisNetwork nagios_na_port=1234
This would then give me the info I need to install my netflow forwarder, point that to the chosen port and Network Analyzer node, and create a source with the name of the server and the defined port on the appropriate Network Analyzer node.
Is that doable?
If not, be good to hear of any timesaving ways to set up lots of hosts quickly!
Cheers
Daniel