But the instruction contains an variable called %hostalias%.
Wouldn't this be what I need?
Notifications - modify %host% output
Re: Notifications - modify %host% output
As administrator, you could change your nagios xi users' notification messages from this (using %host% macro):
to this (using %hostalias% macro):
In the first case, you will see the hostname:
In the second case, you will see the alias:
Here's the host definition:
Is this what you are trying to accomplish?
Code: Select all
define host {
host_name London-Server-SERVER01
alias SERVER01
...
}You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notifications - modify %host% output
Yes, this is exactly what I meant.
I will need to figure out how to set the aliases in an simple way.
Its ~500 hosts
I will need to figure out how to set the aliases in an simple way.
Its ~500 hosts
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: Notifications - modify %host% output
If you start now using copy and paste, you'll be done by Friday... 
Sometimes, there is no need to be fancy, just get it done...
Sometimes, there is no need to be fancy, just get it done...
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
Re: Notifications - modify %host% output
Maybe You are right? 
I started this thread hoping that the notifications template (from the Admin panel) can have some php/script in the text or so, to simply cut out the unneeded text.
Now I will need to decide if I want to take care of both the host names and aliases or simply drop the idea.
Will let know the outcome for sure!
I started this thread hoping that the notifications template (from the Admin panel) can have some php/script in the text or so, to simply cut out the unneeded text.
Now I will need to decide if I want to take care of both the host names and aliases or simply drop the idea.
Will let know the outcome for sure!
Re: Notifications - modify %host% output
You could use the Bulk Renaming Tool to add/modify aliases in bulk. Do it in batches, i.e. 50 or so. Copy/paste the last part of the host's name to the alias field, and click on Next to modify aliases with "one go".
It shouldn't take very long. See examples below:
Hope this helps.
It shouldn't take very long. See examples below:
Hope this helps.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!