Page 1 of 1
Curl command
Posted: Wed Oct 09, 2019 2:23 pm
by vignesha
Hi,
We have planned and automated the BAU process for Windows and Linux server for adding & removing host with the help of curl command at one single click host and basic parameters like (cpu,ping,memory,uptime,drives) will get added in nagios
Hence, we are looking to achieve the same for network devices like (switch, access point etc...,) So is it possible to achieve the same using curl command
Re: Curl command
Posted: Wed Oct 09, 2019 2:44 pm
by benjaminsmith
Hello
@vignesha,
Hence, we are looking to achieve the same for network devices like (switch, access point etc...,) So is it possible to achieve the same using curl command
Yes. You probably want to create default template for the devices, and then use the API to add/remove hosts or services with a simple script.
All of the API documentation is available from the GUI. Go to
Admin > API Docs > Config Reference.
Let me know if you have any questions.
Re: Curl command
Posted: Tue Oct 15, 2019 4:44 am
by vignesha
Hi Benjamin,
I can add host & ping service for switch but am just looking for the interfaces adding in Nagios.
As you aware while adding switch in Nagios xi the 1st steep, we used to provide details based on our configuration (v2, v3), community string and in the 2nd step we will get all the related interface details about the switch. So right now, am looking for the same interfaces details to fetch before adding in Nagios.
Please take this one step forward and provide the details, it will be useful for those who are planning to automate.
Re: Curl command
Posted: Tue Oct 15, 2019 10:27 am
by benjaminsmith
Hello Vignesha,
After researching this further, there is another layer of configuration, MRTG, for routers and switches that cannot be managed solely from the API. So it is necessary to run the Switch and Router Wizard on these objects to create the associated MRTG config files.
As a result, we have recently added bulk configuration tools within the Switch and Router wizard.
Let me know if you have any additional questions.