Page 2 of 5
Re: Delay in updation of Nagios Front end screen
Posted: Fri Dec 06, 2019 10:41 am
by benjaminsmith
Hello
@Jatindeepsharma,
If you're going to add more services and hosts, you're going to either have to break this up into multiple XI servers or setup distributed monitoring with Mod-Gearman workers.
However, Mod-Gearman will not help with passive checks. Do you know how many of the 149,424 checks are active vs passive?
Since this is a VM, I would recommend increasing the number of CPU cores.
To re-start Nagios XI and clear kernel message queue, run the following command.
Code: Select all
service crond stop
service npcd stop
service nagios stop
service ndo2db stop
pkill -9 -u nagios
for i in $(ipcs -q | grep nagios |awk '{print $2}'); do ipcrm -q $i; done
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
service mysqld restart
service ndo2db start
service nagios start
service npcd start
service crond start
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 6:50 am
by jatindeepsharma
Hello Benjamin,
Can you please reply?
Regards
Jatindeep
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 9:52 am
by jatindeepsharma
Dear Benjamin,
Thank you so much for your help, I have no idea how to check how many checks are active & passive?
Please guide me.
Please help me to break this up into multiple XI servers. i want to learn this process.
Regards
Jatindeep Sharma
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 1:28 pm
by jatindeepsharma
Hello @Benjaminsmith,
I have increased CPU cores from 4 to 8 on my system & monitoring system now.
Please guide me how can i break this up into multiple XI servers & how can i do active -passive checks?
Regards
Jatindeep
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 4:16 pm
by benjaminsmith
Hello Jatindeepsharma,
Did you notice any improvement when you add more CPU cores?
Not sure of the exact version of the dashlet you have, but If you go to Home > Performance and view the
Monitoring Engine Check Statistics it will display the current number of active and passive checks.
To split the servers, perform a backup and restore to a new server, and then disable or delete the hosts and services that you don't want to run on each machine.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 4:43 pm
by jatindeepsharma
Hello @Benjaminsmith,
CPU usage previously was 95% but right now it is around 37%.It is improved a lot. Thanks for your valuable suggestion, but Still there is delay in messages of about 30 minutes at front end.
how can i get that thing reduced? Can you please suggest?
Output of dashlet is:-
Home > Performance and view the Monitoring Engine Check Statistics
Monitoring Performance
Monitoring Engine Check Statistics
Metric
Value
Active Host Checks
1-min 0
5-min 0
15-min 0
Passive Host Checks
1-min 0
5-min 0
15-min 0
Active Service Checks
1-min 0
5-min 0
15-min 0
Passive Service Checks
1-min 71
5-min 196
15-min 427
Last Updated: 2019-12-09 16:41:20
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 4:51 pm
by jatindeepsharma
Current version of my machine is :
Nagios XI Installation Profile
Download Profile
System:
Nagios XI Version : 2014R1.1
NagiosXI 2.6.32-431.11.2.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome Installed
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 5:26 pm
by jatindeepsharma
Hi Benjaminsmith,
On Nagios SQL server the size of /var/log/mysqld.log is around 20GB? can that also affect performance?
How can i get rid of those logs?
These are just error logs from 2018 & 2019. Please suggest.
Regards
JD
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 5:42 pm
by benjaminsmith
Hi JD,
No, that will just require additional disk space to store. Typically, the logs are archived by logrotate. You can view the configurations in
/etc/logrotate.d.
See:
logrotate(8) - Linux man page
Re: Delay in updation of Nagios Front end screen
Posted: Mon Dec 09, 2019 6:39 pm
by jatindeepsharma
Hi @Benjaminsmith,
Is there any way out that we can set unlimited hosts on single machine?
Regards
JD