Hostname alias
Hostname alias
I somehow have an alias for a host that is incorrect. When it send out alerts is show the following
Host: tsts03 - rdbt3022
The tsts03 is incorrect but the rdbt3022 is right and the alert is for that host. I cannot seem to find where I need to change this.
Ed
Host: tsts03 - rdbt3022
The tsts03 is incorrect but the rdbt3022 is right and the alert is for that host. I cannot seem to find where I need to change this.
Ed
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Hostname alias
You can change the host's alias "Description" from the Core Config Manager here:
Configure > CCM > Hosts > Select the hosts name, and from here you can make additional changes to the configuration file.
Configure > CCM > Hosts > Select the hosts name, and from here you can make additional changes to the configuration file.
Re: Hostname alias
What version of Nagios XI are you using?
Click on the username in the upper right corner, then click on the "Notification Messages" under the "Notifications Options" menu on the left-hand side, and show us what macro do you have set up under "Host/Service Alert Message" fields. For example:
Click on the username in the upper right corner, then click on the "Notification Messages" under the "Notifications Options" menu on the left-hand side, and show us what macro do you have set up under "Host/Service Alert Message" fields. For example:
Code: Select all
Host: %host%Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Hostname alias
Email Notifications
Specify the format of the host and service alert messages you receive via email.
Host Alert Subject:
%type% Host Alert - %hostalias% is %hoststate%
Host Alert Message:
***** Nagios XI Alert *****
%alertsummary%
Service Alert Subject:
%type% Service Alert - %hostalias%/%service% is %servicestate%
Service Alert Message:
***** Nagios XI Alert *****
%alertsummary%
Use default system messages
Specify the format of the host and service alert messages you receive via email.
Host Alert Subject:
%type% Host Alert - %hostalias% is %hoststate%
Host Alert Message:
***** Nagios XI Alert *****
%alertsummary%
Service Alert Subject:
%type% Service Alert - %hostalias%/%service% is %servicestate%
Service Alert Message:
***** Nagios XI Alert *****
%alertsummary%
Use default system messages
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Hostname alias
The top most "Host Alert" section should be configured in this fashion:
That way, it will show the host's name and not the alias, though you could change this to alias as you had it to show the host's alias. Is this what you were looking for?
For reference, here is my default Host Alert Message section:
Code: Select all
%type% Host Alert - %host% is %hoststate%For reference, here is my default Host Alert Message section:
Code: Select all
***** Nagios XI Alert *****
%alertsummary%
Notification Type: %type%
Host: %host%
State: %hoststate%
Address: %hostaddress%
Info: %hostoutput%
Date/Time: %datetime%
Respond: %responseurl%
Nagios URL: %xiserverurl%
Re: Hostname alias
Thanks. What would your service alert look like?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Hostname alias
Hey eddie,
Here is my Service Alert Subject:
And my Service Alert Message:
Here is my Service Alert Subject:
Code: Select all
%type% Service Alert - %host%/%service% is %servicestate%Code: Select all
***** Nagios XI Alert *****
%alertsummary%
Notification Type: %type%
Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: %datetime%
Respond: %responseurl%
Nagios URL: %xiserverurl%
Re: Hostname alias
Thanks for the help.
Another question. I have some SOAP UI monitors that on the screen when it errors displays extended output so we can see where the failure is. Is there a place in the alerts going out that I need to adjust, add, etc?
Another question. I have some SOAP UI monitors that on the screen when it errors displays extended output so we can see where the failure is. Is there a place in the alerts going out that I need to adjust, add, etc?
Re: Hostname alias
You may have to include the macro: $LONGSERVICEOUTPUT$ in your custom notification. To do so, make the following changes in the host message: change %hostoutput% to %longhostoutput%
In the service message change %serviceoutput% to %longserviceoutput%
In the service message change %serviceoutput% to %longserviceoutput%
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Hostname alias
Again thanks for the assistance and quick responses. 