Had some strange issue last night (snippets from /var/log/messages), also lost performance datas, from services...
ndo2db: Error: max retries exceeded sending message to queue. Kernel queue parameters may need to be tuned. See README.
I had found the article as solution:
https://support.nagios.com/kb/article.php?id=139
So i tried to raise a bit on kernel.msgmni to 640000
but then i become the error like in the case (note that after i also fount these message from the time of the original issue...)
eventlog:
WARNING: RLIMIT_NPROC is 95692, total max estimated processes is 200806! You should increase your limits (ulimit -u, or limits.conf)
https://support.nagios.com/forum/viewto ... 16&t=54899
Tried to rise the nrpoc number for nagios unsuccessfull..
/etc/security/limits.d/20-nproc.conf
nagios soft nproc unlimited
nagios hard nproc unlimited
cat /proc/8130/limits
Limit Soft Limit Hard Limit Units
...
Max processes 95692 95692 processes
Deadpool setting are disabled,
We have a bit different settings and sizes....
echo "SELECT table_schema as 'Database', table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES ORDER BY (data_length + index_length) DESC;" |mysql -t -u root -pnagiosxi
+--------------------+----------------------------------------------+------------+
| Database | Table | Size in MB |
+--------------------+----------------------------------------------+------------+
| nagios | nagios_logentries | 10774.24 |
| nagios | nagios_commenthistory | 509.28 |
| nagios | nagios_statehistory | 480.31 |
| nagios | nagios_downtimehistory | 63.59 |
| nagios | nagios_notifications | 24.55 |
| nagios | nagios_servicestatus | 13.54 |
| nagiosxi | xi_meta | 9.80 |
| nagios | nagios_services | 5.58 |
| nagios | nagios_flappinghistory | 4.11 |
| nagios | nagios_objects | 3.44 |
| nagios | nagios_contactnotifications | 3.11 |
| nagios | nagios_contactnotificationmethods | 2.93 |
| nagios | nagios_externalcommands | 1.63 |
| nagiosxi | xi_cmp_trapdata_log | 1.53 |
| nagiosxi | xi_auditlog | 1.18 |
mysql -u root -pnagiosxi -e "show global status like '%used_connections%'; show variables like 'max_connections';"
+----------------------+-------+
| Variable_name | Value |
+----------------------+-------+
| Max_used_connections | 320 |
+----------------------+-------+
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 512 |
+-----------------+-------+
Apply config output:
APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
No entry for terminal type "unknown";
using dumb terminal settings.
--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
/bin/chmod: cannot access ‘/usr/local/nagios/share/perfdata/MYHUSLHQBPAP013/Open_Files.xml.5113’: No such file or directory
/bin/chmod: cannot access ‘/usr/local/nagios/share/perfdata/MYHUSLHQBPAP272/Memory_Usage.xml.5113’: No such file or directory
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
No files to import
--------------------------------------
--- ccm_export.php -------------------
> Writing CCM configuration to Nagios files
Finished writing out configuraton
--------------------------------------
--------------------------------------
> Verifying configuration with Nagios Core
> Output:
Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 24002 services.
Checked 1459 hosts.
Checked 99 host groups.
Checked 21 service groups.
Checked 65 contacts.
Checked 14 contact groups.
Checked 139 commands.
Checked 70 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1459 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 70 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
OUTPUT=--------------------------------------
RETURNCODE=0
PROCESSING COMMAND ID 5396...
PROCESS COMMAND: CMD=1150, DATA=remove
CMDLINE=php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncall
PHP Notice: Undefined variable: err in /app/nagiosxi/html/includes/components/nagiosbpi/api_tool.php on line 146
CMD: syncall
MSG: Could not get data for objects. NDO or Core may not be running.
OUTPUT=MSG: Could not get data for objects. NDO or Core may not be running.
RETURNCODE=0
mariadb.log
191001 14:25:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
191001 14:25:09 [Note] /usr/libexec/mysqld (mysqld 5.5.60-MariaDB) starting as process 21644 ...
191001 14:25:09 InnoDB: The InnoDB memory heap is disabled
191001 14:25:09 InnoDB: Mutexes and rw_locks use GCC atomic builtins
191001 14:25:09 InnoDB: Compressed tables use zlib 1.2.7
191001 14:25:09 InnoDB: Using Linux native AIO
191001 14:25:09 InnoDB: Initializing buffer pool, size = 4.0G
191001 14:25:09 InnoDB: Completed initialization of buffer pool
191001 14:25:09 InnoDB: highest supported file format is Barracuda.
191001 14:25:09 InnoDB: Waiting for the background threads to start
191001 14:25:10 Percona XtraDB (http://www.percona.com) 5.5.59-MariaDB-38.11 started; log sequence number 7262361824
191001 14:25:10 [Note] Plugin 'FEEDBACK' is disabled.
191001 14:25:11 [Note] Server socket created on IP: '0.0.0.0'.
191001 14:25:11 [Note] Event Scheduler: Loaded 0 events
191001 14:25:11 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.60-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
191001 14:25:11 [Note] /usr/libexec/mysqld: Normal shutdown
191001 14:25:11 [Note] Event Scheduler: Purging the queue. 0 events
191001 14:25:11 InnoDB: Starting shutdown...
191001 14:25:15 InnoDB: Shutdown completed; log sequence number 7262361824
191001 14:25:15 [Note] /usr/libexec/mysqld: Shutdown complete
191001 14:25:15 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
191001 14:25:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
191001 14:25:15 [Note] /usr/libexec/mysqld (mysqld 5.5.60-MariaDB) starting as process 22646 ...
191001 14:25:15 InnoDB: The InnoDB memory heap is disabled
191001 14:25:15 InnoDB: Mutexes and rw_locks use GCC atomic builtins
191001 14:25:15 InnoDB: Compressed tables use zlib 1.2.7
191001 14:25:15 InnoDB: Using Linux native AIO
191001 14:25:15 InnoDB: Initializing buffer pool, size = 4.0G
191001 14:25:16 InnoDB: Completed initialization of buffer pool
191001 14:25:16 InnoDB: highest supported file format is Barracuda.
191001 14:25:16 InnoDB: Waiting for the background threads to start
191001 14:25:17 Percona XtraDB (http://www.percona.com) 5.5.59-MariaDB-38.11 started; log sequence number 7262361824
191001 14:25:17 [Note] Plugin 'FEEDBACK' is disabled.
191001 14:25:17 [Note] Server socket created on IP: '0.0.0.0'.
191001 14:25:17 [Note] Event Scheduler: Loaded 0 events
191001 14:25:17 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.60-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
Please help solve the issue, best regards,
Ferenc