apply config slow

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

apply config slow

Post by fsodah »

lately my Nagios is getting huge a mount of sensors for monitoring ... when i apply the config is getting slow ... some times takes to 15m-20m to apply and verify the new changes .... what would be the process to tune it and how to get apply these changes?

Code: Select all

[root@nagios ~]# df -kh
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                  32G     0   32G   0% /dev
tmpfs                     32G     0   32G   0% /dev/shm
tmpfs                     32G  3.2G   29G  11% /run
tmpfs                     32G     0   32G   0% /sys/fs/cgroup
/dev/mapper/centos-root  250G   25G  226G  10% /
/dev/sda2               1014M  319M  696M  32% /boot
/dev/sda1                200M   12M  189M   6% /boot/efi
/dev/mapper/centos-home  500G   20G  481G   4% /home
tmpfs                    6.3G   12K  6.3G   1% /run/user/42
tmpfs                    6.3G     0  6.3G   0% /run/user/1000
tmpfs                    6.3G     0  6.3G   0% /run/user/0
[root@nagios ~]# 
[root@nagios ~]# 
[root@nagios ~]# free
              total        used        free      shared  buff/cache   available
Mem:       65671516     6035440     2893020     3340108    56743056    55798940
Swap:      83886076           0    83886076
[root@nagios ~]# uname -a
Linux nagios 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@nagios ~]# lscpu 
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                16
On-line CPU(s) list:   0-15
Thread(s) per core:    1
Core(s) per socket:    8
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 79
Model name:            Intel(R) Xeon(R) CPU E5-2609 v4 @ 1.70GHz
Stepping:              1
CPU MHz:               1200.000
CPU max MHz:           1700.0000
CPU min MHz:           1200.0000
BogoMIPS:              3396.05
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              20480K
NUMA node0 CPU(s):     0-3,8-11
NUMA node1 CPU(s):     4-7,12-15
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 cdp_l3 invpcid_single intel_ppin intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm arat pln pts
[root@nagios ~]# 
You do not have the required permissions to view the files attached to this post.
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: apply config slow

Post by fsodah »

htop from the server
You do not have the required permissions to view the files attached to this post.
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: apply config slow

Post by fsodah »

TOP
You do not have the required permissions to view the files attached to this post.
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: apply config slow

Post by fsodah »

Status
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: apply config slow

Post by benjaminsmith »

Hi,

How large is the check load on this system, total number of hosts and servers? The time it takes for nagios to populate all your hosts and services in the DB after restarting nagios is really dependent on how fast the database server can run all the queries (tens of thousands).

Can you post the database log or send over a system profile, to check the database logs for any errors.

Implementing a RAM disk can help improve the overall speed.

Utilizing a RAM Disk in Nagios XI

Also, take a look at the following guide for overall recommendations to improve performance.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: apply config slow

Post by fsodah »

I will check above and get back to you asap.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: apply config slow

Post by benjaminsmith »

Hi,
I will check above and get back to you asap.
Sounds good.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: apply config slow

Post by fsodah »

I checked all my config ... looks perfect ... i ll send you my profile you might find something ... if not just let me know so i can close the ticket later
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: apply config slow

Post by benjaminsmith »

Hi,

Overall the system profile looks pretty good but I did notice a couple of things to correct. In the command subsystem log, I'm seeing the following error:

Code: Select all

PROCESSED 0 COMMANDS
MIB search path: /home/nagios/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (EtherLike-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Check the permissions or names on those files in the following directly, it's unable to read them.

Code: Select all

ls -al /usr/share/snmp/mibs
It should like something like this:

Code: Select all

[root@localhost ~]# ls -al /usr/share/snmp/mibs | grep EtherLike-MIB
-rw-rw-r--. 1 root nagios  84492 Nov 25  2019 EtherLike-MIB.txt
There's fatal PHP error in the Apache logs.

Code: Select all

PHP Fatal error:  Call to a member function xpath() on a non-object in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 554, referer: http://x.x.x.222/nagiosxi/dashboards/dashboard.php?id=u0J9shnQ
There's a graph explorer dahslet that is not pulling the graph correctly. Do you notice any dashlets to populating correctly? If so, please try to remove those. You can pull up this dashboard using the URL.

Code: Select all

http://x.x.x.222/nagiosxi/dashboards/dashboard.php?id=u0J9shnQ
Overall, this is not too big of a system so it should take more a couple minutes to Apply Configuration.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: apply config slow

Post by fsodah »

I will check and get back to you asap.