Hostname alias

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Hostname alias

Post by eddiez »

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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Hostname alias

Post by slansing »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostname alias

Post by lmiltchev »

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:

Code: Select all

Host: %host%
Be sure to check out our Knowledgebase for helpful articles and solutions!
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: Hostname alias

Post by eddiez »

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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Hostname alias

Post by slansing »

The top most "Host Alert" section should be configured in this fashion:

Code: Select all

%type% Host Alert - %host% is %hoststate%
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

***** Nagios XI Alert *****

%alertsummary%

Notification Type: %type%
Host: %host%
State: %hoststate%
Address: %hostaddress%
Info: %hostoutput%
Date/Time: %datetime%

Respond: %responseurl%
Nagios URL: %xiserverurl%
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: Hostname alias

Post by eddiez »

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

Post by slansing »

Hey eddie,

Here is my Service Alert Subject:

Code: Select all

%type% Service Alert - %host%/%service% is %servicestate%
And my Service Alert Message:

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%
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: Hostname alias

Post by eddiez »

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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Hostname alias

Post by abrist »

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%
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.
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: Hostname alias

Post by eddiez »

Again thanks for the assistance and quick responses. :D
Locked