Page 1 of 2
How to add alias name to Hostname for host and service alert
Posted: Wed May 16, 2018 2:38 pm
by thanigaivel.a
In our environment, predominantly we are using alias for hosts. therefore in nagios alert notification also we are expecting to get alias name along with hostname.
so kindly let us know on how to configure alias to come in the nagios alerts for both host alert and service alert.
below is an example nagios alert notification from our environment.
HOST ALERT:
############
***** IMIT Nagios XI Host Alert *****
Nagios has detected a problem with this host.
Notification Type: PROBLEM
Host: usaesm1av6013.na.xerox.net
Alias: USAESM1AV6013
Host State: DOWN
Address: 13.145.138.76
Info: CRITICAL - 13.145.138.76: rta nan, lost 100%
Date/Time: 2018-05-16 09:24:02
SERVICE ALERT:
***** IMIT Nagios XI Service Alert *****
Nagios has detected this service has recovered.
Notification Type: RECOVERY
Service: check_load
Host: usa0300lv6469.sdsp.mc.xerox.com
Address: 10.15.21.29
Host State: UP
Service State: OK
Info:
OK - load average: 3.57, 4.36, 4.88
Date/Time: 2018-05-16 09:32:32
Re: How to add alias name to Hostname for host and service a
Posted: Wed May 16, 2018 3:41 pm
by npolovenko
Re: How to add alias name to Hostname for host and service a
Posted: Mon May 21, 2018 10:18 am
by thanigaivel.a
I had made some changes in the "Notification Settings Management" section and "Configure->My Account Settings-> Notification Options " section.
However, after the changes, now Nagios stopped sending mail notification. I'm not sure what caused it to NOT sending notification.
so kindly help me to fix the changes.
Also, I've attached the screenshots of each notification configuration pages.
Re: How to add alias name to Hostname for host and service a
Posted: Mon May 21, 2018 10:22 am
by thanigaivel.a
Attached screenshots in the name of nagios-1, nagios-2, nagios-3, nagios-4
Re: How to add alias name to Hostname for host and service a
Posted: Mon May 21, 2018 1:02 pm
by thanigaivel.a
Please be note that, still I can able to send test mail or notification. but only normal nagios notifications or not working.
Re: How to add alias name to Hostname for host and service a
Posted: Mon May 21, 2018 5:01 pm
by npolovenko
@thanigaivel.a, Hmm, your syntax worked for my XI. I think it might take 5-10 minutes for notifications to start working again after you make changes to the template.
Also, make sure that the host check/service check get into a Critical -Hard state and not a Critical -Soft state.
Re: How to add alias name to Hostname for host and service a
Posted: Tue May 22, 2018 9:01 am
by thanigaivel.a
For the last 2 days we are not getting Nagios email notifications.
so kindly help us to fix the issues, as it is impacting our production environment.
expecting your quick response.
Re: How to add alias name to Hostname for host and service a
Posted: Tue May 22, 2018 11:30 am
by npolovenko
@thanigaivel.a, Please get a host or a service into a critical state. Then click on the Advanced tab and take a screenshot of the whole page for me.
Untitled.png
Also, please send in your Nagios XI System Profile indicating the name of the host, and the name of the service.
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue.
Re: How to add alias name to Hostname for host and service a
Posted: Tue May 22, 2018 1:40 pm
by thanigaivel.a
Had attached the system profile and screenshot showing the advanced tab of a critical service state.
FYI. I'm guessing the issue got started once when I selected all users in notification management and gave deploy preferences/save template/load template. (Notification Management->Deploy to Users)
Re: How to add alias name to Hostname for host and service a
Posted: Tue May 22, 2018 1:56 pm
by npolovenko
@thanigaivel.a, Did you check the enable notifications box + all appropriate notification types before deploying the template?
Untitled.png
Also, please upload: