Delay in updation of Nagios Front end screen

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Delay in updation of Nagios Front end screen

Post by tgriep »

Run this as root and post the output.

Code: Select all

cat /etc/sysctl.conf
The sysctl.conf file is not an application so you cannot execute it.

Can you login to the XI GUI and go to the Admin > Monitoring Engine Status menu and verify that Active and Passive Service checks and Active Host checks are enabled?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Delay in updation of Nagios Front end screen

Post by jatindeepsharma »

Hi @tgriep,
Thanks for correcting me,Please find below output.

[root@NagiosXI ~]# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 262144000


# Controls the maximum size of a message, in bytes
kernel.msgmax = 262144000


# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
#added for nagios ndo2db
kernel.msgmni = 512000
[root@NagiosXI ~]#


For :-
Can you login to the XI GUI and go to the Admin > Monitoring Engine Status menu and verify that Active and Passive Service checks and Active Host checks are enabled?

In Nagios GUI Admin > Monitoring Engine Status
There is nothing like Active and Passive Service checks & Active host checks option present in it & all are marked are green.
i can see below services in Monitoring Engine status
Monitoring Engine
Performance Grapher
database backend
database maintenance
Command subsystem
event manager
feed processor
report engine
cleaner
nonstop operations manager
system statistics
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Delay in updation of Nagios Front end screen

Post by jatindeepsharma »

Hi @Tgriep,
I have checked right option now & found these services are enabled.

Active Service Checks Enabled
Passive Service Checks Enabled
Active Host Checks Enable


Regards
Jatindeep
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Delay in updation of Nagios Front end screen

Post by tgriep »

Thanks for the updated data from the sysctl.conf file.
The settings have been updated and should be OK for the server.

At this point, the changes I recommended earlier will have to be implemented.
Disabling, logstash, elasticsearch, Xwindows would gain some performance.

Also, increasing the performance of the offloaded MYSQL server may be needed as well.

FYI, just adding more CPU's to an image may not speed it up, if the processes are single threaded, they are limited by the Speed of the CPU so allocate faster CPU's to the server as well as a faster Disk Drive subsystem.
Nagios and the MYSQL server are very high I/O intensive so move the systems to faster drives helps as well.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Delay in updation of Nagios Front end screen

Post by jatindeepsharma »

Hi @tgriep,
I have observed that if i will monitor for an hour nagios will work fine for first 35 minutes, it will just clear message queue on an instant but after 35 minutes queue will pile up for 25 minutes & then queue is getting decreased on an instant, is there any inbuilt setting in NAGIOS which i have forgotten to apply?
please suggest.

Regards
Jatindeep
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Delay in updation of Nagios Front end screen

Post by tgriep »

No, there is no built is settings to fix this except to change all of the host and service checks check interval to a higher value so it will smooth out when the checks run.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Delay in updation of Nagios Front end screen

Post by jatindeepsharma »

Hi @tgriep,
how can i change all of the host and service checks check interval to a higher value?
can you suggest me example of one host?

Can you answer one query please
out of 1600 hosts 800 hosts are running according to IST(INDIAN STANDARD TIME ZONE) & 800 are running according to EST(EASTern STANDARD TIME ZONE) .How can i divide this traffic according to time. cause only half of them are running at one time


Regards
JD
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Delay in updation of Nagios Front end screen

Post by tgriep »

Changing the check interval to not run the checks as frequent, will help a bit when the system is running but it will not help when the Apply Config is ran.
You need to increase the CPU speed, Network speed, add Jumbo frames to the network settings to both the Nagios server and the MYSQL server.
That is needed to fix the full Kernel Message Queue issue.

If the server has the Enterprise Feature enabled, you can use the Bulk Modification tool to modify the check interval.
https://support.nagios.com/kb/article/n ... l-733.html

Or, go to the Core Config Manager > Hosts or Services menu, and edit one of the objects.
Click on the Check Settings TAB and there is where you can change the check interval.

This question
out of 1600 hosts 800 hosts are running according to IST(INDIAN STANDARD TIME ZONE) & 800 are running according to EST(EASTern STANDARD TIME ZONE) .How can i divide this traffic according to time. cause only half of them are running at one time
Do you only want to run the checks at certain times of the day and not 24 hours a day?
If so, you would create separate time periods for when you want the check to run.
See this for details.
https://assets.nagios.com/downloads/nag ... riods.html

The only thing is is that the Nagios server only knows about it's local timezone so you will have th adjust the times in the configs manually to run the checks at different times.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked