Page 1 of 2

Nagios notifications for new users

Posted: Fri Jul 13, 2018 7:10 am
by atsb
Hello!

About nagios XI environment
1) Linux Distribution and version? Centos7
2) 32 or 64bit? 64bit
3) VMware Image or Manual Install of XI? Manual install
4) Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? SSL
5) NagiosXI version: 5.5.1

I upgraded today NagiosXI to 5.5.1 from 5.5.0 and noticed a bug. User that i imported from AD 3 days ago has settings do NOT send emails for downtimes, both for services and hosts.
nagios-x-3-1.PNG
After setting downtime for some hosts i went to "Event Log" and "Notifications" i saw that emails were sent out for downtimes but only for this new user.
nagios-x-3-2.PNG
BUT they actually never made it to hes email inbox. So these are probably false logs ? Because other emails are coming trough.

Re: Nagios notifications for new users

Posted: Fri Jul 13, 2018 10:58 am
by jomann
I believe what you're seeing is the notifications coming from Nagios Core and then them being stopped from being sent to the user because they have them disabled on their account. This is how it works; Nagios Core makes a notification, and then Nagios XI responds to it, checks whether it should send an Email or SMS (or both) and then checks if the user is supposed to receive the notification type.

Re: Nagios notifications for new users

Posted: Mon Jul 16, 2018 1:59 am
by atsb
So this new behavior is normal and only for new users ? Does not seem right, i get how it works but why would it log it under "Notifications" as success? As far as i understand successfully sent notifications are under "Notifications" or what would indicate that one entry is sent successfully and another is not.

Re: Nagios notifications for new users

Posted: Mon Jul 16, 2018 11:30 am
by lmiltchev
I was able to recreate the issue in-house. In my opinion, this is a bug - only successful (actually sent) notifications should show up in the Notifications report... Our developers will be looking into this. Thank you for reporting this issue!

Re: Nagios notifications for new users

Posted: Mon Jul 16, 2018 1:58 pm
by lmiltchev
Update: After discussing this with out developers, I think that I was wrong - this is more of a feature than a bug.

If notifications are NOT sent by Nagios Core, Nagios XI won't be able to "see" them at all - they wouldn't show in the Notifications report. However, if they are sent by Core, Nagios XI will determine if they need to be sent as an actual email or SMS notification or not, based on the user's notification settings.

XI users can modify their notification options via the web UI, which is actually a feature that don't exist in Core. It's a "global" setting, that allows users to modify their notification options, so that they will/will not receive certain types of notifications. This is helpful when users don't access to the CCM and are not able to modify the host or the service itself. For example, let's say a user typically receives ALL types of notifications, but he/she is going on a 1 week vacation. The user has the ability to disable temporarily some/all types of notifications for a week.

Having said that, I still believe it's a bit confusing to see a notification in the report, which was NOT sent. Adding an extra column to the report, indicating whether or not the notification was ACTUALLY sent by Nagios XI would be a nice feature request.

Re: Nagios notifications for new users

Posted: Tue Jul 17, 2018 1:12 am
by atsb
Oke... if its a feature then either way why is it showing entries only for newly created users and not old users ? Also i agree with you, showing it under notifications and Event logs as successfully sent is really confusing for me because i cant tell anymore which entry is actually SENT and which is NOT. In this case column to indicate which one was sent successfully would be necessary.
Before upgrading i set downtime for every host and service and it showed me over 300 entry for just this new user(downtime start/end). Since we have more then 10 users i think that actual count is going waaay up to thousands depending on user.

Re: Nagios notifications for new users

Posted: Tue Jul 17, 2018 9:33 am
by lmiltchev
Oke... if its a feature then either way why is it showing entries only for newly created users and not old users ?
Can you give us an example of an "old" and "new" user configs, and their notification preferences? I don't see how the entries would be shown only for new users.
Before upgrading i set downtime for every host and service and it showed me over 300 entry for just this new user(downtime start/end).
The downtime start/end notifications could be disabled on the host/service level AND on the user level, whichever you prefer. If you disabled them on the host/service level, then none of the users/contacts would be receiving downtime start/end notifications and your notification reports wouldn't get "cluttered". If you disabled them on the "per user basis", then these contacts wouldn't be receiving them, but the notifications would show up in the reports.

Re: Nagios notifications for new users

Posted: Tue Jul 17, 2018 10:33 am
by lmiltchev
One more thing that I would like to mention...

It is possible that modifying the user's notification preferences didn't update the contact (in the CCM). This could happen if you cleared the "Host/Service Downtime" check-boxes under the Email tab, but didn't clear them under the Mobile Text (SMS) tab.

Trying clearing the Host and Service Downtime boxes in both places, then click on Update Settings button. Go to the CCM > Contacts > <your contact> and check to see under the Alert Settings if the Scheduled Downtime option is deselected.

Re: Nagios notifications for new users

Posted: Wed Jul 18, 2018 1:05 am
by atsb
Actually yes, that was the cause of this.
nagios-x-4-2.png
Even if i had SMS disabled:
nagios-x-4-3.png
Anyway Thanks you for your trouble. :)

Re: Nagios notifications for new users

Posted: Wed Jul 18, 2018 8:59 am
by lmiltchev
I am glad I was able to help! :)

Do you have any more questions or it is OK to lock this topic?