Alerts For Up as a Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Alerts For Up as a Problem

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mindspring
Posts: 117
Joined: Thu Jul 19, 2012 10:24 am

Re: Alerts For Up as a Problem

Post 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%


You do not have the required permissions to view the files attached to this post.
mindspring
Posts: 117
Joined: Thu Jul 19, 2012 10:24 am

Re: Alerts For Up as a Problem

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Alerts For Up as a Problem

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Alerts For Up as a Problem

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mindspring
Posts: 117
Joined: Thu Jul 19, 2012 10:24 am

Re: Alerts For Up as a Problem

Post 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
You do not have the required permissions to view the files attached to this post.
mindspring
Posts: 117
Joined: Thu Jul 19, 2012 10:24 am

Re: Alerts For Up as a Problem

Post 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?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alerts For Up as a Problem

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
mindspring
Posts: 117
Joined: Thu Jul 19, 2012 10:24 am

Re: Alerts For Up as a Problem

Post by mindspring »

Hi There,

I sent the profile a while ago - any feedback on this please?

Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alerts For Up as a Problem

Post by lmiltchev »

@mindspring Than you for the profile! Our technicians are reviewing it and will post their findings shortly.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked