Bulk add service to multiple hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
cunningrat
Posts: 29
Joined: Mon Nov 18, 2013 5:51 pm

Bulk add service to multiple hosts

Post by cunningrat »

Apologies if this is a dumb question, I am very new to Nagios XI.

I need to add a service to 700+ existing hosts. Problem is, the command arguments ($ARG1$, $ARG2$, etc) will be different for each one.

Is there a way to do a bulk import from a csv/xml/text file or anything like that? I've looked at the Bulk Host Cloning/Import wizard and the Bulk Modification tool, and neither of them appears to do what I want.

Thanks in advance!
cnorell
Developer
Posts: 135
Joined: Mon Nov 27, 2017 3:08 pm

Re: Bulk add service to multiple hosts

Post by cnorell »

cunningrat,

If you have a host template setup that matches roughly what you need, the bulk cloning and import wizard should get you pretty close to where you need to be: https://assets.nagios.com/downloads/nag ... Wizard.pdf

Best Regards,

Cory Norell
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
AngeloMileto
Posts: 39
Joined: Mon Mar 21, 2022 7:53 am

Re: Bulk add service to multiple hosts

Post by AngeloMileto »

What are the values that will be different for ARG1/2? If it's something you could do a quick bash script for you can create the files in the /usr/local/nagios/etc/import directory and then use the import function of the config to pull them in.

Is there a way to create a single service and then just assign the 700+ hosts to that service check? The advantage there is also that if you need to make a change to the service check later, you don't have to edit 700+ hosts but only 1 service.
Post Reply