Page 2 of 3
Re: Reduction of emails
Posted: Mon Nov 23, 2020 3:45 pm
by mrjsokol
Hello Benjamin,
I have sent another profile. I was able to resolve the error with the BPI wizard but not receiving notifications from the bpi object when a service goes down as an essential member but from the individual service. I had set prior to testing for those service notification's in the individuals config to be off and config saved.
Re: Reduction of emails
Posted: Mon Nov 23, 2020 4:43 pm
by benjaminsmith
Hi,
Looking over the profile, I found the following BPI check,
config redacted
Which is mapped to the following service object in the Nagios XI CCM.
config redacted
The one issue I see here is that there is not notification contact defined ( either for the corresponding host object). If you are not recieving notifications for the BPI service, try adding a contact or re-running the wizard to include the proper contact. Otherwise, it looks ok.
Benjamin
Re: Reduction of emails
Posted: Mon Nov 30, 2020 10:52 am
by mrjsokol
Good morning Benjamin
To resolve the issue above I re-ran the wizard but instead of attaching an individual contact, using "myself" option, I used a contact group with my contact added and allowed emails to be sent from the bpi process.
My last two question on this: I am still receiving emails with notifications turned off for my machines in this group. I will provide the name of the specific machine Ive received notifications for with notifications turned off in a pm with a profile.
The question would be: why would I receive alerts about this individual process with notifications turned off? Or was this only recently edited after receiving notifications via email for the notifications to be off?
Last question: Once we confirm a way to only allow notifications to be sent from the BPI process, which way would you suggest to do the edit for this? For example, I have all individual services attached to each host. could I do a massive find and replace on the config files and re-upload them to nagios xi via ssh or would I have to manually turn off notifications for all of the services (once I have the bpi process in place for that group) via the nagios XI web UI? If there is another alternate solution for the edit as well, please advise.
Re: Reduction of emails
Posted: Wed Dec 02, 2020 12:18 pm
by ssax
Do you have anything set/enabled in Admin > Manage Components > Global Event Handlers in either of the tabs?
I labbed it up in XI 5.7.5 and I was unable to replicate the issue.
I see the notifications disabled on that service so it is strange that you received it, you could be hitting a bug, please send the output of this command:
- NOTE: You may need to adjust the -h 127.0.0.1, the -uroot, and -pnagiosxi in the command if your DB is offloaded to another server and/or you've changed the root mysql password
Code: Select all
echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --table
I would use the Bulk Modifications Tool > Change a Single Config Option and set Notifications enabled to off.
Re: Reduction of emails
Posted: Wed Dec 02, 2020 3:02 pm
by mrjsokol
Hey Sean,
Nothing enabled in either tab of global event handlers
The following is the output for the command below:
+--------------------------------------------+------------+
| Table | Size in MB |
+--------------------------------------------+------------+
| nagios_acknowledgements | 0.01 |
| nagios_commands | 0.02 |
| nagios_commenthistory | 25.52 |
| nagios_comments | 0.67 |
| nagios_configfiles | 0.01 |
| nagios_configfilevariables | 0.01 |
| nagios_conninfo | 0.09 |
| nagios_contact_addresses | 0.00 |
| nagios_contact_notificationcommands | 0.01 |
| nagios_contactgroup_members | 0.00 |
| nagios_contactgroups | 0.00 |
| nagios_contactnotificationmethods | 2.52 |
| nagios_contactnotifications | 2.68 |
| nagios_contacts | 0.00 |
| nagios_contactstatus | 0.00 |
| nagios_customvariables | 0.09 |
| nagios_customvariablestatus | 0.10 |
| nagios_dbversion | 0.00 |
| nagios_downtimehistory | 0.60 |
| nagios_eventhandlers | 0.04 |
| nagios_externalcommands | 0.40 |
| nagios_flappinghistory | 1.82 |
| nagios_host_contactgroups | 0.01 |
| nagios_host_contacts | 0.01 |
| nagios_host_parenthosts | 0.00 |
| nagios_hostchecks | 0.00 |
| nagios_hostdependencies | 0.00 |
| nagios_hostescalation_contactgroups | 0.00 |
| nagios_hostescalation_contacts | 0.00 |
| nagios_hostescalations | 0.00 |
| nagios_hostgroup_members | 0.02 |
| nagios_hostgroups | 0.01 |
| nagios_hosts | 0.04 |
| nagios_hoststatus | 0.08 |
| nagios_instances | 0.00 |
| nagios_logentries | 391.16 |
| nagios_notifications | 1232.13 |
| nagios_objects | 0.28 |
| nagios_processevents | 0.68 |
| nagios_programstatus | 0.00 |
| nagios_runtimevariables | 0.00 |
| nagios_scheduleddowntime | 0.32 |
| nagios_service_contactgroups | 0.01 |
| nagios_service_contacts | 0.04 |
| nagios_service_parentservices | 0.00 |
| nagios_servicechecks | 0.00 |
| nagios_servicedependencies | 0.00 |
| nagios_serviceescalation_contactgroups | 0.00 |
| nagios_serviceescalation_contacts | 0.00 |
| nagios_serviceescalations | 0.00 |
| nagios_servicegroup_members | 0.02 |
| nagios_servicegroups | 0.00 |
| nagios_services | 0.22 |
| nagios_servicestatus | 0.71 |
| nagios_statehistory | 124.67 |
| nagios_systemcommands | 0.04 |
| nagios_timedeventqueue | 0.00 |
| nagios_timedevents | 0.00 |
| nagios_timeperiod_timeranges | 0.01 |
| nagios_timeperiods | 0.00 |
| tbl_command | 0.06 |
| tbl_contact | 0.03 |
| tbl_contactgroup | 0.03 |
| tbl_contacttemplate | 0.03 |
| tbl_domain | 0.03 |
| tbl_host | 0.08 |
| tbl_hostdependency | 0.03 |
| tbl_hostescalation | 0.03 |
| tbl_hostextinfo | 0.03 |
| tbl_hostgroup | 0.03 |
| tbl_hosttemplate | 0.03 |
| tbl_info | 0.17 |
| tbl_lnkContactToCommandHost | 0.02 |
| tbl_lnkContactToCommandService | 0.02 |
| tbl_lnkContactToContactgroup | 0.02 |
| tbl_lnkContactToContacttemplate | 0.02 |
| tbl_lnkContactToVariabledefinition | 0.02 |
| tbl_lnkContactgroupToContact | 0.02 |
| tbl_lnkContactgroupToContactgroup | 0.02 |
| tbl_lnkContacttemplateToCommandHost | 0.02 |
| tbl_lnkContacttemplateToCommandService | 0.02 |
| tbl_lnkContacttemplateToContactgroup | 0.02 |
| tbl_lnkContacttemplateToContacttemplate | 0.02 |
| tbl_lnkContacttemplateToVariabledefinition | 0.02 |
| tbl_lnkHostToContact | 0.02 |
| tbl_lnkHostToContactgroup | 0.02 |
| tbl_lnkHostToHost | 0.02 |
| tbl_lnkHostToHostgroup | 0.02 |
| tbl_lnkHostToHosttemplate | 0.02 |
| tbl_lnkHostToVariabledefinition | 0.02 |
| tbl_lnkHostdependencyToHost_DH | 0.02 |
| tbl_lnkHostdependencyToHost_H | 0.02 |
| tbl_lnkHostdependencyToHostgroup_DH | 0.02 |
| tbl_lnkHostdependencyToHostgroup_H | 0.02 |
| tbl_lnkHostescalationToContact | 0.02 |
| tbl_lnkHostescalationToContactgroup | 0.02 |
| tbl_lnkHostescalationToHost | 0.02 |
| tbl_lnkHostescalationToHostgroup | 0.02 |
| tbl_lnkHostgroupToHost | 0.02 |
| tbl_lnkHostgroupToHostgroup | 0.02 |
| tbl_lnkHosttemplateToContact | 0.02 |
| tbl_lnkHosttemplateToContactgroup | 0.02 |
| tbl_lnkHosttemplateToHost | 0.02 |
| tbl_lnkHosttemplateToHostgroup | 0.02 |
| tbl_lnkHosttemplateToHosttemplate | 0.02 |
| tbl_lnkHosttemplateToVariabledefinition | 0.02 |
| tbl_lnkServiceToContact | 0.06 |
| tbl_lnkServiceToContactgroup | 0.02 |
| tbl_lnkServiceToHost | 0.06 |
| tbl_lnkServiceToHostgroup | 0.02 |
| tbl_lnkServiceToServicegroup | 0.02 |
| tbl_lnkServiceToServicetemplate | 0.06 |
| tbl_lnkServiceToVariabledefinition | 0.06 |
| tbl_lnkServicedependencyToHost_DH | 0.02 |
| tbl_lnkServicedependencyToHost_H | 0.02 |
| tbl_lnkServicedependencyToHostgroup_DH | 0.02 |
| tbl_lnkServicedependencyToHostgroup_H | 0.02 |
| tbl_lnkServicedependencyToService_DS | 0.02 |
| tbl_lnkServicedependencyToService_S | 0.02 |
| tbl_lnkServicedependencyToServicegroup_DS | 0.02 |
| tbl_lnkServicedependencyToServicegroup_S | 0.02 |
| tbl_lnkServiceescalationToContact | 0.02 |
| tbl_lnkServiceescalationToContactgroup | 0.02 |
| tbl_lnkServiceescalationToHost | 0.02 |
| tbl_lnkServiceescalationToHostgroup | 0.02 |
| tbl_lnkServiceescalationToService | 0.02 |
| tbl_lnkServiceescalationToServicegroup | 0.02 |
| tbl_lnkServicegroupToService | 0.02 |
| tbl_lnkServicegroupToServicegroup | 0.02 |
| tbl_lnkServicetemplateToContact | 0.02 |
| tbl_lnkServicetemplateToContactgroup | 0.02 |
| tbl_lnkServicetemplateToHost | 0.02 |
| tbl_lnkServicetemplateToHostgroup | 0.02 |
| tbl_lnkServicetemplateToServicegroup | 0.02 |
| tbl_lnkServicetemplateToServicetemplate | 0.02 |
| tbl_lnkServicetemplateToVariabledefinition | 0.02 |
| tbl_lnkTimeperiodToTimeperiod | 0.02 |
| tbl_logbook | 0.02 |
| tbl_mainmenu | 0.02 |
| tbl_permission | 0.02 |
| tbl_permission_inactive | 0.02 |
| tbl_service | 0.22 |
| tbl_servicedependency | 0.03 |
| tbl_serviceescalation | 0.03 |
| tbl_serviceextinfo | 0.03 |
| tbl_servicegroup | 0.03 |
| tbl_servicetemplate | 0.03 |
| tbl_session | 0.02 |
| tbl_session_locks | 0.02 |
| tbl_settings | 0.03 |
| tbl_submenu | 0.02 |
| tbl_timedefinition | 0.02 |
| tbl_timeperiod | 0.03 |
| tbl_user | 0.03 |
| tbl_variabledefinition | 0.13 |
| xi_auditlog | 2.09 |
| xi_auth_tokens | 0.17 |
| xi_cmp_ccm_backups | 0.02 |
| xi_cmp_favorites | 0.03 |
| xi_cmp_nagiosbpi_backups | 0.22 |
| xi_cmp_trapdata | 0.03 |
| xi_cmp_trapdata_log | 0.03 |
| xi_commands | 0.02 |
| xi_deploy_agents | 0.02 |
| xi_deploy_jobs | 0.02 |
| xi_eventqueue | 0.03 |
| xi_events | 0.27 |
| xi_meta | 3.14 |
| xi_mibs | 0.05 |
| xi_options | 0.06 |
| xi_sessions | 0.03 |
| xi_sysstat | 0.03 |
| xi_usermeta | 0.20 |
| xi_users | 0.03 |
+--------------------------------------------+------------+
I had tried in addition from what I last posted, turning the notification of the service on and back off again but still receiving notifications for the individual services. I dont think this matters but I thought I would mention that I have left notifications on for the host config, unless the host configuration settings for notifications would trickle down and over ride any settings set at the individual service level.
Re: Reduction of emails
Posted: Thu Dec 03, 2020 4:17 pm
by ssax
Hmm, I'm not sure then, have you tried rebooting the system complete to see if there is some hung process or anything?
Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup to debug further:
https://support.nagios.com/tickets/
Re: Reduction of emails
Posted: Fri Dec 04, 2020 8:56 am
by mrjsokol
Good morning Sean,
We have restarted the server and waiting on results for today and over the weekend. If we dont see any more notifications, we will consider this closed.
I will let you know the result on Monday.
Re: Reduction of emails
Posted: Fri Dec 04, 2020 10:03 am
by mrjsokol
Good morning Sean,
The server has been restarted and I have received another notification from a member in the group. I have changed the contact from myself to non and set the contact group to 'usa admins' with notifications still off to see if we need to change the contact to update nagios properly, thinking that may its a cached issue. I will let this run its course. If I receive another notification before this weekend occurs then I will proceed with a ticket. I am waiting on a response from our rep about the ticket situation.
Re: Reduction of emails
Posted: Fri Dec 04, 2020 3:53 pm
by benjaminsmith
Hi,
I will let this run its course. If I receive another notification before this weekend occurs then I will proceed with a ticket. I am waiting on a response from our rep about the ticket situation.
The ticket situation looks ok, so you go ahead a start a ticket if the issue persists.
Have a good weekend!
Re: Reduction of emails
Posted: Mon Dec 07, 2020 1:14 pm
by mrjsokol
Hey Sean,
We received more alerts from the services rather than the bpi object, which we should receive none for this service.
Created ticket Reduction of emails #774114