Page 1 of 1

Hostname alias

Posted: Mon Apr 01, 2013 2:09 pm
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

Re: Hostname alias

Posted: Mon Apr 01, 2013 2:19 pm
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.

Re: Hostname alias

Posted: Mon Apr 01, 2013 2:25 pm
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%

Re: Hostname alias

Posted: Tue Apr 02, 2013 8:52 am
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

Re: Hostname alias

Posted: Tue Apr 02, 2013 9:43 am
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%

Re: Hostname alias

Posted: Tue Apr 02, 2013 9:57 am
by eddiez
Thanks. What would your service alert look like?

Re: Hostname alias

Posted: Tue Apr 02, 2013 10:05 am
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%

Re: Hostname alias

Posted: Tue Apr 02, 2013 10:43 am
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?

Re: Hostname alias

Posted: Tue Apr 02, 2013 10:58 am
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%

Re: Hostname alias

Posted: Tue Apr 02, 2013 11:24 am
by eddiez
Again thanks for the assistance and quick responses. :D