Page 1 of 1

How to bulk modify host alias?

Posted: Tue Oct 30, 2018 5:00 am
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
......

Re: How to bulk modify host alias?

Posted: Tue Oct 30, 2018 12:51 pm
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.