Curl command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vignesha
Posts: 115
Joined: Wed Oct 03, 2018 9:09 am

Curl command

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Curl command

Post 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.
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!
vignesha
Posts: 115
Joined: Wed Oct 03, 2018 9:09 am

Re: Curl command

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Curl command

Post 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.
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!
Locked