Page 2 of 3
Re: Alerts For Up as a Problem
Posted: Thu Nov 02, 2017 11:05 am
by npolovenko
@mindspring
Under contacts I only have notify-host-email selected, not xi_host_notification handler - what is the difference?
If you have contacts that were made automatically when you created new users, you can change your service and host commands to:
xi_service_notification_handler
xi_host_notification_handler
and remove the old commands.
But if you have contacts created separately from XI users I would leave everything as it is.
*If you choose to change the commands remember to enable notifications in that menu from my previous post, check appropriate alert types in Notification Preferences, and select Email in Notification Methods.
Also, please check your Notification management template in Admin/Notification management to make sure you don't have "UP" state embedded inside the code by accident.
PS We do have your system profile from December 2016. Did you have this exact issue at that time?
Re: Alerts For Up as a Problem
Posted: Fri Nov 03, 2017 1:20 am
by mindspring
Ok, it looks like I have contacts as well as XI Users, so created separately. I will leave as is.
I have a contact for myself and notification enabled and I have an XI user below with notifications enabled.
Should I rather disable the one under admin,users to see if that solves the issue as it might be duplicating?
nag1.PNG
This is under my notification settings management. Looks ok
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: Alerts For Up as a Problem
Posted: Fri Nov 03, 2017 1:24 am
by mindspring
What still puzzles me is this. A problem which is followed by a recovery with both status up and decent ping responses.
It's like there is no problem but it's reporting it anyway. Does this make sense?
nag1.PNG
Re: Alerts For Up as a Problem
Posted: Fri Nov 03, 2017 5:59 am
by tacolover101
do you have services under this host going up / down? i've seen something similar happen when a host notification command is assigned to a service.
there has t o be something you can correlate in your notifications, or within the nagios.log based on the timestamp.
Re: Alerts For Up as a Problem
Posted: Fri Nov 03, 2017 9:44 am
by npolovenko
Thanks,
@tacolover101!
do you have services under this host going up / down? i've seen something similar happen when a host notification command is assigned to a service.
@mindspring, That might be the case in your system. Please let us know.
Should I rather disable the one under admin, users to see if that solves the issue as it might be duplicating?
I don't think that would cause a duplicating issue. In my understanding,
notify-host-email command will only send notifications to XI contacts. You could, however, switch the commands for the admin users contacts to xi_service_notification_handler and xi_host_notification_handler for testing purposes.
Re: Alerts For Up as a Problem
Posted: Mon Nov 06, 2017 4:02 am
by mindspring
Ok, I will look into what you are saying but in the meantime. This is for the host in question and Notifications is not even enabled for this host. I am however set as a contact here.
If it's set to skip, shouldn't it not send a notification. This again tells me it might be initiating this notification email from elsewhere.
nag1.PNG
Re: Alerts For Up as a Problem
Posted: Mon Nov 06, 2017 4:08 am
by mindspring
tacolover101 wrote:do you have services under this host going up / down? i've seen something similar happen when a host notification command is assigned to a service.
there has t o be something you can correlate in your notifications, or within the nagios.log based on the timestamp.
I think you are on to something here. Have a look at the notification log. I actually don't receive an email for this service notification yet I am receiving the aforementioned host notification.
nag1.PNG
Let's assume this is the issue, how do i fix that?
Re: Alerts For Up as a Problem
Posted: Mon Nov 06, 2017 12:12 pm
by lmiltchev
Can you PM me or anyone, member of the Nagios Support team your profile? We will need to take a look at your configs, and log files in order to further troubleshoot this issue. Thank you!
Note : You can obtain the profile.zip by going to:
Admin > System Config > System Profile > Download Profile
Re: Alerts For Up as a Problem
Posted: Mon Dec 04, 2017 9:50 am
by mindspring
Hi There,
I sent the profile a while ago - any feedback on this please?
Thanks.
Re: Alerts For Up as a Problem
Posted: Mon Dec 04, 2017 11:45 am
by lmiltchev
@mindspring Than you for the profile! Our technicians are reviewing it and will post their findings shortly.