Nagios logs filling up syslog

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Nagios logs filling up syslog

Post by rajasegar »

ssax wrote:As I stated in the last response, given the current size of your system I recommend the DB stay local, otherwise the KMQ will not process fast enough.

All that output looks good.

Let's check your DB table sizes:

Additionally, 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
As requested

Code: Select all

[nagios@nagiosprodxi1 ~]$ 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
+--------------------------------------------+------------+
| Table                                      | Size in MB |
+--------------------------------------------+------------+
| nagios_acknowledgements                    |       0.66 |
| nagios_commands                            |       0.04 |
| nagios_commenthistory                      |    1161.51 |
| nagios_comments                            |       0.06 |
| nagios_configfiles                         |       0.00 |
| nagios_configfilevariables                 |       0.01 |
| nagios_conninfo                            |       0.81 |
| nagios_contact_addresses                   |       0.00 |
| nagios_contact_notificationcommands        |       0.26 |
| nagios_contactgroup_members                |       0.04 |
| nagios_contactgroups                       |       0.01 |
| nagios_contactnotificationmethods          |     181.37 |
| nagios_contactnotifications                |     190.68 |
| nagios_contacts                            |       0.07 |
| nagios_contactstatus                       |       0.04 |
| nagios_customvariables                     |      14.64 |
| nagios_customvariablestatus                |      15.85 |
| nagios_dbversion                           |       0.00 |
| nagios_downtimehistory                     |     192.07 |
| nagios_eventhandlers                       |       0.05 |
| nagios_externalcommands                    |       0.20 |
| nagios_flappinghistory                     |      46.46 |
| nagios_host_contactgroups                  |       0.17 |
| nagios_host_contacts                       |       0.08 |
| 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.10 |
| nagios_hostgroups                          |       0.03 |
| nagios_hosts                               |       0.38 |
| nagios_hoststatus                          |       0.94 |
| nagios_instances                           |       0.00 |
| nagios_logentries                          |    1381.84 |
| nagios_notifications                       |    1005.79 |
| nagios_objects                             |       6.15 |
| nagios_processevents                       |       0.21 |
| nagios_programstatus                       |       0.00 |
| nagios_runtimevariables                    |       0.00 |
| nagios_scheduleddowntime                   |       0.03 |
| nagios_service_contactgroups               |       1.24 |
| nagios_service_contacts                    |       0.03 |
| 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.09 |
| nagios_servicegroups                       |       0.00 |
| nagios_services                            |       2.94 |
| nagios_servicestatus                       |       7.46 |
| nagios_statehistory                        |     241.81 |
| nagios_systemcommands                      |       0.05 |
| nagios_timedeventqueue                     |       0.00 |
| nagios_timedevents                         |       0.00 |
| nagios_timeperiod_timeranges               |       0.09 |
| nagios_timeperiods                         |       0.02 |
| raja_branch                                |       0.00 |
| raja_branch_service                        |       0.00 |
| tbl_command                                |       0.06 |
| tbl_contact                                |       0.09 |
| tbl_contactgroup                           |       0.03 |
| tbl_contacttemplate                        |       0.01 |
| tbl_domain                                 |       0.01 |
| tbl_host                                   |       0.35 |
| tbl_hostdependency                         |       0.01 |
| tbl_hostescalation                         |       0.00 |
| tbl_hostextinfo                            |       0.00 |
| tbl_hostgroup                              |       0.06 |
| tbl_hosttemplate                           |       0.07 |
| tbl_info                                   |       0.13 |
| tbl_lnkContactToCommandHost                |       0.00 |
| tbl_lnkContactToCommandService             |       0.00 |
| tbl_lnkContactToContactgroup               |       0.00 |
| tbl_lnkContactToContacttemplate            |       0.02 |
| tbl_lnkContactToVariabledefinition         |       0.00 |
| tbl_lnkContactgroupToContact               |       0.02 |
| tbl_lnkContactgroupToContactgroup          |       0.00 |
| tbl_lnkContacttemplateToCommandHost        |       0.00 |
| tbl_lnkContacttemplateToCommandService     |       0.00 |
| tbl_lnkContacttemplateToContactgroup       |       0.00 |
| tbl_lnkContacttemplateToContacttemplate    |       0.00 |
| tbl_lnkContacttemplateToVariabledefinition |       0.00 |
| tbl_lnkHostToContact                       |       0.00 |
| tbl_lnkHostToContactgroup                  |       0.00 |
| tbl_lnkHostToHost                          |       0.00 |
| tbl_lnkHostToHostgroup                     |       0.01 |
| tbl_lnkHostToHosttemplate                  |       0.07 |
| tbl_lnkHostToVariabledefinition            |       0.05 |
| tbl_lnkHostdependencyToHost_DH             |       0.00 |
| tbl_lnkHostdependencyToHost_H              |       0.00 |
| tbl_lnkHostdependencyToHostgroup_DH        |       0.00 |
| tbl_lnkHostdependencyToHostgroup_H         |       0.00 |
| tbl_lnkHostescalationToContact             |       0.00 |
| tbl_lnkHostescalationToContactgroup        |       0.00 |
| tbl_lnkHostescalationToHost                |       0.00 |
| tbl_lnkHostescalationToHostgroup           |       0.00 |
| tbl_lnkHostgroupToHost                     |       0.05 |
| tbl_lnkHostgroupToHostgroup                |       0.01 |
| tbl_lnkHosttemplateToContact               |       0.00 |
| tbl_lnkHosttemplateToContactgroup          |       0.01 |
| tbl_lnkHosttemplateToHost                  |       0.00 |
| tbl_lnkHosttemplateToHostgroup             |       0.00 |
| tbl_lnkHosttemplateToHosttemplate          |       0.01 |
| tbl_lnkHosttemplateToVariabledefinition    |       0.02 |
| tbl_lnkServiceToContact                    |       0.00 |
| tbl_lnkServiceToContactgroup               |       0.01 |
| tbl_lnkServiceToHost                       |       0.09 |
| tbl_lnkServiceToHostgroup                  |       0.06 |
| tbl_lnkServiceToServicegroup               |       0.00 |
| tbl_lnkServiceToServicetemplate            |       0.17 |
| tbl_lnkServiceToVariabledefinition         |       0.04 |
| tbl_lnkServicedependencyToHost_DH          |       0.00 |
| tbl_lnkServicedependencyToHost_H           |       0.00 |
| tbl_lnkServicedependencyToHostgroup_DH     |       0.00 |
| tbl_lnkServicedependencyToHostgroup_H      |       0.00 |
| tbl_lnkServicedependencyToService_DS       |       0.00 |
| tbl_lnkServicedependencyToService_S        |       0.00 |
| tbl_lnkServicedependencyToServicegroup_DS  |       0.02 |
| tbl_lnkServicedependencyToServicegroup_S   |       0.02 |
| tbl_lnkServiceescalationToContact          |       0.00 |
| tbl_lnkServiceescalationToContactgroup     |       0.00 |
| tbl_lnkServiceescalationToHost             |       0.00 |
| tbl_lnkServiceescalationToHostgroup        |       0.00 |
| tbl_lnkServiceescalationToService          |       0.00 |
| tbl_lnkServiceescalationToServicegroup     |       0.02 |
| tbl_lnkServicegroupToService               |       0.02 |
| tbl_lnkServicegroupToServicegroup          |       0.00 |
| tbl_lnkServicetemplateToContact            |       0.00 |
| tbl_lnkServicetemplateToContactgroup       |       0.01 |
| tbl_lnkServicetemplateToHost               |       0.00 |
| tbl_lnkServicetemplateToHostgroup          |       0.00 |
| tbl_lnkServicetemplateToServicegroup       |       0.00 |
| tbl_lnkServicetemplateToServicetemplate    |       0.02 |
| tbl_lnkServicetemplateToVariabledefinition |       0.03 |
| tbl_lnkTimeperiodToTimeperiod              |       0.00 |
| tbl_logbook                                |       0.00 |
| tbl_mainmenu                               |       0.00 |
| tbl_permission                             |       0.02 |
| tbl_permission_inactive                    |       0.02 |
| tbl_service                                |       0.93 |
| tbl_servicedependency                      |       0.01 |
| tbl_serviceescalation                      |       0.00 |
| tbl_serviceextinfo                         |       0.00 |
| tbl_servicegroup                           |       0.01 |
| tbl_servicetemplate                        |       0.09 |
| tbl_session                                |       0.01 |
| tbl_session_locks                          |       0.00 |
| tbl_settings                               |       0.00 |
| tbl_submenu                                |       0.00 |
| tbl_timedefinition                         |       0.07 |
| tbl_timeperiod                             |       0.04 |
| tbl_user                                   |       0.01 |
| tbl_variabledefinition                     |       0.27 |
| xi_auditlog                                |       1.02 |
| xi_auth_tokens                             |       0.00 |
| xi_cmp_trapdata                            |       0.00 |
| xi_cmp_trapdata_log                        |       0.00 |
| xi_commands                                |       0.00 |
| xi_eventqueue                              |       2.11 |
| xi_events                                  |       0.27 |
| xi_incidents                               |       0.00 |
| xi_meta                                    |       5.39 |
| xi_mibs                                    |       0.05 |
| xi_options                                 |       1.03 |
| xi_sessions                                |       0.00 |
| xi_sysstat                                 |       0.01 |
| xi_usermeta                                |       0.64 |
| xi_users                                   |       0.02 |
+--------------------------------------------+------------+

5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios logs filling up syslog

Post by ssax »

The sizes show up and they are not really large so that looks good.
Locked