How to bulk modify host alias?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

How to bulk modify host alias?

Post by xpertech »

There're 800 hosts been monitored, Is it possible to bulk modify host alias? or other plugin can do this?

Host1 alias abc01
Host2 alias abc02
......

change to

Host1 alias abc01_HQ
Host2 alias abc02_HQ
......
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to bulk modify host alias?

Post by cdienger »

This doesn't appear to be an option in the bulk modification tool, but you could script something to modify the alias lines found in the configs(/usr/local/nagios/etc/hosts/) and then use the import tool(Configure > Core Config Manager > Tools > Import Config Files) to import the modified configs.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked